/* Nod — the landing page.

   Separate from app.css on purpose. The app is a tool and this is a pitch;
   they share the fonts and the palette and nothing else. Loading 550 lines of
   app chrome on a page somebody bounces off in four seconds is rude. */

@font-face {
  font-family: 'Delight';
  src: url('../../fonts/delight-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Delight';
  src: url('../../fonts/delight-medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Basis Mono';
  src: url('../../fonts/basisgrotesquemono-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --ac: #ff2e00;
  --bg: #fff;
  --fg: #000;
  --fg2: #5c5c5c;
  --fg3: #8e8e8e;
  --line: #e3e3e3;
  --line2: #cfcfcf;
  --sunk: #f7f7f7;
  --green: #067647;

  --r-sm: 12px;
  --r-lg: 20px;
  --r-full: 999px;

  --wide: 1080px;
  --pad: 28px;
}

/* Follows the device unless the page is told otherwise. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000; --fg: #fff; --fg2: #a6a6a6; --fg3: #6e6e6e;
    --line: #242424; --line2: #3a3a3a; --sunk: #0c0c0c; --green: #35d68a;
  }
}
:root[data-theme='dark'] {
  --bg: #000; --fg: #fff; --fg2: #a6a6a6; --fg3: #6e6e6e;
  --line: #242424; --line2: #3a3a3a; --sunk: #0c0c0c; --green: #35d68a;
}
:root[data-theme='light'] {
  --bg: #fff; --fg: #000; --fg2: #5c5c5c; --fg3: #8e8e8e;
  --line: #e3e3e3; --line2: #cfcfcf; --sunk: #f7f7f7; --green: #067647;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Delight', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.mono { font-family: 'Basis Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--pad); }

/* ------------------------------------------------------------------- nav */

.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 14px; height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 17px; }
.brand svg { width: 22px; height: 22px; flex-shrink: 0; }
.nav .spacer { flex: 1; }
.nav .links { display: flex; gap: 22px; font-size: 15px; color: var(--fg2); }
.nav .links a:hover { color: var(--fg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line2); border-radius: var(--r-sm);
  background: none; color: inherit; font: inherit; font-size: 15px;
  cursor: pointer; white-space: nowrap;
  transition: border-color .12s, opacity .12s;
}
.btn:hover { border-color: var(--fg); }
.btn.primary { background: var(--ac); border-color: var(--ac); color: #fff; }
.btn.primary:hover { opacity: .88; border-color: var(--ac); }
.btn.big { padding: 15px 26px; font-size: 17px; }

/* ------------------------------------------------------------------ hero */

.hero { padding: 92px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

h1 {
  font-size: clamp(40px, 6.2vw, 68px);
  font-weight: 400; letter-spacing: -.04em; line-height: 1.02;
}
.lede {
  font-size: clamp(18px, 2.1vw, 22px);
  color: var(--fg2); letter-spacing: -.01em; line-height: 1.45;
  margin-top: 22px; max-width: 46ch;
}
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero .under { margin-top: 16px; font-size: 14px; color: var(--fg3); }

/* --------------------------------------------------------------- section */

section { padding: 84px 0; border-top: 1px solid var(--line); }
.eyebrow {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--fg3); margin-bottom: 20px;
}
h2 {
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 400; letter-spacing: -.03em; line-height: 1.1;
  max-width: 22ch;
}
.section-lede { font-size: 18px; color: var(--fg2); margin-top: 16px; max-width: 54ch; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 24px; }
.card .n {
  font-family: 'Basis Mono', monospace; font-size: 12px;
  color: var(--ac); display: block; margin-bottom: 14px;
}
.card h3 { font-size: 20px; font-weight: 400; letter-spacing: -.01em; margin-bottom: 9px; }
.card p { font-size: 15px; color: var(--fg2); line-height: 1.5; }

.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; margin-top: 44px;
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--line); }
.feature { background: var(--bg); padding: 26px 24px; }
.feature h3 { font-size: 17px; font-weight: 400; margin-bottom: 7px; }
.feature p { font-size: 15px; color: var(--fg2); }

/* --------------------------------------------------------------- pricing */

.prices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 44px; }
.price { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px 30px; display: flex; flex-direction: column; }
.price.lead { border-color: var(--ac); }
.price .tier { font-size: 14px; color: var(--fg3); letter-spacing: .06em; text-transform: uppercase; }
/* Mono, because it is an amount. Pulled tight because a monospaced comma gets
   a full character width of its own and "4 , 999" looks like a mistake. */
.price .amount {
  font-family: 'Basis Mono', monospace;
  font-size: 42px; letter-spacing: -.06em; line-height: 1.1; margin: 18px 0 4px;
}
.price .amount .sep { margin: 0 -.16em; }
.price .per { font-size: 14px; color: var(--fg3); }
.price ul { list-style: none; margin: 26px 0 30px; display: flex; flex-direction: column; gap: 11px; }
.price li { font-size: 15px; color: var(--fg2); display: flex; gap: 10px; align-items: flex-start; }
.price li svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 4px; color: var(--green); }
.price .btn { margin-top: auto; }

/* ---------------------------------------------------------------- footer */

footer { border-top: 1px solid var(--line); padding: 46px 0; }
footer .wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
footer .note { font-size: 14px; color: var(--fg3); }
.theme-pick { display: inline-flex; border: 1px solid var(--line2); border-radius: var(--r-full); overflow: hidden; }
.theme-pick button {
  border: 0; background: none; color: var(--fg3); font: inherit; font-size: 13px;
  padding: 7px 14px; cursor: pointer;
}
.theme-pick button[aria-pressed='true'] { background: var(--fg); color: var(--bg); }

/* ------------------------------------------------------------- animation */

.stage {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--sunk); padding: 26px; overflow: hidden;
}
.stage svg { width: 100%; height: auto; display: block; }

.tick-path { stroke-dasharray: 26; stroke-dashoffset: 26; }
.card-row  { opacity: .35; }

@keyframes rowWake  { 0%,100% { opacity: .35 } 12%,72% { opacity: 1 } }
@keyframes tickDraw { 0%,8% { stroke-dashoffset: 26 } 26%,100% { stroke-dashoffset: 0 } }
@keyframes ringPop  { 0%,8% { opacity: 0; transform: scale(.7) } 26%,100% { opacity: 1; transform: scale(1) } }
@keyframes nodDip   { 0%,70%,100% { transform: translateY(0) } 80% { transform: translateY(3.2px) } }
@keyframes cursorGo {
  0%   { transform: translate(196px, 34px); opacity: 0 }
  6%   { opacity: 1 }
  18%  { transform: translate(196px, 34px) }
  32%  { transform: translate(196px, 92px) }
  50%  { transform: translate(196px, 92px) }
  64%  { transform: translate(196px, 150px) }
  92%  { transform: translate(196px, 150px); opacity: 1 }
  100% { opacity: 0 }
}

.anim .row-1 { animation: rowWake 7.5s ease-in-out infinite;             }
.anim .row-2 { animation: rowWake 7.5s ease-in-out infinite 1.6s;        }
.anim .row-3 { animation: rowWake 7.5s ease-in-out infinite 3.2s;        }
.anim .ok-1  { animation: tickDraw 7.5s ease-out infinite, ringPop 7.5s ease-out infinite;            }
.anim .ok-2  { animation: tickDraw 7.5s ease-out infinite 1.6s, ringPop 7.5s ease-out infinite 1.6s;  }
.anim .ok-3  { animation: tickDraw 7.5s ease-out infinite 3.2s, ringPop 7.5s ease-out infinite 3.2s;  }
.anim .cursor { animation: cursorGo 7.5s ease-in-out infinite; }
.anim .mark-dot { animation: nodDip 3.4s ease-in-out infinite; transform-origin: center; }

/* Anything that moves, stops. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim * { animation: none !important; }
  .tick-path { stroke-dashoffset: 0; }
  .card-row { opacity: 1; }
  .anim .cursor { opacity: 0; }
}

/* ------------------------------------------------------------------ small */

@media (max-width: 900px) {
  :root { --pad: 20px; }
  .hero { padding: 56px 0 52px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  section { padding: 60px 0; }
  .cards { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .prices { grid-template-columns: 1fr; }
  .nav .links { display: none; }
  .hero .cta .btn { flex: 1; }
}
