/* Loopsaw — loopsaw.app
   One stylesheet for every page. System rounded fonts (SF Pro Rounded on Apple
   devices), no web fonts, no trackers. */

:root {
  --ink: #231a4a;
  --ink-2: #6e6890;
  --ink-3: #9a94b8;
  --purple: #6b4eff;
  --purple-deep: #3f25b8;
  --purple-night: #1c1446;
  --pink: #e0488f;
  --orange: #f08a24;
  --gold: #ffc531;
  --gold-deep: #e29a0c;
  --green: #2fc46b;
  --sky: #3f9bf2;
  --teal: #2fa08f;
  --panel: #ffffff;
  --panel-edge: #e7e1ff;
  --paper: #f7f4ff;
  --radius: 28px;
  --wrap: 1160px;
  /* Safari uses the native SF Pro Rounded; other browsers load Nunito. */
  --font: ui-rounded, "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hero: linear-gradient(165deg, #2a1d6e 0%, #5a3ad8 38%, #a453d6 70%, #f07aa6 100%);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--purple); text-decoration-thickness: 2px; text-underline-offset: 3px; }

h1, h2, h3 { font-weight: 900; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }

p { margin: 0; }

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

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 12px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 10px; }

/* ───────── Header ───────── */

.top {
  position: sticky; top: 0; z-index: 50;
  transition: background .25s, box-shadow .25s, backdrop-filter .25s;
}
.top.scrolled, .top.solid {
  background: rgba(28, 20, 70, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 6px 24px rgba(20, 10, 60, .25);
}
.top .wrap { display: flex; align-items: center; gap: 18px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.brand span { font-size: 24px; font-weight: 900; letter-spacing: -0.01em; text-shadow: 0 2px 0 rgba(63,37,184,.6); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  color: rgba(255,255,255,.88); text-decoration: none; font-weight: 800; font-size: 15px;
  padding: 8px 12px; border-radius: 12px;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.12); }
.nav .btn { margin-left: 8px; }

.menu-toggle {
  display: none; margin-left: auto; background: rgba(255,255,255,.14); border: 0; color: #fff;
  width: 44px; height: 44px; border-radius: 14px; font-size: 22px; cursor: pointer;
}

/* ───────── Buttons ───────── */

.btn {
  --top: #54dd86; --bottom: #23b45c; --edge: #167a3d;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-weight: 900; font-size: 18px; color: #fff; text-decoration: none;
  padding: 14px 26px; border: 0; border-radius: 20px; cursor: pointer;
  background: linear-gradient(var(--top), var(--bottom));
  box-shadow: 0 6px 0 var(--edge), 0 14px 28px rgba(20, 10, 60, .28), inset 0 2px 0 rgba(255,255,255,.35);
  text-shadow: 0 1.5px 0 rgba(0,0,0,.18);
  transition: transform .12s, box-shadow .12s, filter .12s;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--edge), 0 6px 14px rgba(20,10,60,.25), inset 0 2px 0 rgba(255,255,255,.35); }
.btn.small { font-size: 15px; padding: 9px 16px; border-radius: 14px; box-shadow: 0 4px 0 var(--edge), inset 0 2px 0 rgba(255,255,255,.35); }
.btn.small:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); }
.btn.plain { --top: #ffffff; --bottom: #f1eeff; --edge: #c9c0f0; color: var(--purple-deep); text-shadow: none; }
.btn.warm { --top: #ffb54d; --bottom: #f5861e; --edge: #bf5a08; }
.btn.hot { --top: #ff7ab0; --bottom: #e5488f; --edge: #a82462; }
.btn.sky { --top: #6cc2ff; --bottom: #3f9bf2; --edge: #1d69b8; }
.btn .ico { width: 22px; height: 22px; }

/* ───────── Hero ───────── */

.hero {
  position: relative; isolation: isolate; color: #fff;
  background: var(--hero);
  margin-top: -72px; padding: 132px 0 120px;
  overflow: hidden;
}
.hero::after { /* soft curve into the page */
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -1px; height: 90px; z-index: 1;
  background: var(--paper); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 900; font-size: 14px;
  padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.16);
  border: 1.5px solid rgba(255,255,255,.35); letter-spacing: .02em;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }

.hero h1 {
  font-size: clamp(44px, 6.4vw, 82px); margin: 22px 0 20px;
  text-shadow: 3px 0 0 var(--purple-deep), -3px 0 0 var(--purple-deep), 0 3px 0 var(--purple-deep), 0 -3px 0 var(--purple-deep),
               0 7px 0 rgba(63,37,184,.65), 0 18px 40px rgba(20,8,60,.35);
}
.hero h1 em { font-style: normal; color: #ffe27a; }
.hero .lede { font-size: clamp(18px, 1.9vw, 21px); max-width: 34ch; color: rgba(255,255,255,.94); font-weight: 700; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 16px; margin: 32px 0 26px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 800; color: rgba(255,255,255,.9); font-size: 15px; list-style: none; padding: 0; margin: 0; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 18px; height: 18px; border-radius: 6px; background: rgba(255,255,255,.22) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }

.stage { position: relative; justify-self: center; width: min(310px, 74vw); }
.stage .phone { transform: rotate(3deg); }
.stage .glow { position: absolute; inset: 8% -18% -6%; z-index: -1; background: radial-gradient(closest-side, rgba(255,226,122,.5), transparent); filter: blur(10px); }

.combo {
  position: absolute; z-index: 3; pointer-events: none;
  font-weight: 900; font-size: 34px; color: #ffe27a; letter-spacing: -0.01em;
  text-shadow: 2.5px 0 0 #c2410c, -2.5px 0 0 #c2410c, 0 2.5px 0 #c2410c, 0 -2.5px 0 #c2410c, 0 6px 0 rgba(150,40,10,.6);
  opacity: 0; transform: scale(.4) rotate(-8deg);
}
.combo small { display: block; font-size: 20px; color: #fff; text-align: center; text-shadow: 0 2px 0 rgba(63,37,184,.8), 0 0 12px rgba(107,78,255,.8); }
.combo.pop { animation: pop 1.9s cubic-bezier(.2,1.4,.4,1) forwards; }
@keyframes pop {
  0% { opacity: 0; transform: scale(.4) rotate(-8deg); }
  14% { opacity: 1; transform: scale(1.12) rotate(-4deg); }
  24% { transform: scale(1) rotate(-4deg); }
  78% { opacity: 1; transform: translateY(-16px) scale(1) rotate(-4deg); }
  100% { opacity: 0; transform: translateY(-34px) scale(.92) rotate(-4deg); }
}

/* Drifting puzzle pieces behind the hero */
.pieces { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.pieces svg { position: absolute; opacity: .16; animation: drift 18s ease-in-out infinite alternate; }
.pieces svg:nth-child(2n) { animation-duration: 23s; animation-direction: alternate-reverse; }
.pieces svg:nth-child(3n) { animation-duration: 27s; }
@keyframes drift {
  from { transform: translate(0, 0) rotate(var(--r, 0deg)); }
  to { transform: translate(30px, -40px) rotate(calc(var(--r, 0deg) + 24deg)); }
}

/* ───────── Device frames ───────── */

.phone {
  position: relative; border-radius: 52px; padding: 11px;
  background: linear-gradient(145deg, #2b2450, #120d2a 60%);
  box-shadow: 0 0 0 2px rgba(255,255,255,.12) inset, 0 30px 60px rgba(20,8,60,.45), 0 10px 20px rgba(20,8,60,.3);
}
.phone > img, .phone > video { width: 100%; aspect-ratio: 1206 / 2622; object-fit: cover; border-radius: 42px; background: #2a1f5c; }
.phone.sm { border-radius: 38px; padding: 8px; }
.phone.sm > img { border-radius: 31px; }

.tablet {
  border-radius: 34px; padding: 14px;
  background: linear-gradient(145deg, #2b2450, #120d2a 60%);
  box-shadow: 0 0 0 2px rgba(255,255,255,.12) inset, 0 40px 80px rgba(20,8,60,.35), 0 12px 24px rgba(20,8,60,.25);
}
.tablet > img { width: 100%; aspect-ratio: 2732 / 2048; object-fit: cover; border-radius: 22px; }

/* ───────── Sections ───────── */

section { padding: 96px 0; position: relative; }
.eyebrow { display: inline-block; font-weight: 900; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--purple); margin-bottom: 14px; }
.title { font-size: clamp(34px, 4.4vw, 54px); margin-bottom: 18px; }
.sub { font-size: 19px; color: var(--ink-2); max-width: 60ch; font-weight: 650; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }

.card {
  background: var(--panel); border-radius: var(--radius); border: 3px solid var(--panel-edge);
  box-shadow: 0 6px 0 var(--panel-edge), 0 22px 44px rgba(35, 26, 74, .10);
}

/* How it plays */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; counter-reset: step; }
.step { padding: 30px 28px 32px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; left: 26px; width: 40px; height: 40px; border-radius: 14px;
  display: grid; place-items: center; font-weight: 900; color: #fff; font-size: 20px;
  background: linear-gradient(#8a70ff, #6040f2); box-shadow: 0 4px 0 #3f25b8;
}
.step .art { height: 150px; border-radius: 20px; margin-bottom: 22px; overflow: hidden; position: relative; background: #2a1f5c; }
.step .art img { width: 100%; height: 100%; object-fit: cover; }
.step h3 { font-size: 24px; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 16.5px; }

/* "Alive" piece demo: one picture cut into living tiles that drift out of time */
.slices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 10px; height: 100%; }
.slices span { border-radius: 10px; background-image: var(--img); background-size: 300% 300%; animation: breathe 3.4s ease-in-out infinite; }
.slices span:nth-child(1) { background-position: 0 0; } .slices span:nth-child(2) { background-position: 50% 0; animation-delay: -.7s; }
.slices span:nth-child(3) { background-position: 100% 0; animation-delay: -1.4s; } .slices span:nth-child(4) { background-position: 0 50%; animation-delay: -2.1s; }
.slices span:nth-child(5) { background-position: 50% 50%; animation-delay: -2.8s; } .slices span:nth-child(6) { background-position: 100% 50%; animation-delay: -.35s; }
.slices span:nth-child(7) { background-position: 0 100%; animation-delay: -1.05s; } .slices span:nth-child(8) { background-position: 50% 100%; animation-delay: -1.75s; }
.slices span:nth-child(9) { background-position: 100% 100%; animation-delay: -2.45s; }
@keyframes breathe { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-4px) scale(1.03); } }

/* Worlds marquee */
.worlds { background: var(--purple-night); color: #fff; overflow: hidden; }
.worlds .sub { color: rgba(255,255,255,.78); }
.worlds .eyebrow { color: #ffe27a; }
.marquee { margin-top: 48px; display: flex; gap: 18px; width: max-content; animation: scroll 70s linear infinite; }
.marquee:hover { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(calc(-50% - 9px)); } }
.world { width: 210px; flex: none; position: relative; border-radius: 26px; overflow: hidden; box-shadow: 0 16px 34px rgba(0,0,0,.35); border: 3px solid rgba(255,255,255,.14); }
.world img { width: 100%; aspect-ratio: 480 / 748; object-fit: cover; }
.world figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 14px;
  background: linear-gradient(transparent, rgba(16, 10, 44, .82)); font-weight: 900; font-size: 17px;
}
.world figcaption small { display: block; font-size: 12px; font-weight: 800; color: #ffe27a; letter-spacing: .06em; text-transform: uppercase; }
.world .tag { position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 900; letter-spacing: .06em; padding: 4px 9px; border-radius: 999px; background: var(--orange); color: #fff; }

/* Modes */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.mode { padding: 26px; display: grid; grid-template-columns: 58px 1fr; gap: 16px; align-items: start; }
.mode .chip {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(var(--a), var(--b)); box-shadow: 0 4px 0 var(--c), inset 0 2px 0 rgba(255,255,255,.35); border: 3px solid #fff;
}
.mode .chip svg { width: 26px; height: 26px; }
.mode h3 { font-size: 21px; margin: 4px 0 4px; }
.mode p { color: var(--ink-2); font-size: 15.5px; }

.showcase { display: flex; justify-content: center; align-items: flex-end; gap: 28px; margin-top: 64px; }
.showcase .phone { width: 250px; }
.showcase .phone:nth-child(2) { width: 290px; transform: translateY(-24px); }
.showcase .phone:nth-child(1) { transform: rotate(-4deg); }
.showcase .phone:nth-child(3) { transform: rotate(4deg); }

/* Twists */
.twists { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; }
.twist { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 20px; background: #fff; border: 3px solid var(--panel-edge); flex: 1 1 240px; max-width: 272px; text-align: left; }
.twist b { display: block; font-size: 17px; font-weight: 900; }
.twist span { font-size: 14px; color: var(--ink-2); line-height: 1.4; display: block; }
.twist .badge { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--c); }
.twist .badge svg { width: 24px; height: 24px; }

/* Split feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.flip .copy { order: 2; }
.list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.list li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; font-size: 17px; color: var(--ink-2); }
.list li b { color: var(--ink); font-weight: 900; }
.list .tick { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--c, var(--purple)); color: #fff; font-weight: 900; font-size: 16px; }

.events { background: linear-gradient(180deg, var(--paper), #efe9ff); }
.calendar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 28px; }
.cal { border-radius: 18px; overflow: hidden; position: relative; aspect-ratio: 3 / 4; box-shadow: 0 10px 22px rgba(35,26,74,.18); }
.cal img { width: 100%; height: 100%; object-fit: cover; }
.cal span { position: absolute; inset: auto 0 0; padding: 22px 8px 8px; font-size: 12.5px; font-weight: 900; color: #fff; background: linear-gradient(transparent, rgba(16,10,44,.85)); line-height: 1.2; }
.cal span small { display: block; font-size: 11px; font-weight: 800; color: #ffe27a; }

.duo { display: flex; gap: 22px; justify-content: center; align-items: flex-end; }
.duo .phone { width: 260px; }
.duo .phone:last-child { transform: translateY(40px) rotate(3deg); }
.duo .phone:first-child { transform: rotate(-3deg); }

.prizes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.prize { padding: 10px 14px; border-radius: 16px; background: #fff; border: 2.5px solid var(--panel-edge); font-weight: 900; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.prize i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); display: inline-block; box-shadow: 0 2px 0 rgba(0,0,0,.15); }
.prize em { font-style: normal; color: var(--gold-deep); }

/* iPad */
.ipad { background: var(--purple-night); color: #fff; overflow: hidden; }
.ipad .sub { color: rgba(255,255,255,.8); }
.ipad .eyebrow { color: #ffe27a; }
.ipad .tablet { margin: 52px auto 0; max-width: 940px; }
.ipad-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 40px auto 0; max-width: 940px; }
.ipad-notes div { padding: 20px 22px; border-radius: 22px; background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.14); }
.ipad-notes b { display: block; font-size: 18px; margin-bottom: 4px; }
.ipad-notes span { color: rgba(255,255,255,.78); font-size: 15px; }

/* Generated band */
.made { text-align: center; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.stat { padding: 26px 18px; }
.stat b { display: block; font-size: 46px; font-weight: 900; color: var(--purple); line-height: 1; margin-bottom: 8px; }
.stat span { color: var(--ink-2); font-size: 15px; font-weight: 750; }

/* FAQ */
.faq { max-width: 820px; margin: 44px auto 0; display: grid; gap: 14px; }
details { background: #fff; border-radius: 22px; border: 3px solid var(--panel-edge); padding: 0 22px; transition: box-shadow .2s; }
details[open] { box-shadow: 0 14px 30px rgba(35,26,74,.08); }
summary { cursor: pointer; list-style: none; font-weight: 900; font-size: 18px; padding: 18px 34px 18px 0; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 10px; background: var(--paper); display: grid; place-items: center; color: var(--purple); font-size: 20px; transition: transform .2s; }
details[open] summary::after { content: "–"; }
details p, details ul { color: var(--ink-2); padding-bottom: 20px; font-size: 16.5px; }
details ul { margin: 0; padding-left: 20px; }

/* Final CTA */
.final { padding: 40px 0 110px; }
.final .card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 34px 40px;
  background: var(--hero); color: #fff; border-color: rgba(255,255,255,.25); box-shadow: 0 6px 0 #3f25b8, 0 30px 60px rgba(63,37,184,.3);
}
.final img { width: 92px; height: 92px; border-radius: 22px; box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.final h2 { font-size: clamp(28px, 3.4vw, 40px); text-shadow: 0 3px 0 rgba(63,37,184,.6); }
.final p { color: rgba(255,255,255,.9); font-size: 17px; margin-top: 6px; }

/* Footer */
footer { background: var(--purple-night); color: rgba(255,255,255,.75); padding: 54px 0 40px; font-size: 15px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
footer .brand span { font-size: 22px; }
footer p { margin-top: 12px; max-width: 34ch; }
footer h4 { color: #fff; margin: 4px 0 12px; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer a { color: rgba(255,255,255,.85); text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; margin-top: 10px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13.5px; color: rgba(255,255,255,.6); }

/* ───────── Document pages (privacy, terms, support) ───────── */

.page-hero { background: var(--hero); color: #fff; margin-top: -72px; padding: 132px 0 84px; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -1px; height: 60px; background: var(--paper); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.page-hero h1 { font-size: clamp(38px, 5vw, 58px); text-shadow: 0 4px 0 rgba(63,37,184,.65); }
.page-hero p { margin-top: 12px; font-size: 18px; color: rgba(255,255,255,.9); font-weight: 700; }

.doc { padding: 40px 0 100px; }
.doc .card { max-width: 860px; margin: 0 auto; padding: 44px 48px; }
.doc h2 { font-size: 26px; margin: 38px 0 12px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 19px; margin: 22px 0 8px; }
.doc p, .doc li { color: #463e6e; font-size: 16.5px; font-weight: 600; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 10px 0 0; display: grid; gap: 8px; }
.doc .short { background: var(--paper); border: 2.5px solid var(--panel-edge); border-radius: 20px; padding: 18px 22px; margin-bottom: 8px; }
.doc .short p { color: var(--ink); }
.doc table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 2px solid var(--panel-edge); color: #463e6e; }
.doc th { color: var(--ink); font-weight: 900; }
.doc .meta { color: var(--ink-3); font-size: 14px; font-weight: 800; margin-bottom: 22px; }

.contact-card { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; padding: 26px 30px; margin: 0 auto 26px; max-width: 860px; }
.contact-card b { font-size: 20px; display: block; }
.contact-card span { color: var(--ink-2); }

/* Challenge + 404 */
.link-hero { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; color: #fff; background: var(--hero); padding: 110px 20px 60px; margin-top: -72px; position: relative; overflow: hidden; }
.link-hero .inner { position: relative; z-index: 2; max-width: 520px; }
.link-hero .icon { width: 108px; height: 108px; border-radius: 26px; margin: 0 auto 24px; box-shadow: 0 18px 40px rgba(20,8,60,.4); }
.link-hero h1 { font-size: clamp(36px, 7vw, 54px); text-shadow: 0 4px 0 rgba(63,37,184,.7); }
.link-hero p { margin: 14px auto 0; font-size: 18px; color: rgba(255,255,255,.92); font-weight: 700; }
.link-hero .stack { display: grid; gap: 16px; margin: 30px auto 0; max-width: 340px; }
.score-card { margin: 24px auto 0; display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.score-card span { background: rgba(255,255,255,.95); color: var(--ink); font-weight: 900; padding: 8px 14px; border-radius: 14px; box-shadow: 0 4px 0 rgba(63,37,184,.35); font-size: 15px; }
.link-hero .fine { font-size: 14px; color: rgba(255,255,255,.75); margin-top: 22px; }

/* ───────── Reveal on scroll ───────── */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ───────── Responsive ───────── */

@media (max-width: 980px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .hero { padding: 116px 0 110px; }
  .hero .copy { text-align: center; }
  .hero .lede { margin-inline: auto; }
  .hero .ctas, .facts { justify-content: center; }
  .split.flip .copy { order: 0; }
  .steps, .modes { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .calendar { grid-template-columns: repeat(5, 1fr); }
  .final .card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
  footer .wrap > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: 72px; left: 12px; right: 12px; flex-direction: column; align-items: stretch;
         background: rgba(28,20,70,.97); padding: 12px; border-radius: 22px; box-shadow: 0 20px 40px rgba(0,0,0,.35); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 17px; }
  .nav .btn { margin: 6px 0 0; }
  .menu-toggle { display: grid; place-items: center; }
  section { padding: 72px 0; }
  .steps, .modes, .ipad-notes { grid-template-columns: 1fr; }
  .steps { gap: 34px; }
  .showcase { gap: 12px; }
  .showcase .phone { width: 31%; }
  .showcase .phone:nth-child(2) { width: 36%; }
  .phone.sm { border-radius: 24px; padding: 5px; }
  .phone.sm > img { border-radius: 20px; }
  .calendar { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: -20px; padding-inline: 20px; scrollbar-width: none; }
  .calendar::-webkit-scrollbar { display: none; }
  .cal { flex: 0 0 31%; scroll-snap-align: start; }
  .duo .phone { width: 46%; }
  .doc .card { padding: 28px 22px; }
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc thead { display: none; }
  .doc td { border: 0; padding: 4px 0; }
  .doc tr { border-bottom: 2px solid var(--panel-edge); padding: 10px 0; }
  .doc td:first-child { font-weight: 900; color: var(--ink); }
  footer .wrap { grid-template-columns: 1fr; }
  .tablet { padding: 7px; border-radius: 18px; }
  .tablet > img { border-radius: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee, .pieces svg, .slices span { animation: none; }
  .marquee { width: auto; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 12px; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .combo { display: none; }
}
