/* Marketing site. Same drafting-table language as the app (blueprint-grid navy,
   concrete ground, white sheets, safety yellow for the one thing to press) so a
   visitor who signs up lands somewhere that looks like where they came from.
   Barlow throughout; headings in Barlow Semi Condensed. */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #edf1f3;
  --sheet: #ffffff;
  --ink: #14212a;
  --ink-2: #33434d;
  --muted: #5d6c75;
  --line: #dde4e8;
  --line-strong: #b9c4ca;
  --blue: #1d6fb8;
  --blue-deep: #154f84;
  --blue-wash: #e7f1fa;
  --chalk: #f5c518;
  --ok: #23935a;
  --white: #ffffff;
  --sheet-2: #f7f9fa;
  --focus: #2a8be0;
  --chalk-hover: #ffd83a;
  --note-bg: #fdf3dd;
  --note-line: #ecd49a;
  --note-ink: #6d4709;
  --navy-1: #122029;
  --navy-2: #183041;
  --on-navy: #d7e1e6;
  --on-navy-dim: #9fb2bd;
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: 24px;
  --shadow-sheet: 0 2px 4px rgba(20, 33, 42, 0.06), 0 14px 36px rgba(20, 33, 42, 0.12);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); }
p { margin: 0 0 14px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: 0.002em; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 20; background: var(--sheet); color: var(--ink); padding: 10px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* --- blueprint band (header + hero + page titles) -------------------------- */
.band {
  color: var(--on-navy);
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(180deg, var(--navy-1) 0%, var(--navy-2) 100%);
}
.band--solid {
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--navy-1);
}
.band h1, .band h2 { color: var(--white); }
.band a { color: var(--white); }

.site-head { display: flex; align-items: center; gap: 20px; min-height: 96px; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 24px/1 var(--font-head); color: var(--white); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--white); }
.brand svg { width: 32px; height: 32px; fill: none; stroke: var(--chalk); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--on-navy); text-decoration: none; padding: 10px 12px; border-radius: 8px; font-weight: 500; }
.nav a:hover { color: var(--white); background: rgba(255, 255, 255, 0.08); }
.nav a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--chalk); border-radius: 0; }
.nav .btn { padding: 10px 16px; margin-left: 6px; }
.short { display: none; }

/* --- buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 10px; border: 1.5px solid transparent;
  font: 600 18px/1.1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn--chalk { background: var(--chalk); color: var(--ink); }
.nav .btn--chalk, .band .btn--chalk { color: var(--ink); }
.btn--chalk:hover, .nav .btn--chalk:hover, .band .btn--chalk:hover { background: var(--chalk-hover); color: var(--ink); }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-deep); color: var(--white); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--line:hover { border-color: var(--ink); color: var(--ink); }
.btn--line-dark { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.4); }
.btn--line-dark:hover { border-color: var(--white); color: var(--white); }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; pointer-events: none; }

/* --- hero ------------------------------------------------------------------- */
.hero { padding-top: 36px; padding-bottom: 72px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); font-weight: 600; line-height: 1.02; margin-bottom: 22px; }
.hero .lede { font-size: 20px; line-height: 1.5; color: var(--on-navy); max-width: 34em; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.hero-note { color: var(--on-navy-dim); font-size: 16px; margin: 0; }

.diagram { width: 100%; max-width: 520px; justify-self: end; }
.diagram svg { width: 100%; height: auto; overflow: visible; }
.dg-frame { fill: none; stroke: rgba(255, 255, 255, 0.28); stroke-width: 1.5; }
.dg-box { fill: rgba(255, 255, 255, 0.06); stroke: rgba(255, 255, 255, 0.6); stroke-width: 1.5; }
.dg-gate { fill: rgba(245, 197, 24, 0.07); stroke: var(--chalk); stroke-width: 1.5; stroke-dasharray: 6 5; }
.dg-diamond { fill: none; stroke: var(--chalk); stroke-width: 2; stroke-linejoin: round; }
.dg-line { fill: none; stroke: rgba(255, 255, 255, 0.5); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dg-dim { fill: none; stroke: var(--chalk); stroke-width: 1.5; stroke-linecap: round; }
.dg-title { font: 500 19px var(--font); fill: var(--white); }
.dg-sub { font: 400 16px var(--font); fill: var(--on-navy-dim); }
.dg-note { font: 500 16px var(--font); fill: var(--chalk); }
.dg-cap { font: 400 15px var(--font); fill: var(--on-navy-dim); }
.dg-capv { font: 500 15px var(--font); fill: var(--white); }

/* The diagram draws itself once, top to bottom. */
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: dg-draw 0.7s ease-out forwards; animation-delay: calc(var(--i) * 0.2s); }
.show { opacity: 0; animation: dg-show 0.45s ease-out forwards; animation-delay: calc(var(--i) * 0.2s + 0.25s); }
@keyframes dg-draw { to { stroke-dashoffset: 0; } }
@keyframes dg-show { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .draw { animation: none; stroke-dashoffset: 0; }
  .show { animation: none; opacity: 1; }
}

/* --- sections --------------------------------------------------------------- */
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--sheet { background: var(--sheet); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 18px; }
.lede-dark { font-size: 20px; color: var(--ink-2); max-width: 38em; }

.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; padding: 56px 0; }
.feature + .feature { border-top: 1px solid var(--line-strong); }
.feature--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature--flip .feature-text { order: 2; }
.feature h2 { font-size: clamp(30px, 3.4vw, 40px); margin-bottom: 16px; }
.feature-text p { color: var(--ink-2); }
.from { display: inline-block; font: 600 15px/1 var(--font); color: var(--blue-deep); background: var(--blue-wash); padding: 6px 10px; border-radius: 999px; margin-bottom: 16px; }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 12px; height: 6px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }

.sheet { margin: 0; background: var(--sheet); border-radius: 12px; box-shadow: var(--shadow-sheet); overflow: hidden; border: 1px solid var(--line); }
.sheet img { width: 100%; height: auto; }
.sheet figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--sheet-2); color: var(--muted); font-size: 15px; }
.sheet--dialog { max-width: 640px; justify-self: center; }

.also { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; }
.also-item { grid-column: span 2; background: var(--sheet); padding: 26px 28px; }
.also--r2 .also-item:nth-last-child(-n + 2) { grid-column: span 3; }
.also--r1 .also-item:last-child { grid-column: span 6; }
.also-item h3 { font-size: 22px; margin-bottom: 8px; }
.also-item p { color: var(--ink-2); font-size: 17px; margin-bottom: 12px; }

.tier-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 34px 0 30px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--sheet); overflow: hidden; }
.tier-strip > div { padding: 26px 28px; }
.tier-strip > div + div { border-left: 1px solid var(--line-strong); }
.tier-strip h3 { font-size: 28px; margin-bottom: 8px; }
.tier-strip p { color: var(--ink-2); margin: 0; font-size: 17px; }

.trial-note { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; background: var(--navy-2); color: var(--on-navy); border-radius: 14px; padding: 30px 34px; }
.trial-note strong { font: 600 56px/1 var(--font-head); color: var(--chalk); }
.trial-note strong span { display: block; font: 500 17px/1.2 var(--font); color: var(--on-navy-dim); margin-top: 6px; }
.trial-note p { margin: 0; font-size: 19px; }
.trial-note a { color: var(--white); }

/* --- page title band -------------------------------------------------------- */
.page-title { padding-top: 28px; padding-bottom: 56px; }
.page-title h1 { font-size: clamp(38px, 5vw, 56px); margin-bottom: 14px; }
.page-title p { font-size: 20px; color: var(--on-navy); max-width: 36em; margin: 0; }

/* --- plans ------------------------------------------------------------------ */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: -30px; position: relative; }
.card { background: var(--sheet); border: 1px solid var(--line); border-radius: 14px; padding: 28px; box-shadow: var(--shadow-sheet); display: flex; flex-direction: column; }
.card h2 { font-size: 34px; margin-bottom: 8px; }
.card .tag { color: var(--ink-2); min-height: 3.1em; }
.card .seats { font-weight: 600; margin: 8px 0 2px; }
.card .price { font: 600 24px/1.1 var(--font-head); margin: 0 0 22px; color: var(--blue-deep); }
.card .actions { margin-top: auto; display: grid; gap: 12px; justify-items: start; }

.matrix-wrap { margin-top: 56px; background: var(--sheet); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.matrix { width: 100%; border-collapse: collapse; }
.matrix caption { text-align: left; padding: 22px 26px 6px; font: 600 28px/1.1 var(--font-head); }
.matrix th, .matrix td { padding: 16px 26px; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
.matrix thead th { border-top: 0; font: 600 20px var(--font-head); background: var(--sheet-2); }
.matrix thead th, .matrix td.c, .matrix th.c { text-align: center; width: 16%; }
.matrix thead th:first-child { text-align: left; width: auto; }
.matrix tbody th { font-weight: 600; }
.matrix tbody th span { display: block; font-weight: 400; color: var(--muted); font-size: 16px; margin-top: 2px; }
.matrix .yes { display: inline-block; width: 18px; height: 10px; border-left: 3px solid var(--ok); border-bottom: 3px solid var(--ok); transform: rotate(-45deg) translate(2px, -3px); }
.matrix .soon { display: inline-block; font: 600 15px/1 var(--font); color: var(--note-ink); background: var(--note-bg); border: 1px solid var(--note-line); padding: 4px 9px; border-radius: 999px; }
.matrix .no { color: var(--line-strong); font-size: 22px; line-height: 1; }
.matrix tr.seats-row td { font-weight: 600; }

.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.plain-list { margin: 0; padding-left: 22px; display: grid; gap: 10px; color: var(--ink-2); }
.roadmap { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.roadmap li { padding-left: 18px; border-left: 3px solid var(--chalk); }
.roadmap b { display: block; font: 600 22px/1.2 var(--font-head); }
.roadmap span { color: var(--ink-2); }

.faq details { border-top: 1px solid var(--line-strong); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary { cursor: pointer; font: 600 22px/1.25 var(--font-head); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 28px/1 var(--font); color: var(--blue); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 12px 0 0; color: var(--ink-2); max-width: 44em; }

/* --- start / contact / legal ------------------------------------------------ */
.panel { background: var(--sheet); border: 1px solid var(--line); border-radius: 14px; padding: 32px; box-shadow: var(--shadow-sheet); }
.panel h2 { font-size: 30px; margin-bottom: 14px; }
.panel .actions { display: grid; gap: 12px; justify-items: start; margin-top: 22px; }
.chosen { background: var(--blue-wash); border-radius: 10px; padding: 14px 16px; color: var(--blue-deep); margin-bottom: 18px; }
.notice { background: var(--note-bg); border: 1px solid var(--note-line); color: var(--note-ink); border-radius: 10px; padding: 14px 16px; margin-bottom: 26px; font-size: 17px; }
.prose { max-width: 44em; }
.prose h2 { font-size: 28px; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 22px; }

/* --- footer ----------------------------------------------------------------- */
.site-foot { color: var(--on-navy-dim); padding: 44px 0 34px; font-size: 16px; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 28px 56px; justify-content: space-between; align-items: flex-start; }
.site-foot .brand { margin-right: 0; font-size: 22px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-foot nav a { color: var(--on-navy); text-decoration: none; padding: 6px 0; }
.site-foot nav a:hover { color: var(--white); text-decoration: underline; }
.site-foot small { display: block; margin-top: 28px; font-size: 15px; }

/* --- tablet ------------------------------------------------------------------ */
@media (max-width: 960px) {
  body { font-size: 17px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-bottom: 56px; }
  .diagram { justify-self: center; max-width: 480px; }
  .section { padding: 60px 0; }
  .feature, .feature--flip { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 44px 0; }
  .feature--flip .feature-text { order: 0; }
  .also { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .also-item, .also--r2 .also-item:nth-last-child(-n + 2), .also--r1 .also-item:last-child { grid-column: auto; }
  .also-item:last-child:nth-child(odd) { grid-column: span 2; }
  .cards { grid-template-columns: minmax(0, 1fr); margin-top: -24px; }
  .card .tag { min-height: 0; }
  .tier-strip { grid-template-columns: minmax(0, 1fr); }
  .tier-strip > div + div { border-left: 0; border-top: 1px solid var(--line-strong); }
  .two { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

/* --- phone ------------------------------------------------------------------- */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .site-head { gap: 8px; min-height: 72px; }
  .brand { font-size: 22px; }
  .brand svg { width: 28px; height: 28px; }
  .nav { gap: 0; }
  .nav a { padding: 10px 8px; }
  .nav .nav-extra { display: none; }
  .nav .btn { padding: 10px 12px; margin-left: 4px; min-height: 44px; font-size: 17px; }
  .long { display: none; }
  .short { display: inline; }
  .hero h1 { font-size: 40px; }
  .hero .lede { font-size: 18px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .also { grid-template-columns: minmax(0, 1fr); }
  .also-item, .also-item:last-child:nth-child(odd) { grid-column: auto; padding: 22px 20px; }
  .trial-note { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 26px 22px; }
  .matrix th, .matrix td { padding: 12px 10px; }
  .matrix caption { padding: 18px 14px 4px; font-size: 24px; }
  .matrix thead th { font-size: 17px; }
  .matrix thead th, .matrix td.c, .matrix th.c { width: 19%; }
  .matrix thead th:first-child { width: auto; }
  .matrix tbody th { font-size: 16px; }
  .matrix tbody th span { display: none; }
  .panel { padding: 24px 20px; }
  .sheet figcaption { flex-direction: column; gap: 2px; }
}
