/* OrthoAnalytix - Landing page styles. (c) 2026 IdeaShelf. All rights reserved.
   Design: "Clinical Precision & Diagnostic Calm" (Stitch redesign). Plus Jakarta Sans headlines, Inter body,
   muted clinical blue accent, crisp 1px borders, restrained shadows. Light and dark themes follow the app
   setting (data-theme on <html>). Phones get a compact layout and a tab bar at the bottom. */
:root {
    --bg: #f4f6f9;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --surface-3: #f2f4f7;
    --ink: #0f1b2d;
    --text: #4b5563;
    --muted: #6b7280;
    --line: #e2e8f0;
    --accent: #4f7cac;
    --accent-hover: #3d6694;
    --accent-active: #305278;
    --accent-ink: #2f5f8d;
    --accent-tint: #eef4f9;
    --accent-ring: rgba(79, 124, 172, 0.18);
    --good: #059669;
    --good-tint: #ecfdf5;
    --good-line: #a7f3d0;
    --warn: #b45309;
    --warn-icon: #f59e0b;
    --warn-tint: #fef3c7;
    --danger: #dc2626;
    --danger-tint: #fef2f2;
    --dark-bg: #0a111c;
    --dark-surface: #121e2f;
    --dark-elev: #19273d;
    --dark-line: #22344d;
    --dark-text: #f1f5f9;
    --dark-muted: #94a3b8;
    --nav-bg: rgba(255, 255, 255, 0.9);
    --sh-1: 0 1px 2px 0 rgba(15, 27, 45, 0.04), 0 0 0 1px rgba(15, 27, 45, 0.05);
    --sh-2: 0 4px 6px -1px rgba(15, 27, 45, 0.07), 0 2px 4px -2px rgba(15, 27, 45, 0.05);
    --sh-3: 0 20px 25px -5px rgba(15, 27, 45, 0.1), 0 8px 10px -6px rgba(15, 27, 45, 0.06);
    --display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --r-sm: 6px;
    --r: 12px;
    --r-lg: 16px;
    --r-xl: 24px;
    --max: 1240px;
    --tabbar-h: 0px;
    color-scheme: light;
}
:root[data-theme="dark"] {
    --bg: #0a111c;
    --surface: #121e2f;
    --surface-2: #162336;
    --surface-3: #19273d;
    --ink: #f1f5f9;
    --text: #cbd5e1;
    --muted: #94a3b8;
    --line: #22344d;
    --accent: #6f9bd0;
    --accent-hover: #86acd9;
    --accent-active: #9dbce2;
    --accent-ink: #a4c3e8;
    --accent-tint: #1b2a3f;
    --accent-ring: rgba(111, 155, 208, 0.25);
    --good: #34d399;
    --good-tint: #0f2a22;
    --good-line: #1f5144;
    --warn: #fbbf24;
    --warn-icon: #fbbf24;
    --warn-tint: #2c2312;
    --danger: #f87171;
    --danger-tint: #2c1618;
    --dark-bg: #060b13;
    --dark-surface: #0e1827;
    --dark-elev: #152238;
    --nav-bg: rgba(18, 30, 47, 0.88);
    --sh-1: 0 0 0 1px rgba(255, 255, 255, 0.04);
    --sh-2: 0 4px 10px rgba(0, 0, 0, 0.35);
    --sh-3: 0 20px 40px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); margin: 0; text-wrap: balance; }
p { margin: 0; }
.ic { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.15em; }
.ic-accent { color: var(--accent); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 1000px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.select { user-select: all; color: var(--accent-ink); font-weight: 600; }

/* Buttons: 6px radius, 44px tall */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: var(--r-sm); font: 600 0.94rem var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 2px rgba(15, 27, 45, 0.12); }
:root[data-theme="dark"] .btn-primary { color: #0a111c; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { background: var(--accent-active); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--accent-tint); color: var(--accent-ink); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 0.88rem; }
.btn-lg { min-height: 48px; padding: 12px 24px; font-size: 1rem; }

/* Navigation */
.nav-wrap { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo { width: 30px; height: 30px; border-radius: 7px; background: var(--accent); position: relative; flex: none; }
.logo::before { content: ""; position: absolute; inset: 7px; border-radius: 3px; background: var(--surface); }
.brand-name { font: 700 1.05rem var(--display); color: var(--ink); letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text); text-decoration: none; font: 500 0.88rem var(--body); padding: 6px 0; transition: color 0.15s; }
.nav-links a:hover, .nav-links a.is-current { color: var(--accent-ink); }
.nav-links a.is-current { font-weight: 600; }
.nav-signin-mobile { display: none; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-signin { color: var(--text); text-decoration: none; font: 500 0.88rem var(--body); padding: 10px 8px; }
.nav-signin:hover { color: var(--accent-ink); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); align-items: center; justify-content: center; cursor: pointer; font-size: 1.2rem; }

/* Shared section parts */
.section { padding: 96px 0; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.25rem); line-height: 1.22; letter-spacing: -0.02em; margin: 10px 0 14px; }
.section-head p { font-size: 1.05rem; color: var(--text); }
.eyebrow, .kicker { display: inline-block; font: 600 0.7rem var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }
.kicker { color: var(--muted); }
.k-danger { color: var(--danger); }
.k-good { color: var(--good); }
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 24px; display: flex; flex-direction: column; transition: box-shadow 0.2s; }
.card:hover { box-shadow: var(--sh-2); }
.card h3 { font-size: 1rem; line-height: 1.4; margin-bottom: 8px; }
.card p { font-size: 0.9rem; color: var(--text); }
.card-foot { margin-top: auto; padding-top: 16px; font: 500 0.78rem var(--body); color: var(--muted); }
.card-foot.good { color: var(--good); }
.card-foot a { font-weight: 600; }
.ic-tile { width: 48px; height: 48px; border-radius: var(--r); display: grid; place-items: center; font-size: 1.4rem; flex: none; margin-bottom: 20px; }
.t-danger { background: var(--danger-tint); color: var(--danger); }
.t-warn { background: var(--warn-tint); color: var(--warn-icon); }
.t-accent { background: var(--accent-tint); color: var(--accent); }
.t-muted { background: var(--surface-3); color: var(--muted); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 80px; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.hero::before { width: 420px; height: 420px; top: -80px; right: 22%; background: rgba(79, 124, 172, 0.1); }
.hero::after { width: 360px; height: 360px; top: 30%; left: 2%; background: rgba(212, 224, 249, 0.5); }
:root[data-theme="dark"] .hero::after { background: rgba(79, 124, 172, 0.08); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.award { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--warn-tint); color: var(--ink); font: 600 0.7rem var(--body); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 24px; }
.award .ic { color: var(--warn-icon); font-size: 1.15rem; }
.hero h1 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.75rem); line-height: 1.18; letter-spacing: -0.025em; font-weight: 700; margin-bottom: 20px; }
.hl { color: var(--accent-ink); }
.lead { font-size: 1.08rem; line-height: 1.65; max-width: 560px; margin-bottom: 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { position: relative; margin: 0; }
.studio { background: var(--dark-bg); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--sh-3); color: var(--dark-text); }
.studio-bar { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--dark-line); font: 600 0.7rem var(--body); letter-spacing: 0.04em; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; }
.dots i:nth-child(2) { background: #f59e0b; }
.dots i:nth-child(3) { background: #10b981; }
.studio-title { color: var(--dark-muted); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.studio-tag { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: #34d399; background: rgba(16, 185, 129, 0.12); padding: 4px 8px; border-radius: var(--r-sm); white-space: nowrap; }
.studio-shot { margin: 12px 0; border-radius: var(--r); overflow: hidden; background: var(--dark-surface); }
.studio-shot img { width: 100%; }
.studio-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.studio-metrics div { background: var(--dark-surface); border-radius: 10px; padding: 10px 12px; }
.studio-metrics span { display: block; font: 600 0.66rem var(--body); letter-spacing: 0.04em; text-transform: uppercase; color: var(--dark-muted); }
.studio-metrics b { display: block; margin-top: 2px; font: 600 0.88rem var(--display); color: var(--dark-text); }
.studio-metrics b.good { color: #34d399; }
.studio-metrics b.soft { color: #9ecafe; }

/* Key figures */
.stats-band { padding: 40px 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { display: flex; flex-direction: column; padding: 18px 20px; border-radius: var(--r); background: var(--surface-3); transition: background 0.2s; }
.stat:hover { background: var(--accent-tint); }
.stat-ic { display: none; }
.stat b { font: 700 clamp(1.6rem, 1.2rem + 1vw, 2.1rem)/1.2 var(--display); color: var(--accent-ink); letter-spacing: -0.02em; margin: 4px 0 2px; }
.stat-t { font-size: 0.82rem; color: var(--text); }

/* Problem: cards on desktop, an accordion on phones */
.problem { padding: 0; overflow: hidden; display: block; }
.problem summary { list-style: none; display: block; padding: 24px 24px 0; cursor: default; pointer-events: none; }
.problem summary::-webkit-details-marker { display: none; }
.problem summary h3 { margin-bottom: 8px; }
.problem .chev { display: none; }
.problem > p { padding: 0 24px; }
.problem .card-foot { display: block; padding: 14px 24px; margin-top: 24px; background: var(--surface-2); border-top: 1px solid var(--line); }

/* Time saved */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 1000px; margin: 0 auto; }
.compare-col { border-radius: var(--r-lg); padding: 32px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.compare-col.before { background: var(--surface-3); }
.compare-col.after { background: var(--surface); box-shadow: var(--sh-2); }
.compare-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.compare-head h3 { font-size: 1.45rem; line-height: 1.3; margin-top: 4px; }
.big-ic { font-size: 2rem; }
.compare ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.compare li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.94rem; counter-increment: s; }
.compare li::before { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 600 0.72rem var(--body); margin-top: 1px; }
.before li { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(107, 114, 128, 0.5); }
.before li::before { content: counter(s); background: var(--danger-tint); color: var(--danger); text-decoration: none; }
.after li { color: var(--ink); font-weight: 500; }
.after li::before { content: "✓"; background: var(--good-tint); color: var(--good); }
.compare-foot { margin-top: auto; padding-top: 24px; display: inline-flex; align-items: center; gap: 8px; font: 600 0.86rem var(--body); color: var(--accent-ink); }
.footnote { text-align: center; font-size: 0.8rem; color: var(--muted); margin: 28px auto 0; max-width: 640px; }
.mid-cta { margin: 36px auto 0; max-width: 1000px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border-radius: var(--r-lg); background: var(--accent-tint); border: 1px solid var(--line); }
.mid-cta p { font: 600 1rem var(--display); color: var(--ink); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 24px; }
.step { text-align: left; display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); cursor: pointer; font: inherit; color: inherit; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; }
.step:hover { box-shadow: var(--sh-2); }
.step-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.step-n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-tint); color: var(--accent-ink); font: 700 1rem var(--display); }
.step-t { font: 600 1rem var(--display); color: var(--ink); }
.step-d { font-size: 0.86rem; color: var(--text); }
.step.is-active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.step.is-active .step-n { background: var(--accent); color: #fff; }
:root[data-theme="dark"] .step.is-active .step-n { color: #0a111c; }
.step-panel { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: 40px; align-items: center; padding: 32px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.step-copy h3 { font-size: 1.4rem; line-height: 1.3; margin: 6px 0 12px; }
.step-copy p { font-size: 0.98rem; margin-bottom: 18px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; font-size: 0.92rem; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--good-tint); box-shadow: inset 0 0 0 1px var(--good-line); }
.ticks li::after { content: ""; position: absolute; left: 5px; top: 8px; width: 6px; height: 3px; border-left: 2px solid var(--good); border-bottom: 2px solid var(--good); transform: rotate(-45deg); }
.step-media { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.step-media img { width: 100%; transition: opacity 0.2s; }

/* Analyses */
.an-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; transition: background 0.2s, box-shadow 0.2s; }
.an-card:hover { background: var(--surface); box-shadow: var(--sh-2); }
.an-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.an-n { font: 600 0.74rem var(--body); color: var(--muted); font-variant-numeric: tabular-nums; }
.chip-sm { font: 600 0.68rem var(--body); letter-spacing: 0.02em; color: var(--accent-ink); background: var(--accent-tint); padding: 3px 9px; border-radius: var(--r-sm); }
.an-card h3 { font-size: 1rem; margin-bottom: 6px; }
.an-card p { font-size: 0.84rem; color: var(--text); margin-bottom: 16px; }
.an-card dl { margin: auto 0 0; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); display: grid; gap: 6px; }
.an-card dl div { display: flex; justify-content: space-between; gap: 10px; font-size: 0.8rem; }
.an-card dt { color: var(--muted); }
.an-card dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.an-shot { margin: 40px 0 0; }
.an-shot img { width: 100%; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--sh-2); }
.an-shot figcaption { margin-top: 12px; text-align: center; font-size: 0.82rem; color: var(--muted); }

/* Features */
.feature { padding: 28px; }
.feature h3 { font-size: 1.04rem; }
.feature-media { margin: -28px -28px 24px; height: 200px; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--surface-2); border-radius: var(--r-lg) var(--r-lg) 0 0; display: flex; align-items: center; justify-content: center; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.feature-media img[src*="segmentation-closeup"] { object-position: center 45%; }
.feature .card-foot { border-top: 1px solid var(--line); margin-top: auto; padding-top: 14px; }
.feature p + .card-foot { margin-top: 24px; }

/* Benefits */
.benefit { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.benefit > div { display: flex; flex-direction: column; flex: 1; }
.ic-round { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); color: var(--accent); box-shadow: var(--sh-1); font-size: 1.2rem; flex: none; }
.benefit h3 { font-size: 0.98rem; margin-bottom: 6px; }
.benefit p { font-size: 0.84rem; color: var(--text); }
.benefit-tag { margin-top: auto; padding-top: 16px; font: 600 0.76rem var(--body); color: var(--accent-ink); }

/* Privacy: dark panel */
.privacy-panel { background: var(--dark-bg); color: var(--dark-text); border-radius: var(--r-xl); padding: 56px; box-shadow: var(--sh-3); }
.privacy-panel h2 { color: var(--dark-text); }
.privacy-panel .section-head p { color: var(--dark-muted); }
.pill-dark { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: var(--dark-elev); color: #9ecafe; font: 600 0.7rem var(--body); letter-spacing: 0.08em; text-transform: uppercase; }
.pledge { background: var(--dark-surface); border: 1px solid var(--dark-line); border-radius: var(--r-lg); padding: 24px; }
.pledge .ic { font-size: 1.6rem; color: #7fa9d6; margin-bottom: 14px; display: block; }
.pledge h3 { color: var(--dark-text); font-size: 1rem; margin-bottom: 6px; }
.pledge p { color: var(--dark-muted); font-size: 0.86rem; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--dark-line); }
.legal-links a { color: #9ecafe; font: 600 0.86rem var(--body); text-decoration: none; }
.legal-links a:hover { text-decoration: underline; }

/* Contact: the enquiry form, on the page */
.enquiry { background: var(--surface-3); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 40px; box-shadow: var(--sh-2); }
:root[data-theme="dark"] .enquiry { background: var(--surface-2); }
.enq-head { margin-bottom: 28px; }
.enq-head h3 { font-size: 1.25rem; }
.enq-head p { color: var(--text); font-size: 0.92rem; margin-top: 4px; }
.enq-form { display: grid; gap: 22px; }
.enq-form[hidden], .enq-done[hidden] { display: none; }
.enq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.enq-row-wide { grid-template-columns: 1fr 2fr; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.field[hidden] { display: none; }
.field label, .field legend { font: 500 0.82rem var(--body); color: var(--ink); padding: 0; }
.field legend { margin-bottom: 8px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.req { color: var(--danger); }
.opt { color: var(--muted); font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field select, .field textarea {
    width: 100%; min-height: 44px; padding: 10px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface);
    color: var(--ink); font: 400 0.94rem var(--body); transition: border-color 0.15s, box-shadow 0.15s; }
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.phone { display: grid; grid-template-columns: 150px 1fr; gap: 10px; }
.field-err { color: var(--danger); font: 600 0.78rem var(--body); min-height: 0; }
.field-err:empty { display: none; }
.field-hint { color: var(--muted); font-size: 0.78rem; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile, .choice { position: relative; cursor: pointer; }
.tile input, .choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tile span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--line); font: 500 0.86rem var(--body); color: var(--text); transition: background 0.15s, color 0.15s, border-color 0.15s; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font: 500 0.86rem var(--body); color: var(--text); transition: background 0.15s, color 0.15s, border-color 0.15s; }
.tile:hover span, .choice:hover span { border-color: var(--accent); color: var(--accent-ink); }
.tile input:checked + span, .choice input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
:root[data-theme="dark"] .tile input:checked + span, :root[data-theme="dark"] .choice input:checked + span { color: #0a111c; }
.tile input:focus-visible + span, .choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.is-invalid .tile span, .choices.is-invalid .choice span { border-color: var(--danger); }
.consent { display: flex; gap: 12px; align-items: flex-start; font: 400 0.86rem var(--body) !important; color: var(--text) !important; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.enq-alert { padding: 12px 16px; border-radius: var(--r-sm); background: var(--danger-tint); color: var(--danger); font: 500 0.88rem var(--body); border-left: 4px solid var(--danger); }
.enq-alert[hidden] { display: none; }
.enq-actions { display: flex; justify-content: flex-end; }
.spin { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.5); border-top-color: #fff; animation: spin 0.8s linear infinite; }
#enq-submit.is-busy .spin { display: inline-block; }
#enq-submit.is-busy .send-ic { display: none; }
#enq-submit:disabled { opacity: 0.8; cursor: progress; }
@keyframes spin { to { transform: rotate(360deg); } }
.enq-done { text-align: center; padding: 32px 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.enq-done:focus { outline: none; }
.done-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--good-tint); color: var(--good); font-size: 2.2rem; margin-bottom: 10px; }
.enq-done h3 { font-size: 1.5rem; }
.enq-done p { color: var(--text); }
.enq-ref { display: inline-block; padding: 8px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--accent-ink); font: 700 1.3rem var(--display); font-variant-numeric: tabular-nums; margin: 4px 0 16px; }

/* Footer */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 48px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.2fr 1.6fr; gap: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer-brand > p { font-size: 0.84rem; color: var(--muted); margin-top: 8px; }
.footer-brand .footer-note { margin-top: 16px; padding: 14px 16px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); color: var(--text); line-height: 1.55; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h4 { font: 600 0.7rem var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.footer-cols a { display: block; padding: 5px 0; font-size: 0.88rem; color: var(--text); text-decoration: none; }
.footer-cols a:hover { color: var(--accent-ink); }
.footer-copy { padding-top: 24px; font-size: 0.8rem; color: var(--muted); }

/* Phone tab bar (hidden on larger screens) */
.tabbar { display: none; }

/* Privacy notice */
.notice { position: fixed; left: 50%; bottom: calc(16px + var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: min(760px, calc(100% - 32px)); display: flex; align-items: center; gap: 16px; padding: 14px 16px 14px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-3); z-index: 60; }
.notice p { font-size: 0.86rem; color: var(--text); }
.notice[hidden] { display: none; }

/* Reveal on scroll */
.will-reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.will-reveal.revealed { opacity: 1; transform: none; }

/* ── Tablet ── */
@media (max-width: 1080px) {
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero-visual { max-width: 760px; }
    .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
    .grid-5 { grid-template-columns: repeat(3, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .step-panel { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 900px) {
    .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--sh-3); }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 14px 4px; font-size: 1rem; border-bottom: 1px solid var(--line); }
    .nav-links a:last-child { border-bottom: 0; }
    .nav-signin-mobile { display: block; }
    .nav-signin { display: none; }
    .menu-btn { display: inline-flex; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ── Phone ── */
@media (max-width: 640px) {
    :root { --tabbar-h: 64px; }
    body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
    html { scroll-padding-top: 72px; }
    .wrap { padding: 0 16px; }
    .nav { height: 60px; }
    .nav-links { top: 60px; }
    .nav-actions .btn-sm { display: none; }
    .section { padding: 56px 0; }
    .section-head { margin-bottom: 28px; }
    .section-head h2 { font-size: 1.45rem; line-height: 1.3; }
    .section-head p { font-size: 0.95rem; }
    .grid { gap: 14px; }
    .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }

    .hero { padding: 28px 0 56px; }
    .award { font-size: 0.64rem; margin-bottom: 18px; }
    .hero h1 { font-size: 1.75rem; line-height: 1.25; }
    .lead { font-size: 0.98rem; margin-bottom: 24px; }
    .cta-row { flex-direction: column; }
    .cta-row .btn { width: 100%; }
    .studio { padding: 12px; }
    .studio-tag { display: none; }
    .studio-metrics { grid-template-columns: 1fr 1fr; }
    .studio-metrics div:last-child { grid-column: span 2; }

    .stats-band { padding: 24px 0; }
    .stats { gap: 12px; }
    .stat { padding: 14px; }
    .stat-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--surface); color: var(--accent); margin-bottom: 8px; box-shadow: var(--sh-1); }
    .stat .kicker { display: none; }
    .stat b { font-size: 1.3rem; }
    .stat-t { font-size: 0.76rem; }

    .problem summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; pointer-events: auto; min-height: 56px; }
    .problem summary .ic-tile { width: 36px; height: 36px; margin: 0; font-size: 1.1rem; border-radius: 9px; }
    .problem summary h3 { margin: 0; flex: 1; font-size: 0.95rem; }
    .problem .chev { display: block; color: var(--muted); transition: transform 0.2s; }
    .problem[open] .chev { transform: rotate(180deg); }
    .problem > p { padding: 0 16px 0 64px; }
    .problem .card-foot { display: none; }
    .problem[open] { padding-bottom: 16px; }

    .compare { grid-template-columns: 1fr; gap: 14px; }
    .compare-col { padding: 22px; }
    .compare-head h3 { font-size: 1.15rem; }
    .mid-cta { flex-direction: column; align-items: stretch; text-align: center; }

    .steps { grid-template-columns: 1fr; gap: 10px; }
    .step { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 14px 16px; }
    .step-top { margin: 0; }
    .step-top .kicker { display: none; }
    .step-n { width: 34px; height: 34px; font-size: 0.9rem; }
    .step-t { flex: 1; }
    .step-d { flex-basis: 100%; padding-left: 48px; font-size: 0.82rem; }
    .step-panel { padding: 18px; gap: 18px; border-radius: var(--r-lg); }
    .step-copy h3 { font-size: 1.15rem; }

    .an-card { padding: 18px; }
    .an-shot { margin-top: 24px; }

    .feature { padding: 22px; }
    .feature-media { margin: -22px -22px 20px; height: 180px; }

    .benefit { flex-direction: row; align-items: flex-start; gap: 14px; padding: 18px; }

    .privacy-panel { padding: 28px 20px; border-radius: var(--r-lg); }
    .privacy-panel .grid-4 { grid-template-columns: 1fr 1fr; }
    .pledge { padding: 16px; }
    .pledge .ic { font-size: 1.3rem; margin-bottom: 10px; }
    .pledge p { font-size: 0.8rem; }

    .enquiry { padding: 22px 16px; border-radius: var(--r-lg); }
    .enq-row, .enq-row-wide { grid-template-columns: 1fr; }
    .phone { grid-template-columns: 120px 1fr; }
    .tiles { grid-template-columns: 1fr 1fr; }
    .enq-actions .btn { width: 100%; }

    .footer { padding: 36px 0 24px; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .footer-cols > div:last-child { grid-column: span 2; }

    .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--nav-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
    .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); text-decoration: none; font: 500 0.66rem var(--body); }
    .tabbar a .ic { font-size: 1.3rem; }
    .tabbar a.is-current { color: var(--accent-ink); font-weight: 600; }

    .notice { flex-direction: column; align-items: stretch; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
}
