/* ==========================================================================
   Deets — marketing site
   Standalone layout language for landing.html. Reuses tokens.css vocabulary
   (colours, radii, shadow, font) but does not touch the app shell in app.css.
   ========================================================================== */

/* ---- skip link / a11y helper ------------------------------------------ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 13px;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ---- shared layout primitives ----------------------------------------- */

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

.sect {
  padding: 72px 0;
}

.sect-alt {
  background: var(--soft);
}

.sect-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 40px;
  max-width: 640px;
}

.sect-h2 {
  font-size: clamp(26px, 3vw, 34px);
  color: var(--ink);
}

.grad-text {
  background: var(--grad-brand);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

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

.lnav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border-bottom: 1px solid var(--line);
}

.lnav-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.lbrand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.lbrand-dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 8px;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  box-shadow: var(--shadow-xs);
}

.lbrand-name {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.lnav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  flex: 1;
  justify-content: center;
}

.lnav-links a {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.lnav-links a:hover {
  color: var(--ink);
  border-color: var(--primary);
}

.lnav-cta {
  flex: none;
}

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

.hero {
  position: relative;
  padding: 88px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(1100px 480px at 82% -10%, #efe9ff 0%, transparent 60%),
    radial-gradient(900px 480px at 0% 10%, #fff0ee 0%, transparent 55%);
}

.hero-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: 56px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.hero-h1 {
  font-size: clamp(38px, 5vw, 58px);
  color: var(--ink);
  letter-spacing: -0.03em;
}

.hero-sub {
  font-size: clamp(15px, 1.6vw, 17.5px);
  color: var(--ink-soft);
  max-width: 460px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.hero-note {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}

.btn-lg {
  padding: 13px 24px;
  font-size: 14.5px;
  border-radius: var(--r-sm);
}

/* ---- hero mock: fake Today screen --------------------------------------- */

.hero-mock {
  justify-self: end;
  width: 100%;
}

.mock-browser {
  background: var(--bg);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow: hidden;
  transform: rotate(-1deg);
}

.mock-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.mock-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
}

.mock-dot:nth-child(1) {
  background: #ff6a5d;
}

.mock-dot:nth-child(2) {
  background: #ffb020;
}

.mock-dot:nth-child(3) {
  background: #10b9a0;
}

.mock-chrome-url {
  margin-left: 8px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 3px 12px;
  flex: 1;
}

.mock-body {
  padding: 20px 20px 22px;
}

.mock-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.mock-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.mock-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.mock-dodged {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
}

.mock-dodged-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--green);
}

.mock-dodged-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
}

.mock-rows {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-xs);
  padding: 10px 12px;
}

.mock-ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
}

.mock-rw-tx {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.mock-rw-tx b {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-rw-tx span {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- penalty strip -------------------------------------------------------- */

.strip {
  background: var(--ink);
  padding: 52px 0;
}

.strip-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.strip-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
  padding: 0 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.strip-stat:first-child {
  border-left: none;
}

.strip-num {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.strip-cap {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.45;
}

/* ---- how it works ---------------------------------------------------------- */

.steps-grid {
  gap: 24px;
}

.step-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-xs);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-l);
  color: var(--primary-d);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 6px;
}

.step-card h3 {
  font-size: 16.5px;
  color: var(--ink);
}

.step-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---- phase cards ------------------------------------------------------------ */

.phase-grid {
  gap: 24px;
}

.phase-card {
  border-radius: var(--r);
  padding: 28px 26px;
  color: #fff;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phase-card-p1 {
  background: var(--grad-p1);
}

.phase-card-p2 {
  background: var(--grad-p2);
}

.phase-card-p3 {
  background: var(--grad-p3);
}

.phase-tag {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.22);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.phase-card h3 {
  font-size: 19px;
}

.phase-card p {
  font-size: 13.5px;
  line-height: 1.6;
  opacity: 0.96;
}

/* ---- costs -------------------------------------------------------------------- */

.cost-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 760px;
}

.cost-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
  padding: 16px 20px;
}

.cost-what {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.cost-row .chip {
  flex: none;
  text-align: right;
  white-space: normal;
  max-width: 280px;
}

.cost-callout {
  margin-top: 22px;
  max-width: 760px;
  font-weight: 600;
}

/* ---- security ------------------------------------------------------------------ */

.sec-grid {
  gap: 24px;
  margin-bottom: 28px;
}

.sec-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-xs);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sec-card h3 {
  font-size: 16px;
  color: var(--ink);
}

.sec-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
}

.sec-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.sec-points li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 600;
}

/* ---- waitlist -------------------------------------------------------------------- */

.waitlist {
  background: var(--grad-brand);
}

.waitlist-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.waitlist .sect-h2 {
  color: #fff;
}

.waitlist-sub {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  max-width: 480px;
  margin-bottom: 22px;
}

.waitlist-form {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 460px;
}

.waitlist-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid transparent;
}

.waitlist-form .btn-primary {
  background: var(--ink);
  flex: none;
}

.waitlist-thanks {
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  margin-top: 6px;
}

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

.lfoot {
  background: var(--soft);
  border-top: 1px solid var(--line);
  padding: 44px 0 26px;
}

.lfoot-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.lfoot-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lfoot-line {
  font-size: 12.5px;
  color: var(--muted);
  max-width: 260px;
}

.lfoot-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.lfoot-links a {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}

.lfoot-links a:hover {
  color: var(--primary-d);
}

.lfoot-disclaimer {
  max-width: 1120px;
  margin: 30px auto 0;
  padding: 18px 32px 0;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .hero-wrap {
    grid-template-columns: 1fr;
  }

  .hero-mock {
    justify-self: stretch;
    max-width: 480px;
    margin: 0 auto;
  }

  .strip-wrap {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 30px;
  }

  .strip-stat:nth-child(3) {
    border-left: none;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .lnav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .wrap,
  .hero-wrap,
  .lnav-wrap,
  .lfoot-wrap {
    padding-left: 20px;
    padding-right: 20px;
  }

  .sect {
    padding: 52px 0;
  }

  .strip-wrap {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .strip-stat {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 18px;
  }

  .strip-stat:first-child {
    border-top: none;
    padding-top: 0;
  }

  .cost-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .cost-row .chip {
    max-width: none;
    text-align: left;
  }

  .waitlist-form {
    flex-direction: column;
  }

  .waitlist-form .btn {
    width: 100%;
  }

  .lfoot-wrap {
    flex-direction: column;
  }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .lnav-links a,
  .skip-link {
    transition: none !important;
  }

  .mock-browser {
    transform: none;
  }
}

/* ==========================================================================
   Shared primitives
   The landing page deliberately does not load app.css (different layout
   language), but it reuses the product's buttons, chips, eyebrows and grids
   so the shop window and the app read as one system. Keep these in sync with
   the matching rules in app.css.
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-xs);
}
.btn-primary:hover {
  box-shadow: var(--shadow-sm);
}
.btn-ghost {
  background: var(--bg);
  color: var(--ink-soft);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--soft);
  color: var(--ink);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.eyebrow-v { background: var(--primary-l); color: var(--primary-d); }
.eyebrow-g { background: var(--green-l); color: var(--green); }
.eyebrow-a { background: var(--amber-l); color: var(--amber-ink); }
.eyebrow-r { background: var(--red-l); color: var(--red); }
.eyebrow-t { background: #e1f5ee; color: #0a7a63; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}
.chip-g, .tone-g { background: var(--green-l); color: var(--green); }
.chip-a, .tone-a { background: var(--amber-l); color: var(--amber-ink); }
.chip-r, .tone-r { background: var(--red-l); color: var(--red); }
.chip-v, .tone-v { background: var(--primary-l); color: var(--primary-d); }
.chip-t, .tone-t { background: #e1f5ee; color: #0a7a63; }

.callout {
  border-radius: var(--r-md);
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}
.callout-green { background: var(--green-l); border: 1px solid #bfe8cf; color: #116339; }
.callout-amber { background: var(--amber-l); border: 1px solid #f2dcae; color: #7a5200; }
.callout-red   { background: var(--red-l);   border: 1px solid #f5c6c8; color: #8c2f33; }

@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
