/* re/me landing — white and blue, editorial: giant grotesk type, a manifesto voice,
   list rows, and the real re/me engine running on the page itself. */
.home {
  --blue: #2f5bff;
  --blue-2: #1d44e0;
  --navy: #0a1640;
  --sky: #eef3ff;
  --sky-2: #d9e4ff;
  --line-b: rgba(10, 22, 64, 0.12);
  --pad: clamp(18px, 3.4vw, 56px);
  --g: 'Archivo', 'Arial Black', sans-serif;
  background: #fff;
  color: var(--navy);
  overflow-x: clip;
}
.home ::selection { background: var(--blue); color: #fff; }

/* ---------- preloader: the wordmark fills with blue, then lifts away ---------- */
.pre { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: #fff; transition: transform 0.9s cubic-bezier(0.7, 0, 0.2, 1), visibility 0s 0.9s; }
.pre-word { padding: 0.06em 0.12em 0.1em 0.04em; font: 900 clamp(90px, 24vw, 420px) / 0.8 var(--g); letter-spacing: -0.06em; color: var(--sky-2); background: linear-gradient(90deg, var(--blue) 50%, var(--sky-2) 50%) 100% 0 / 200% 100% no-repeat; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: pre-fill 1.1s cubic-bezier(0.6, 0, 0.3, 1) 0.15s forwards; }
@keyframes pre-fill { to { background-position: 0 0; } }
.pre.done { transform: translateY(-100%); visibility: hidden; }
.pre.skip { display: none; }

/* ---------- nav ---------- */
.home .nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.home .nav.scrolled { border-color: var(--line-b); }
.nav-in { display: flex; align-items: center; gap: 28px; padding: 16px var(--pad); }
.home .logo { display: inline-flex; align-items: center; gap: 9px; font: 800 22px var(--g); letter-spacing: -0.03em; color: var(--navy); }
.home .logo .mark { width: 73px; height: 46px; }
.nav-links { display: flex; gap: 26px; margin-left: 18px; }
.nav-links a, .nav-link { font: 600 12.5px var(--f-body); letter-spacing: 0.09em; text-transform: uppercase; color: var(--navy); background: none; border: 0; cursor: pointer; padding: 0; position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.nav-right[hidden] { display: none; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--navy); color: var(--navy); font: 700 13px var(--f-body); letter-spacing: 0.06em; text-transform: uppercase; background: #fff; cursor: pointer; transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s; }
.pill:hover { background: var(--navy); color: #fff; }
.pill-blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.pill-blue:hover { background: var(--navy); border-color: var(--navy); }
.pill-white { background: #fff; border-color: #fff; color: var(--blue); }
.pill-white:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- shared type ---------- */
.kicker { margin: 0 0 18px; font: 600 12.5px var(--f-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); }
.giant { margin: 0; font: 900 clamp(64px, min(15.5vw, 26vh), 300px) / 0.84 var(--g); letter-spacing: -0.055em; color: var(--navy); }
.large { margin: 0; font: 850 clamp(44px, 7vw, 116px) / 0.9 var(--g); letter-spacing: -0.045em; color: var(--navy); text-wrap: balance; }
.lead { margin: 22px 0 0; max-width: 46ch; font-size: clamp(17px, 1.35vw, 21px); line-height: 1.5; color: #34406a; }
.lead b, .manifesto b { color: var(--navy); font-weight: 650; }
.lead.small { font-size: 16px; max-width: 64ch; }
section { position: relative; }
.sec-top { margin-bottom: clamp(36px, 5vw, 72px); }

/* reveal: rises in once */
[data-in] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
[data-in].in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { padding: clamp(28px, 6vh, 80px) var(--pad) clamp(40px, 7vh, 96px); min-height: calc(100svh - 77px); display: flex; flex-direction: column; justify-content: center; }
.hero .giant { max-width: 12ch; line-height: 0.93; }
/* the tail of the y in "Nobody" crosses the dashed frame of "lost": a white outline around the
   y alone breaks the line there, so the y sits on top of it; the d is lifted above that outline */
.hero .giant .y { -webkit-text-stroke: 0.1em #fff; paint-order: stroke fill; }
.hero .giant .d { position: relative; } /* painted over the halo, so the d keeps its edge */
.lost { position: relative; display: inline-block; padding: 0 0.07em; margin: 0 0.05em 0 0.02em; color: var(--navy); transition: color 0.6s ease 1.45s; }
.in .lost { color: var(--blue); } /* turns blue as the dashed frame appears */
/* the word "lost" carries a re/me key mark: dashed blue frame + dot */
.lost::before { content: ''; position: absolute; z-index: -1; inset: -0.08em 0 -0.05em; border: 3px dashed var(--blue); border-radius: 0.11em; opacity: 0; transform: scale(1.08); transition: opacity 0.6s 1.4s, transform 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.3) 1.4s; }
.lost i { position: absolute; left: -0.09em; top: -0.15em; width: clamp(12px, 0.15em, 40px); height: clamp(12px, 0.15em, 40px); border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 clamp(2px, 0.015em, 4px) #fff; opacity: 0; transform: scale(0.4); transition: opacity 0.4s 1.9s, transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.5) 1.9s; }
.in .lost::before, .in .lost i { opacity: 1; transform: none; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.9fr); gap: clamp(28px, 5vw, 90px); align-items: end; margin-top: clamp(26px, 5vh, 56px); }
.manifesto { margin: 0; font-size: clamp(20px, 1.9vw, 30px); line-height: 1.35; letter-spacing: -0.012em; color: #34406a; max-width: 30ch; }
.hero-act .urlbox { width: 100%; }
.note { margin: 12px 0 0; font: 600 12px var(--f-body); letter-spacing: 0.08em; text-transform: uppercase; color: #7a85a8; }

/* ---------- statement ---------- */
.statement { padding: clamp(80px, 13vh, 160px) var(--pad); border-top: 1px solid var(--line-b); }
.big { margin: 0; max-width: 20ch; font: 800 clamp(38px, 5.6vw, 96px) / 1 var(--g); letter-spacing: -0.04em; color: var(--navy); text-wrap: balance; }
.big mark { background: none; color: var(--blue); box-shadow: inset 0 -0.14em 0 var(--sky-2); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(48px, 8vh, 96px); border-top: 1px solid var(--line-b); }
.facts > div { padding: 26px 24px 0 0; display: grid; gap: 6px; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--line-b); }
.facts b { font: 900 clamp(56px, 7vw, 120px) / 0.9 var(--g); letter-spacing: -0.05em; color: var(--blue); }
.facts > div > span { font-size: 16px; color: #5d6890; }

/* ---------- how it works: three steps, three people ---------- */
.steps3 { padding: clamp(80px, 12vh, 150px) var(--pad); background: var(--sky); }
.s3-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.s3 { display: flex; flex-direction: column; padding: 22px 24px 28px; border-radius: 28px; background: #fff; border: 1.5px solid var(--navy); }
.s3-ill { aspect-ratio: 4 / 3; margin: -6px -8px 14px; border-radius: 20px; background: var(--sky); display: grid; place-items: center; overflow: hidden; }
.s3-ill img { width: 86%; height: auto; display: block; }
.s3-n { margin: 0 0 8px; font: 600 13px var(--f-mono); color: var(--blue); }
.s3 h3 { margin: 0 0 10px; font: 850 clamp(26px, 2.4vw, 36px) / 1 var(--g); letter-spacing: -0.035em; }
.s3 p:last-child { margin: 0; color: #5d6890; line-height: 1.5; font-size: 16px; }

/* ---------- rescue demo: a client's shop with its own design ---------- */
.rescue { padding: clamp(80px, 12vh, 150px) var(--pad); }
.rescue-grid { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.55fr); gap: clamp(28px, 4vw, 70px); align-items: center; }
.rescue-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rescue-steps li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px 20px 24px; border-radius: 20px; cursor: pointer; opacity: 0.45; transition: opacity 0.4s, background 0.4s; }
.rescue-steps li.on { opacity: 1; background: var(--sky); }
.rescue-steps li > span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--navy); font: 700 15px var(--f-body); transition: background 0.3s, color 0.3s, border-color 0.3s; }
.rescue-steps li.on > span { background: var(--blue); border-color: var(--blue); color: #fff; }
.rescue-steps b { font: 800 26px/1.05 var(--g); letter-spacing: -0.03em; }
.rescue-steps p { margin: 6px 0 0; color: #5d6890; line-height: 1.45; }
/* progress of the current step */
.rescue-steps em { position: absolute; left: 80px; right: 20px; bottom: 10px; height: 3px; border-radius: 3px; background: transparent; overflow: hidden; }
.rescue-steps li.on em { background: var(--sky-2); }
.rescue-steps em i { display: block; height: 100%; width: 0; background: var(--blue); }
.rescue-steps li.on em i { animation: stepbar var(--dur, 4s) linear forwards; }
@keyframes stepbar { to { width: 100%; } }

.browser { border-radius: 22px; background: #fff; border: 1.5px solid var(--navy); box-shadow: 14px 14px 0 var(--sky-2); overflow: hidden; }
.b-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1.5px solid var(--navy); font: 500 12px var(--f-mono); color: #5d6890; background: #fff; }
.b-bar i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--navy); }
.b-bar span { margin-left: 14px; padding: 4px 12px; border-radius: 999px; background: var(--sky); }
.b-page { position: relative; height: clamp(400px, 40vw, 540px); overflow: hidden; background: #f4efe6; }

/* the shop — Atelier Nord: cream, terracotta, a serif */
.an { --an-ink: #2b211b; --an-mute: #7b6d62; --an-acc: #c2603f; --an-line: rgba(43, 33, 27, 0.14); color: var(--an-ink); font: 14px/1.55 'DM Sans', sans-serif; will-change: transform; }
.an-head { display: flex; align-items: center; gap: 24px; padding: 16px 28px; border-bottom: 1px solid var(--an-line); }
.an-head b { font: 600 20px 'Fraunces', Georgia, serif; letter-spacing: -0.01em; }
.an-head nav { display: flex; gap: 18px; font-size: 12.5px; color: var(--an-mute); }
.an-bag { margin-left: auto; font-size: 12.5px; }
.an-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; padding: 26px 28px; align-items: center; }
.an-img { position: relative; aspect-ratio: 1; border-radius: 6px; background: #ece8e3; overflow: hidden; }
.an-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.an-cat { margin: 0; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--an-mute); }
.an-info h4 { margin: 6px 0 8px; font: 500 30px/1.05 'Fraunces', Georgia, serif; letter-spacing: -0.015em; }
.an-price { margin: 0 0 14px; font: 600 18px 'Fraunces', Georgia, serif; }
.an-btn { display: inline-block; padding: 11px 20px; border-radius: 2px; background: var(--an-ink); color: #f4efe6; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.an-small { margin: 10px 0 0; font-size: 12px; color: var(--an-mute); }
.an-sec { margin: 0 28px; padding: 20px 0; border-top: 1px solid var(--an-line); }
.an-sec h5 { margin: 0 0 6px; font: 500 19px 'Fraunces', Georgia, serif; }
.an-sec p { margin: 0 0 6px; color: var(--an-mute); max-width: 52ch; }
.an-dims { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.an-dims span { padding: 10px 12px; border: 1px solid var(--an-line); border-radius: 4px; font-size: 12px; color: var(--an-mute); }
.an-dims b { display: block; font: 500 20px 'Fraunces', Georgia, serif; color: var(--an-ink); }
.an-key { color: var(--an-ink); font-weight: 600; }

/* re/me on the shop: it takes the shop's colours */
.an-dim { position: absolute; inset: 0; background: rgba(43, 33, 27, 0.32); opacity: 0; transition: opacity 0.6s; pointer-events: none; }
.an-wire { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.an-box { fill: rgba(194, 96, 63, 0.08); stroke: #c2603f; stroke-width: 2.2; stroke-dasharray: 6 5; opacity: 0; }
.an-path { fill: none; stroke: #c2603f; stroke-width: 1.8; stroke-dasharray: 4 6; stroke-linecap: round; opacity: 0; }
.an-badge { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: #c2603f; color: #fff; font: 700 11px/22px var(--f-body); text-align: center; box-shadow: 0 0 0 3px #f4efe6; opacity: 0; transform: scale(0.4); transition: opacity 0.3s, transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.6); }
.an-badge.on { opacity: 1; transform: none; }
.an-meter { position: absolute; left: 14px; top: 64px; padding: 8px 11px; border-radius: 10px; background: rgba(255, 255, 255, 0.92); box-shadow: 0 8px 22px -12px rgba(43, 33, 27, 0.45); font: 600 10.5px var(--f-body); letter-spacing: 0.06em; text-transform: uppercase; color: #7b6d62; opacity: 0; transition: opacity 0.4s; }
.an-meter.on { opacity: 1; }
.an-meter div { width: 120px; height: 5px; margin-top: 6px; border-radius: 5px; background: #eadfd1; overflow: hidden; }
.an-meter i { display: block; height: 100%; width: 0; background: #c2603f; transition: width 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.an-chips { position: absolute; inset: 0; pointer-events: none; }
.an-chip { position: absolute; padding: 5px 10px; border-radius: 999px; background: #2b211b; color: #f4efe6; font: 600 11px var(--f-body); white-space: nowrap; animation: chip 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
@keyframes chip { 0% { opacity: 0; transform: translateY(6px) scale(0.9); } 15% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
.an-launch { position: absolute; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 7px; padding: 9px 14px 9px 10px; border-radius: 999px; background: #fff; box-shadow: 0 10px 26px -10px rgba(43, 33, 27, 0.45); font: 700 13px var(--f-body); color: #2b211b; }
.an-launch .an-mark { width: 26px; height: 16px; color: #c2603f; }
.an-launch.pulse { animation: lpulse 1s ease-out 2; }
@keyframes lpulse { 0% { box-shadow: 0 0 0 0 rgba(194, 96, 63, 0.55), 0 10px 26px -10px rgba(43, 33, 27, 0.45); } 100% { box-shadow: 0 0 0 14px transparent, 0 10px 26px -10px rgba(43, 33, 27, 0.45); } }
.an-nudge { position: absolute; right: 16px; bottom: 64px; width: 250px; padding: 15px 16px; border-radius: 16px; background: #fff; box-shadow: 0 24px 50px -20px rgba(43, 33, 27, 0.5); color: #2b211b; opacity: 0; transform: translateY(14px) scale(0.94); transform-origin: 90% 100%; transition: opacity 0.35s, transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.25); pointer-events: none; }
.an-nudge.on { opacity: 1; transform: none; }
.an-nudge b { font-size: 14.5px; }
.an-nudge p { margin: 4px 0 10px; font-size: 12.5px; color: #7b6d62; }
.an-show { display: inline-block; padding: 8px 14px; border-radius: 999px; background: #c2603f; color: #fff; font: 700 12px var(--f-body); transition: transform 0.15s; }
.an-show.press { transform: scale(0.93); }
.an-guide { position: absolute; right: 16px; top: 16px; bottom: 16px; width: 270px; padding: 16px; border-radius: 22px; background: #fff; box-shadow: 0 30px 60px -24px rgba(43, 33, 27, 0.55); color: #2b211b; display: flex; flex-direction: column; opacity: 0; transform: translateX(46px); transition: opacity 0.45s, transform 0.7s cubic-bezier(0.2, 0.85, 0.2, 1); pointer-events: none; }
.an-guide.on { opacity: 1; transform: none; }
.an-guide .g-top { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 800 14px var(--f-body); }
.an-guide .g-top i { width: 24px; height: 14px; border-radius: 9px; border: 2px solid #c2603f; position: relative; }
.an-guide .g-top i::after { content: ''; position: absolute; right: 1px; top: 1px; width: 8px; height: 8px; border-radius: 50%; background: #c2603f; }
.an-guide .g-top em { margin-left: auto; font-weight: 500; font-style: normal; font-size: 12px; color: #7b6d62; }
.g-prog { display: flex; gap: 4px; margin-bottom: 16px; }
.g-prog i { flex: 1; height: 3px; border-radius: 3px; background: #eadfd1; }
.g-prog i.on { background: #c2603f; }
.an-guide .g-l { margin: 0; font: 500 10.5px var(--f-mono); letter-spacing: 0.1em; color: #c2603f; }
.an-guide .g-t { margin: 6px 0 8px; font: 500 23px/1.05 'Fraunces', Georgia, serif; }
.an-guide .g-x { margin: 0; font-size: 13px; line-height: 1.45; color: #7b6d62; }
.an-guide .g-key { display: flex; gap: 9px; align-items: center; margin: 16px 0 0; padding: 9px 11px; border-radius: 12px; background: #f4efe6; font-size: 12.5px; font-weight: 600; }
.an-guide .g-key i { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #c2603f; color: #fff; font: 700 11px var(--f-body); font-style: normal; }
.an-guide .g-next { margin-top: auto; align-self: flex-end; padding: 10px 18px; border-radius: 999px; background: #2b211b; color: #fff; font: 700 12px var(--f-body); }
.an-cursor { position: absolute; left: 0; top: 0; width: 22px; height: 28px; z-index: 5; pointer-events: none; will-change: transform; }
.an-cursor::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 30'%3E%3Cpath d='M3 2.5v21.2l5.3-5.1 3.4 7.7 3.6-1.6-3.3-7.5 7.4-.4z' fill='%23111' stroke='%23fff' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat 0 0 / contain; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.28)); transform-origin: 3px 3px; transition: transform 0.14s cubic-bezier(0.3, 0, 0.3, 1); }
.an-cursor.press::before { transform: scale(0.84); }
.an-cursor i { position: absolute; left: -15px; top: -15px; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #c2603f; background: rgba(194, 96, 63, 0.14); opacity: 0; }
.an-cursor i.go { animation: ripple 0.6s cubic-bezier(0.2, 0.8, 0.3, 1); }
@keyframes ripple { 0% { opacity: 0.9; transform: scale(0.3); } 100% { opacity: 0; transform: scale(1.4); } }

/* hero 3D stage */
.hero-3d { position: absolute; right: calc(var(--pad) - 16px); top: clamp(40px, 9vh, 120px); width: min(42vw, 640px); aspect-ratio: 16 / 9; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s 0.3s; }
.hero-3d.on { opacity: 1; }
.hero-3d canvas { width: 100% !important; height: 100% !important; display: block; }
.hero > *:not(.hero-3d) { position: relative; z-index: 1; }
@media (max-width: 1100px) {
  .hero-3d { position: relative; right: auto; top: auto; width: min(90vw, 460px); margin: 10px auto -30px; order: 2; }
}
@media (max-width: 860px) {
  .an-hero { grid-template-columns: 1fr; }
  .an-img { display: none; }
  .an-guide { width: 64%; }
  .an-nudge { width: 72%; }
  .an-dims { grid-template-columns: 1fr 1fr; }
  .an-head nav { display: none; }
}

/* ---------- proof ---------- */
.proof { padding: clamp(80px, 12vh, 150px) var(--pad); border-top: 1px solid var(--line-b); }
.proof-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 110px); align-items: center; }
.ticks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; font-size: 17px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; }
.ticks li::before { content: ''; flex: none; width: 18px; height: 10px; border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(-45deg) translateY(-3px); }
.impact { padding: clamp(22px, 3vw, 36px); border-radius: 28px; background: var(--navy); color: #fff; }
.imp-top { display: flex; justify-content: space-between; align-items: center; margin: 0 0 26px; }
.imp-top b { font: 800 22px var(--g); letter-spacing: -0.02em; }
.imp-top span { padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); font: 600 11px var(--f-body); letter-spacing: 0.1em; text-transform: uppercase; }
.imp-row { display: grid; grid-template-columns: 170px 1fr 64px; gap: 14px; align-items: center; padding: 12px 0; font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.imp-row div { height: 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.imp-row i { display: block; height: 100%; width: 0; border-radius: 14px; background: rgba(255, 255, 255, 0.45); transition: width 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s; }
.imp-row.on i { background: var(--blue); }
.impact.in .imp-row i { width: var(--w); }
.imp-row b { font: 800 22px var(--g); color: #fff; text-align: right; }
.imp-up { margin: 22px 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 15px; color: rgba(255, 255, 255, 0.75); }
.imp-up b { font: 900 46px var(--g); letter-spacing: -0.04em; color: #8fb0ff; margin-right: 8px; vertical-align: -6px; }
.imp-note { margin: 12px 0 0; font-size: 12px; color: rgba(255, 255, 255, 0.45); }

/* ---------- install ---------- */
.install { padding: clamp(80px, 12vh, 150px) var(--pad); background: var(--sky); }
.code-line { display: flex; align-items: center; gap: 16px; padding: 14px 14px 14px 22px; border-radius: 18px; background: var(--navy); color: #d9e4ff; overflow-x: auto; }
.code-line code { flex: 1; font: 14px var(--f-mono); white-space: nowrap; }
.code-line .pill { flex: none; height: 38px; background: var(--blue); border-color: var(--blue); color: #fff; }
.platforms { list-style: none; margin: clamp(30px, 5vw, 60px) 0; padding: 0; display: flex; flex-wrap: wrap; border-top: 1.5px solid var(--navy); }
.platforms li { flex: 1 1 33%; display: flex; align-items: baseline; gap: 10px; padding: 20px 0; border-bottom: 1.5px solid var(--navy); font: 850 clamp(26px, 3.4vw, 54px) / 1 var(--g); letter-spacing: -0.035em; }
.platforms li span { font: 600 12px var(--f-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }

/* ---------- pricing ---------- */
.pricing { padding: clamp(80px, 12vh, 150px) var(--pad); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan { display: flex; flex-direction: column; padding: 28px; border-radius: 28px; border: 1.5px solid var(--navy); }
.plan-n { margin: 0; font: 600 12.5px var(--f-body); letter-spacing: 0.14em; text-transform: uppercase; }
.plan-p { margin: 18px 0 6px; display: flex; align-items: baseline; gap: 8px; }
.plan-p b { font: 900 clamp(56px, 6vw, 92px) / 0.9 var(--g); letter-spacing: -0.05em; }
.plan-p span { color: #5d6890; }
.plan-l { margin: 0 0 20px; font-weight: 600; }
.plan ul { list-style: none; margin: 0 0 28px; padding: 18px 0 0; border-top: 1px solid var(--line-b); display: grid; gap: 10px; }
.plan li::before { content: '→ '; color: var(--blue); }
.plan .pill { margin-top: auto; align-self: flex-start; }
.plan-blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.plan-blue .plan-p span, .plan-blue li::before { color: rgba(255, 255, 255, 0.75); }
.plan-blue ul { border-color: rgba(255, 255, 255, 0.25); }
.plan-note { margin: 18px 0 0; color: #7a85a8; font-size: 14px; }

/* ---------- faq ---------- */
.faq { padding: clamp(80px, 12vh, 150px) var(--pad) clamp(120px, 18vh, 220px); border-top: 1px solid var(--line-b); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(30px, 6vw, 110px); }
/* the question mark: drawn in when it scrolls into view, then sways; the dot gets re/me's dashed highlight */
.qfig figcaption { white-space: nowrap; }
.faq-grid > div:first-child { align-self: start; justify-self: start; width: fit-content; max-width: 100%; }
/* the questions start a little lower, level with the heading's baseline area */
@media (min-width: 961px) { .faq-list { margin-top: 44px; } }
@media (min-width: 961px) { .faq-grid > div:first-child { position: sticky; top: 110px; } }
.qfig { margin: 40px auto 0; width: min(170px, 100%); }
.qfig svg { display: block; width: 100%; height: auto; overflow: visible; }
.qfig figcaption { text-align: center; margin-top: 4px; font: 12px var(--f-mono); color: #6b7699; letter-spacing: 0.02em; }
.q-hook { fill: none; stroke: var(--navy); stroke-width: 36; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.q-mark { transform-origin: 182px 250px; }
.q-dotwrap { transform-origin: 182px 303px; }
.q-dot { fill: var(--blue); transform-origin: 182px 282px; transform: scale(0); }
.q-frame { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-dasharray: 3 3; opacity: 0; transform-origin: 182px 282px; }
.q-pin { fill: var(--blue); stroke: #fff; stroke-width: 3; transform-origin: 140px 258px; transform: scale(0); }
.qfig.in .q-hook { animation: q-draw 1.3s cubic-bezier(0.6, 0, 0.2, 1) 0.2s forwards; }
.qfig.in .q-dot { animation: q-pop 0.6s cubic-bezier(0.2, 1.6, 0.4, 1) 1.25s forwards; }
.qfig.in .q-frame { animation: q-frame 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) 1.6s forwards, q-march 7s linear 2.3s infinite; }
.qfig.in .q-pin { animation: q-pop 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) 2.3s forwards; }
.qfig.in .q-mark { animation: q-sway 5.5s ease-in-out 2.4s infinite; }
.qfig.in .q-dotwrap { animation: q-bounce 2.2s cubic-bezier(0.3, 0, 0.3, 1) 2.6s infinite; }
@keyframes q-draw { to { stroke-dashoffset: 0; } }
@keyframes q-pop { to { transform: scale(1); } }
@keyframes q-frame { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: none; } }
@keyframes q-march { to { stroke-dashoffset: -100; } }
@keyframes q-sway { 0%, 100% { transform: rotate(0deg); } 30% { transform: rotate(-6deg); } 65% { transform: rotate(4deg); } }
@keyframes q-bounce { 0%, 55%, 100% { transform: none; } 20% { transform: translateY(-16px) scale(0.96, 1.05); } 40% { transform: scale(1.08, 0.9); } }
@media (max-width: 960px) { .qfig { width: min(130px, 40vw); } }
@media (prefers-reduced-motion: reduce) {
  .q-hook { stroke-dashoffset: 0; }
  .q-dot, .q-pin { transform: none; }
  .q-frame { opacity: 1; }
  .qfig.in * { animation: none !important; }
}
.faq-list { border-top: 1.5px solid var(--navy); }
.faq-list details { border-bottom: 1.5px solid var(--navy); }
.faq-list summary { list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; font: 750 clamp(19px, 1.7vw, 25px) / 1.2 var(--g); letter-spacing: -0.02em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; flex: none; font: 400 30px/0.8 var(--f-body); color: var(--blue); transition: transform 0.3s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { margin: 0 0 22px; max-width: 62ch; color: #34406a; line-height: 1.55; font-size: 17px; }

/* ---------- final + footer ---------- */
.final { padding: clamp(90px, 14vh, 170px) var(--pad); background: var(--blue); color: #fff; display: grid; gap: clamp(34px, 5vw, 60px); }
.final .giant { color: #fff; }
.urlbox-big { max-width: 720px; }
.final .urlbox { background: #fff; }
.foot { padding: 34px var(--pad) 0; background: var(--navy); color: #c7d3ff; overflow: hidden; }
.foot-top { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.foot-top nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-top a { color: #fff; font: 600 12.5px var(--f-body); letter-spacing: 0.09em; text-transform: uppercase; }
.foot-top p { margin: 0; }
.foot-word { margin: 30px 0 -0.16em; font: 900 clamp(110px, 31vw, 560px) / 0.8 var(--g); letter-spacing: -0.07em; color: var(--blue); white-space: nowrap; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .rescue-grid, .proof-grid, .faq-grid { grid-template-columns: 1fr; }
  .rescue-steps { grid-template-columns: repeat(3, 1fr); }
  .rescue-steps li { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero-row { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-b); }
  .rescue-steps { grid-template-columns: 1fr; }
  .plans, .s3-grid { grid-template-columns: 1fr; }
  .platforms li { flex-basis: 50%; }
  .imp-row { grid-template-columns: 1fr 54px; }
  .imp-row div { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 520px) {
  .nav-right .nav-link { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  [data-in] { opacity: 1; transform: none; transition: none; }
  .pre { display: none; }
}
/* ---------- live analysis result (carried over from the previous landing) ---------- */
.result {
  padding: 40px 0 80px;
}
.result-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.result-head h2 {
  max-width: 18ch;
  overflow-wrap: anywhere;
}
.result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.steps {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border-radius: var(--r-sm);
  padding: 16px 18px;
  font-size: 15px;
  color: var(--mute);
  transition: background 0.3s, color 0.3s;
}
.steps li .mono {
  font-size: 11px;
}
.steps li.active {
  color: var(--ink);
  background: var(--white);
}
.steps li.active::after {
  content: '';
  margin-left: auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  border-right-color: transparent;
  animation: spin 0.8s linear infinite;
}
.steps li.done {
  color: var(--ink);
  background: var(--white);
}
.steps li.done::after {
  content: '✓';
  margin-left: auto;
  color: var(--accent);
  font-weight: 700;
}
@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}
.result-error {
  background: #fff0ea;
  color: #a33a0b;
  border-radius: var(--r-sm);
  padding: 16px 20px;
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) 360px;
  gap: 12px;
  align-items: stretch;
}
/* left column fills the row height; the page map takes whatever is left, down to the bottom of the guide cards */
.r-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}
.r-map {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.r-map .r-sections {
  flex: 1 1 0;
  min-height: 220px;
  max-height: none;
}
.r-cards {
  align-self: stretch;
}
.r-card {
  padding: 24px;
  border-radius: var(--r-md);
}
.r-card > .mono {
  margin: 0 0 16px;
}
.r-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  min-height: 36px;
}
.r-brand img {
  max-height: 36px;
  max-width: 160px;
  object-fit: contain;
}
.r-brand .fav {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.r-brand b {
  font-size: 17px;
  overflow-wrap: anywhere;
}
.swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.sw {
  display: grid;
  gap: 6px;
  font: 11px var(--f-mono);
  color: var(--mute);
}
.sw i {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.r-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin: 0;
  font-size: 14px;
}
.r-facts dt {
  color: var(--mute);
}
.r-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.r-sections {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  max-height: 300px;
  overflow: auto;
  font-size: 14px;
}
.r-sections li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.r-sections li .mono {
  font-size: 10px;
  color: var(--mute);
  flex: none;
  width: 22px;
}
.r-sections li.sub {
  padding-left: 18px;
  color: var(--mute);
}
.r-sections li.pick {
  color: var(--ink);
  font-weight: 600;
}
.r-sections li.pick::after {
  content: 'karta';
  margin-left: auto;
  font: 500 10px/1 var(--f-mono);
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 6px;
  border-radius: 6px;
  flex: none;
}
.r-summary {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--ink-2);
}
.r-cardlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.r-cardlist li {
  background: var(--white);
  border-radius: 18px;
  padding: 16px 18px;
  animation: rise 0.4s ease both;
}
.r-cardlist li .mono {
  font-size: 10px;
  color: var(--mute);
  display: flex;
  justify-content: space-between;
}
.r-cardlist li b {
  display: block;
  font: 500 19px/1.2 'Fraunces', Georgia, serif;
  margin: 6px 0 4px;
}
.r-cardlist li p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
.r-phone {
  position: sticky;
  top: 88px;
  align-self: start;
}
.phone {
  position: relative;
  width: 360px;
  height: 720px;
  border-radius: 48px;
  border: 10px solid var(--ink);
  background: var(--ink);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(7, 6, 7, 0.4);
}
.phone iframe {
  border: 0;
  width: 100%;
  height: 100%;
  border-radius: 38px;
  background: #fff;
}
.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  translate: -50% 0;
  width: 96px;
  height: 26px;
  border-radius: 20px;
  background: var(--ink);
  z-index: 2;
}
.r-phone-note {
  text-align: center;
  font-size: 11px;
  margin-top: 12px;
}
@media (max-width: 1200px) {
  .result-grid {
    grid-template-columns: 1fr 1fr;
  }
  .r-phone {
    grid-column: 1 / -1;
    position: static;
    display: grid;
    justify-items: center;
  }
}
@media (max-width: 760px) {
  .result-grid {
    grid-template-columns: 1fr;
  }
  .r-map .r-sections {
    flex: none;
    max-height: 320px;
  }
}
@media (max-width: 400px) {
  .phone {
    width: 100%;
    height: 640px;
  }
}


/* desktop hero in two columns: the headline on the left, the 3D word on the right */
@media (min-width: 1101px) {
  .hero .giant { font-size: clamp(56px, min(11.6vw, 21vh), 220px); }
}

/* ---------- phones ---------- */
@media (max-width: 1100px) {
  .hero > .hero-row { order: 3; }
  .hero-3d { order: 2; width: 100%; max-width: 560px; margin: 8px auto 0; }
}
@media (max-width: 860px) {
  /* hero on a phone: no full-screen height, so the kicker starts right under the nav;
     the 3D word comes after the intro text and before the address box */
  .hero { min-height: 0; justify-content: flex-start; padding-top: 22px; }
  .hero > .hero-row { display: contents; }
  .hero .manifesto { order: 3; margin-top: 22px; }
  .hero-3d { order: 4; margin: -18px auto -10px; }
  .hero .hero-act { order: 5; }
  .code-line { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px; }
  .code-line code { white-space: normal; word-break: break-all; font-size: 12.5px; line-height: 1.5; }
  .code-line .pill { align-self: flex-start; }
  /* the demo first: steps become compact, only the current one explains itself */
  .rescue-steps { gap: 6px; }
  .rescue-steps li { padding: 12px 14px 16px; grid-template-columns: 34px 1fr; gap: 12px; }
  .rescue-steps li > span { width: 34px; height: 34px; font-size: 13px; }
  .rescue-steps b { font-size: 20px; }
  .rescue-steps li:not(.on) p { display: none; }
  .rescue-steps em { left: 60px; bottom: 7px; }
  .rescue-grid { gap: 20px; }
  .b-page { height: 460px; }
}

/* the platform rows fade in place: a rising row would drag its rule lines along */

/* the guide line, drawn by /js/guides.js: a dotted path runs
   from the word down to "they couldn't find it". Desktop only, behind all text. */
.guides { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; overflow: visible; opacity: 0; transition: opacity 1.2s ease 1.6s; }
.guides.on { opacity: 1; }
.guides .g-dots { fill: none; stroke: var(--blue); stroke-width: 4.5; stroke-linecap: round; stroke-dasharray: 0 11; animation: g-flow 0.9s linear infinite; }
.guides .g-head { fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.guides .g-node { fill: #fff; stroke: var(--blue); stroke-width: 2.4; }
.guides text { font: 500 11px var(--f-mono); letter-spacing: 0.08em; fill: #7a85a8; }
@keyframes g-flow { to { stroke-dashoffset: -11; } } /* the dots walk toward the answer */
@media (max-width: 1100px) { .guides { display: none; } }
@media (prefers-reduced-motion: reduce) { .guides .g-dots, 