/* The landing page's styles. Plain CSS, no framework. The colours, type and corners follow the app
   (frontend/src/assets/scss/_tokens.scss): white and #f5f7fa surfaces, #5d87ff blue, #2a3547 text, Plus Jakarta Sans. Light only. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --ink: #2a3547;
  --ink-strong: #18233a;
  --ink-2: #4a5870;
  --muted: #5a6a82;
  --line: #e5eaef;
  --line-strong: #d3dae4;
  --brand: #5d87ff;            /* the app's primary: fills, glows, decoration */
  --brand-btn: #3f6be3;        /* the same blue, dark enough for white text and for links (4.7:1) */
  --brand-btn-hover: #3558c4;
  --brand-soft: #ecf2ff;
  --brand-ink: #3556c8;
  --mint: #0b7f5e;
  --mint-soft: #e6fffa;
  --coral: #c0392b;
  --coral-soft: #fdede8;
  --navy: #172036;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(42, 53, 71, .06), 0 16px 36px -16px rgba(42, 53, 71, .22);
  --shadow-lg: 0 2px 4px rgba(42, 53, 71, .06), 0 32px 64px -24px rgba(42, 53, 71, .32);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 24px; }
.container.narrow { max-width: 860px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 700; text-decoration: none; white-space: nowrap;
  border-radius: 10px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn-lg { padding: 14px 26px; font-size: 1.02rem; }
.btn-sm { padding: 9px 18px; font-size: .94rem; }
.btn-primary { background: var(--brand-btn); color: #fff; box-shadow: 0 8px 20px -10px rgba(63, 107, 227, .8); }
.btn-primary:hover { background: var(--brand-btn-hover); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink-2); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 28px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 1.2rem; letter-spacing: -.02em; text-decoration: none; color: var(--ink-strong); }
.brand strong { font-weight: 800; }   /* site.json's nameBold */
.brand-mark { width: 30px; height: 30px; }
.nav { display: flex; gap: 4px; margin-inline: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink-2); padding: 8px 14px; border-radius: 8px; }
.nav a:hover { background: var(--bg-soft); color: var(--ink-strong); }
.bar-actions { display: flex; align-items: center; gap: 14px; }
.link-login { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink-2); padding: 8px 6px; }
.link-login:hover { color: var(--ink-strong); }
.lang { display: inline-flex; background: var(--bg-soft); border-radius: 8px; padding: 3px; }
.lang a { text-decoration: none; font-size: .78rem; font-weight: 700; letter-spacing: .04em; padding: 5px 11px; border-radius: 6px; color: var(--muted); }
.lang a[aria-current] { background: #fff; color: var(--ink-strong); box-shadow: 0 1px 2px rgba(42, 53, 71, .15); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 24px; height: 24px; }
.menu[open] summary { background: var(--bg-soft); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(280px, 86vw);
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px;
  display: grid;
}
.menu-panel a { text-decoration: none; font-weight: 600; padding: 12px 14px; border-radius: 8px; }
.menu-panel a:hover { background: var(--bg-soft); }
.menu-lang { padding: 10px 8px 6px; }
.menu-panel .lang a { padding: 6px 14px; }
.menu-panel .lang a:hover { background: transparent; }

/* ---------- type ---------- */
.eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--brand-btn); margin-bottom: 14px; }
h1, h2, h3 { text-wrap: balance; color: var(--ink-strong); }
.lead, .feature-copy > p { text-wrap: pretty; }
h1 { font-size: clamp(2.5rem, 1.4rem + 4vw, 4.4rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.3vw, 3rem); line-height: 1.1; letter-spacing: -.028em; font-weight: 800; }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -.015em; font-weight: 700; }
.lead { font-size: 1.18rem; line-height: 1.6; color: var(--ink-2); }
mark { background: none; color: var(--brand-btn); padding: 0; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; background: var(--brand-soft); color: var(--brand-ink);
  border-radius: 999px; padding: 7px 16px 7px 12px; font-size: .88rem; font-weight: 700;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(93, 135, 255, .25); }

/* ---------- hero ---------- */
.hero { padding: 64px 0 8px; position: relative; }
.hero::before {
  content: ''; position: absolute; inset: -80px 0 auto 0; height: 880px; z-index: -1;
  background:
    radial-gradient(760px 380px at 50% 12%, rgba(93, 135, 255, .16), transparent 70%),
    radial-gradient(420px 300px at 8% 4%, rgba(93, 135, 255, .08), transparent 70%),
    radial-gradient(420px 300px at 92% 6%, rgba(15, 157, 118, .07), transparent 70%);
}
/* a faint line drawing of sports equipment behind the top of the page; it fades out downwards and the middle of it is empty, so the text stays clean */
.hero::after {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 1000px; z-index: -1; pointer-events: none;
  background: url('img/hero-bg.webp') 50% 0 / 1500px auto no-repeat;
  opacity: .34; mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(#000 58%, transparent 100%); mask-image: linear-gradient(#000 58%, transparent 100%);
}
.hero-top { text-align: center; max-width: 920px; }
.hero-top .pill { margin-bottom: 24px; }
.hero-top .lead { margin: 24px auto 0; max-width: 40em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-top .cta-row { justify-content: center; }
.hero-note { margin: 20px auto 0; font-size: .92rem; color: var(--muted); max-width: 40em; line-height: 1.5; }
.hero-shot { margin-top: 52px; max-width: 1120px; position: relative; }
.zoom { display: block; cursor: zoom-in; }
.shot-note { margin-top: 12px; text-align: center; font-size: .82rem; color: var(--muted); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.facts li {
  display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
}
.fact-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-btn); display: grid; place-items: center; flex: none; }
.facts strong { display: block; font-size: .98rem; line-height: 1.3; margin-bottom: 4px; color: var(--ink-strong); }
.facts span:not(.fact-ico) { display: block; font-size: .88rem; color: var(--muted); line-height: 1.45; }

/* ---------- sections ---------- */
.section { padding: 104px 0; }
.section-tight { padding: 40px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 740px; margin: 0 auto 56px; text-align: center; }
.section-head h2 + .lead { margin-top: 18px; }

/* who it's for */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(42, 53, 71, .04); }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-body { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-body > p:not(.tag) { color: var(--ink-2); font-size: 1rem; }
.tag { align-self: flex-start; font-size: .78rem; font-weight: 800; letter-spacing: .04em; padding: 5px 12px; border-radius: 999px; }
.tag-brand { background: var(--brand-soft); color: var(--brand-ink); }
.tag-mint { background: var(--mint-soft); color: var(--mint); }
.tag-coral { background: var(--coral-soft); color: var(--coral); }

.checks { display: grid; gap: 12px; margin-top: 22px; }
.checks li { position: relative; padding-left: 34px; color: var(--ink-2); line-height: 1.5; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 10.5 3.2 3.2L15 6.8' fill='none' stroke='%233f6be3' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checks.small { gap: 8px; margin-top: auto; padding-top: 10px; }
.checks.small li { font-size: .94rem; padding-left: 30px; }
.checks.small li::before { width: 20px; height: 20px; background-size: 12px; }

/* feature rows: the copy beside a real screenshot of the app */
.feature { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; padding: 56px 0; }
.feature.reverse { grid-template-columns: 1.2fr .8fr; }
.feature.reverse .feature-copy { order: 2; }
.feature-copy h3 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.25rem); line-height: 1.15; letter-spacing: -.025em; font-weight: 800; margin-bottom: 16px; }
.feature-copy > p:not(.eyebrow) { color: var(--ink-2); font-size: 1.08rem; }
.visual {
  background: linear-gradient(145deg, var(--brand-soft), var(--bg-soft) 70%);
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px;
}
.visual img, .visual video { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff; box-shadow: var(--shadow); }

/* the product tour in the hero: its still, then (on a wide screen, landing.js) the lighter copy looping muted over it; opening it plays
   the full tour in the dialog. The label sits in the corner the tour leaves empty, under the panel's progress bar. */
.hero-tour { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #0b1430;
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); color: inherit; text-decoration: none; }
.hero-tour img, .hero-tour video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-tour video { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.hero-tour::after { content: ""; position: absolute; inset: 0; pointer-events: none; transition: opacity .4s ease;
  background: linear-gradient(to top, rgba(11, 20, 48, .5), rgba(11, 20, 48, .08) 55%, transparent); }
.tour-play { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; transition: opacity .3s ease; }
.hero-tour.is-playing video { opacity: 1; }
.hero-tour.is-playing::after, .hero-tour.is-playing .tour-play { opacity: 0; }
.hero-tour.is-playing:hover .tour-play, .hero-tour.is-playing:focus-visible .tour-play { opacity: 1; }
.tour-btn { position: relative; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--brand-btn);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .22), 0 18px 40px -12px rgba(11, 20, 48, .7); transition: transform .2s ease; }
.tour-btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--brand); opacity: 0; animation: tour-pulse 2.4s ease-out infinite; z-index: -1; }
.tour-btn .ico { width: 38px; height: 38px; margin-left: 5px; }
.hero-tour:hover .tour-btn { transform: scale(1.07); }
.tour-label { position: absolute; right: 4.2%; bottom: 4%; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px 7px 12px;
  border-radius: 999px; white-space: nowrap; background: rgba(255, 255, 255, .94); color: var(--ink-strong); font-weight: 700; font-size: .88rem;
  box-shadow: var(--shadow); transition: transform .2s ease; }
.tour-label .ico { width: 16px; height: 16px; color: var(--brand); }
.hero-tour:hover .tour-label { transform: translateY(-2px); }
@keyframes tour-pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.7); opacity: 0; } }
.tour-dialog { width: min(92vw, 1400px, calc((100dvh - 8rem) * 16 / 9)); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.tour-dialog::backdrop { background: rgba(8, 12, 28, .84); }
.tour-dialog video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 14px; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.tour-close { position: absolute; top: -50px; right: -6px; width: 42px; height: 42px; border: 0; border-radius: 50%; display: grid; place-items: center;
  background: transparent; color: rgba(255, 255, 255, .85); cursor: pointer; }
.tour-close:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.tour-close .ico { width: 26px; height: 26px; }
@media (prefers-reduced-motion: reduce) { .tour-btn::before { animation: none; } .hero-tour video, .tour-btn, .tour-label { transition: none; } }
.visual figcaption { margin-top: 14px; font-size: .8rem; color: var(--muted); text-align: right; }

/* old way vs new */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 980px; margin: 0 auto; }
.versus-card { border-radius: var(--radius-lg); padding: 34px 34px 38px; }
.versus-card h3 { font-size: 1.3rem; margin-bottom: 20px; }
.versus-card ul { display: grid; gap: 14px; }
.versus-card li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.45; }
.vs-ico { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; margin-top: -1px; }
.before { background: transparent; border: 1.5px dashed var(--line-strong); color: var(--ink-2); }
.before .vs-ico { background: var(--coral-soft); color: var(--coral); }
.after { background: #fff; border: 1.5px solid var(--brand); box-shadow: 0 18px 40px -24px rgba(63, 107, 227, .55); }
.after .vs-ico { background: var(--mint-soft); color: var(--mint); }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding-top: 4px; }
.step-no {
  width: 46px; height: 46px; border-radius: 12px; background: var(--brand-btn); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 1.15rem; margin-bottom: 18px;
}
.step:not(:last-child)::after { content: ''; position: absolute; top: 27px; left: 62px; right: -12px; border-top: 2px dashed var(--line-strong); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 1rem; }

/* trust */
.trust { background: var(--navy); color: #fff; border-radius: 24px; padding: 64px 56px; }
.trust-head { max-width: 640px; margin-bottom: 44px; }
.trust-head h2 { color: #fff; }
.trust-head .eyebrow { color: #9db6ff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.trust-ico { width: 40px; height: 40px; border-radius: 10px; background: rgba(93, 135, 255, .2); color: #9db6ff; display: grid; place-items: center; margin-bottom: 18px; }
.trust-item h3 { font-size: 1.08rem; margin-bottom: 10px; color: #fff; }
.trust-item p { color: #c4cde0; font-size: .96rem; line-height: 1.55; }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 4px; font-weight: 700; font-size: 1.1rem; color: var(--ink-strong);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5v10M5 10h10' stroke='%232a3547' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 4px; color: var(--ink-2); }

/* closing call to action */
.cta { position: relative; border-radius: 24px; overflow: hidden; min-height: 420px; display: flex; align-items: center; background: var(--bg-soft); border: 1px solid var(--line); }
.cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; }
.cta::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .88) 42%, rgba(255, 255, 255, 0) 78%); }
.cta-copy { position: relative; z-index: 2; padding: 56px; max-width: 640px; }
.cta-copy h2 { font-size: clamp(1.8rem, 1.1rem + 2.2vw, 2.7rem); }
.cta-copy p { margin-top: 16px; color: var(--ink-2); font-size: 1.12rem; }

/* footer */
.site-footer { margin-top: 72px; border-top: 1px solid var(--line); background: var(--bg-soft); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { margin-top: 14px; color: var(--muted); max-width: 22em; font-size: .98rem; }
.site-footer h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-weight: 800; }
.site-footer li + li { margin-top: 10px; }
.site-footer li a { text-decoration: none; color: var(--ink-2); font-weight: 500; }
.site-footer li a:hover { color: var(--brand-btn); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer-bottom .lang { background: #e9edf3; }

/* ---------- feature pages, the features page and 404 (src/topic.mjs, src/hub.mjs) ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--muted); margin-bottom: 22px; }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--brand-btn); text-decoration: underline; }
.crumbs [aria-current] { color: var(--muted); }
.topic-hero { position: relative; padding: 48px 0 40px; }
.topic-hero::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 520px; z-index: -1;
  background: radial-gradient(60% 70% at 85% 10%, rgba(93, 135, 255, .16), transparent 70%), linear-gradient(180deg, #f7f9ff, #fff);
}
.topic-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.topic-hero h1 { font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.3rem); line-height: 1.08; letter-spacing: -.03em; }
.topic-hero .lead { margin-top: 20px; }
.topic-hero .cta-row { margin-top: 28px; }
.topic-hero .hero-note { margin: 18px 0 0; max-width: none; }
.topic-hero-art img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.hub-head { text-align: center; }
.hub-head .crumbs ol { justify-content: center; }
.hub-head .lead { margin-inline: auto; max-width: 42em; }
.hub-head .cta-row { justify-content: center; }
.section.section-first { padding-top: 24px; }
.topic-shot { max-width: 1040px; }
.more-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-weight: 700; color: var(--brand-btn); text-decoration: none; }
.more-link:hover { text-decoration: underline; }
.center-link { text-align: center; margin-top: 36px; }
.center-link .more-link { margin-top: 0; }

.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.topic-grid-3 { grid-template-columns: repeat(3, 1fr); }
/* all seven feature pages: four columns, the first (billing, the core) two wide and lying down, so two full rows */
/* every feature page: eight cards, four to a row */
.topic-grid-all { grid-template-columns: repeat(4, 1fr); gap: 22px; }
.topic-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.topic-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.topic-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.topic-card-body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 24px; flex: 1; }
.topic-card h2, .topic-card h3 { font-size: 1.2rem; line-height: 1.25; }
.topic-card-text { color: var(--ink-2); font-size: .98rem; }
.topic-card .more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brand-btn); font-size: .95rem; }

.steps.steps-3 { grid-template-columns: repeat(3, 1fr); }
.prose-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.prose { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 32px 34px; }
.prose h2 { font-size: 1.35rem; line-height: 1.25; margin-bottom: 12px; }
.prose p { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose .checks { margin-top: 16px; }

.band {
  text-align: center; border-radius: 24px; padding: 64px 32px;
  background: radial-gradient(70% 90% at 50% 0%, rgba(93, 135, 255, .22), transparent 70%), var(--brand-soft);
  border: 1px solid #dbe5ff;
}
.band h2 { font-size: clamp(1.8rem, 1.1rem + 2vw, 2.6rem); max-width: 22em; margin-inline: auto; }
.band p { margin: 14px auto 0; max-width: 38em; color: var(--ink-2); font-size: 1.1rem; }
.band .cta-row { justify-content: center; }

/* scroll reveal: only when the script runs, so the page is complete without it */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- smaller screens ---------- */
@media (max-width: 1040px) {
  .nav, .link-login, .bar-actions > .lang { display: none; }
  .menu { display: block; }
  .bar { justify-content: space-between; }
  .bar-actions { gap: 10px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
  .feature.reverse .feature-copy { order: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 28px; }
  .step:not(:last-child)::after { display: none; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .topic-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .topic-hero-art { max-width: 640px; }
  .topic-grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .topic-grid-all { grid-template-columns: repeat(2, 1fr); }
  .steps.steps-3 { grid-template-columns: repeat(2, 1fr); }
  .prose-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .tour-btn { width: 62px; height: 62px; box-shadow: 0 0 0 6px rgba(255, 255, 255, .22); }
  .tour-btn .ico { width: 26px; height: 26px; margin-left: 3px; }
  .tour-label { right: 50%; bottom: 10px; transform: translateX(50%); font-size: .78rem; padding: 5px 12px 5px 9px; }
  .hero-tour:hover .tour-label { transform: translateX(50%); }
  body { font-size: 1rem; }
  .container { padding-inline: 16px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .hero { padding-top: 36px; }
  .hero::after { height: 820px; background-size: 780px auto; opacity: .4; }
  .hero-shot { margin-top: 36px; }
  .cards { grid-template-columns: 1fr; }
  .versus { grid-template-columns: 1fr; }
  .visual { padding: 14px; border-radius: 14px; }
  .facts { grid-template-columns: 1fr; margin-top: 32px; }
  .trust { padding: 40px 24px; border-radius: 18px; }
  .trust-grid { grid-template-columns: 1fr; }
  .steps, .steps.steps-3 { grid-template-columns: 1fr; }
  .topic-grid-all { grid-template-columns: 1fr; }
  .topic-hero { padding-top: 28px; }
  .prose { padding: 24px 20px 26px; }
  .band { padding: 44px 20px; border-radius: 18px; }
  .cta { border-radius: 18px; min-height: 0; align-items: flex-end; }
  .cta::before { background: linear-gradient(180deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .92) 60%, rgba(255, 255, 255, .55) 100%); }
  .cta-copy { padding: 36px 24px; }
  .faq details p { padding-right: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .bar { min-height: 60px; }
  .btn-lg { padding: 14px 22px; }
  .cta-row .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
