/* Marqin site styles. Home sections first (from the approved v4 mockup), then product, legal and support pages. */
:root {
  --night: #08080a;
  --ink: #f4f1e8;
  --soft: #9a98a2;
  --rule: rgba(244, 241, 232, 0.12);
  --red: #e2574c;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "Segoe UI", Inter, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.47; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 48px; background: rgba(8, 8, 10, 0.6); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--rule); }
.nav-in { max-width: 1040px; height: 100%; margin: 0 auto; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.wordmark::before { content: ""; width: 2px; height: 20px; border-radius: 1px; background: var(--red); }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.nav li a { opacity: 0.75; transition: opacity 0.2s; }
.nav li a:hover { opacity: 1; }
.nav .wide { display: none; }
@media (min-width: 820px) { .nav .wide { display: block; } }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(var(--scroll, 0)); }

/* ---------- hero: night paper you can write on ---------- */
.hero { position: relative; height: 100vh; min-height: 620px; overflow: hidden; display: grid; place-items: center; text-align: center; touch-action: pan-y; }
.paper { position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, transparent 0 43px, rgba(244, 241, 232, 0.075) 43px 44px); -webkit-mask-image: radial-gradient(120% 90% at 50% 45%, #000 30%, transparent 85%); mask-image: radial-gradient(120% 90% at 50% 45%, #000 30%, transparent 85%); }
.marginline { position: absolute; top: 0; bottom: 0; left: max(22px, calc(50% - 470px)); width: 2px; background: linear-gradient(to bottom, transparent, var(--red) 18%, var(--red) 82%, transparent); transform-origin: 50% 0; opacity: 0.85; }
#ink { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-in { position: relative; pointer-events: none; padding: 0 22px; transform: translateY(calc(var(--hp, 0) * -12vh)) scale(calc(1 - var(--hp, 0) * 0.12)); opacity: calc(1 - var(--hp, 0) * 1.5); }
.hero h1 { font-size: clamp(64px, 15vw, 176px); line-height: 0.98; letter-spacing: -0.05em; font-weight: 700; }
.hero h1 span { display: inline-block; }
.hero .tag { margin-top: 18px; font-size: clamp(21px, 3.3vw, 34px); letter-spacing: -0.02em; font-weight: 500; color: var(--soft); }
.flourish { display: block; width: min(420px, 62vw); height: 26px; margin: 10px auto 0; overflow: visible; }
.flourish path { fill: none; stroke: var(--red); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.hero-foot { position: absolute; inset: 0; pointer-events: none; opacity: calc(1 - var(--hp, 0) * 4); }
.hint { position: absolute; left: 0; right: 0; bottom: 74px; font-size: 14px; color: var(--soft); pointer-events: none; }
.hint b { color: var(--ink); font-weight: 500; }
.cue { position: absolute; left: 50%; bottom: 26px; width: 22px; height: 34px; margin-left: -11px; border: 1.5px solid rgba(244, 241, 232, 0.35); border-radius: 12px; pointer-events: none; }
.cue::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); }

/* ---------- manifesto: words light as you scroll ---------- */
.manifesto { max-width: 900px; margin: 0 auto; padding: 16vh 24px 22vh; font-size: clamp(30px, 5.2vw, 60px); line-height: 1.12; letter-spacing: -0.035em; font-weight: 650; }
/* dim words stay readable (3:1 for large text); without JS the paragraph is simply lit */
.js .manifesto span { opacity: calc(0.4 + var(--lit, 0) * 0.6); transition: opacity 0.25s linear; }

/* ---------- pinned scroll scenes ---------- */
.scene { position: relative; }
.stage { position: sticky; top: 0; height: 100vh; min-height: 560px; overflow: hidden; }
.app-icon { width: 56px; height: 56px; border-radius: 22.5%; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3), 0 0 0 0.5px rgba(255, 255, 255, 0.16); }
.btn { display: inline-flex; align-items: center; height: 40px; padding: 0 20px; border-radius: 999px; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; transition: transform 0.2s, filter 0.2s; }
.btn:hover { transform: scale(1.04); }
.soon { font-size: 15px; opacity: 0.7; }
.ipad { background: #111; padding: 12px; border-radius: 30px; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1); }
.ipad .screen { position: relative; overflow: hidden; border-radius: 19px; }

/* Marginalia: the iPad rises, then scroll walks through four real worlds */
.marginalia { height: 520vh; }
.marginalia .stage { --bg1: #16296a; --bg2: #0c1740; --fg: #f7f1df; --accent: #f7f1df; --on: #16296a;
  background: linear-gradient(180deg, var(--bg1), var(--bg2)); color: var(--fg);
  display: flex; flex-direction: column; align-items: center; text-align: center; padding: calc(48px + 5vh) 22px 0;
  transition: color 0.7s; }
.marginalia .stage::before { content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity 0.7s; }
.marginalia .wash { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s; }
.marginalia .wash.boreal { background: linear-gradient(180deg, #dcebf3, #b9d3e2); }
.marginalia .wash.grimoire { background: linear-gradient(180deg, #3a130d, #170705); }
.marginalia .wash.phosphor { background: linear-gradient(180deg, #0c2a20, #03110c); }
.marginalia [data-w] { transition: opacity 0.7s; }
.marginalia .stage[data-world="1"] { --fg: #14252f; --accent: #14252f; --on: #dcebf3; }
.marginalia .stage[data-world="2"] { --fg: #f6e3d2; --accent: #ff7a5c; --on: #230a06; }
.marginalia .stage[data-world="3"] { --fg: #c9ffe6; --accent: #5dffb4; --on: #04140e; }
.marginalia .stage[data-world="1"] .wash.boreal,
.marginalia .stage[data-world="2"] .wash.grimoire,
.marginalia .stage[data-world="3"] .wash.phosphor { opacity: 1; }
.marginalia .copy { position: relative; z-index: 2; }
.marginalia .app-icon { margin: 0 auto; }
.marginalia h2 { margin-top: 14px; font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -0.045em; }
.marginalia .promise { margin-top: 6px; font-size: clamp(19px, 2.5vw, 27px); letter-spacing: -0.02em; font-weight: 500; opacity: 0.85; }
.marginalia .world-line { margin-top: 14px; font-size: 16px; opacity: 0.8; min-height: 1.5em; }
.marginalia .world-line b { font-weight: 600; opacity: 1; }
.swatches { display: flex; gap: 12px; justify-content: center; margin-top: 14px; }
.swatches button { width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 2px solid transparent; background: var(--c); cursor: pointer; box-shadow: 0 0 0 1px rgba(127, 127, 127, 0.45); transition: transform 0.25s, border-color 0.25s; }
.swatches button[aria-pressed="true"] { transform: scale(1.22); border-color: var(--fg); }
.marginalia .actions { margin-top: 18px; display: flex; gap: 12px; justify-content: center; align-items: center; }
.marginalia .btn { background: var(--accent); color: var(--on); transition: background 0.7s, color 0.7s, transform 0.2s; }
.marginalia .device { position: relative; z-index: 2; width: min(940px, 94vw); margin-top: 34px; transform-origin: 50% 0;
  transform: perspective(1500px) translateY(calc((1 - var(--intro, 1)) * 26vh)) rotateX(calc((1 - var(--intro, 1)) * 34deg)) scale(calc(1.16 - var(--intro, 1) * 0.16)); }
.marginalia .screen img { transition: opacity 0.7s; }
.marginalia .screen img + img { position: absolute; inset: 0; opacity: 0; }
.marginalia .stage[data-world="1"] .screen img[data-w="1"],
.marginalia .stage[data-world="2"] .screen img[data-w="2"],
.marginalia .stage[data-world="3"] .screen img[data-w="3"] { opacity: 1; }

/* Carryover: captions step on the left, the page answers on the right */
.carryover { height: 460vh; }
.carryover .stage { background: #f3efe4; color: #25221c; display: grid; align-items: center; padding: 48px 22px 0; }
.carryover .wrap { width: min(1040px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 22px; align-items: center; }
.carryover .head { display: flex; align-items: center; gap: 14px; }
.carryover .head .app-icon { width: 48px; height: 48px; }
.carryover .head h2 { font-size: 26px; letter-spacing: -0.03em; }
.carryover .head .soon { margin-left: auto; }
.steps { position: relative; list-style: none; margin: 0; padding: 0; min-height: 200px; }
.js .steps li { position: absolute; inset: 0; opacity: 0; transform: translateY(14px); transition: opacity 0.5s, transform 0.5s; }
.steps h3 { font-size: clamp(30px, 6vw, 54px); line-height: 1.05; letter-spacing: -0.04em; }
.steps p { margin-top: 10px; font-size: 18px; color: #6a6457; max-width: 24em; }
.carryover .stage[data-step="0"] .steps li:nth-child(1),
.carryover .stage[data-step="1"] .steps li:nth-child(2),
.carryover .stage[data-step="2"] .steps li:nth-child(3),
.carryover .stage[data-step="3"] .steps li:nth-child(4) { opacity: 1; transform: none; }
.carryover .ipad { width: min(360px, 62vw); margin: 0 auto; box-shadow: 0 30px 80px rgba(60, 45, 20, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.06); }
.carryover .screen img { transition: opacity 0.6s, transform 1.1s cubic-bezier(0.3, 0.7, 0.2, 1); transform-origin: 26% 40%; }
.carryover .screen img + img { position: absolute; inset: 0; opacity: 0; }
.carryover .stage[data-step="1"] .screen img:nth-child(1) { transform: scale(2.05); }
.carryover .stage[data-step="2"] .screen img:nth-child(2),
.carryover .stage[data-step="3"] .screen img:nth-child(3) { opacity: 1; }
.dots { display: flex; gap: 8px; margin-top: 4px; }
.dots i { width: 22px; height: 3px; border-radius: 2px; background: rgba(37, 34, 28, 0.18); transition: background 0.4s; }
.carryover .stage[data-step="0"] .dots i:nth-child(1),
.carryover .stage[data-step="1"] .dots i:nth-child(2),
.carryover .stage[data-step="2"] .dots i:nth-child(3),
.carryover .stage[data-step="3"] .dots i:nth-child(4) { background: var(--red); }
@media (min-width: 820px) {
  .carryover .wrap { grid-template-columns: 1fr 1fr; gap: 64px; }
  .steps { min-height: 250px; }
  .carryover .ipad { width: min(430px, 100%, 62vh); }
  .carryover .head { margin-bottom: 26px; }
}

/* ---------- bento: four living cards ---------- */
.more { max-width: 1100px; margin: 0 auto; padding: 16vh 16px 0; }
.more > h2 { text-align: center; font-size: clamp(36px, 6vw, 68px); letter-spacing: -0.045em; line-height: 1.04; }
.more > p { text-align: center; margin: 12px auto 0; color: var(--soft); font-size: 19px; }
.bento { display: grid; gap: 14px; margin-top: 56px; perspective: 1400px; }
@media (min-width: 820px) { .bento { grid-template-columns: 1fr 1fr; } }
.card { position: relative; overflow: hidden; border-radius: 28px; padding: 0 28px 34px; min-height: 520px; color: var(--fg); background: var(--bg);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.35s ease-out; transform-style: preserve-3d; will-change: transform; }
.card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--spot, 0); transition: opacity 0.3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.16), transparent 60%); }
.vig { position: relative; height: 290px; display: grid; place-items: center; }
.card .row { display: flex; align-items: center; gap: 12px; }
.card .row .app-icon { width: 44px; height: 44px; }
.card h3 { font-size: 30px; letter-spacing: -0.035em; }
.card .promise { margin-top: 12px; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 600; }
.card .detail { margin-top: 8px; font-size: 16px; opacity: 0.72; max-width: 26em; }
.card .status { margin-top: 18px; }
.card .btn { background: var(--accent); color: var(--on); }
.sheaf { --bg: radial-gradient(120% 90% at 50% 0%, #12305c 0%, #070b18 70%); --fg: #eaf3ff; --accent: #35c3ee; --on: #06121f; }
.lunara { --bg: radial-gradient(110% 90% at 50% 10%, #211f57 0%, #07061a 72%); --fg: #efeaff; --accent: #e9ddb0; --on: #121033; }
.warmth { --bg: linear-gradient(160deg, #e9654d 0%, #f1a056 100%); --fg: #fff8f0; --accent: #fff8f0; --on: #c9482f; }
.renew { --bg: radial-gradient(110% 90% at 50% 10%, #2e2011 0%, #0a0a0b 70%); --fg: #fff3e2; --accent: #f6a531; --on: #1a1206; }

/* Sheaf: a beam reads the page, rows of data come out */
.scan { display: flex; align-items: center; gap: 26px; }
.doc { position: relative; width: 150px; height: 196px; border-radius: 12px; background: #f4f8ff; padding: 20px 16px; overflow: hidden; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }
.doc i { display: block; height: 7px; margin-bottom: 13px; border-radius: 4px; background: #c8d3e3; animation: read 4.2s linear infinite; animation-delay: calc(var(--n) * 0.42s); }
.doc i:nth-child(2n) { width: 72%; } .doc i:nth-child(3n) { width: 88%; } .doc i:nth-child(5) { width: 46%; }
@keyframes read { 0%, 6% { background: #c8d3e3; } 10%, 30% { background: #35c3ee; } 46%, 100% { background: #c8d3e3; } }
.beam { position: absolute; left: -8px; right: -8px; top: 0; height: 3px; border-radius: 2px; background: #35c3ee; box-shadow: 0 0 22px 6px rgba(53, 195, 238, 0.55); animation: beam 4.2s linear infinite; }
@keyframes beam { 0% { transform: translateY(8px); } 80% { transform: translateY(186px); opacity: 1; } 86%, 100% { transform: translateY(186px); opacity: 0; } }
.rows { display: grid; gap: 10px; width: 150px; font-size: 13px; }
.rows span { display: flex; justify-content: space-between; padding: 9px 12px; border-radius: 10px; background: rgba(53, 195, 238, 0.14); box-shadow: inset 0 0 0 1px rgba(53, 195, 238, 0.4); animation: 4.2s ease-out infinite; opacity: 0; }
.rows span:nth-child(1) { animation-name: row1; } .rows span:nth-child(2) { animation-name: row2; } .rows span:nth-child(3) { animation-name: row3; }
.rows b { font-weight: 600; }
/* each row arrives as the beam passes its part of the page; all three leave together */
@keyframes row1 { 0%, 14% { opacity: 0; transform: translateX(-16px); } 22%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes row2 { 0%, 38% { opacity: 0; transform: translateX(-16px); } 46%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
@keyframes row3 { 0%, 62% { opacity: 0; transform: translateX(-16px); } 70%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }

/* Lunara: a ring of stardust turns, the moon waxes */
.sky { position: relative; width: 220px; height: 220px; }
.orbit { position: absolute; inset: 0; animation: turn 70s linear infinite; }
.orbit i { position: absolute; left: 50%; top: 50%; width: var(--s); height: var(--s); margin: calc(var(--s) / -2); border-radius: 50%; background: var(--c); opacity: var(--o); transform: rotate(var(--a)) translateX(var(--r)); animation: twinkle 3.5s ease-in-out infinite; animation-delay: var(--d); }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes twinkle { 50% { opacity: calc(var(--o) * 0.35); } }
.moon { position: absolute; right: 6px; top: 50%; width: 58px; height: 58px; margin-top: -29px; border-radius: 50%; background: #f0e7c9; overflow: hidden; box-shadow: 0 0 40px 6px rgba(240, 231, 201, 0.28); }
.moon::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; background: #0b0a24; animation: phase 10s ease-in-out infinite alternate; }
@keyframes phase { from { transform: translateX(-8%); } to { transform: translateX(-104%); } }

/* Warmth: rings cool while you are quiet; touch one to reach out */
.people { display: flex; gap: 26px; }
.person { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-align: center; }
.person svg { width: 86px; height: 86px; display: block; transform: rotate(-90deg); overflow: visible; }
.person .track { fill: none; stroke: rgba(255, 255, 255, 0.22); stroke-width: 9; }
.person .heat { fill: rgba(255, 255, 255, 0.0); stroke: #fff8f0; stroke-width: 9; stroke-linecap: round; stroke-dasharray: 220; animation: cool var(--t) linear infinite; }
@keyframes cool { 0% { stroke-dashoffset: 0; stroke: #fff8f0; } 88% { stroke-dashoffset: 176; stroke: #7b5a66; } 94%, 100% { stroke-dashoffset: 0; stroke: #fff8f0; } }
.person span { display: block; margin-top: 10px; font-size: 14px; font-weight: 500; }
.person small { display: block; font-size: 12px; opacity: 0.75; }
.person.pulse svg { animation: pulse 0.6s ease-out; }
@keyframes pulse { 0% { filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0.9)); } 40% { filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.9)); } 100% { filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0)); } }
.vig .note { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-size: 13px; opacity: 0.8; }

/* Renew: the ring runs down to the renewal, the plan splits */
.renewal { display: flex; align-items: center; gap: 28px; }
.ring { position: relative; width: 150px; height: 150px; }
.ring svg { width: 150px; height: 150px; transform: rotate(-90deg); }
.ring .track { fill: none; stroke: rgba(246, 165, 49, 0.18); stroke-width: 12; }
.ring .run { fill: none; stroke: #f6a531; stroke-width: 12; stroke-linecap: round; stroke-dasharray: 377; animation: run 7s linear infinite; filter: drop-shadow(0 0 10px rgba(246, 165, 49, 0.55)); }
@keyframes run { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 377; } }
.ring .mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .mid b { font-size: 40px; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.ring .mid small { font-size: 12px; opacity: 0.7; margin-top: 4px; }
.chips { display: grid; gap: 10px; font-size: 14px; }
.chips div { display: flex; gap: 8px; }
.chips span { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 12px; background: rgba(246, 165, 49, 0.12); box-shadow: inset 0 0 0 1px rgba(246, 165, 49, 0.35); animation: chip 4s ease-in-out infinite; animation-delay: calc(var(--n) * 1s); }
@keyframes chip { 0%, 30%, 100% { background: rgba(246, 165, 49, 0.12); color: inherit; } 10%, 20% { background: #f6a531; color: #1a1206; } }

/* ---------- footer ---------- */
.foot { max-width: 1040px; margin: 14vh auto 0; padding: 22px 22px 48px; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--soft); display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ---------- entrance (only with JS, only when motion is welcome) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero h1 span { opacity: 0; transform: translateY(0.35em); animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; animation-delay: calc(0.25s + var(--i) * 0.07s); }
  .js .marginline { transform: scaleY(0); animation: draw 1.1s 0.05s cubic-bezier(0.6, 0, 0.2, 1) forwards; }
  .js .hero .tag, .js .hint, .js .cue { opacity: 0; animation: fade 0.9s 1s forwards; }
  .js .flourish path { stroke-dashoffset: 1; animation: stroke 1.1s 1.25s cubic-bezier(0.5, 0, 0.2, 1) forwards; }
  .cue::after { animation: cue 1.8s ease-in-out infinite; }
  .js .rise { opacity: 0; transform: translateY(30px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .js .rise.in { opacity: 1; transform: none; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes draw { to { transform: scaleY(1); } }
@keyframes fade { to { opacity: 1; } }
@keyframes stroke { to { stroke-dashoffset: 0; } }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(11px); opacity: 0; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .doc i, .beam, .rows span, .orbit, .orbit i, .moon::after, .person .heat, .ring .run, .chips span { animation: none; }
  .rows span { opacity: 1; }
  .marginalia .device { transform: none; }
  .card { transform: none; }
}

@media (max-width: 819px) {
  .ipad { padding: 7px; border-radius: 18px; }
  .ipad .screen { border-radius: 12px; }
  .marginalia .stage { padding-top: calc(48px + 3vh); }
  .card { min-height: 0; padding: 0 22px 30px; }
  .vig { height: 250px; }
  .scan { gap: 16px; } .doc { width: 124px; height: 170px; } .rows { width: 128px; font-size: 12px; }
  .people { gap: 14px; } .person svg { width: 76px; height: 76px; }
  .renewal { gap: 18px; } .ring, .ring svg { width: 128px; height: 128px; }
}

/* ================= v3 additions ================= */
@view-transition { navigation: auto; }
/* home chapter/card icon and title morph into the product page hero (names: icon-<slug>, title-<slug>) */
.carryover .head .app-icon { view-transition-name: icon-carryover; }
.carryover .head h2 { view-transition-name: title-carryover; }
::view-transition-group(*) { animation-duration: 0.55s; animation-timing-function: cubic-bezier(0.3, 0.7, 0.2, 1); }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* hero: a light follows the pointer across the ruled page */
.paper.lit { background: repeating-linear-gradient(to bottom, transparent 0 43px, rgba(244, 241, 232, 0.36) 43px 44px);
  -webkit-mask-image: radial-gradient(280px circle at var(--px, 50%) var(--py, -60%), #000, transparent 72%);
  mask-image: radial-gradient(280px circle at var(--px, 50%) var(--py, -60%), #000, transparent 72%); }

/* dock: six icons, magnifying under the pointer, a dot under the chapter you are in */
.dock { position: fixed; left: 50%; bottom: 14px; z-index: 60; display: flex; align-items: flex-end; gap: 10px; padding: 9px 12px 11px; border-radius: 24px;
  background: rgba(34, 34, 38, 0.55); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.13);
  transform: translate(-50%, calc((1 - var(--dock, 0)) * 130%)); opacity: var(--dock, 0); transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.4s; }
.dock a { position: relative; display: block; width: 42px; height: 42px; transform-origin: 50% 100%; margin: 0 calc(var(--m, 0) * 13px);
  transform: scale(calc(1 + var(--m, 0) * 0.7)); transition: transform 0.12s ease-out, margin 0.12s ease-out; }
.dock img { width: 100%; height: 100%; border-radius: 22.5%; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4); }
.dock a::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--ink); opacity: 0; transition: opacity 0.3s; }
.dock a[aria-current="true"]::after { opacity: 0.9; }
.dock a span { position: absolute; left: 50%; bottom: calc(100% + 9px); padding: 3px 9px; border-radius: 8px; white-space: nowrap; font-size: 12px; color: var(--ink);
  background: rgba(34, 34, 38, 0.9); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.13); transform-origin: 50% 100%;
  transform: translateX(-50%) scale(calc(1 / (1 + var(--m, 0) * 0.7))); opacity: 0; transition: opacity 0.15s; pointer-events: none; }
.dock a:hover span { opacity: 1; }
@media (max-width: 819px) { .dock { gap: 8px; padding: 8px 10px 10px; } .dock a { width: 36px; height: 36px; } }

/* Marginalia: the page in the iPad takes ink */
.marginalia h2 { font-size: clamp(38px, 5.6vw, 64px); }
.marginalia .world-line { max-width: 34em; margin-left: auto; margin-right: auto; }
.pad { position: absolute; left: 0; right: 0; bottom: 0; top: 10.5%; width: 100%; height: 89.5%; z-index: 2; touch-action: pan-y; cursor: crosshair; }
.pad-clear { position: absolute; z-index: 4; right: 8.5%; top: 13%; height: 28px; padding: 0 12px; border: 0; border-radius: 999px; font: 500 12.5px var(--font); cursor: pointer;
  background: rgba(20, 20, 24, 0.72); color: #f4f1e8; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.pad-clear:not(.on) { visibility: hidden; }
.pad-clear.on { opacity: 1; pointer-events: auto; }
.marginalia .screen::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; transform: translateX(-130%);
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.3) 50%, transparent 62%); }
.marginalia .screen.glare::after { animation: glare 0.9s ease-out; }
@keyframes glare { from { transform: translateX(-130%); } to { transform: translateX(130%); } }

/* Carryover: a fifth step brings the iPhone in */
.carryover { height: 560vh; }
.carryover .devices { position: relative; width: min(360px, 62vw); margin: 0 auto; }
.carryover .ipad { width: 100%; margin: 0; }
.iphone { background: #111; padding: 6px; border-radius: 30px; box-shadow: 0 24px 60px rgba(40, 30, 10, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.iphone img { border-radius: 25px; }
.carryover .iphone { position: absolute; right: -15%; bottom: -5%; width: 43%; z-index: 2; transform: translateY(46%) scale(0.9); opacity: 0; transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.5s; }
.carryover .stage[data-step="4"] .iphone { transform: none; opacity: 1; }
.carryover .stage[data-step="4"] .steps li:nth-child(5) { opacity: 1; transform: none; }
.carryover .stage[data-step="4"] .dots i:nth-child(5) { background: var(--red); }
.carryover .cta { margin-top: 20px; font-size: 16px; }
.carryover .cta a { color: #25221c; font-weight: 500; border-bottom: 1px solid rgba(37, 34, 28, 0.35); padding-bottom: 1px; }
@media (min-width: 820px) { .carryover .devices { width: min(430px, 100%, 62vh); } }

/* bento: Lunara gets the whole row and a sky; the other three share a row */
@media (min-width: 820px) { .bento { grid-template-columns: repeat(3, 1fr); } .card.lunara { grid-column: 1 / -1; } }
.card { min-height: 500px; }
.card.lunara { min-height: 620px; display: flex; flex-direction: column; justify-content: flex-end; }
.card.lunara > * { position: relative; z-index: 1; }
#sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.card.lunara > .sky-label { position: absolute; left: 28px; top: 26px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; font-variant-numeric: tabular-nums; }
.scan { gap: 16px; } .doc { width: 124px; height: 170px; } .rows { width: 128px; font-size: 12px; }
.people { gap: 14px; } .person svg { width: 76px; height: 76px; }
.renewal { gap: 18px; } .ring, .ring svg { width: 128px; height: 128px; }
@media (prefers-reduced-motion: reduce) { .marginalia .screen.glare::after { animation: none; } .dock, .dock a { transition: none; } }
@media (max-width: 819px) { .card.lunara { min-height: 560px; } .sky-label { left: 22px; } }

/* ================= v4: real screenshots ================= */
.marginalia .device { width: min(560px, 84vw); }
.pad { top: 7%; width: 92%; height: 93%; right: auto; }
.pad-clear { right: 11%; top: 9%; }
@media (min-width: 820px) {
  .marginalia .stage { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 64px; text-align: left;
    padding: 48px max(32px, calc(50% - 560px)) 0; }
  .marginalia .copy { max-width: 440px; }
  .marginalia .world-line { margin-left: 0; }
  .marginalia .swatches, .marginalia .actions { justify-content: flex-start; }
  .marginalia .device { margin-top: 0; width: min(600px, calc((100vh - 96px) * 0.72)); transform-origin: 50% 100%; }
}

.lunara-phones { display: flex; gap: 14px; justify-content: center; margin: 34px 0 28px; }
.lunara-phones .iphone { width: min(150px, 40vw); }
@media (min-width: 820px) {
  .card.lunara > .lunara-phones { position: absolute; right: 44px; bottom: -150px; margin: 0; gap: 22px; align-items: flex-end; }
  .lunara-phones .iphone { width: 236px; }
  .lunara-phones .iphone:nth-child(1) { transform: translateY(-70px); }
  .card.lunara .detail { max-width: 22em; }
  .card.lunara { min-height: 640px; }
}
@media (max-width: 819px) { #sky { opacity: 0.55; } }

.card.renew { display: flex; flex-direction: column; padding-top: 34px; padding-bottom: 0; }
.peek { position: relative; height: 300px; margin-top: 28px; display: flex; justify-content: center; }
.peek .iphone { width: min(220px, 64%); align-self: flex-start; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.1); }
.peek .ring { position: absolute; left: 50%; top: 92px; margin-left: calc(min(110px, 32%) + -46px); width: 92px; height: 92px; border-radius: 50%;
  background: rgba(14, 12, 10, 0.78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(246, 165, 49, 0.25); }
.peek .ring svg { width: 92px; height: 92px; }
.peek .ring .mid b { font-size: 26px; }
.peek .ring .mid small { font-size: 10px; margin-top: 2px; }

.card.sheaf, .card.warmth { display: flex; flex-direction: column; padding-top: 34px; padding-bottom: 0; }
.card.sheaf > .vig, .card.warmth > .vig { position: absolute; z-index: 3; height: auto; display: block; left: 18px; bottom: 34px; padding: 14px; border-radius: 22px;
  background: rgba(10, 12, 20, 0.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.card.sheaf > .vig { transform: scale(0.58); transform-origin: 0 100%; }
.card.warmth > .vig { background: rgba(120, 40, 20, 0.45); }
.card.warmth .person:nth-child(n+2), .card.warmth .note { display: none; }
.card.warmth .person svg { width: 64px; height: 64px; }
.card.warmth .person span { font-size: 12px; margin-top: 6px; } .card.warmth .person small { display: none; }

/* ================= site: shared bits ================= */
.learn { margin-left: 18px; font-size: 15px; opacity: 0.85; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.learn:hover { opacity: 1; }
.foot-apps { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

/* ================= product pages ================= */
.product { --p-bg: var(--night); --p-ink: var(--ink); --p-accent: var(--ink); --p-on: var(--night); }
.p-hero { background: var(--p-bg); color: var(--p-ink); text-align: center; padding: calc(48px + 11vh) 22px 0; overflow: hidden; }
.p-hero .icon { width: 96px; height: 96px; margin: 0 auto 22px; border-radius: 22.5%; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35), 0 0 0 0.5px rgba(255, 255, 255, 0.18); }
.p-hero h1 { font-size: clamp(52px, 10vw, 112px); line-height: 1; letter-spacing: -0.05em; font-weight: 700; }
.p-hero .promise { margin-top: 12px; font-size: clamp(22px, 3.4vw, 36px); letter-spacing: -0.025em; font-weight: 600; }
.p-hero .lede { max-width: 34em; margin: 18px auto 0; font-size: clamp(17px, 1.8vw, 20px); opacity: 0.78; }
.p-hero .actions { margin-top: 30px; display: flex; justify-content: center; align-items: center; gap: 18px; }
.product .btn { background: var(--p-accent); color: var(--p-on); }
.product .soon { color: var(--p-ink); }
.p-stage { display: flex; justify-content: center; align-items: flex-end; gap: 28px; margin: 9vh auto 0; max-width: 1040px; transform: translateY(8%); }
.p-stage .ipad { width: min(820px, 92vw); }
.p-stage .iphone { width: min(300px, 62vw); }
.p-stage.n2 .ipad { width: min(700px, 66vw); }
.p-stage.n2 .ipad + .iphone { width: min(230px, 22vw); margin-left: -12%; transform: translateY(6%); position: relative; }
.p-stage.n2 .iphone:first-child + .iphone { transform: translateY(-9%); }
.light-hero .p-hero .iphone, .light-hero .p-hero .ipad { box-shadow: 0 40px 100px rgba(60, 45, 20, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.06); }

.feature { max-width: 1080px; margin: 0 auto; padding: 18vh 22px 0; display: grid; gap: 40px; align-items: center; }
.feature .copy h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.06; letter-spacing: -0.04em; font-weight: 700; }
.feature .copy p { margin-top: 18px; font-size: clamp(17px, 1.7vw, 21px); color: var(--soft); max-width: 26em; }
.feature .shot { display: flex; justify-content: center; }
.feature .shot .ipad { width: min(640px, 100%); }
.feature .shot .iphone { width: min(300px, 72vw); }
@media (min-width: 820px) {
  .feature { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; }
  .feature.flip .copy { order: 2; }
  .feature:has(.iphone) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
}

.p-cards, .marks, .also, .private { max-width: 1080px; margin: 0 auto; padding: 18vh 22px 0; }
.p-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.p-card { padding: 30px 28px; border-radius: 26px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--rule); }
.p-card h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
.p-card p { margin-top: 10px; color: var(--soft); }

.marks h2, .also h2, .private h2 { font-size: clamp(32px, 4.6vw, 56px); letter-spacing: -0.04em; line-height: 1.06; text-align: center; }
.marks > p, .private > p { max-width: 34em; margin: 16px auto 0; text-align: center; color: var(--soft); font-size: clamp(17px, 1.7vw, 20px); }
.marks ul { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.marks li { display: grid; justify-items: center; gap: 4px; padding: 26px 12px; border-radius: 22px; background: #f3efe4; color: #25221c; text-align: center; }
.marks .glyph { font-size: 40px; line-height: 1; height: 48px; display: grid; place-items: center; }
.marks small { color: #6d6658; font-size: 14px; }
.also ul { list-style: none; padding: 0; margin: 40px auto 0; max-width: 820px; display: grid; gap: 0 32px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.also li { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 18px; }
.private { text-align: center; }
.p-legal { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; margin-top: 26px !important; font-size: 15px; }
.p-legal a { color: var(--ink); border-bottom: 1px solid var(--rule); padding-bottom: 1px; }
.requires { max-width: 1080px; margin: 12vh auto 0; padding: 0 22px; text-align: center; font-size: 13px; color: var(--soft); }

/* ================= legal, support, 404 ================= */
.legal { padding: calc(48px + 8vh) 22px 0; }
.review-banner { max-width: 1040px; margin: 0 auto 28px; padding: 12px 16px; border-radius: 14px; background: rgba(233, 221, 176, 0.08); box-shadow: inset 0 0 0 1px rgba(233, 221, 176, 0.35); color: #e9ddb0; font-size: 14px; }
.draft-banner { max-width: 1040px; margin: 0 auto 28px; padding: 12px 16px; border-radius: 14px; background: rgba(226, 87, 76, 0.12); box-shadow: inset 0 0 0 1px rgba(226, 87, 76, 0.45); color: #ffb3ab; font-size: 14px; }
.legal-in { max-width: 1040px; margin: 0 auto; display: grid; gap: 36px; }
@media (min-width: 820px) { .legal-in { grid-template-columns: 200px minmax(0, 1fr); gap: 64px; } .legal-in.single { grid-template-columns: minmax(0, 1fr); } }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; align-content: start; font-size: 15px; }
@media (min-width: 820px) { .legal-nav { position: sticky; top: 80px; flex-direction: column; flex-wrap: nowrap; } }
.legal-nav a { color: var(--soft); }
.legal-nav a:hover, .legal-nav a[aria-current] { color: var(--ink); }
.legal-nav a[aria-current] { font-weight: 600; }
.legal-app { display: flex; align-items: center; gap: 10px; width: 100%; margin-bottom: 8px; color: var(--ink) !important; font-weight: 600; }
.legal-app img { width: 32px; height: 32px; border-radius: 22.5%; }
.legal-body { max-width: 44em; font-size: 17px; line-height: 1.6; }
.legal-body h1 { font-size: clamp(36px, 5vw, 52px); letter-spacing: -0.04em; line-height: 1.08; }
.legal-body h1 + p { margin-top: 10px; color: var(--soft); font-size: 15px; }
.legal-body h2 { margin-top: 2.2em; font-size: 24px; letter-spacing: -0.02em; line-height: 1.25; }
.legal-body h3 { margin-top: 1.6em; font-size: 19px; }
.legal-body p, .legal-body ul, .legal-body ol, .legal-body table, .legal-body dl { margin-top: 1em; }
.legal-body ul, .legal-body ol { padding-left: 1.3em; }
.legal-body li + li { margin-top: 0.4em; }
.legal-body a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(244, 241, 232, 0.35); text-underline-offset: 3px; }
.legal-body a:hover { text-decoration-color: var(--red); }
.legal-body strong { font-weight: 600; }
.legal-body table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.legal-body th, .legal-body td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
.legal-body th { font-weight: 600; }
.legal-body dt { font-weight: 600; margin-top: 1em; }
.legal-body dd { margin: 0.2em 0 0; color: var(--soft); }
.legal-body details { margin-top: 1em; padding: 14px 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--rule); }
.legal-body summary { cursor: pointer; font-weight: 600; }
.legal-body details[open] summary { margin-bottom: 0.4em; }
.legal-body pre.licence { margin-top: 1em; padding: 14px 18px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--rule); font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--soft); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 28em; overflow-y: auto; }
.support-apps { display: grid; gap: 12px; margin-top: 1.2em; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.support-app { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 20px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--rule); text-decoration: none !important; transition: background 0.2s; }
.support-app:hover { background: rgba(255, 255, 255, 0.08); }
.support-app img { width: 52px; height: 52px; border-radius: 22.5%; flex: none; }
.support-app b { display: block; font-size: 17px; }
.support-app small { display: block; color: var(--soft); font-size: 14px; line-height: 1.35; margin-top: 2px; }
.lost { min-height: 72vh; display: grid; place-content: center; text-align: center; gap: 14px; padding: 48px 22px 0;
  background: repeating-linear-gradient(to bottom, transparent 0 43px, rgba(244, 241, 232, 0.06) 43px 44px); }
.lost h1 { font-size: clamp(48px, 9vw, 96px); letter-spacing: -0.05em; line-height: 1; }
.lost p { color: var(--soft); font-size: 19px; }
.lost .btn { margin-top: 12px; background: var(--ink); color: var(--night); }
.foot-tm { flex-basis: 100%; margin-top: 10px; font-size: 11px; line-height: 1.5; color: var(--soft); }
.card .fine { margin-top: 8px; font-size: 12.5px; opacity: 0.6; }

/* off-screen cards hold their loops still (home.js toggles .live); without JS everything runs */
.js .card:not(.live) *, .js .card:not(.live)::before, .js .card:not(.live)::after,
.js .hero:not(.live) .cue::after { animation-play-state: paused !important; }

/* ================= wave 2: skip link, phone menu ================= */
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--night); font-size: 15px; font-weight: 600; transition: top 0.2s; }
.skip:focus { top: 8px; }
.nav nav { display: contents; }
.menu { position: relative; display: none; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; background: rgba(244, 241, 232, 0.1); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.2s; }
.menu[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.menu-panel { position: fixed; left: 10px; right: 10px; top: 54px; padding: 8px; border-radius: 22px; background: rgba(20, 20, 24, 0.94); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), inset 0 0 0 1px var(--rule); display: grid; gap: 2px; max-height: calc(100vh - 70px); overflow: auto; }
.menu-panel a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; }
.menu-panel a:hover, .menu-panel a:focus-visible { background: rgba(255, 255, 255, 0.06); }
.menu-panel img { width: 40px; height: 40px; border-radius: 22.5%; flex: none; }
.menu-panel b { display: block; font-size: 16px; font-weight: 600; }
.menu-panel small { display: block; font-size: 13px; color: var(--soft); line-height: 1.3; }
.menu-panel .menu-support { justify-content: center; margin-top: 4px; font-size: 15px; color: var(--soft); box-shadow: inset 0 1px 0 var(--rule); border-radius: 0 0 14px 14px; }
@media (max-width: 819px) {
  .menu { display: block; }
  .nav ul { gap: 14px; }
  .nav ul li:last-child { display: none; }  /* Support moves into the menu */
  .nav-in { gap: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .menu[open] .menu-panel { animation: menu-in 0.22s cubic-bezier(0.2, 0.7, 0.2, 1); }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
/* anchor jumps (menu, dock, #links) land below the fixed top bar */
.card[id], .legal-body h2[id] { scroll-margin-top: 64px; }

/* ================= wave 3 ================= */
.nav li a[aria-current="page"] { opacity: 1; font-weight: 600; }
.menu-panel a[aria-current="page"] { background: rgba(255, 255, 255, 0.08); }
.others { max-width: 1080px; margin: 12vh auto 0; padding: 0 22px; }
.others h2 { font-size: 21px; letter-spacing: -0.02em; margin-bottom: 18px; }
.others ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.others a { display: grid; gap: 4px; height: 100%; padding: 18px; border-radius: 20px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--rule); transition: background 0.2s, transform 0.2s; }
.others a:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }
.others img { width: 48px; height: 48px; border-radius: 22.5%; margin-bottom: 8px; }
.others b { font-size: 17px; }
.others small { font-size: 13.5px; color: var(--soft); line-height: 1.35; }

/* printing a policy: black on white, no chrome */
@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .nav, .skip, .foot, .legal-nav, .dock, .menu { display: none !important; }
  .review-banner, .draft-banner { color: #000; background: none; box-shadow: none; border: 1px solid #000; }
  .legal { padding: 0; }
  .legal-in { display: block; }
  .legal-body a { color: #000; }
  .legal-body a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  .legal-body th, .legal-body td { border-color: #ccc; }
}

/* the dock is invisible until you scroll past the hero: keep it out of the Tab order too,
   but show it whenever a keyboard user reaches into it */
.dock { visibility: hidden; }
.dock.shown, .dock:focus-within { visibility: visible; opacity: 1; }
/* small phones: Carryover's pinned stage starts under the top bar instead of centring past it */
@media (max-width: 819px) {
  .carryover .stage { align-items: start; padding-top: 64px; }
  .carryover .wrap { gap: 14px; }
  .steps { min-height: 176px; }
  .steps p { font-size: 16px; }
  .carryover .cta { margin-top: 12px; }
  .carryover .head .soon { white-space: nowrap; font-size: 13px; }
  /* the devices take what height is left above the dock, so the iPhone of step 5 is never below the fold */
  .carryover .devices { width: clamp(150px, calc((100svh - 452px) * 0.71), 62vw); }
}
/* very short phones (iPhone SE 1st gen, 320x568): tighter text so the devices keep room above the dock */
@media (max-width: 819px) and (max-height: 640px) {
  .carryover .stage { padding-top: 56px; }
  .carryover .wrap { gap: 10px; }
  .carryover .head .app-icon { width: 38px; height: 38px; }
  .carryover .head h2 { font-size: 22px; }
  .steps { min-height: 150px; }
  .steps p { font-size: 15px; }
  .carryover .cta { margin-top: 6px; font-size: 15px; }
  .carryover .devices { width: clamp(110px, calc((100svh - 372px) * 0.71), 62vw); }
}
.p-cards-h { max-width: 1080px; margin: 18vh auto 0; padding: 0 22px; font-size: clamp(32px, 4.6vw, 56px); letter-spacing: -0.04em; text-align: center; }
.p-cards-h + .p-cards { padding-top: 40px; }
