/* Byteless — landing page
   Palette lifted from the app's own tokens (byteless/DesignSystem/Theme.swift)
   so the site and the product read as one thing. Dark-first, because the app
   is dark-only by design; a light variant follows for readers on a light OS. */

:root {
  --ground:      #0B0E17;
  --surface:     #141926;
  --raised:      #1C2234;
  --line:        rgba(255, 255, 255, 0.10);
  --line-soft:   rgba(255, 255, 255, 0.06);
  --ink:         #FFFFFF;
  --ink-2:       rgba(255, 255, 255, 0.64);
  --ink-3:       rgba(255, 255, 255, 0.40);
  --mint:        #4DDEB8;
  --mint-soft:   rgba(77, 222, 184, 0.10);
  --violet:      #8C5CF5;
  --blue:        #6B9EFA;
  --grad:        linear-gradient(135deg, #8C5CF5, #6B9EFA 52%, #4DDEB8);
  --shadow:      0 1px 2px rgba(0,0,0,.45), 0 18px 44px rgba(0,0,0,.38);
  --radius:      18px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --ground:    #F6F7FA;
    --surface:   #FFFFFF;
    --raised:    #EEF1F6;
    --line:      rgba(11, 14, 23, 0.10);
    --line-soft: rgba(11, 14, 23, 0.06);
    --ink:       #0B0E17;
    --ink-2:     rgba(11, 14, 23, 0.66);
    --ink-3:     rgba(11, 14, 23, 0.45);
    --mint:      #0E9E78;
    --mint-soft: rgba(14, 158, 120, 0.10);
    --violet:    #6D3FE0;
    --blue:      #2F6FE4;
    --grad:      linear-gradient(135deg, #6D3FE0, #2F6FE4 52%, #0E9E78);
    --shadow:    0 1px 2px rgba(11,14,23,.06), 0 18px 44px rgba(11,14,23,.08);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--mint); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--mint); color: #06131A; padding: 10px 16px; border-radius: 0 0 10px 0;
  font-weight: 600;
}
.skip:focus { left: 0; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(720px, 100% - 40px); }

.mono {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  font-variant-numeric: tabular-nums;
}
.hi { color: var(--mint); }

/* ---------- headings ---------- */
h1, h2, h3 {
  font-family: "Outfit", "Figtree", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.025em; text-wrap: balance; margin: 0;
}
h1 { font-weight: 800; font-size: clamp(38px, 6.4vw, 62px); line-height: 1.03; }
h2 { font-weight: 800; font-size: clamp(27px, 3.6vw, 38px); line-height: 1.1; margin-bottom: 12px; }
h3 { font-weight: 600; font-size: 18px; letter-spacing: -0.012em; }

.eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 14px;
}
.lede { font-size: 19px; color: var(--ink-2); max-width: 46ch; margin: 18px 0 0; }
.sec-lede { font-size: 17px; color: var(--ink-2); max-width: 62ch; margin: 0 0 28px; }
.sec-lede.center, .footnote.center { margin-inline: auto; text-align: center; }
.footnote { font-size: 14.5px; color: var(--ink-3); max-width: 60ch; margin: 18px 0 0; }

/* ---------- header ---------- */
.site {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: "Outfit", sans-serif; font-weight: 800; font-size: 18px;
  color: var(--ink); text-decoration: none; letter-spacing: -0.02em;
}
.brand img { border-radius: 8px; }
.site nav { display: flex; align-items: center; gap: 22px; }
.site nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.site nav a:hover { color: var(--ink); }
@media (max-width: 680px) {
  .site nav a:not(.btn) { display: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad); color: #06131A;
  font-weight: 700; font-size: 16px; text-decoration: none;
  padding: 15px 26px; border-radius: 14px;
  box-shadow: 0 8px 24px rgba(107, 158, 250, 0.26);
  transition: transform .16s ease, box-shadow .16s ease;
}
.btn:hover { color: #06131A; transform: translateY(-1px); box-shadow: 0 12px 30px rgba(107, 158, 250, 0.34); }
.btn-sm { padding: 9px 16px; font-size: 14.5px; border-radius: 11px; box-shadow: none; }
.btn-lg { padding: 17px 34px; font-size: 17px; }

/* ---------- hero ---------- */
.hero { padding: 68px 0 78px; position: relative; overflow: hidden; }
/* One bloom, behind the headline only. The app reserves its gradient for the
   primary action; the page borrows the same discipline. */
.hero::before {
  content: ""; position: absolute; inset: -180px auto auto -160px;
  width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 92, 245, .30), transparent 68%);
  filter: blur(40px); pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  position: relative;
}
.cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 30px; }
.cta-note { font-size: 14px; color: var(--ink-3); }
.trust {
  display: flex; gap: 10px 22px; flex-wrap: wrap;
  list-style: none; padding: 0; margin: 30px 0 0;
  font-size: 14.5px; color: var(--ink-2);
}
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint); flex-shrink: 0;
}
.hero-shot img, .shot img {
  border-radius: 24px; border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
/* A phone screenshot is 2.2x taller than it is wide, so at column width it
   would run to ~1000px and push the whole hero off the first screen. Capped
   to the scale a device mockup actually reads at. */
.hero-shot { margin: 0; max-width: 292px; justify-self: center; }
.hero-shot figcaption {
  margin-top: 14px; text-align: center; font-size: 13.5px; color: var(--ink-3);
}
@media (max-width: 860px) {
  .hero { padding: 48px 0 62px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-shot { max-width: 340px; margin-inline: auto; }
}

/* ---------- bands ---------- */
.band { padding: 84px 0; border-top: 1px solid var(--line-soft); }
.band.alt { background: var(--surface); }
.band.privacy { text-align: center; }
.band.privacy h2 { margin-bottom: 18px; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.split .shot { margin: 0; max-width: 320px; justify-self: center; }
@media (max-width: 860px) {
  .band { padding: 58px 0; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split .shot { max-width: 300px; }
}

/* ---------- tools ---------- */
.tools {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px;
}
.tools li {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
}
.band.alt .tools li { background: var(--raised); }
.tools h3 { margin-bottom: 5px; }
.tools p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.plan {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; padding: 28px; position: relative;
}
.plan.featured { border-color: var(--mint); box-shadow: var(--shadow); }
.tag {
  position: absolute; top: -11px; left: 26px;
  background: var(--mint); color: #06131A;
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px; margin: 0;
}
.price {
  font-family: "Outfit", sans-serif; font-weight: 800;
  font-size: 40px; letter-spacing: -0.03em; margin: 10px 0 20px; line-height: 1;
}
.price .per { font-family: "Figtree", sans-serif; font-size: 16px; font-weight: 500; color: var(--ink-3); margin-left: 6px; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.plan li { font-size: 15.5px; color: var(--ink-2); display: flex; gap: 11px; align-items: flex-start; }
.plan li::before {
  content: ""; width: 7px; height: 7px; border-radius: 2px; margin-top: 9px;
  background: var(--mint); flex-shrink: 0;
}
.alt-prices { margin: 20px 0 0; font-size: 14px; color: var(--ink-3); }

/* ---------- faq ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details {
  background: var(--raised); border: 1px solid var(--line);
  border-radius: 14px; padding: 4px 20px;
}
.faq summary {
  cursor: pointer; padding: 15px 0; font-weight: 600; font-size: 16.5px;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: "IBM Plex Mono", monospace; font-size: 20px;
  color: var(--ink-3); flex-shrink: 0; line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq p { margin: 0 0 17px; font-size: 15.5px; color: var(--ink-2); }

/* ---------- closer + footer ---------- */
.closer { padding: 96px 0 104px; text-align: center; border-top: 1px solid var(--line-soft); }
.closer h2 { margin-bottom: 14px; }
.closer .btn { margin-top: 12px; }

.site-foot { border-top: 1px solid var(--line-soft); padding: 26px 0 40px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot p { margin: 0; font-size: 14.5px; color: var(--ink-3); }
.foot nav { display: flex; gap: 20px; }
.foot a { font-size: 14.5px; color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--mint); }
