/*
 * Candler public site. Same tokens as the dashboard: white and cool gray tinted
 * toward the brand teal, IBM Plex Sans, 4px controls and 6px panels.
 * Product screenshots sit in the dark teal booth, where the recorded page is the lit object.
 */
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('/fonts/plex-sans.woff2') format('woff2');
  font-weight: 100 700;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/plex-mono.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --teal: #0e3a3d;
  --teal-deep: #092a2c;
  --teal-2: #164b4e;
  --on-teal: #e8efee;
  --on-teal-2: #a9c2c0;
  --page: #f2f5f4;
  --paper: #ffffff;
  --ink: #102324;
  --ink-2: #3a4e50;
  --ink-3: #5b7275;
  --rule: #e3e9e8;
  --line: #dae2e0;
  --rule-2: #c3cecc;
  --link: #0b6c70;
  --radius-sm: 4px;
  --radius: 6px;
  --font: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --gutter: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
::selection { background: #ffe3a1; color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
h1, h2, h3, p, dl, dd, ul, figure { margin: 0; }
h1, h2, h3 { color: var(--teal); font-weight: 600; }
h1 { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.02; letter-spacing: -0.03em; max-width: 11.5em; }
h2 { font-size: clamp(28px, 3.3vw, 40px); line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px;
  border: 1px solid var(--rule-2); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--ink);
  font: 600 15px/1 var(--font); text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: var(--ink-3); }
.btn.primary { background: var(--teal); border-color: var(--teal); color: var(--on-teal); }
.btn.primary:hover { background: var(--teal-2); border-color: var(--teal-2); }
.btn.big { min-height: 52px; padding: 0 24px; font-size: 17px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--rule); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: block; padding: 6px 0; }
.top nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.top nav a:not(.btn) { color: var(--ink-2); text-decoration: none; }
.top nav a:not(.btn):hover { color: var(--ink); text-decoration: underline; }

/* Hero */
.hero { padding: 84px 0 56px; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 36em; margin-top: 24px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px; margin-top: 34px; }
.quiet { color: var(--ink-2); font-weight: 500; }
.quiet:hover { color: var(--ink); }
.fine { margin-top: 16px; font-size: 15px; color: var(--ink-3); }

/* The booth: dark teal around the product, the recorded page lit inside it */
.booth { background: var(--teal); color: var(--on-teal-2); padding: 0 0 36px; }
.booth img, .booth .crop { border-radius: var(--radius); box-shadow: 0 18px 48px rgba(4, 20, 21, 0.45); }
.booth figcaption { font-size: 14.5px; margin-top: 16px; max-width: 44em; }
.booth-hero { background: linear-gradient(var(--paper) 0 96px, var(--teal) 96px); }
.booth-crop { padding-top: 64px; padding-bottom: 44px; }
.crop { aspect-ratio: 1440 / 980; overflow: hidden; background: var(--page); }

/* Two columns: heading on the left, the substance on the right */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 72px; align-items: start; }
.split-head p { margin-top: 16px; color: var(--ink-2); max-width: 26em; }

.answers { padding: 104px 0 88px; }
.qa > div { padding: 18px 0 20px; border-top: 1px solid var(--rule); }
.qa > div:last-child { border-bottom: 1px solid var(--rule); }
.qa dt { font-weight: 600; font-size: 18px; color: var(--ink); }
.qa dd { margin-top: 4px; color: var(--ink-2); max-width: 36em; }

.install { padding: 96px 0; }
.install h2 + p { margin-top: 20px; }
.install p { color: var(--ink-2); max-width: 32em; }
.install p + p { margin-top: 14px; }
.install-other { padding-top: 8px; }
.install-other h3 { color: var(--ink); font-size: 18px; }
pre {
  margin: 14px 0 18px; padding: 18px 20px; overflow-x: auto;
  background: var(--teal-deep); color: var(--on-teal); border-radius: var(--radius);
  font: 14px/1.6 var(--mono);
}
.install-other p { font-size: 15.5px; }

/* Pricing */
.pricing { background: var(--page); padding: 96px 0 88px; border-top: 1px solid var(--rule); }
.pricing-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; margin-bottom: 36px; }
.pricing-head p { margin-top: 14px; color: var(--ink-2); max-width: 32em; }
.billing { display: inline-flex; border: 1px solid var(--rule-2); border-radius: var(--radius-sm); background: var(--paper); padding: 3px; }
.billing button {
  font: 500 14.5px/1 var(--font); color: var(--ink-2);
  border: 0; background: none; border-radius: 3px; padding: 0 14px; min-height: 38px; cursor: pointer;
}
.billing button[aria-pressed='true'] { background: var(--teal); color: var(--on-teal); }

.plans {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(9, 42, 44, 0.05);
}
.plan { padding: 28px 28px 24px; display: flex; flex-direction: column; }
.plan + .plan { border-left: 1px solid var(--rule); }
.plan .fits { color: var(--ink-3); font-size: 15px; margin-top: 4px; min-height: 3.2em; }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 18px; }
.price .amount { font-size: 46px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.price .per { color: var(--ink-3); font-size: 16px; }
.billed { font-size: 14px; color: var(--ink-3); margin-top: 8px; }
.plan .btn { margin-top: 22px; }
.limits { margin-top: 24px; font-size: 15px; }
.limits > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--rule); }
.limits dt { color: var(--ink-2); }
.limits dd { font-weight: 600; text-align: right; }

.every { margin-top: 28px; color: var(--ink-2); font-size: 15.5px; max-width: 58em; }
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--rule-2); font-size: 15.5px; }
.notes dt { font-weight: 600; }
.notes dd { color: var(--ink-2); margin-top: 4px; }

/* Privacy */
.privacy { padding: 104px 0 96px; }
.facts { list-style: none; padding: 0; }
.facts li { padding: 14px 0 14px 28px; border-top: 1px solid var(--rule); color: var(--ink-2); position: relative; }
.facts li:last-child { border-bottom: 1px solid var(--rule); }
.facts li::before { content: ''; position: absolute; left: 2px; top: 27px; width: 12px; height: 2px; background: var(--teal); }

.maker { background: var(--page); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 64px 0; }
.maker h2 { font-size: clamp(24px, 2.4vw, 30px); }
.maker p { margin-top: 12px; color: var(--ink-2); max-width: 40em; }

.questions { padding: 104px 0 112px; }

/* Footer */
.foot { background: var(--teal-deep); color: var(--on-teal-2); font-size: 15px; padding: 36px 0; }
.foot-row { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 32px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; flex: 1; }
.foot a { color: var(--on-teal); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--rule); }
  .plan .fits { min-height: 0; }
  .notes { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .top nav { gap: 16px; }
  .hide-sm { display: none; }
  .hero { padding: 48px 0 36px; }
  .booth-hero { background: linear-gradient(var(--paper) 0 40px, var(--teal) 40px); }
  .answers, .install, .pricing, .privacy, .questions { padding: 64px 0; }
  .crop { aspect-ratio: 1440 / 1300; }
  .qa dt { font-size: 17px; }
}
@media (max-width: 400px) {
  .top nav a[href$='#pricing'] { display: none; }
}

/* The free plan: one band under the paid plans, so the paid ones stay the comparison */
.free {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) auto; align-items: center; gap: 20px 40px;
  margin-top: 16px; padding: 22px 28px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.free-head p { color: var(--ink-3); font-size: 15px; margin-top: 2px; }
.free-limits { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 28px; font-size: 15px; color: var(--ink-2); }
.free-limits strong { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) {
  .free { grid-template-columns: minmax(0, 1fr); }
  .free .btn { justify-self: start; }
}
@media (max-width: 640px) {
  .free-limits { grid-template-columns: minmax(0, 1fr); }
}
