/* WordLord landing page. Brand palette mirrors the app (lib/core/theme). */
:root {
  --ink: #16324a;
  --ink-deep: #0d2133;
  --ink-soft: #24496a;
  --lagoon: #2b8fb3;
  --lagoon-deep: #1c6685;
  --lagoon-light: #8fd0e8;
  --mist: #f2f8fa;
  --tint: #e6f2f7;
  --sun: #ffc94d;
  --sun-deep: #f2b01e;
  --coral: #f2726b;
  --green: #2fa57a;
  --white: #fff;
  --text: #16324a;
  --muted: #4c6478;
  --line: #d6e5ec;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(13, 33, 51, .06), 0 8px 24px rgba(13, 33, 51, .08);
  --shadow-lg: 0 30px 80px rgba(5, 15, 25, .45);
  --display: 'Nunito', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 20px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 17px/1.6 var(--body);
  color: var(--text);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--lagoon-deep); }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
button { font: inherit; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--sun); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  font: 700 16px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-sun { background: var(--sun); color: var(--ink); box-shadow: 0 6px 18px rgba(255, 201, 77, .35); }
.btn-sun:hover { background: #ffd56e; }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; opacity: .9; }
.btn-ghost:hover { opacity: 1; background: rgba(255, 255, 255, .06); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 33, 51, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font: 800 21px/1 var(--display); letter-spacing: -.01em; }
.brand img { border-radius: 9px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: rgba(255, 255, 255, .78); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--white); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(43, 143, 179, .45), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(43, 143, 179, .22), transparent 60%),
    linear-gradient(180deg, var(--ink-deep), var(--ink) 70%);
  padding: 64px 0 88px;
}
.hero-tiles {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12);
  font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .9);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(255, 201, 77, .2); }
.hero h1 { font-size: clamp(34px, 5.6vw, 66px); font-weight: 900; margin: 22px 0 18px; text-wrap: balance; }
.hero h1 .hl { display: block; color: var(--sun); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: rgba(255, 255, 255, .8); max-width: 34em; }

.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.store-row.center { justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 58px; padding: 10px 22px 10px 18px; border-radius: 14px;
  text-decoration: none; color: var(--ink); background: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.store:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, .3); }
.store svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store-play svg { fill: var(--green); }
.store span { display: flex; flex-direction: column; font: 800 19px/1.1 var(--display); }
.store small { font: 500 12px/1.2 var(--body); opacity: .7; }
.store-ios { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.store-ios:hover { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
.store-ios[aria-disabled="true"] { cursor: default; }
.store-ios[aria-disabled="true"]:hover { transform: none; }

.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 26px 0 0; font-size: 15px; color: rgba(255, 255, 255, .78); }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 18px; height: 18px; fill: var(--sun); }

/* Phone mockup (mirrors the in-game screen) */
.hero-phone { display: flex; justify-content: center; }
.phone {
  position: relative; width: 320px; aspect-ratio: 9 / 19; padding: 12px;
  border-radius: 46px; background: #0a1622;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, .08);
  transform: rotate(2deg);
}
.phone-notch { position: absolute; top: 20px; left: 50%; width: 92px; height: 24px; margin-left: -46px; border-radius: 20px; background: #0a1622; z-index: 3; }
.screen {
  position: relative; height: 100%; overflow: hidden; border-radius: 36px;
  background: var(--mist); color: var(--ink);
  display: flex; flex-direction: column; padding: 46px 14px 16px;
  font-family: var(--display);
}
.m-bar { display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.m-bar b { font-weight: 800; }
.m-pause { width: 10px; height: 12px; border-left: 3px solid var(--ink); border-right: 3px solid var(--ink); }
.m-players { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.m-player {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 6px 6px; border-radius: 12px; background: var(--white);
  border: 1px solid var(--line); transition: background-color .3s, border-color .3s;
}
.m-player.is-turn.is-you { background: rgba(0, 114, 178, .12); border: 2px solid #0072b2; padding: 7px 5px 5px; }
.m-player.is-turn.is-cpu { background: rgba(230, 159, 0, .14); border: 2px solid #e69f00; padding: 7px 5px 5px; }
.m-av { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; font-size: 17px; background: rgba(0, 114, 178, .14); border: 2px solid #0072b2; line-height: 1; }
.is-cpu .m-av { background: rgba(230, 159, 0, .16); border-color: #e69f00; }
.m-name { font-size: 11px; font-weight: 700; }
.m-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.m-meta b { font-weight: 800; }
.m-heart { width: 10px; height: 9px; background: var(--coral); clip-path: path('M5 9 L0.6 4.4 A2.6 2.6 0 0 1 5 1.4 A2.6 2.6 0 0 1 9.4 4.4 Z'); }
.m-status { display: flex; align-items: center; justify-content: space-between; margin: 12px 2px 4px; }
.m-turn { font-size: 16px; font-weight: 800; white-space: nowrap; }
.m-timer { width: 46px; height: 46px; }
.m-timer circle { fill: none; stroke-width: 4.5; }
.m-timer-bg { stroke: rgba(47, 165, 122, .18); }
.m-timer-fg { stroke: var(--green); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; stroke-dasharray: 113.1; stroke-dashoffset: 0; }
.m-timer-num { font: 900 14px var(--display); fill: var(--green); }
.m-ladder {
  position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 16px 6px; overflow: hidden;
}
.m-ladder::before, .m-ladder::after { content: ''; position: absolute; top: 0; bottom: 6px; width: 4px; border-radius: 4px; background: rgba(43, 143, 179, .3); }
.m-ladder::before { left: 4px; }
.m-ladder::after { right: 4px; }
.m-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.m-row {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 32px; padding: 0 10px 0 calc(10px + .5em); border-radius: 10px;
  background: var(--white); border: 1.5px solid var(--line);
  font-weight: 900; font-size: 15px; letter-spacing: .5em;
  animation: rowIn .35s ease both;
}
.m-row .tag { position: absolute; left: 10px; font-size: 8px; letter-spacing: .08em; font-weight: 800; color: #6b7f8f; }
.m-row .who { position: absolute; left: 8px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; letter-spacing: 0; border: 1.5px solid #0072b2; background: rgba(0, 114, 178, .14); }
.m-row.by-cpu { border-color: #e69f00; background: #fbf3df; }
.m-row.by-cpu .who { border-color: #e69f00; background: rgba(230, 159, 0, .18); }
.m-row.by-you { border-color: #9ccbe6; }
@keyframes rowIn { from { opacity: 0; transform: translateY(10px); } }
.m-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; perspective: 400px; }
.m-tile {
  aspect-ratio: 1 / 1.05; display: grid; place-items: center; border-radius: 12px;
  background: var(--white); border: 2.5px solid var(--lagoon);
  box-shadow: 0 4px 0 #a9d3e3; font-size: 32px; font-weight: 900;
  transition: background-color .2s, border-color .2s;
}
.m-tile.is-active { background: var(--sun); border-color: var(--sun-deep); box-shadow: 0 4px 0 #d79a10; }
.m-tile.flip { animation: flip .45s ease; }
@keyframes flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }
.m-hint { text-align: center; font: 500 11px var(--body); color: #5e7385; margin-top: 10px; }
.m-pop {
  position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%);
  font-weight: 900; font-size: 22px; color: var(--green); opacity: 0; pointer-events: none;
}
.m-pop.show { animation: pop 1s ease; }
@keyframes pop { 0% { opacity: 0; transform: translate(-50%, 10px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -40px); } }

/* Sections */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.section-ink { background: linear-gradient(180deg, var(--ink), var(--ink-deep)); color: var(--white); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head.left { text-align: left; margin: 0; }
.kicker { font: 700 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--lagoon); margin-bottom: 14px; }
.section-ink .kicker { color: var(--sun); }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 900; }
.section-head p:not(.kicker) { margin-top: 16px; font-size: 18px; color: var(--muted); }
.section-ink .section-head p:not(.kicker) { color: rgba(255, 255, 255, .75); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.step h3 { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; margin: 22px 0 8px; }
.step p { color: var(--muted); font-size: 16px; }
.n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--white); font-size: 14px; }
.step-demo { height: 88px; display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--mist); border-radius: var(--radius-sm); }
.t { width: 34px; height: 38px; display: grid; place-items: center; border-radius: 8px; background: var(--white); border: 2px solid var(--lagoon); box-shadow: 0 3px 0 #a9d3e3; font: 900 19px var(--display); }
.t-sun { background: var(--sun); border-color: var(--sun-deep); box-shadow: 0 3px 0 #d79a10; }
.arrow { color: var(--muted); margin: 0 4px; font-weight: 700; }
.ring { width: 64px; height: 64px; }
.ring circle { fill: none; stroke-width: 4.5; stroke: rgba(242, 114, 107, .2); }
.ring .fg { stroke: var(--coral); stroke-linecap: round; stroke-dasharray: 113.1; stroke-dashoffset: 75; transform: rotate(-90deg); transform-origin: 50% 50%; }
.ring text { font: 900 15px var(--display); fill: var(--coral); }
.crown { font-size: 44px; line-height: 1; }
.scoring { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 20px; border-radius: var(--radius); background: var(--ink); color: var(--white); overflow: hidden; }
.scoring div { padding: 22px; text-align: center; border-left: 1px solid rgba(255, 255, 255, .08); }
.scoring div:first-child { border-left: 0; }
.scoring b { display: block; font: 900 32px/1 var(--display); color: var(--sun); }
.scoring span { display: block; margin-top: 6px; font-size: 14px; color: rgba(255, 255, 255, .75); }

/* Try it */
.try-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.tips { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; color: rgba(255, 255, 255, .85); }
.tips li { position: relative; padding-left: 26px; }
.tips li::before { content: ''; position: absolute; left: 0; top: .45em; width: 12px; height: 12px; border-radius: 3px; background: var(--sun); }
.card { background: var(--white); color: var(--ink); border-radius: 24px; box-shadow: var(--shadow-lg); }
.demo { position: relative; padding: 22px; min-height: 520px; display: flex; flex-direction: column; }
.d-top { display: flex; align-items: center; gap: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.d-stat span { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.d-stat b { font: 900 22px/1.2 var(--display); }
.d-lives { color: var(--coral); letter-spacing: .1em; }
.d-timer { width: 52px; height: 52px; margin-left: auto; }
.d-timer circle { fill: none; stroke-width: 4.5; }
.d-timer .bg { stroke: rgba(47, 165, 122, .18); }
.d-timer .fg { stroke: var(--green); stroke-linecap: round; stroke-dasharray: 113.1; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .25s linear, stroke .3s; }
.d-timer text { font: 900 15px var(--display); fill: var(--green); }
.d-timer.warn .fg { stroke: #f2a93b; } .d-timer.warn text { fill: #f2a93b; }
.d-timer.danger .fg { stroke: #e0525b; } .d-timer.danger text { fill: #e0525b; }
.d-ladder { list-style: none; margin: 14px 0 0; padding: 0; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 150px; max-height: 210px; overflow: hidden; }
.d-row { display: flex; align-items: center; gap: 12px; padding: 7px 12px; border-radius: 10px; background: var(--mist); font: 900 17px var(--display); letter-spacing: .3em; animation: rowIn .3s ease both; }
.d-row small { flex: none; font: 600 11px var(--body); letter-spacing: .06em; color: var(--muted); width: 72px; text-transform: uppercase; white-space: nowrap; }
.d-row .def { margin-left: auto; font: 400 12px/1.3 var(--body); letter-spacing: 0; color: var(--muted); max-width: 55%; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-row.by-cpu { background: #fbf3df; }
.d-row.by-you { background: #e3f1f8; }
.d-status { min-height: 28px; margin: 14px 0 10px; text-align: center; font-weight: 600; color: var(--muted); }
.d-status.bad { color: #d4413f; }
.d-status.good { color: var(--green); }
.d-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 340px; width: 100%; margin: 0 auto; perspective: 500px; }
.d-tile {
  aspect-ratio: 1 / 1.05; border-radius: 14px; border: 3px solid var(--lagoon);
  background: var(--white); box-shadow: 0 5px 0 #a9d3e3; color: var(--ink);
  font: 900 clamp(28px, 5vw, 40px)/1 var(--display); cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .1s;
}
.d-tile:hover { transform: translateY(-2px); }
.d-tile[aria-pressed="true"] { background: var(--sun); border-color: var(--sun-deep); box-shadow: 0 5px 0 #d79a10; }
.d-tile:disabled { cursor: default; opacity: .55; transform: none; }
.d-tile.flip { animation: flip .4s ease; }
.d-tiles.shake { animation: shake .4s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.d-keys { display: grid; grid-template-columns: repeat(13, 1fr); gap: 5px; margin-top: 18px; }
.d-key {
  min-height: 38px; border: 0; border-radius: 8px; background: var(--tint); color: var(--ink);
  font: 800 15px var(--display); cursor: pointer;
}
.d-key:hover:not(:disabled) { background: #d2e8f1; }
.d-key:disabled { opacity: .5; cursor: default; }
.d-actions { display: flex; justify-content: center; gap: 10px; margin-top: 14px; color: var(--lagoon-deep); }
.d-over {
  position: absolute; inset: 0; border-radius: 24px; padding: 32px; z-index: 2;
  background: rgba(255, 255, 255, .96); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.d-over[hidden] { display: none; }
.d-over-title { font: 900 32px/1.1 var(--display); }
.d-over-text { margin-top: 10px; color: var(--muted); max-width: 26em; }
.d-over-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; color: var(--lagoon-deep); }

/* Modes */
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mode { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.mode h3 { font-size: 21px; font-weight: 800; margin: 16px 0 8px; }
.mode p { color: var(--muted); font-size: 15.5px; }
.mode-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--tint); font-size: 26px; line-height: 1; }
.mode-feature { grid-column: span 4; display: grid; grid-template-columns: auto 1fr auto; gap: 8px 22px; align-items: center; background: linear-gradient(135deg, var(--lagoon-deep), var(--lagoon)); color: var(--white); }
.mode-feature .mode-icon { grid-row: span 2; background: rgba(255, 255, 255, .15); width: 64px; height: 64px; font-size: 32px; }
.mode-feature h3 { margin: 0; font-size: 26px; }
.mode-feature p { color: rgba(255, 255, 255, .85); grid-column: 2; max-width: 36em; }
.share-card {
  grid-row: 1 / span 2; grid-column: 3;
  display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border-radius: 14px;
  background: var(--white); color: var(--ink); font-size: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.share-card b { font-family: var(--display); font-weight: 800; }
.share-card span:nth-child(2) { font-size: 20px; letter-spacing: .08em; }
.share-card span:last-child { color: var(--muted); font-size: 14px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.feature h3 { font-size: 21px; font-weight: 800; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 15.5px; }
.chips { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.chips li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--mist); font-weight: 700; font-size: 15px; }
.chips span { font-size: 18px; }
.chips small { margin-left: auto; font-weight: 500; font-size: 13px; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border-radius: 14px; box-shadow: var(--shadow); padding: 0 22px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 32px 20px 0; position: relative;
  font: 800 18px/1.3 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2.5px solid var(--lagoon); border-bottom: 2.5px solid var(--lagoon); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 20px; color: var(--muted); }

/* Final CTA */
.cta {
  padding: 96px 0; color: var(--white); text-align: center;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(43, 143, 179, .5), transparent 70%),
    var(--ink-deep);
}
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta img { border-radius: 22px; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.cta h2 { font-size: clamp(32px, 4.5vw, 52px); font-weight: 900; margin-top: 26px; }
.cta p { margin-top: 12px; font-size: 18px; color: rgba(255, 255, 255, .78); }

/* Footer */
.site-footer { background: var(--ink-deep); color: rgba(255, 255, 255, .6); border-top: 1px solid rgba(255, 255, 255, .06); padding: 28px 0 32px; font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.brand-sm { font-size: 17px; color: var(--white); }
.brand-sm img { border-radius: 7px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.fine { width: 100%; font-size: 13px; color: rgba(255, 255, 255, .45); }

/* Sticky mobile CTA */
.mobile-cta { display: none; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1020px) {
  .modes { grid-template-columns: repeat(2, 1fr); }
  .mode-feature { grid-column: span 2; grid-template-columns: auto 1fr; }
  .share-card { grid-row: auto; grid-column: 1 / -1; margin-top: 10px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .try-grid { grid-template-columns: 1fr; gap: 36px; }
  .section-head.left { text-align: center; margin: 0 auto; max-width: 640px; }
  .tips { width: fit-content; max-width: 100%; margin-inline: auto; text-align: left; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .header-inner .btn { margin-left: auto; }
  .hero { padding: 40px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { text-align: center; }
  .lead { margin: 0 auto; }
  .store-row, .trust { justify-content: center; }
  .phone { width: 290px; transform: none; }
  .steps { grid-template-columns: 1fr; }
  .scoring { grid-template-columns: repeat(2, 1fr); }
  .scoring div:nth-child(3) { border-left: 0; }
  .scoring div:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, .08); }
  .section { padding: 72px 0; }
}
@media (max-width: 620px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .step { padding: 22px; }
  .step-demo { gap: 4px; }
  .step-demo .t { width: 28px; height: 32px; font-size: 16px; border-radius: 7px; }
  .arrow { margin: 0 2px; }
  .modes, .features { grid-template-columns: 1fr; }
  .mode-feature { grid-column: auto; grid-template-columns: 1fr; }
  .mode-feature .mode-icon { grid-row: auto; }
  .mode-feature p { grid-column: auto; }
  .store { flex: 1 1 220px; justify-content: center; }
  .demo { padding: 16px; min-height: 0; }
  .d-top { gap: 14px; }
  .d-stat b { font-size: 19px; }
  .d-keys { grid-template-columns: repeat(9, 1fr); }
  .d-row .def { display: none; }
  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(13, 33, 51, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    transform: translateY(110%); transition: transform .3s ease;
  }
  .mobile-cta.show { transform: none; }
  .mobile-cta .btn { width: 100%; }
  .site-footer { padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
