/* ============================================================
   BommieSurf — bommiesurf.com
   Single site stylesheet. Mirrors the app's default theme
   (app/themes.css [data-theme="default"]): navy ground, foam
   accent, and the score palette as the only saturated colour.
   Every page loads this file and only this file.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg:        #08131F;   /* --color-bg */
  --bg2:       #0A1726;   /* top of the app's ground wash */
  --bg3:       #0F1E2E;
  --card:      #0F1E2E;   /* --color-surface */
  --card-open: #16293D;   /* --color-surface-open */
  --chrome:    #0E1C2B;   /* --color-chrome */
  --line:      rgba(238,243,239,.08);
  --line2:     rgba(238,243,239,.16);
  --line-hi:   rgba(238,243,239,.28); /* --color-surface-open-border */
  --txt:       #EEF3EF;   /* --color-fg (foam) */
  --txt2:      #C7D3DC;   /* --color-fg-2 */
  --txt3:      #8EA3B5;   /* --color-fg-3 */
  --mute:      #6F8597;   /* --color-fg-4 */
  /* Foam, not a hue: every hue is somebody's score in the app, so
     selection and action are foam and a primary button is a white pill. */
  --acc:       #EEF3EF;
  --acc-ink:   #08131F;
  --tint:      rgba(238,243,239,.08);
  /* Wordmark only: "Surf" in light blue. Kept off the score palette so the
     logo never reads as a verdict. */
  --brand-surf: #7DD3FC;
  /* Score palette — Firing / Fun / Marginal / Poor */
  --go:        #22C55E;
  --fun:       #FACC15;
  --marginal:  #F97316;
  --poor:      #F15E5E;
  --go-text:   #23CB61;
  --green:     var(--go);
  --amber:     #EF9F27;   /* --color-warning (non-score) */
  --red:       #EC706D;   /* --color-error (non-score) */
  --fd:        'Big Shoulders', Impact, 'Arial Narrow', sans-serif;
  --fm:        'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --fb:        'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --w:         1180px;
  --pad:       28px;
  --r:         16px;      /* --radius-card */
  --r-sm:      10px;      /* --radius-ctl */
  --nav-h:     68px;      /* --chrome-height */
  --shadow:    0 8px 24px -8px rgba(0,0,0,.6);
  --hover:     0 12px 32px -8px rgba(0,0,0,.7), 0 0 0 1px var(--line-hi);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--fb);
  color: var(--txt);
  background-color: var(--bg);
  background-image:
    radial-gradient(120% 70% at 50% -12%, rgba(238,243,239,.07) 0%, rgba(238,243,239,0) 60%),
    linear-gradient(180deg, #0A1726 0%, #050D16 100%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px; }
::selection { background-color: rgba(238,243,239,.35); }

/* ---------- Icons (Lucide sprite) ---------- */
.ic {
  width: 22px; height: 22px;
  stroke: currentColor; fill: none;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}

/* ---------- Layout primitives ---------- */
.container { max-width: var(--w); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: 96px 0; }
.section-sm { padding: 56px 0; }
.section-alt { background-color: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bg-off { background-color: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Type ---------- */
/* Display voice = the app's `.display`: Big Shoulders 800, uppercase, tight. */
h1, h2, h3, h4 { font-family: var(--fd); font-weight: 800; text-transform: uppercase; letter-spacing: 0; line-height: .92; color: var(--txt); }
/* Emphasis is "Firing" green — the colour the app saves for an hour that's on. */
h1 em, h2 em, h3 em { font-style: normal; color: var(--go); }
p em, span em { font-style: normal; color: var(--txt); }
/* Mono label voice = the app's `.mono-label`. */
.eyebrow {
  display: block;
  font-family: var(--fm); font-weight: 500;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.3;
  color: var(--txt3);
  margin-bottom: 16px;
}
.section-title { font-size: clamp(40px, 5vw, 64px); margin-bottom: 20px; text-wrap: balance; }
.section-sub { font-size: 17px; color: var(--txt2); max-width: 680px; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-header .eyebrow { text-align: center; }
.section-header .section-sub { margin: 0 auto; }
.lnk { color: var(--acc); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(238,243,239,.4); }
.lnk:hover { text-decoration-color: var(--acc); }
.section-sub a, .legal-txt a, .legal-list a, .legal-steps a { color: var(--acc); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(238,243,239,.4); }
.section-sub a:hover, .legal-txt a:hover, .legal-list a:hover, .legal-steps a:hover { text-decoration-color: var(--acc); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--fb); font-weight: 500; font-size: 15px;
  min-height: 48px; padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color .18s, border-color .18s, color .18s, transform .18s;
  white-space: nowrap;
}
.btn .ic { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-primary { background-color: var(--acc); color: var(--acc-ink); }
.btn-primary:hover { background-color: #ffffff; }
.btn-outline, .btn-outline-white { border-color: var(--line2); color: var(--txt); background-color: var(--card-open); }
.btn-outline:hover, .btn-outline-white:hover { border-color: var(--line-hi); }

/* "Coming soon" pill — the app's mono label in a quiet foam chip. */
.soon-pill {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 12px 20px; max-width: 100%;
  border: 1px solid var(--line2); border-radius: 999px;
  background-color: var(--tint); color: var(--txt2);
  font-family: var(--fm); font-weight: 500; font-size: 12px; line-height: 1.4;
  letter-spacing: .12em; text-transform: uppercase;
}
.soon-pill .ic { width: 18px; height: 18px; color: var(--go); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; }

/* ---------- Cards (site-wide, one rule) ---------- */
.sm-feat-card, .sm-algo-card, .sm-cond, .sm-check-item,
.sm-plan, .legal-warn {
  background-color: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.sm-feat-card:hover, .sm-algo-card:hover, .sm-cond:hover, .sm-check-item:hover,
.sm-plan:hover {
  border-color: var(--line-hi);
  background-color: var(--card-open);
  box-shadow: var(--hover);
}

/* ---------- NAV ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background-color: var(--chrome);   /* opaque, like the app's sticky chrome */
  border-bottom: 1px solid rgba(238,243,239,.09);
}
.site-nav-inner {
  max-width: var(--w); margin: 0 auto; padding: 0 var(--pad);
  height: var(--nav-h);
  display: flex; align-items: center; gap: 36px;
}
/* The brand lockup, as the app's components/brand/Logo.tsx draws it: the wave
   mark (splash-mark.png) used as a MASK filled with currentColor, beside the
   name in Big Shoulders 800 uppercase. One colour, one asset, right on any
   ground. Font size = mark height x 0.78, as in the app. */
.brand { --mark-h: 28px; display: inline-flex; align-items: center; gap: 10px; color: var(--txt); }
.brand-mark {
  display: inline-block; flex: none;
  height: var(--mark-h); aspect-ratio: 1299 / 790;
  background-color: currentColor;
  -webkit-mask: url(../images/splash-mark.png) center / contain no-repeat;
          mask: url(../images/splash-mark.png) center / contain no-repeat;
}
.brand-text {
  font-family: var(--fd); font-weight: 800;
  font-size: calc(var(--mark-h) * .78 + 4px);
  letter-spacing: .02em; line-height: 1; text-transform: uppercase; white-space: nowrap;
}
.brand-text em { font-style: italic; color: var(--brand-surf); padding-right: .06em; }
/* The name in running text and headings, styled like the wordmark: "Surf" italic in light blue. */
.bs { white-space: nowrap; }
.bs em { font-style: italic; color: var(--brand-surf); padding-right: .04em; }
.site-nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; font-weight: 500; color: var(--txt2); }
.site-nav-links a { padding: 6px 0; border-bottom: 1px solid transparent; transition: color .15s, border-color .15s; }
.site-nav-links a:hover { color: var(--txt); }
.site-nav-links a.active { color: var(--txt); border-bottom-color: var(--acc); }
.site-nav-cta { display: flex; gap: 10px; }
.nav-hamburger { display: none; margin-left: auto; padding: 8px; color: var(--txt); border-radius: var(--r-sm); }
.nav-hamburger .ic { width: 26px; height: 26px; }
.nav-hamburger .ic-x { display: none; }
.nav-hamburger.open .ic-menu { display: none; }
.nav-hamburger.open .ic-x { display: block; }
.nav-mobile {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 49;
  background-color: var(--bg2);
  border-bottom: 1px solid var(--line);
  padding: 12px var(--pad) 20px;
  flex-direction: column; gap: 4px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 12px 8px; font-size: 16px; font-weight: 500; color: var(--txt2); border-radius: var(--r-sm); }
.nav-mobile a:hover, .nav-mobile a.active { color: var(--txt); background-color: rgba(255,255,255,.04); }
.nav-mobile .nav-mobile-sep { height: 1px; background-color: var(--line); margin: 10px 0; }
.nav-mobile .btn { margin-top: 4px; }

/* ---------- FOOTER ---------- */
.site-footer { border-top: 1px solid var(--line); background-color: var(--bg); padding: 64px 0 32px; font-size: 14px; color: var(--mute); }
.site-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.site-footer .brand { --mark-h: 34px; margin-bottom: 16px; }
.site-footer-tagline { color: var(--txt2); margin-bottom: 14px; }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer address a:hover { color: var(--txt); }
.site-footer h5 { font-family: var(--fm); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--txt3); margin-bottom: 16px; }
.site-footer-links a { display: block; margin-bottom: 9px; transition: color .15s; }
.site-footer-links a:hover { color: var(--txt); }
.site-footer-copy { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--fm); font-size: 12px; }

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 56px 0 44px;
  background-color: var(--bg);
  background-image:
    radial-gradient(60% 70% at 100% 0%, rgba(238,243,239,.10), transparent 60%),
    radial-gradient(40% 50% at 0% 100%, rgba(238,243,239,.05), transparent 60%);
}
.page-hero .section-title { font-size: clamp(44px, 5vw, 64px); margin-bottom: 12px; }
.page-hero .section-sub { font-size: 16px; }

/* ---------- HOME — hero ---------- */
.home-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.home-hero-bg { position: absolute; inset: 0; }
.home-hero-bg picture, .sm-photo-break > picture { display: block; width: 100%; height: 100%; }
.home-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.home-hero-fade {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(180deg, rgba(8,19,31,.62) 0%, rgba(8,19,31,.45) 35%, rgba(8,19,31,.97) 100%),
    linear-gradient(90deg, rgba(8,19,31,.90) 0%, rgba(8,19,31,.6) 55%, rgba(8,19,31,.5) 100%);
}
.home-hero-inner {
  position: relative;
  max-width: var(--w); margin: 0 auto; padding: 96px var(--pad) 80px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  min-height: 720px;
}
.home-hero h1 { font-size: clamp(54px, 7vw, 96px); line-height: .88; margin: 0 0 24px; text-wrap: balance; }
.home-hero .lede { font-size: 19px; color: var(--txt2); max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line2); }
.hero-stats b { font-family: var(--fd); font-size: 34px; font-weight: 800; text-transform: uppercase; display: block; line-height: 1; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.hero-stats span { font-family: var(--fm); font-weight: 500; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }

/* ---------- HOME — app gallery (one image at a time; not a carousel) ----------
   Screenshots are 533x962 crops of the web app (header to tab bar), so the
   frame matches their aspect and anchors to the top.
   ------------------------------------------------------------------------- */
.app-gallery { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; justify-content: end; }
.app-gallery-tabs { display: flex; flex-direction: column; gap: 6px; order: 2; }
.app-gallery-tab {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; text-align: left; border-radius: var(--r-sm);
  border: 1px solid var(--line); background-color: rgba(15,30,46,.85);
  color: var(--txt2); font-size: 13px; font-weight: 500;
  transition: border-color .18s, color .18s, background-color .18s, box-shadow .18s;
  width: 176px;
}
.app-gallery-tab .ic { width: 18px; height: 18px; color: var(--txt3); }
.app-gallery-tab.active .ic { color: var(--txt); }
.app-gallery-tab:hover { border-color: var(--line-hi); color: var(--txt); box-shadow: var(--shadow); }
.app-gallery-tab.active { border-color: var(--line-hi); background-color: var(--card-open); color: var(--txt); }
.app-gallery-frame {
  order: 1;
  width: 290px; aspect-ratio: 533 / 962;
  border-radius: 28px; overflow: hidden;
  border: 1px solid var(--line2);
  background-color: #050D16;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 6px rgba(255,255,255,.04);
  position: relative;
}
.app-gallery-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 0;
  opacity: 0; transition: opacity .25s ease;
}
.app-gallery-frame img.active { opacity: 1; }
.app-gallery-caption { order: 3; grid-column: 1 / -1; font-family: var(--fm); font-weight: 500; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--txt3); text-align: right; }

/* ---------- HOME — intro two-col with list rows ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.two-col .section-title { text-align: left; font-size: clamp(36px, 3.8vw, 52px); }
.lead p { color: var(--txt2); font-size: 17px; margin-bottom: 16px; }
.lead p strong { color: var(--txt); }
.sm-checklist { display: grid; gap: 14px; }
.sm-check-item { display: flex; gap: 16px; padding: 20px 22px; }
.sm-check-item .sm-ico { width: 44px; height: 44px; border-radius: 12px; background-color: var(--tint); color: var(--txt); display: grid; place-items: center; flex: none; }
.sm-check-item strong { font-family: var(--fb); font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--txt); display: block; margin-bottom: 4px; }
.sm-check-item p { color: var(--txt2); font-size: 14.5px; }
/* Why BommieSurf: heading follows the cards on wide screens only.
   Sticky must stay off in single-column layouts or it overlays the cards. */
#why { scroll-margin-top: 80px; }
@media (min-width: 901px) {
  .why-lead { position: sticky; top: 96px; }
}
.tag { font-family: var(--fm); font-size: 10px; letter-spacing: .06em; color: var(--amber); border: 1px solid rgba(245,158,11,.45); padding: 1px 7px; border-radius: 4px; margin-left: 8px; vertical-align: middle; text-transform: uppercase; }

/* ---------- HOME — photo band ---------- */
.sm-photo-break { position: relative; height: 520px; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sm-photo-break > picture > img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; filter: saturate(.85); }
.sm-photo-overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; padding-bottom: 64px; background-image: linear-gradient(0deg, var(--bg) 0%, rgba(8,19,31,.6) 55%, rgba(8,19,31,.2) 100%); }
.sm-photo-overlay .container { width: 100%; }
.sm-overlay-text h2 { font-size: clamp(48px, 7vw, 96px); margin-bottom: 14px; }
.sm-overlay-text p { color: var(--txt2); font-size: 18px; max-width: 560px; }

/* ---------- Steps grid ---------- */
.sm-algo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sm-algo-grid-3 { grid-template-columns: repeat(3, 1fr); }
.sm-algo-card { padding: 30px 26px; }
.sm-algo-num { font-family: var(--fm); font-weight: 500; font-size: 12px; letter-spacing: .12em; color: var(--txt3); margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
.sm-algo-num .ic { color: var(--txt2); }
.sm-algo-card h3 { font-size: 30px; margin-bottom: 10px; }
.sm-algo-card p { color: var(--txt2); font-size: 14.5px; }

/* ---------- Score key (green / amber / red) ---------- */
.score-key { display: flex; gap: 10px 18px; flex-wrap: wrap; margin-top: 18px; font-family: var(--fm); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--txt3); }
.score-key span { display: inline-flex; align-items: center; gap: 8px; }
.score-key i { width: 22px; height: 5px; border-radius: 3px; display: inline-block; }
.score-key .k-go { background-color: var(--go); }
.score-key .k-fun { background-color: var(--fun); }
.score-key .k-marginal { background-color: var(--marginal); }
.score-key .k-poor { background-color: var(--poor); }

/* ---------- Conditions grid ---------- */
.sm-conditions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sm-cond { padding: 28px; }
.sm-cond-ico { color: var(--acc); margin-bottom: 18px; }
.sm-cond-ico .ic { width: 26px; height: 26px; }
.sm-cond h4 { font-size: 19px; margin-bottom: 8px; }
.sm-cond p { color: var(--txt2); font-size: 14.5px; }
.sm-cond .k { display: block; margin-top: 14px; font-family: var(--fm); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }

/* ---------- Features grid ---------- */
.sm-features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.sm-feat-card { display: flex; gap: 20px; padding: 28px; }
.sm-feat-ico { width: 48px; height: 48px; border-radius: 12px; background-color: var(--tint); color: var(--txt); display: grid; place-items: center; flex: none; }
.sm-feat-ico .ic { width: 24px; height: 24px; }
.sm-feat-body h3 { font-size: 20px; margin-bottom: 8px; }
.sm-feat-body p { color: var(--txt2); font-size: 14.5px; }

/* ---------- Plans (dark panel) ---------- */
.sm-pricing-section { background-color: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sm-plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
.sm-plan { padding: 34px 32px; position: relative; display: flex; flex-direction: column; }
.sm-plan-featured { border-color: var(--line-hi); background-color: var(--card-open); }
.sm-plan-popular { position: absolute; top: -12px; right: 24px; font-family: var(--fm); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; background-color: var(--acc); color: var(--acc-ink); padding: 5px 10px; border-radius: 6px; font-weight: 600; }
.sm-plan-name { font-family: var(--fm); font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--txt3); margin-bottom: 10px; }
.sm-plan h3 { font-family: var(--fd); font-size: 44px; font-weight: 800; line-height: .92; margin-bottom: 8px; }
.sm-plan-alt { font-family: var(--fm); font-size: 11px; letter-spacing: .04em; color: var(--mute); margin-bottom: 14px; }
.sm-plan-desc { color: var(--txt2); font-size: 14.5px; margin: 8px 0 20px; }
.sm-plan-feats { display: grid; gap: 9px; font-size: 14.5px; }
.sm-plan-feats li { display: flex; align-items: flex-start; gap: 10px; color: var(--txt); }
.sm-plan-feats li .ic { width: 17px; height: 17px; margin-top: 3px; color: var(--green); stroke-width: 2.5; }
.sm-plan-feats li.unavail { color: var(--mute); }
.sm-plan-feats li.unavail .ic { color: var(--red); opacity: .7; }
.sm-plan .btn { margin-top: 24px; align-self: flex-start; }

/* ---------- CTA band ---------- */
.cta-section { padding: 96px 0; border-top: 1px solid var(--line); background-color: var(--bg); background-image: radial-gradient(50% 80% at 50% 100%, rgba(238,243,239,.08), transparent 70%); position: relative; overflow: hidden; }
.cta-section::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url(../images/swell-lines.svg) center / cover no-repeat; opacity: .05;
}
.cta-section > .container, .page-hero > .container { position: relative; }
.cta-inner { text-align: center; max-width: 860px; }
.cta-inner h2 { font-size: clamp(44px, 5.6vw, 76px); text-wrap: balance; margin-bottom: 16px; }
.cta-inner p { color: var(--txt2); font-size: 18px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 32px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.center-note { text-align: center; margin-top: 48px; }
.center-note p { margin-top: 14px; font-family: var(--fm); font-size: 12px; letter-spacing: .04em; color: var(--mute); }

/* ---------- Legal pages ---------- */
.legal-wrap { max-width: 780px; margin: 0 auto; }
.legal-block { padding: 28px 0; border-top: 1px solid var(--line); }
.legal-block:first-child { border-top: 0; padding-top: 0; }
.legal-hdr { font-size: 32px; margin-bottom: 14px; }
.legal-sub { font-size: 22px; margin: 20px 0 10px; color: var(--txt); font-family: var(--fd); }
.legal-txt { color: var(--txt2); font-size: 15.5px; margin-bottom: 12px; }
.legal-txt:last-child { margin-bottom: 0; }
.legal-txt strong, .legal-list strong { color: var(--txt); font-weight: 600; }
.legal-list, .legal-steps { display: grid; gap: 10px; margin: 6px 0 14px; color: var(--txt2); font-size: 15.5px; }
.legal-list li { position: relative; padding-left: 22px; }
.legal-list li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background-color: var(--acc); }
.legal-steps { list-style: none; counter-reset: step; }
.legal-steps li { position: relative; padding-left: 36px; counter-increment: step; }
.legal-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 7px; font-family: var(--fm); font-size: 12px; display: grid; place-items: center; background-color: rgba(238,243,239,.12); color: var(--acc); }
.legal-warn { padding: 24px 26px; border-color: rgba(239,68,68,.45); background-color: rgba(239,68,68,.06); }
.legal-warn-hdr { font-family: var(--fm); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.legal-warn .legal-txt:last-child { margin-bottom: 0; }
.legal-copy { margin-top: 20px; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--fm); font-size: 12px; letter-spacing: .04em; color: var(--mute); line-height: 1.9; }
/* The rendered Markdown (js/legal.js): what the classes above don't cover. */
.legal-doc ol { margin: 6px 0 14px; padding-left: 1.4em; display: grid; gap: 10px; color: var(--txt2); font-size: 15.5px; }
.legal-doc blockquote { margin: 6px 0 14px; padding: 2px 0 2px 18px; border-left: 2px solid var(--line2); }
.legal-doc blockquote .legal-txt { font-size: 14px; }
.legal-doc hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.legal-status { font-family: var(--fm); font-size: 13px; letter-spacing: .04em; color: var(--txt3); }
.legal-error { display: grid; justify-items: start; gap: 14px; }
.legal-error .legal-txt { margin-bottom: 0; }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .sm-algo-grid { grid-template-columns: repeat(2, 1fr); }
  .sm-algo-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .home-hero-inner { grid-template-columns: 1fr; gap: 48px; padding-top: 72px; }
  .app-gallery { justify-content: start; }
}
@media (max-width: 900px) {
  .site-nav-links, .site-nav-cta { display: none; }
  .nav-hamburger { display: block; }
  .two-col, .sm-features-grid, .sm-plans, .sm-algo-grid-3 { grid-template-columns: 1fr; }
  .site-footer-grid { grid-template-columns: 1fr 1fr; }
  .sm-conditions-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
  .page-hero { padding: 44px 0 36px; }
  .sm-photo-break { height: 440px; }
}
@media (max-width: 640px) {
  :root { --pad: 20px; }
  .sm-algo-grid, .sm-algo-grid-3, .sm-conditions-grid, .site-footer-grid { grid-template-columns: 1fr; }
  .home-hero-inner { min-height: 0; padding: 56px var(--pad) 56px; }
  .hero-stats { gap: 22px; }
  .app-gallery { grid-template-columns: 1fr; justify-content: stretch; }
  .app-gallery-frame { width: min(280px, 100%); margin: 0 auto; }
  .app-gallery-tabs { flex-direction: row; flex-wrap: wrap; order: 2; }
  .app-gallery-tab { width: auto; flex: 1 1 45%; padding: 10px 12px; font-size: 12px; }
  .app-gallery-caption { text-align: center; }
  .sm-feat-card { flex-direction: column; }
  .sm-plan { padding: 26px 22px; }
  .btn-row .btn, .cta-actions .btn, .hero-actions .btn { width: 100%; }
}
