/* Landing demonstrations only; common site controls live in site.css. */
.page-app :where(h1, h2, h3, p) { margin: 0; }
.page-app :where(main > section) { padding: 72px 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 5vw, 48px); line-height: 1.1; margin: 16px 0; }
.section-head p { color: var(--muted); font-size: 18px; }
@media (min-width: 960px) { .page-app :where(main > section) { padding: 112px 0; } }

/* Hero */
    .hero { padding: 104px 0 72px; margin-top: -64px; position: relative; overflow: hidden; }
    .hero::before {
      content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px;
      background: radial-gradient(closest-side, rgba(241,96,29,.22), rgba(241,96,29,0));
      pointer-events: none;
    }
    .hero .wrap { display: grid; gap: 48px; align-items: center; position: relative; }
    @media (min-width: 960px) {
      .hero { padding: 136px 0 112px; }
      .hero .wrap { grid-template-columns: 1.1fr .9fr; gap: 64px; }
    }
    .hero h1 { font-size: clamp(40px, 8vw, 76px); line-height: 1.02; letter-spacing: -.025em; margin: 20px 0 20px; }
    .hero .lead { color: var(--muted); font-size: clamp(17px, 2.2vw, 20px); max-width: 560px; margin-bottom: 32px; }
    .hero .ctas { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
    .hero .note { color: var(--faint); font-size: 14px; margin-top: 20px; }
    .importance-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }

    /* Phone with the timeline screen */
    .phone {
      width: 100%; max-width: 360px; margin: 0 auto; aspect-ratio: 402 / 830;
      border-radius: 52px; padding: 10px; background: #0d0d0d;
      box-shadow: 0 0 0 1.5px #3a3a3a, 0 40px 120px var(--phone-shadow), 0 0 80px rgba(241,96,29,.08);
      position: relative;
    }
    .screen {
      position: relative; height: 100%; border-radius: 42px; overflow: hidden;
      background: var(--bg); display: flex; flex-direction: column;
    }
    .island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 96px; height: 28px; border-radius: 20px; background: #000; z-index: 3; }
    .status { display: flex; justify-content: space-between; padding: 14px 28px 0 34px; font-size: 14px; font-weight: 500; height: 44px; }
    .status .sig { display: flex; gap: 5px; align-items: center; }
    .status .sig i { display: block; width: 22px; height: 11px; border-radius: 3px; border: 1.5px solid currentColor; position: relative; }
    .status .sig i::after { content: ""; position: absolute; inset: 1.5px; right: 4px; background: currentColor; border-radius: 1px; }
    .app-bar { padding: 10px 16px 6px; }
    .app-bar .links { display: flex; justify-content: space-between; color: var(--muted); font-size: 12.5px; font-weight: 500; }
    .app-bar .row {
      display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px;
    }
    .app-bar .title { font-size: 22px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
    .app-bar .title svg { width: 14px; height: 14px; }
    .app-bar .icons { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
    .app-bar .icons .me { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; }
    .app-bar .icons .me img { width: 100%; height: 100%; object-fit: cover; }
    @media (max-width: 379px) { .app-bar .title { font-size: 18px; } }
    .tl { position: relative; flex: 1; overflow: hidden; }
    .ev {
      position: absolute; left: 62px; right: 14px; height: 46px; border-radius: 14px;
      display: flex; align-items: center; justify-content: center;
      color: var(--on-primary); font-size: 14px; font-weight: 500; padding: 0 44px 0 12px; text-align: center;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .ev::before { content: ""; position: absolute; left: -7px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: inherit; }
    .ev time { position: absolute; right: 9px; bottom: 5px; font-size: 9.5px; font-weight: 400; opacity: .9; }
    .ev .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    /* The bubble's dot sits outside, so clip with an inner span instead of the bubble */
    .ev { overflow: visible; }
    .fabs { position: absolute; right: 14px; top: 8px; display: flex; flex-direction: column; gap: 10px; z-index: 2; }
    .fabs span, .fab { width: 38px; height: 38px; border-radius: 50%; background: var(--action-hover); display: grid; place-items: center; }
    .fabs svg, .fab svg { width: 18px; height: 18px; }
    .fab { position: absolute; right: 14px; bottom: 18px; width: 50px; height: 50px; border-radius: 16px; z-index: 2; background: var(--surface-2); }
    .tl-view { position: absolute; inset: 0; }
    .tl::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }

    .c-green { background: var(--green); }
    .c-yellow { background: var(--yellow); }
    .c-orange { background: var(--primary); }
    .c-red { background: var(--red); }
    .c-blue { background: var(--blue); }
    .c-purple { background: var(--purple); }
    .c-lime { background: var(--lime); }
    .c-pink { background: var(--pink); }
    .c-gray { background: var(--gray); }

    /* Cards */

    /* Zoom demo */
    .zoom { display: grid; gap: 24px; align-items: start; }
    @media (min-width: 960px) { .zoom { grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: center; } }
    .zoom-copy ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
    .zoom-copy li { display: flex; gap: 14px; color: var(--muted); }
    .zoom-copy li b { color: var(--text); font-weight: 500; display: block; }
    .zoom-copy .ic { flex: none; width: 40px; height: 40px; border-radius: var(--r-s); background: var(--surface); display: grid; place-items: center; }
    .zoom-copy .ic svg { width: 20px; height: 20px; }
    .demo { background: var(--surface); border-radius: var(--r-l); padding: 16px; }
    @media (min-width: 720px) { .demo { padding: 24px; } }
    /* Timeline engine. Left of the stripe: [label][line] per period lane, as in the app */
    .tlx {
      --sx: 56px; --sw: 46px; --ex: 116px; --er: 12px; --eh: 38px; --fs: 13.5px;
      --l0: 46px; --l1: 22px; --b0: 37px; --b1: 13px;
    }
    .tl .tlx { --sx: 48px; --sw: 38px; --ex: 98px; --er: 14px; --eh: 40px; --fs: 13px; --l0: 38px; --l1: 18px; --b0: 30px; --b1: 10px; }
    @media (min-width: 720px) { .zv.tlx { --fs: 14.5px; } }
    @media (max-width: 479px) {
      .zv.tlx { --sx: 46px; --sw: 40px; --ex: 98px; --er: 8px; --fs: 12.5px; --l0: 37px; --l1: 17px; --b0: 29px; --b1: 9px; }
    }
    .tlx .stripe { position: absolute; left: var(--sx); width: var(--sw); top: 0; height: 100%; background: var(--tertiary); }
    .tlx .tick { position: absolute; left: var(--sx); width: var(--sw); text-align: center; line-height: 1.1; transform: translateY(-50%); animation: tick-in .3s ease; }
    @keyframes tick-in { from { opacity: 0; } }
    .tlx .tick b { display: block; font-size: 14px; font-weight: 500; }
    .tlx .tick small { display: block; font-size: 10.5px; color: var(--faint); }
    .tlx .tick.today { border: 1.5px solid currentColor; border-radius: 12px; padding: 4px 0; }
    .tlx .tick.today small { color: var(--text); }
    .tlx .iv, .tlx .iv-label, .tlx .iv-now { position: absolute; transition: opacity .3s; }
    .tlx .iv { width: 2px; background: var(--c); box-shadow: 0 0 6px color-mix(in srgb, var(--c) 64%, transparent); }
    .tlx .iv::before, .tlx .iv::after {
      content: ""; position: absolute; left: -2px; width: 4px; height: 4px; border-radius: 50%;
      background: var(--bg); border: 1px solid var(--c);
    }
    .tlx .iv::before { top: -3px; }
    .tlx .iv::after { bottom: -3px; }
    .tlx .iv.no-start::before, .tlx .iv.no-end::after { display: none; }
    .tlx .iv-now {
      width: 2px; height: 30px;
      background: repeating-linear-gradient(to bottom, var(--c) 0 7px, transparent 7px 12px);
      border-radius: 2px;
    }
    .tlx .iv-label {
      transform: translate(-50%, -50%) rotate(-90deg); white-space: nowrap;
      font-size: 10.5px; font-weight: 500; color: var(--c); letter-spacing: .2px;
    }
    .tlx .iv.lane-0, .tlx .iv-now.lane-0 { left: var(--l0); }
    .tlx .iv.lane-1, .tlx .iv-now.lane-1 { left: var(--l1); }
    .tlx .iv-label.lane-0 { left: var(--b0); }
    .tlx .iv-label.lane-1 { left: var(--b1); }
    .tlx .ev {
      left: var(--ex); right: var(--er); height: var(--eh); border-radius: 12px; font-size: var(--fs);
      padding: 0 50px 0 10px; transform: translateY(-50%); transition: opacity .3s;
    }
    .tlx .ev time { font-size: 10px; }
    .tlx .ev.future { color: var(--text); background: linear-gradient(to right, var(--col) 0 10px, var(--tertiary) 10px); padding-left: 18px; }
    .tlx .ev.future::before { background: var(--col); }
    .tlx .ev::before { left: -9px; }
    @media (max-width: 479px) {
      .zv.tlx .ev { padding: 0 42px 0 8px; }
      .tlx .ev time { right: 7px; font-size: 9px; }
      .tlx .iv-label { font-size: 9.5px; }
    }
    .zv { position: relative; height: 500px; overflow: hidden; border-radius: var(--r-m); background: var(--bg); }
    .zoom-hint { color: var(--faint); font-size: 13px; text-align: center; margin-top: 12px; }

    /* Event details mock + feature grid */
    .moments { display: grid; gap: 24px; }
    @media (min-width: 960px) { .moments { grid-template-columns: 1fr 1fr; gap: 24px; } }
    .sheet { background: var(--tertiary); border-radius: var(--r-l); padding: 12px 20px 24px; position: relative; }
    .sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: var(--divider); margin: 0 auto 16px; }
    .sheet .ev-head { display: flex; gap: 12px; align-items: center; }
    .sheet .date { flex: none; width: 52px; text-align: center; border: 1.5px solid currentColor; border-radius: 14px; padding: 6px 0; line-height: 1.1; }
    .sheet .date b { display: block; font-size: 20px; font-weight: 500; }
    .sheet .date small { font-size: 12px; }
    .sheet .bubble { color: var(--on-primary); flex: 1; min-width: 0; border-radius: 16px; padding: 14px 16px; font-weight: 500; font-size: 17px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .sheet .desc { color: var(--muted); margin: 16px 0; font-size: 15px; }
    .photos { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; height: 220px; border-radius: var(--r-m); overflow: hidden; }
    .photos div { background-size: cover; background-position: center; }
    .photos div:first-child { grid-row: span 2; }
    .rows { margin-top: 12px; display: grid; gap: 1px; background: var(--divider); border-radius: var(--r-m); overflow: hidden; }
    .rows > div { background: var(--surface); display: flex; align-items: center; gap: 12px; padding: 12px 14px; font-size: 15px; min-width: 0; }
    .rows .k { color: var(--faint); width: 76px; flex: none; font-size: 13px; }
    .rows .v { min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
    .avatar { color: var(--on-primary); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 500; margin-right: -4px; border: 2px solid var(--surface); }
    .tag { background: var(--action); border-radius: 8px; padding: 2px 8px; font-size: 13px; }
    .song { display: flex; align-items: center; gap: 10px; min-width: 0; }
    .song .cover { width: 34px; height: 34px; border-radius: 6px; background: linear-gradient(135deg, #f5a718, #f61830 60%, #7018f5); flex: none; }
    .song small { color: var(--faint); display: block; font-size: 12px; }
    .feat-grid { display: grid; gap: 16px; }
    @media (min-width: 560px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
    .feat { background: var(--surface); border-radius: var(--r-l); padding: 24px; }
    .feat .ic { width: 44px; height: 44px; border-radius: var(--r-s); display: grid; place-items: center; margin-bottom: 16px; background: var(--action); }
    .feat .ic svg { width: 22px; height: 22px; }
    .feat h3 { font-size: 18px; margin-bottom: 6px; }
    .feat p { color: var(--muted); font-size: 15px; }
    .imp-list { display: grid; gap: 8px; margin-top: 14px; }
    .imp-list div { display: flex; align-items: center; gap: 10px; font-size: 14px; }
    .imp-list b { width: 12px; height: 12px; border-radius: 50%; flex: none; }

    /* Memories */
    .mem-grid { display: grid; gap: 24px; }
    .mem-grid > * { min-width: 0; }
    @media (min-width: 960px) { .mem-grid { grid-template-columns: 1fr 1.2fr; align-items: stretch; } }
    .story {
      position: relative; border-radius: var(--r-l); overflow: hidden; min-height: 560px;
      color: #fff; background: #5a3f5a url(/img/memory-12.jpg) center bottom / cover no-repeat;
      display: flex; flex-direction: column; padding: 20px;
    }
    .story .bars { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
    .story .bars i { height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); display: block; }
    .story .bars i:first-child { background: #fff; }
    .story .q { margin-top: 72px; font-size: clamp(24px, 3vw, 28px); font-weight: 500; line-height: 1.25; padding: 0 12px; }
    .story .pill { align-self: center; margin: 48px 0 12px; border: 1.5px solid currentColor; border-radius: 12px; padding: 4px 12px; font-size: 15px; background: rgba(0,0,0,.25); }
    .story .ev-head { display: flex; gap: 8px; align-items: center; }
    .story .date { flex: none; width: 52px; text-align: center; border: 1.5px solid currentColor; border-radius: 14px; padding: 6px 0; line-height: 1.1; background: rgba(0,0,0,.2); }
    .story .date b { display: block; font-size: 18px; font-weight: 500; }
    .story .date small { font-size: 12px; }
    .story .bubble { flex: 1; border-radius: 14px; padding: 16px; text-align: center; font-weight: 500; font-size: 17px; }
    .story .go { margin-top: auto; align-self: center; background: rgba(255,255,255,.25); border-radius: var(--r-s); padding: 11px 22px; font-weight: 500; display: flex; gap: 8px; align-items: center; }
    .mem-side { display: grid; gap: 16px; align-content: start; }
    .mem-side .card h3 { font-size: 24px; }
    .facts-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
    .facts-preview div { background: var(--tertiary); border-radius: var(--r-m); padding: 14px 10px; text-align: center; font-size: 13px; color: var(--muted); }
    .facts-preview img { width: 64px; height: 64px; margin: 0 auto 10px; object-fit: contain; background: rgba(255,255,255,.92); border-radius: 18px; padding: 8px; }

    /* Life in weeks */
    .life { display: grid; gap: 24px; }
    @media (min-width: 960px) {
      .life { grid-template-columns: 1fr 2fr; align-items: start; }
      .life > .card { padding: 24px; }
    }
    .cal-caption { text-align: center; font-weight: 500; font-size: 14px; margin-bottom: 16px; }
    .years { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; max-width: 300px; margin: 0 auto; }
    .years i { aspect-ratio: 1; border-radius: 50%; border: 1.3px solid var(--outline); display: block; }
    .years i.lived { background: var(--muted); border-color: var(--muted); }
    .years i.now { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 3px rgba(241,96,29,.25); }
    #weeks { width: 100%; display: block; max-width: 300px; margin: 0 auto; }
    .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; }
    .stats div { background: var(--tertiary); border-radius: var(--r-m); padding: 14px 8px; text-align: center; }
    .stats b { display: block; font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; }
    .stats small { color: var(--faint); font-size: 12px; }
    .life-side { display: grid; gap: 24px; align-content: start; }
    .life-intro { color: var(--muted); font-size: 18px; max-width: 640px; }
    .calendar-note { color: var(--muted); font-size: 14px; line-height: 1.6; margin-top: 16px; }
    .calendar-context h3 { font-size: 22px; margin-bottom: 8px; }
    .calendar-context p { color: var(--muted); }
    .calendar-context a { color: var(--accent-text); text-underline-offset: 4px; }
    .facts-head h3 { font-size: 22px; margin-bottom: 6px; }
    .facts-head p { color: var(--faint); font-size: 15px; }
    .facts { display: grid; gap: 12px; align-content: start; }
    @media (min-width: 560px) { .facts { grid-template-columns: 1fr 1fr; } }
    .fact { display: flex; align-items: center; gap: 16px; background: var(--surface); border-radius: var(--r-l); padding: 14px 18px 14px 14px; }
    .fact img { width: 64px; height: 64px; flex: none; object-fit: contain; background: rgba(255,255,255,.92); border-radius: 18px; padding: 8px; }
    .fact p { color: var(--muted); font-size: 15px; line-height: 1.35; }
    .fact b { display: block; color: var(--text); font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

    /* Platforms */
    .plat { display: grid; gap: 16px; }
    @media (min-width: 720px) { .plat { grid-template-columns: repeat(3, 1fr); } }
    @media (min-width: 720px) { .plat.platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
    .plat .feat a { color: var(--accent-text); text-decoration: none; font-weight: 500; }
    .plat .feat > a { display: inline-block; margin-top: 14px; }
    .plat .feat a:hover { color: var(--primary-pressed); }


    /* Final CTA */
    .final { text-align: center; position: relative; overflow: hidden; }
    .final .box {
      position: relative; border-radius: var(--r-xl); padding: 56px 20px; overflow: hidden;
      background: radial-gradient(120% 120% at 50% 0%, rgba(241,96,29,.28), rgba(241,96,29,0) 60%), var(--surface);
    }
    .final img.logo { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 24px; }
    .final h2 { font-size: clamp(32px, 6vw, 56px); line-height: 1.05; margin-bottom: 16px; }
    .final p { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 auto 32px; }
    .final .row { display: flex; flex-direction: column; gap: 16px; align-items: center; }


    /* Keep primary content visible without JavaScript or scrolling. */
    .reveal { opacity: 1; transform: none; }
    .reveal.in { opacity: 1; transform: none; }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      .reveal { opacity: 1; transform: none; transition: none; }
    }
  
