/* Public pages: plain, fast, no third-party files (the app's Content-Security-Policy allows only our own).
   The split screen matches the app's sign-in pages ("Sign-in screens" in app/frontend/src/styles/app.css): keep
   the two in step. Colors are palette A, the app's default. */
@font-face {
  font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --font: "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --card: #ffffff; --card-2: #f9fafb; --line: #e5e7eb; --line-2: #d1d5db;
  --ink: #111827; --ink-2: #374151; --ink-3: #6b7280; --ink-4: #9ca3af;
  --accent: #18181b; --accent-hover: #3f3f46; --accent-ink: #ffffff; --wordmark: #1f7a4f; --focus: #2563eb;
  --note: #fffaeb; --note-ink: #8a5300;
  --panel: #18181b; --panel-accent: #4fc98a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --card: #16181d; --card-2: #1b1e24; --line: #262a31; --line-2: #353a43;
    --ink: #f4f5f7; --ink-2: #cdd1d8; --ink-3: #9aa1ad; --ink-4: #6f7682;
    --accent: #f4f4f5; --accent-hover: #ffffff; --accent-ink: #18181b; --wordmark: #4fc98a; --focus: #60a5fa;
    --note: #2a2110; --note-ink: #f5c26b;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; min-height: 100dvh; background: var(--card); color: var(--ink-2);
  font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11" 1;
}
a { color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

/* ───────────── Split screen: the brand panel left, the page's actions right; one column under 900px ───────────── */
.split { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--card); }
.panel {
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 40px 48px;
  background: var(--panel); color: rgb(255 255 255 / .62); box-shadow: inset -1px 0 0 rgb(255 255 255 / .06);
}
.panel :focus-visible { outline-color: #fff; }
.panel-top { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.panel > .panel-top { align-self: flex-start; }
.panel-word { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.panel-word i { font-style: normal; color: var(--panel-accent); }
.logo { width: 28px; height: 28px; flex: none; }
.logo rect { fill: var(--panel); stroke: rgb(255 255 255 / .22); }
.logo path { fill: none; stroke: var(--panel-accent); stroke-width: 3; }
.panel-title {
  margin: 0; max-width: 20ch; font-size: clamp(32px, 3.4vw, 46px); line-height: 1.08; font-weight: 700;
  letter-spacing: -.03em; color: #fff; text-wrap: balance;
}
.panel-line { margin: 16px 0 0; max-width: 42ch; font-size: 16px; line-height: 1.55; }
.panel-end { height: 28px; }
/* One load's trip in our own icons (the app's Icon.tsx has the same shapes), on a road of lane markings */
.trip { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 480px; margin: 44px 0 0; padding: 0; list-style: none; }
.trip::before {
  content: ""; position: absolute; top: 33px; left: 12.5%; right: 12.5%; height: 2px;
  background: repeating-linear-gradient(90deg, rgb(255 255 255 / .3) 0 10px, transparent 10px 18px);
}
.trip li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; color: rgb(255 255 255 / .78); text-align: center; }
.trip-icon {
  display: grid; place-items: center; width: 68px; height: 68px; border-radius: 18px; color: var(--panel-accent);
  background: color-mix(in srgb, var(--panel) 90%, #fff); border: 1px solid rgb(255 255 255 / .14);
}
.trip-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.side { display: flex; flex-direction: column; min-width: 0; padding: 32px 24px 24px; background: var(--card); }
.side-body { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 380px; margin: 0 auto; padding: 24px 0 40px; }
.side-foot { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--ink-4); }
.side-foot a { color: var(--ink-3); text-decoration: none; }
.side-foot a:hover { color: var(--ink); text-decoration: underline; }

/* The home page's right side */
.side-title { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.side-line { margin: 8px 0 0; color: var(--ink-3); }
.side-actions { display: grid; gap: 10px; margin-top: 28px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 8px;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2); font-size: 14.5px; font-weight: 600;
  text-decoration: none; transition: background .15s, border-color .15s, color .15s;
}
.button:hover { background: var(--card-2); color: var(--ink); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.points { display: grid; gap: 12px; margin: 32px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 14.5px; }
.points li { position: relative; padding-left: 28px; }
.points li::before {
  content: ""; position: absolute; left: 3px; top: 6px; width: 11px; height: 6px;
  border-left: 2px solid var(--wordmark); border-bottom: 2px solid var(--wordmark); transform: rotate(-45deg);
}

@media (max-width: 899px) {
  .split { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .panel, .side { width: 100%; max-width: 480px; margin: 0 auto; }
  .panel { gap: 18px; justify-content: flex-start; padding: 24px 20px 0; background: none; box-shadow: none; color: var(--ink-3); }
  .panel :focus-visible { outline-color: var(--focus); }
  .panel .panel-top { color: var(--ink); }
  .panel .panel-word i { color: var(--wordmark); }
  .panel .logo rect { stroke: none; }
  .panel-title { max-width: none; font-size: 28px; line-height: 1.15; color: var(--ink); }
  .panel-line, .panel-end, .trip { display: none; }
  .side-title { font-size: 21px; }
  .side { padding: 0 20px 20px; }
  .side-body { justify-content: flex-start; max-width: none; padding: 24px 0 40px; }
}

/* ───────────── Privacy and terms: the panel's color as a top bar, the home page's footer ───────────── */
.doc-page { display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px; }
.doc-top { background: var(--panel); }
.doc-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.doc-top .signin { color: rgb(255 255 255 / .8); font-size: 14px; font-weight: 600; text-decoration: none; }
.doc-top .signin:hover { color: #fff; }
.doc-top :focus-visible { outline-color: #fff; }
.doc { flex: 1; padding-top: 40px; padding-bottom: 56px; }
.doc h1 { margin: 14px 0 16px; font-size: clamp(28px, 4vw, 36px); line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
.note { display: inline-block; margin: 0; padding: 4px 10px; border-radius: 8px; background: var(--note); color: var(--note-ink); font-size: 13px; font-weight: 600; }
.doc-foot { padding: 20px; border-top: 1px solid var(--line); }
.doc.legal .lead { margin: 0 0 8px; }
.doc.legal h2 { margin: 32px 0 8px; }
.legal p, .legal li { line-height: 1.65; color: var(--ink-2); }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal li + li { margin-top: 6px; }
.legal a { color: inherit; text-underline-offset: 2px; }

/* ───────────── Pricing: headline, plan cards, what every plan includes, questions, and a closing call ───────────── */
.top-links { display: flex; align-items: center; gap: 22px; }
.top-links [aria-current="page"] { color: #fff; }
.wrap.wide { max-width: 1120px; }
.pricing-hero { padding: 16px 0 32px; text-align: center; }
.pricing-hero h1 { margin: 0 0 10px; font-size: clamp(30px, 4.4vw, 44px); }
.doc .lead { margin: 0; font-size: 17px; color: var(--ink-3); }
.doc h2 { margin: 0 0 8px; font-size: 19px; line-height: 1.3; color: var(--ink); }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 960px; margin: 0 auto; }
.tier { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.tier h2 { margin: 0; font-size: 18px; }
.tier-for { min-height: 3em; margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 18px 0 0; color: var(--ink-3); font-size: 14px; }
.price b { font-size: 40px; line-height: 1; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.tier-range { flex: 1; margin: 8px 0 22px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.tier .button { width: 100%; }
.footnote { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--ink-4); }
.includes { margin-top: 56px; padding: 28px 32px; border-radius: 16px; background: var(--card-2); }
.includes .points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 28px; margin: 16px 0 0; padding: 0; border: 0; }
.faq { max-width: 760px; margin: 56px auto 0; }
.faq h2 { margin-bottom: 12px; text-align: center; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 2px; cursor: pointer;
  list-style: none; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; font-weight: 400; color: var(--ink-3); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 2px 16px; color: var(--ink-2); }
.cta-band { margin-top: 56px; padding: 40px 24px; border-radius: 16px; background: var(--panel); text-align: center; color: rgb(255 255 255 / .75); }
.cta-band h2 { margin: 0 0 6px; font-size: 26px; color: #fff; }
.cta-band p { margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.cta-band .button.primary { background: #fff; border-color: #fff; color: var(--panel); }
.cta-band .button:not(.primary) { background: transparent; border-color: rgb(255 255 255 / .35); color: #fff; }
.cta-band :focus-visible { outline-color: #fff; }
.side-price { margin: 16px 0 0; font-size: 14px; color: var(--ink-3); }
.side-price a { color: var(--ink); font-weight: 600; }
@media (max-width: 980px) { .includes .points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .tiers { grid-template-columns: minmax(0, 1fr); max-width: 480px; } }
@media (max-width: 640px) {
  .tiers, .includes .points { grid-template-columns: minmax(0, 1fr); }
  .includes { padding: 24px 20px; }
  .tier-for { min-height: 0; }
}
@media (prefers-color-scheme: dark) { .cta-band { border: 1px solid var(--line-2); } .tier { background: var(--card-2); } }

/* Monthly or yearly: two hidden radio buttons before the cards switch which price shows */
.cycle-radio { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cycle { display: flex; justify-content: center; width: max-content; margin: 0 auto 28px; padding: 4px; gap: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--card-2); }
.cycle label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-3); cursor: pointer; }
.cycle .save { padding: 2px 8px; border-radius: 999px; background: color-mix(in oklab, var(--wordmark) 16%, transparent); color: var(--wordmark); font-size: 12px; }
#cycle-month:checked ~ .cycle label[for="cycle-month"], #cycle-year:checked ~ .cycle label[for="cycle-year"] { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line-2); }
#cycle-month:focus-visible ~ .cycle label[for="cycle-month"], #cycle-year:focus-visible ~ .cycle label[for="cycle-year"] { outline: 2px solid var(--focus); outline-offset: 2px; }
.price-y { display: none; }
#cycle-year:checked ~ .tiers .price-y { display: inline; }
#cycle-year:checked ~ .tiers .price-m { display: none; }
