/* Homepage only (index.html). Shared tokens, nav, buttons and footer come from style.css.
   Layout: a chapter rail fixed on the left (computers) or a swipeable chip bar (phones),
   a live-notification hero, and a "how it works" story where the phone stays put while the
   steps scroll past. */

[hidden] { display: none !important; }
html { scroll-padding-top: 84px; }
@media (max-width: 900px) { html { scroll-padding-top: 124px; } }

.nav { position: sticky; top: 0; z-index: 30; }

.layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 48px;
}
.content { min-width: 0; }
.chapter { padding: 88px 0; border-top: 1px solid var(--line); }
.chapter h2 { font-size: clamp(34px, 4.6vw, 56px); margin-bottom: 28px; max-width: 18ch; }
.aside-note { color: var(--ink-dim); font-size: 15px; margin: 22px 0 0; }
.aside-note a { color: var(--accent-2); }

/* ---------- Chapter rail (computers) ---------- */
.rail { position: relative; }
.rail ol {
  position: sticky; top: 110px; /* also the marker's positioning box */
  list-style: none; margin: 40px 0 0; padding: 0 0 0 14px;
  border-left: 1px solid var(--line);
  display: grid; gap: 2px;
}
.rail a {
  display: flex; gap: 10px; align-items: baseline;
  padding: 9px 10px; border-radius: 8px;
  color: var(--ink-dim); text-decoration: none; font-size: 14px; font-weight: 600;
  transition: color .2s ease, background .2s ease;
}
.rail a span { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--accent); opacity: .55; }
.rail a:hover { color: var(--ink); background: rgba(255,150,70,.06); }
.rail a.is-on { color: var(--ink); }
.rail a.is-on span { opacity: 1; }
.rail-marker {
  position: absolute; left: -2px; top: 0; width: 3px; height: 38px; list-style: none;
  border-radius: 3px; opacity: 0;
  background: linear-gradient(var(--accent-2), var(--accent-deep));
  box-shadow: 0 0 14px var(--glow);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), height .3s ease, opacity .3s ease;
}

/* ---------- Chapter chips (phones) ---------- */
.chips {
  display: none;
  position: sticky; top: 64px; z-index: 25;
  background: rgba(10,7,5,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.chips-track { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; scrollbar-width: none; }
.chips-track::-webkit-scrollbar { display: none; }
.chips a {
  flex: none; padding: 7px 14px; border-radius: 100px;
  font-size: 13px; font-weight: 700; text-decoration: none;
  color: var(--ink-dim); border: 1px solid var(--line); background: var(--panel-2);
}
.chips a.is-on { color: #1A0C02; background: var(--accent); border-color: var(--accent); }

/* ---------- Hero ---------- */
.hero2 {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 40px; align-items: center; padding: 64px 0 80px;
}
.hero2 h1 { font-size: clamp(44px, 6.4vw, 84px); line-height: .95; margin: 0 0 22px; }
.hero2 .lede { margin: 0; font-size: 18px; }
.hero2-ctas { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; margin-top: 30px; }
.btn-lg { font-size: 16px; padding: 16px 28px; }
.play-link img { height: 48px; width: auto; display: block; }
.hero2-small { margin: 16px 0 0; font-size: 14px; color: var(--ink-dim); }
.text-link { color: var(--accent-2); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Phone frame shared by the hero and the how-it-works story. */
.phone {
  position: relative; width: 100%; max-width: 290px; aspect-ratio: 9 / 19;
  margin: 0 auto; border-radius: 40px; padding: 10px;
  background: #050302;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 2px #3b2a22 inset, 0 0 60px -20px var(--glow);
  overflow: hidden;
}
.phone::before {
  content: ""; position: absolute; top: 18px; left: 50%; width: 70px; height: 18px; margin-left: -35px;
  background: #050302; border-radius: 10px; z-index: 3;
}

/* Lock screen with notifications dropping in. */
.lock {
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255,122,41,.35), transparent 60%),
    linear-gradient(180deg, #2a160b, #0d0805);
  display: flex; flex-direction: column; align-items: center; padding-top: 64px;
}
.lock-time { font-family: 'Big Shoulders Display', sans-serif; font-weight: 800; font-size: 64px; line-height: 1; color: var(--ink); }
.lock-date { font-size: 13px; color: var(--ink-dim); margin-top: 4px; }
.notes { width: 100%; padding: 26px 12px 0; display: grid; gap: 10px; }
.note {
  background: rgba(251,238,223,.94); color: #1F0F06; border-radius: 18px; padding: 11px 13px;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.6);
}
.note b { display: block; font-size: 14px; line-height: 1.25; }
.note p { margin: 3px 0 0; font-size: 12.5px; line-height: 1.35; color: #4A3426; }
.note-head { display: flex; justify-content: space-between; font-size: 11px; color: #7A6152; margin-bottom: 4px; font-weight: 600; }
.note-app { display: inline-flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: .06em; }
.pin-dot { width: 14px; height: 14px; border-radius: 4px; background: linear-gradient(135deg, var(--accent-2), var(--accent-deep)); display: inline-block; }

@media (prefers-reduced-motion: no-preference) {
  .notes .note { opacity: 0; animation: dropIn 9s cubic-bezier(.2,.8,.2,1) infinite; }
  .notes .n1 { animation-delay: .6s; }
  .notes .n2 { animation-delay: 2.4s; }
  @keyframes dropIn {
    0%   { opacity: 0; transform: translateY(-26px) scale(.96); }
    5%   { opacity: 1; transform: translateY(0) scale(1); }
    6.5% { transform: translateX(-4px); }
    8%   { transform: translateX(4px); }
    9.5% { transform: translateX(-2px); }
    11%  { transform: translateX(0); }
    80%  { opacity: 1; transform: none; }
    90%, 100% { opacity: 0; transform: translateY(-8px); }
  }
}

/* ---------- 01 Why: the comparison ---------- */
.versus {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-radius: 22px; overflow: hidden; border: 1px solid rgba(255,150,70,.28);
}
.vs-head {
  padding: 16px 20px; font-family: 'Big Shoulders Display', sans-serif; font-weight: 900;
  font-size: 24px; text-transform: uppercase;
}
.vs-head.vs-them { background: #2A221C; color: #B7A595; }
.vs-head.vs-us { background: var(--accent); color: #1A0C02; }
.vs-cell { padding: 16px 20px; font-size: 16px; line-height: 1.4; display: flex; gap: 10px; border-top: 1px solid rgba(255,255,255,.06); }
.vs-cell b { flex: none; }
.vs-cell.vs-them { background: #1A1410; color: #A8988A; }
.vs-cell.vs-them b { color: #8C7B6C; }
.vs-cell.vs-us { background: #2A1509; color: var(--ink); font-weight: 600; }
.vs-cell.vs-us b { color: var(--accent); }

/* ---------- 02 How it works: phone stays put, steps scroll ---------- */
.scrolly { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.scrolly-phone { position: sticky; top: 110px; }
.scrolly-phone .phone { max-width: 300px; }
.screen {
  position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px);
  border-radius: 30px; object-fit: cover; object-position: top;
  opacity: 0; transform: scale(1.03);
  transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1);
}
.screen.is-on { opacity: 1; transform: none; }
.screen-sign { background: #EDE6DE; display: grid; place-items: center; }
.mini-sign {
  width: 84%; background: #fff; border-radius: 10px; padding: 18px 14px; text-align: center;
  box-shadow: 0 16px 30px -12px rgba(0,0,0,.4);
}
.ms-name { font-family: 'Big Shoulders Display', sans-serif; font-weight: 900; font-size: 26px; line-height: .95; text-transform: uppercase; color: #1F0F06; }
.ms-tag { font-family: 'Big Shoulders Display', sans-serif; font-weight: 900; font-size: 15px; text-transform: uppercase; color: var(--accent); margin: 6px 0 12px; }
.ms-qr { width: 104px; height: 104px; margin: 0 auto; padding: 4px; border: 3px solid var(--accent); border-radius: 8px; background: #fff; }
.ms-qr img, .ms-qr canvas { width: 100% !important; height: 100% !important; }
.ms-scan { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #1F0F06; margin-top: 8px; }
.screen-lock {
  background: radial-gradient(120% 70% at 50% 0%, rgba(255,122,41,.35), transparent 60%), linear-gradient(180deg, #2a160b, #0d0805);
  padding: 64px 12px 0; text-align: center;
}
.screen-lock .note { text-align: left; margin-top: 30px; }

.steps2 { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.step2 {
  position: relative; padding: 26px 26px 26px 76px; border-radius: 20px;
  border: 1px solid var(--line); background: var(--panel-2);
  min-height: clamp(220px, 34vh, 340px); display: flex; flex-direction: column; justify-content: center;
  opacity: .5; transition: opacity .4s ease, border-color .4s ease, background .4s ease;
}
.step2.is-on { opacity: 1; border-color: rgba(255,150,70,.45); background: var(--panel); }
.step2-num {
  position: absolute; left: 22px; top: 26px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-family: 'Big Shoulders Display', sans-serif; font-weight: 900; font-size: 20px;
  color: #1A0C02; background: linear-gradient(135deg, var(--accent-2), var(--accent) 60%, var(--accent-deep));
}
.step2 h3 { font-size: 28px; margin-bottom: 8px; }
.step2 p { margin: 0; color: var(--ink-dim); line-height: 1.6; max-width: 54ch; }
.step2 .text-link { margin-top: 12px; }
.step2-shot { display: none; }

/* ---------- 03 Features ---------- */
.cards6 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card6 {
  padding: 24px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel-2);
  transition: border-color .25s ease, transform .25s ease;
}
.card6:hover { border-color: rgba(255,150,70,.45); transform: translateY(-3px); }
.card6-icon { font-size: 26px; margin-bottom: 12px; }
.card6 h3 { font-size: 24px; margin-bottom: 8px; }
.card6 p { margin: 0; color: var(--ink-dim); font-size: 15px; line-height: 1.55; }

/* ---------- 04 Price ---------- */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.price-card { padding: 30px; border-radius: 22px; border: 1px solid var(--line); background: var(--panel-2); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.price-card h3 { font-size: 30px; }
.price-card p { margin: 0; color: var(--ink-dim); line-height: 1.6; }
.price-card .kicker-badge { margin-bottom: 0; }
.price-card.founding {
  background: radial-gradient(90% 80% at 100% 0%, rgba(255,122,41,.22), transparent 60%), var(--panel);
  border-color: rgba(255,150,70,.45);
}
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; line-height: 1.45; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.fine { font-size: 13.5px !important; opacity: .85; }

/* ---------- 05 Privacy ---------- */
.priv4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 30px; }
.priv4 > div { padding: 18px; border-radius: 16px; background: var(--panel-2); border: 1px solid var(--line); display: grid; gap: 4px; }
.priv4 b { font-size: 16px; line-height: 1.3; }
.priv4 span { color: var(--ink-dim); font-size: 14px; line-height: 1.4; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 100px; border: 1px solid var(--line); background: var(--panel-2); margin-bottom: 18px; }
.tab {
  font: inherit; font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 100px;
  border: 0; cursor: pointer; background: none; color: var(--ink-dim);
}
.tab[aria-selected="true"] { background: var(--accent); color: #1A0C02; }
.tab:focus-visible, .rail a:focus-visible, .chips a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

details { border-bottom: 1px solid var(--line); }
details summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
  font-weight: 700; font-size: 17px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--accent); transition: transform .25s ease;
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { margin: 0 0 18px; color: var(--ink-dim); line-height: 1.65; max-width: 72ch; }
.panel, .qa { border-top: 1px solid var(--line); }

/* ---------- 07 Get started ---------- */
.cta-final { padding-bottom: 110px; }
.cta-final .lede { margin: 0; }
.customer-strip {
  margin-top: 40px; padding: 16px 20px; border-radius: 14px; border: 1px dashed var(--line);
  color: var(--ink-dim); font-size: 15px;
}
.customer-strip b { color: var(--ink); }

/* Phones: the main action stays under the thumb. */
.sticky-cta {
  display: none; position: fixed; z-index: 40;
  left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  justify-content: center; transition: transform .3s ease, opacity .3s ease;
}
.sticky-cta.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }

/* ---------- Gentle reveal as sections scroll in (only where browsers support it) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
    @keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .priv4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 16px; }
  .rail { display: none; }
  .chips { display: block; }
  .hero2 { grid-template-columns: minmax(0, 1fr); padding: 36px 0 56px; gap: 36px; }
  .hero2-phone .phone { max-width: 250px; }
  .chapter { padding: 64px 0; }
  .scrolly { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .scrolly-phone { display: none; }
  .step2 { min-height: 0; opacity: 1; padding: 22px 20px 22px 70px; }
  .step2-shot {
    display: block; width: 100%; max-width: 240px; margin-top: 16px;
    border-radius: 18px; border: 6px solid #050302; box-shadow: 0 20px 40px -20px rgba(0,0,0,.8);
  }
  .sticky-cta { display: flex; }
  footer { padding-bottom: 90px; }
}
@media (max-width: 600px) {
  .cards6, .price-grid, .priv4 { grid-template-columns: minmax(0, 1fr); }
  .versus { font-size: 14px; }
  .vs-head { font-size: 18px; padding: 12px 14px; }
  .vs-cell { padding: 12px 14px; font-size: 14px; }
  .step2 { padding: 20px 16px 20px 62px; }
  .step2-num { left: 16px; top: 20px; width: 34px; height: 34px; font-size: 18px; }
  .step2 h3 { font-size: 24px; }
}
