
/* Layout concept: editorial agency site with working GEO tools. Start-aligned serif headlines, hairlines, one brass accent on deep ink, cursor aura and spotlight cards. Seven views routed by hash. */
:root {
  --bg: #F3F5F8;
  --surface: #FFFFFF;
  --surface-2: #E8ECF2;
  --fg: #0D1426;
  --muted: #4F5A70;
  --line: #D3DAE5;
  --accent: #7A5B14;
  --btn-bg: #0D1426;
  --on-btn: #F3F5F8;
  --good: #1F7A4D;
  --warn: #965800;
  --bad: #B42336;
  --wa: #14803C;
  --display: 'Heebo', 'Assistant', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Frank Ruhl Libre', 'David Libre', 'Times New Roman', serif;
  --body: 'Heebo', 'Assistant', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0F1E; --surface: #111933; --surface-2: #18213F; --fg: #EEF1F7; --muted: #9AA6C0;
    --line: #243055; --accent: #D8B25A; --btn-bg: #D8B25A; --on-btn: #0A0F1E;
    --good: #5FCB93; --warn: #E8B04A; --bad: #F07A8A; --wa: #1FA855;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A0F1E; --surface: #111933; --surface-2: #18213F; --fg: #EEF1F7; --muted: #9AA6C0;
  --line: #243055; --accent: #D8B25A; --btn-bg: #D8B25A; --on-btn: #0A0F1E;
  --good: #5FCB93; --warn: #E8B04A; --bad: #F07A8A; --wa: #1FA855;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 16px; line-height: 1.7; margin: 0; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--bg); z-index: 30; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: color-mix(in srgb, var(--bg) 80%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-block: 12px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); }
.logo svg { width: 42px; height: 42px; flex: none; }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark b { font-family: var(--serif); font-weight: 900; font-size: 1.6rem; letter-spacing: -0.02em; }
.wordmark i { font-style: normal; font-size: 0.62rem; letter-spacing: 0.42em; color: var(--accent); margin-top: 5px; font-weight: 500; }
.nav { display: flex; gap: 2px; overflow-x: auto; min-width: 0; max-width: 100%; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; text-decoration: none; font-size: 0.92rem; font-weight: 500; color: var(--muted); padding: 8px 14px; border-radius: 999px; }
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--fg); background: var(--surface-2); }
.icon-btn { background: none; border: 1px solid var(--line); color: var(--fg); width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; cursor: pointer; }
.icon-btn:hover { border-color: var(--accent); }
.header-tools { display: flex; align-items: center; gap: 10px; }
@media (max-width: 1000px) { .nav { order: 3; flex-basis: 100%; } }
.progress { position: absolute; inset-inline: 0; bottom: -1px; height: 2px; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: right; }

/* aura and spotlight */
.aura { position: fixed; left: 0; top: 0; width: 320px; height: 320px; border-radius: 50%; pointer-events: none; z-index: 35; opacity: 0; transition: opacity .7s ease; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 9%, transparent) 0%, color-mix(in srgb, var(--accent) 3%, transparent) 38%, transparent 70%); will-change: transform; }
.aura.on { opacity: 1; }
.spot { position: relative; overflow: hidden; }
.spot::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s ease; background: radial-gradient(280px circle at var(--sx, 50%) var(--sy, 50%), color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%); }
.spot:hover::after { opacity: 1; }

/* common */
section.view { padding-block: 56px 72px; overflow-x: clip; }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.14em; font-weight: 500; color: var(--accent); text-transform: uppercase; display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 60ch; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 500 1rem var(--body); padding: 13px 24px; border-radius: 999px; border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.magnet { transform: translate(var(--tx, 0px), var(--ty, 0px)); }
.btn.magnet:hover { transform: translate(var(--tx, 0px), calc(var(--ty, 0px) - 1px)); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-primary { background: var(--btn-bg); color: var(--on-btn); }
.btn-ghost { border-color: var(--line); color: var(--fg); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); }
.btn-wa { background: var(--wa); color: #fff; }
.btn svg { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.caption { font-size: 0.8rem; color: var(--muted); }
.mini { font: 500 0.82rem var(--body); background: none; border: 1px solid var(--line); color: var(--fg); padding: 6px 12px; border-radius: 6px; cursor: pointer; flex: none; }
.mini:hover { border-color: var(--accent); }
.seg { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); flex-wrap: wrap; max-width: 100%; }
.seg button { font: 500 0.92rem var(--body); background: none; border: 0; color: var(--muted); padding: 8px 14px; border-radius: 7px; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--btn-bg); color: var(--on-btn); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 0.85rem; font-weight: 500; }
.field input, .field textarea, .field select { font: inherit; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; width: 100%; min-width: 0; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); outline: none; }
.field textarea.mono { font: 0.82rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.field-hint { font-size: 0.8rem; color: var(--muted); }
.err { color: var(--bad); font-size: 0.88rem; min-height: 1.2em; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 500; padding: 3px 10px; border-radius: 99px; border: 1px solid currentColor; white-space: nowrap; justify-self: start; }
.chip b { font-weight: 700; }
.chip.pass { color: var(--good); } .chip.warn { color: var(--warn); } .chip.fail { color: var(--bad); } .chip.info { color: var(--muted); }
.findings { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.finding { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); align-items: start; }
.finding:first-child { border-top: 0; }
.finding strong { font-weight: 500; display: block; }
.finding .d { color: var(--muted); font-size: 0.9rem; display: block; }
@media (max-width: 560px) { .finding { grid-template-columns: minmax(0, 1fr); gap: 6px; } }
.code { direction: ltr; text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px; font: 0.82rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow: auto; max-height: 420px; white-space: pre; margin: 0; color: var(--fg); }

/* hero */
.qc { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px; margin-top: 30px; display: flex; flex-direction: column; gap: 10px; }
.qc:focus-within { border-color: var(--accent); }
.qc-label { font-weight: 500; font-size: 0.92rem; }
.qc-row { display: flex; flex-wrap: wrap; gap: 10px; }
.qc-row input { flex: 1 1 220px; min-width: 0; font: inherit; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 13px 14px; }
.qc-row input:focus { outline: none; border-color: var(--accent); }
.ai-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.ai-tag { position: absolute; top: 10px; inset-inline-end: 14px; font-size: 0.72rem; letter-spacing: 0.1em; padding: 2px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: var(--bg); z-index: 1; }
.bubble { padding: 12px 16px; border-radius: 20px; font-size: 0.96rem; }
.bubble small { display: block; font-size: 0.72rem; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 2px; }
.bubble.q { background: var(--surface-2); align-self: flex-start; max-width: 92%; min-height: 4.4em; }
.bubble.a { border: 1px solid var(--line); }
.slots { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.slots li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; border: 1px dashed var(--line); color: var(--muted); font-size: 0.92rem; }
.slots li.you { border: 1px solid var(--accent); color: var(--fg); background: var(--surface-2); font-weight: 500; }
.slots li::before { content: attr(data-n); font-family: var(--display); font-weight: 700; color: var(--accent); min-width: 1ch; }
.qc-result { margin-bottom: 8px; }
.qc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
@media (max-width: 860px) { .qc-grid { grid-template-columns: minmax(0, 1fr); } }
.tool-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 480px) { .tool-links { grid-template-columns: minmax(0, 1fr); } }
.tool-links a { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; text-decoration: none; background: var(--bg); }
.tool-links a:hover { border-color: var(--accent); }
.tool-links b { font-weight: 500; }
.tool-links span { color: var(--muted); font-size: 0.82rem; }
.panel h3 { font-size: 1.3rem; }

/* content blocks */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.trio > div { padding: 28px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }

.trio h3 { font-size: 1.4rem; }
.trio p, .rows p { color: var(--muted); }
@media (max-width: 800px) { .trio { grid-template-columns: minmax(0, 1fr); } }
.rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.row { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }

.row h3 { font-size: 1.3rem; }
@media (max-width: 700px) { .rows { grid-template-columns: minmax(0, 1fr); } }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.step::before { counter-increment: s; content: counter(s); font-family: var(--display); font-weight: 900; font-size: 2.2rem; color: var(--accent); line-height: 1; }
.step h3 { font-size: 1.25rem; }
.step p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 800px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.note { border-inline-start: 3px solid var(--accent); padding: 4px 18px; color: var(--muted); max-width: 70ch; }
.cta-band { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: clamp(24px, 5vw, 48px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); max-width: 22ch; }
.stack { display: flex; flex-direction: column; gap: 72px; margin-top: 48px; }
.cmp-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 36px; align-items: start; }
@media (max-width: 860px) { .cmp-wrap { grid-template-columns: minmax(0, 1fr); } }
.cmp { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 4px; min-height: 330px; }
.sk { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.sk:first-of-type { border-top: 0; }
.sk i { display: block; height: 9px; border-radius: 5px; background: var(--surface-2); width: 92%; }
.sk i.t { width: 52%; height: 12px; background: color-mix(in srgb, var(--accent) 38%, var(--surface-2)); }
.sk i.s { width: 70%; }
details.faq { border-top: 1px solid var(--line); padding: 16px 0; }
details.faq:last-child { border-bottom: 1px solid var(--line); }
details.faq summary { cursor: pointer; font-weight: 500; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
details.faq[open] summary::after { content: "\2212"; }
details.faq p { color: var(--muted); margin-top: 10px; max-width: 70ch; }

/* audit */
.audit-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 32px; align-items: start; }
@media (max-width: 900px) { .audit-grid { grid-template-columns: minmax(0, 1fr); } }
.how { margin: 0; padding-inline-start: 20px; color: var(--muted); font-size: 0.92rem; display: flex; flex-direction: column; gap: 4px; }
.checks { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface); }
.check { display: flex; gap: 14px; padding: 16px 18px; cursor: pointer; border-top: 1px solid var(--line); align-items: flex-start; }
.check:first-child { border-top: 0; }
.check:hover { background: var(--surface-2); }
.check input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--accent); flex: none; }
.check b { display: block; font-weight: 500; line-height: 1.5; }
.check span { color: var(--muted); font-size: 0.88rem; display: block; }
.result { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 140px); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
@media (max-width: 900px) { .result { position: static; } }
.score { display: flex; align-items: center; gap: 20px; }
.ring { width: 112px; height: 112px; flex: none; }
.ring .track { stroke: var(--surface-2); }
.ring .bar { stroke: var(--accent); transition: stroke-dashoffset .5s ease; }
.ring text { fill: var(--fg); font-family: var(--display); font-weight: 900; font-size: 30px; }
.tier { font-family: var(--display); font-size: 1.4rem; font-weight: 700; }
.missing { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; max-height: 260px; overflow-y: auto; }
.missing li { padding-inline-start: 18px; position: relative; color: var(--muted); }
.missing li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.7em; width: 8px; height: 2px; background: var(--warn); }
.src-out .findings { max-height: 460px; overflow-y: auto; }
.gauge { position: relative; width: 150px; height: 150px; flex: none; }
.gauge svg { width: 100%; height: 100%; display: block; }
.gauge .track { stroke: var(--surface-2); }
.gauge .bar { stroke: var(--accent); transition: stroke-dashoffset 1s cubic-bezier(.2,.8,.2,1), stroke .4s ease; }
.gauge .num { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; direction: ltr; }
.gauge .num b { display: block; font-family: var(--display); font-weight: 900; font-size: 2.7rem; line-height: 1; font-variant-numeric: tabular-nums; }
.gauge .num small { display: block; font-size: 0.7rem; color: var(--muted); margin-top: 4px; }
.sev { display: flex; gap: 8px; flex-wrap: wrap; }
.cats { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.cat { display: grid; grid-template-columns: 112px minmax(0, 1fr) 38px; gap: 12px; align-items: center; font-size: 0.9rem; }
.cat .tr { height: 10px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.cat .tr i { display: block; height: 100%; width: 0; border-radius: 6px; transition: width .9s cubic-bezier(.2,.8,.2,1); }
.cat output { font-variant-numeric: tabular-nums; color: var(--muted); text-align: end; }
@media (max-width: 480px) { .cat { grid-template-columns: 92px minmax(0, 1fr) 34px; gap: 8px; } }
.capnote { border-inline-start: 3px solid var(--warn); padding: 6px 12px; font-size: 0.88rem; color: var(--muted); background: var(--surface-2); border-radius: 0 8px 8px 0; }
.finding.s-fail { border-inline-start: 3px solid var(--bad); padding-inline-start: 12px; }
.finding.s-warn { border-inline-start: 3px solid var(--warn); padding-inline-start: 12px; }
#view-home { padding-top: 0; }
.hero-bg { position: relative; overflow: hidden; color: #fff; border-radius: 0 0 44px 44px; isolation: isolate; background: #0A0F1E; }
.hb-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; z-index: -2; }
.hb-veil { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 50% 0%, rgba(10, 15, 30, .12), rgba(10, 15, 30, .64) 72%), linear-gradient(180deg, rgba(10, 15, 30, .40), rgba(10, 15, 30, .58)); }
.hb-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; padding-block: clamp(56px, 9vw, 112px) clamp(48px, 6vw, 72px); }
.pill { display: inline-flex; align-items: center; gap: 10px; font-size: 0.82rem; letter-spacing: 0.12em; font-weight: 500; padding: 7px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #E9C77B; box-shadow: 0 0 12px #E9C77B; }
.hb-inner h1 { font-weight: 900; font-size: clamp(2.4rem, 6.4vw, 5.1rem); line-height: 1.06; letter-spacing: -0.035em; max-width: 21ch; margin-inline: auto; color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.grad { background: linear-gradient(90deg, #F7E3AE, #E5B85F 55%, #F2D391); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; text-shadow: none; }
.hb-lead { color: rgba(255, 255, 255, .84); font-size: clamp(1.05rem, 1.7vw, 1.32rem); max-width: 56ch; }
.hero-bg .qc { width: 100%; max-width: 780px; margin: 10px 0 0; background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .26); border-radius: 28px; padding: 22px 24px; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); text-align: start; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .65); }
.hero-bg .qc:focus-within { border-color: #E9C77B; }
.hero-bg .qc-label { color: #fff; }
.hero-bg .qc-row input { background: rgba(8, 12, 28, .55); color: #fff; border-color: rgba(255, 255, 255, .22); border-radius: 999px; padding: 15px 22px; }
.hero-bg .qc-row input::placeholder { color: rgba(255, 255, 255, .55); }
.hero-bg .qc-row input:focus { border-color: #E9C77B; }
.hero-bg .qc .btn-primary { background: linear-gradient(135deg, #F2D68F, #C99A3C); color: #0A0F1E; font-weight: 700; }
.hero-bg .qc .caption, .hero-bg .qc .caption a { color: rgba(255, 255, 255, .8); }
.hero-bg .err { color: #FFB4BE; }
.hb-engines { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 8px 26px; margin-top: 12px; }
.hb-engines b { font-weight: 700; font-size: 1.05rem; color: rgba(255, 255, 255, .82); }
.hb-engines .caption { color: rgba(255, 255, 255, .55); }
.hero-bg .hm-toggle { inset-inline-start: auto; inset-inline-end: 18px; bottom: 18px; }
@media (max-width: 600px) { .hero-bg { border-radius: 0 0 28px 28px; } .hero-bg .qc { padding: 16px; border-radius: 22px; } }
.hm-toggle { position: absolute; z-index: 2; inset-inline-start: 14px; bottom: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .55); background: rgba(10, 15, 30, .5); color: #fff; display: grid; place-items: center; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hm-toggle:hover { background: rgba(10, 15, 30, .72); }
.hdr-cta { padding: 8px 16px; font-size: 0.9rem; }
.pkgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .pkgs { grid-template-columns: minmax(0, 1fr); } }
.pkg { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pkg.mid { border-color: var(--accent); }
.pkg h3 { font-size: 1.5rem; }
.pkg .sub { color: var(--muted); font-size: 0.95rem; }
.pkg ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pkg li { position: relative; padding-inline-start: 24px; color: var(--muted); font-size: 0.95rem; }
.pkg li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--accent); font-weight: 700; }
.pkg .price { font-size: 0.88rem; font-weight: 500; border-top: 1px solid var(--line); padding-top: 12px; }
.ts { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
.ts-track { display: flex; width: max-content; animation: tsmove 60s linear infinite; }
.ts:hover .ts-track, .ts:focus-within .ts-track { animation-play-state: paused; }
@keyframes tsmove { from { transform: translateX(0); } to { transform: translateX(50%); } }
.ts-card { flex: 0 0 340px; width: 340px; margin: 0 0 0 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.ts-card blockquote { margin: 0; font-size: 1.02rem; line-height: 1.65; }
.ts-card figcaption { display: flex; flex-direction: column; font-weight: 500; }
.ts-card figcaption small { color: var(--muted); font-weight: 400; font-size: 0.85rem; }
@media (prefers-reduced-motion: reduce) { .ts { -webkit-mask-image: none; mask-image: none; } .ts-track { animation: none; width: auto; flex-wrap: wrap; gap: 20px; } .ts-card { margin: 0; } .ts-card.clone { display: none; } }

/* tools */
.tool-panel { display: flex; flex-direction: column; gap: 24px; margin-top: 28px; }
.tool-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .tool-grid { grid-template-columns: minmax(0, 1fr); } }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 520px) { .two { grid-template-columns: minmax(0, 1fr); } }
.faq-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.faq-row .f { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.faq-row input { font: inherit; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%; min-width: 0; }
.qlist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; counter-reset: q; }
.qlist li { counter-increment: q; padding: 11px 0; border-top: 1px solid var(--line); display: flex; gap: 12px; }
.qlist li:first-child { border-top: 0; }
.qlist li::before { content: counter(q); font-family: var(--display); font-weight: 700; color: var(--accent); min-width: 1.6ch; }
.bot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--line); align-items: center; }
.bot:first-child { border-top: 0; }
.bot b { direction: ltr; unicode-bidi: embed; font-weight: 500; }
.bot span { color: var(--muted); font-size: 0.82rem; grid-column: 1 / -1; }
.bots { display: flex; flex-direction: column; }

/* roi */
.roi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 900px) { .roi { grid-template-columns: minmax(0, 1fr); } }
.slider-head { display: flex; justify-content: space-between; gap: 12px; font-size: 0.92rem; font-weight: 500; }
.slider-head output { font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 700; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.big { font-family: var(--display); font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.1; }
.formula { font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }

/* about */
.about { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 760px) { .about { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.portrait { width: 100%; max-width: 260px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 1px solid var(--line); outline: 6px solid var(--surface-2); outline-offset: -1px; display: block; }
.monogram { width: 200px; height: 200px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 4rem; color: var(--accent); direction: ltr; }
.prose { display: flex; flex-direction: column; gap: 18px; max-width: 64ch; }
.prose p { color: var(--muted); font-size: 1.05rem; }

/* blog */
.posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 800px) { .posts { grid-template-columns: minmax(0, 1fr); } }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.post time { font-size: 0.8rem; color: var(--accent); font-weight: 500; letter-spacing: 0.04em; }
.post h3 { font-size: 1.3rem; }
.post p { color: var(--muted); font-size: 0.95rem; }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr); } }
.form { display: flex; flex-direction: column; gap: 16px; position: relative; }
.hp { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); pointer-events: none; }
.copyline { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); min-width: 0; }
.copyline code { font-family: var(--body); direction: ltr; overflow-wrap: anywhere; }
.sent-box { border: 1px solid var(--accent); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 14px; background: var(--surface-2); }
.sent-box.ok { border-color: var(--good); }
.preview { white-space: pre-wrap; font-size: 0.92rem; color: var(--muted); background: var(--bg); border-radius: 8px; padding: 12px 14px; }

/* palette */
.pal { position: fixed; inset: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(6px); display: flex; justify-content: center; align-items: flex-start; padding: 12vh max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
.pal-box { width: 100%; max-width: 560px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); overflow: hidden; }
.pal-box input { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--fg); font: inherit; padding: 16px 18px; }
.pal-box input:focus { outline: none; }
.pal-box ul { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow: auto; }
.pal-box li { padding: 10px 12px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.pal-box li[aria-selected="true"] { background: var(--surface-2); }
.pal-box li small { color: var(--muted); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px 96px; }
.foot { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; }
.foot p { color: var(--muted); font-size: 0.9rem; }
.foot .ltr { direction: ltr; unicode-bidi: embed; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; }
.foot-links a { color: var(--muted); font-size: 0.9rem; text-decoration: none; }
.foot-links a:hover { color: var(--fg); }

/* floating whatsapp */
.fab { position: fixed; z-index: 50; left: calc(16px + env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.28); text-decoration: none; transition: transform .15s ease; }
.fab:hover { transform: scale(1.06); }
.fab svg { width: 26px; height: 26px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--btn-bg); color: var(--on-btn); padding: 10px 16px; border-radius: 999px; z-index: 100; text-decoration: none; }
.skip:focus { top: 10px; }
.section-head h1 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 24px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--fg); }
.crumbs i { font-style: normal; opacity: .6; }
a.post { text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
a.post:hover { border-color: var(--accent); transform: translateY(-2px); }
.post h2 { font-size: 1.3rem; }
.post .more { color: var(--accent); font-weight: 500; font-size: 0.9rem; margin-top: auto; }
.more-links { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 28px; color: var(--muted); font-size: 0.95rem; }
.more-links a { color: var(--fg); }
.article { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.article header { display: flex; flex-direction: column; gap: 14px; margin-bottom: 8px; }
.article time { font-size: 0.85rem; color: var(--accent); font-weight: 500; }
.article h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.article h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin-top: 18px; }
.article p, .article li { font-size: 1.08rem; line-height: 1.85; color: var(--fg); }
.article ul, .article ol { padding-inline-start: 1.4em; display: flex; flex-direction: column; gap: 8px; margin: 0; }
.article a { color: var(--accent); text-underline-offset: 3px; }
.article .byline { color: var(--muted); font-size: 0.95rem; }
.article .answer { background: var(--surface); border: 1px solid var(--line); border-inline-start: 3px solid var(--accent); border-radius: 14px; padding: 18px 20px; }
.related { max-width: 720px; margin: 56px auto 0; } .related h2 { font-size: 1.4rem; margin-bottom: 18px; }
.related .posts { grid-template-columns: minmax(0, 1fr); }

/* home: header floats transparent over the hero video, turns solid on scroll */
body[data-hero] .site-header { position: fixed; inset-inline: 0; top: 0; background: linear-gradient(180deg, rgba(10,15,30,.55), rgba(10,15,30,0)); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: transparent; transition: background .25s, border-color .25s, backdrop-filter .25s; }
body[data-hero] .site-header:not(.scrolled) .logo, body[data-hero] .site-header:not(.scrolled) .wordmark b { color: #fff; }
body[data-hero] .site-header:not(.scrolled) .wordmark i { color: #E8C877; }
body[data-hero] .site-header:not(.scrolled) .nav a { color: rgba(255,255,255,.82); }
body[data-hero] .site-header:not(.scrolled) .nav a:hover { color: #fff; }
body[data-hero] .site-header:not(.scrolled) .nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.16); }
body[data-hero] .site-header:not(.scrolled) .icon-btn { color: #fff; border-color: rgba(255,255,255,.35); }
body[data-hero] .site-header:not(.scrolled) .hdr-cta { background: #D8B25A; color: #0A0F1E; }
body[data-hero] .site-header.scrolled { background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom-color: var(--line); }
body[data-page="home"] .hb-inner { padding-top: calc(clamp(56px, 9vw, 112px) + 78px); }
@media (max-width: 1000px) { body[data-page="home"] .hb-inner { padding-top: calc(clamp(56px, 9vw, 112px) + 124px); } }

/* home hero: full-screen video that stays visible, content anchored to the start side */
body[data-page="home"] .hero-bg { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 0; }
body[data-page="home"] .hb-veil { background: linear-gradient(270deg, rgba(10,15,30,.66) 0%, rgba(10,15,30,.30) 55%, rgba(10,15,30,.06) 100%), linear-gradient(0deg, rgba(10,15,30,.55) 0%, rgba(10,15,30,0) 45%); }
body[data-page="home"] .hb-inner { align-items: flex-start; text-align: start; gap: 18px; padding-top: 120px; padding-bottom: clamp(40px, 7vh, 72px); }
body[data-page="home"] .hb-inner h1 { margin-inline: 0; max-width: 18ch; font-weight: 800; font-size: clamp(2.3rem, 5.2vw, 4.4rem); }
body[data-page="home"] .hb-lead { max-width: 46ch; margin-inline: 0; }
body[data-page="home"] .hero-bg .qc { width: min(100%, 560px); margin-inline: 0; background: rgba(10,15,30,.38); }
body[data-page="home"] .hb-engines { justify-content: flex-start; }
body[data-hero] .site-header { background: linear-gradient(180deg, rgba(10,15,30,.32), rgba(10,15,30,0)); }
body[data-hero] .site-header:not(.scrolled) .hdr-cta { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.7); }
body[data-hero] .site-header.scrolled { background: color-mix(in srgb, var(--bg) 86%, transparent); }
@media (max-width: 1000px) { body[data-page="home"] .hb-inner { padding-top: 170px; } }

/* header: no divider line; gold underline on hover/active; light type */
body[data-hero] .site-header:not(.scrolled) { border-bottom-width: 0; background-repeat: no-repeat; }
.nav a { position: relative; background: none !important; border-radius: 0; padding: 10px 14px; font-weight: 400; font-size: 1rem; }
.nav a::after { content: ""; position: absolute; inset-inline: 14px; bottom: 2px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: center; transition: transform .25s ease; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
body[data-hero] .site-header:not(.scrolled) .nav a::after { background: #E8C877; }
body[data-hero] .site-header:not(.scrolled) .nav a[aria-current="page"] { background: none; }
body { font-weight: 400; }
h1, h2, h3 { font-weight: 300; letter-spacing: -0.01em; }
.hb-inner h1, body[data-page="home"] .hb-inner h1 { font-weight: 300; letter-spacing: -0.015em; line-height: 1.12; }
.hb-inner h1 .grad { font-weight: 300; }
.section-head h1, .section-head h2, .cta-band h2, .article h1, .article h2 { font-weight: 300; }
.post h2, .post h3, .pkg h3, .step h3, .trio h3, .row h3 { font-weight: 400; }
.wordmark b { font-family: var(--display); font-weight: 300; font-size: 1.45rem; letter-spacing: 0.3em; text-transform: uppercase; }
.wordmark i { letter-spacing: 0.62em; font-weight: 400; }
.hb-lead { font-weight: 300; font-size: 1.15rem; }
.btn { font-weight: 500; }

/* inner-page hero with photo */
.page-hero { position: relative; isolation: isolate; color: #fff; background: #0A0F1E var(--img) center 30% / cover no-repeat; min-height: clamp(400px, 58vh, 540px); display: flex; align-items: flex-end; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg, rgba(10,15,30,.74) 0%, rgba(10,15,30,.42) 55%, rgba(10,15,30,.12) 100%), linear-gradient(0deg, rgba(10,15,30,.6) 0%, rgba(10,15,30,0) 55%); }
.ph-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 130px; padding-bottom: clamp(36px, 6vh, 60px); width: 100%; }
.page-hero h1 { color: #fff; font-weight: 300; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.12; max-width: 22ch; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.page-hero .lead { color: rgba(255,255,255,.84); font-weight: 300; max-width: 52ch; }
.page-hero .eyebrow { color: #E8C877; } .page-hero .eyebrow::before { background: #E8C877; }
@media (max-width: 1000px) { .ph-inner { padding-top: 170px; } }
body[data-hero] section.view { padding-top: 0; }
body[data-hero] section.view > .wrap > .crumbs:first-child { margin-top: 28px; }
body[data-hero] .view > .wrap { padding-top: 0; }
body[data-hero] .page-hero + .view { padding-top: 28px; }

/* editorial rhythm: numbered rows, split image section, dark band, reveal on scroll */
.trio { counter-reset: n; gap: 0 clamp(20px, 4vw, 48px); }
.trio > div { background: none !important; border: 0 !important; border-top: 1px solid var(--line) !important; border-radius: 0 !important; box-shadow: none !important; padding: 22px 0 0 !important; counter-increment: n; }
.trio > div::before { content: "0" counter(n); display: block; font-size: 2.8rem; font-weight: 300; line-height: 1; color: var(--accent); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.trio h3 a { color: inherit; text-decoration: none; } .trio h3 a:hover { color: var(--accent); }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.split-img { margin: 0; overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 3; }
.split-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split-text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.split-text .big { color: var(--fg); font-weight: 300; font-size: clamp(1.5rem, 2.9vw, 2.35rem); line-height: 1.3; letter-spacing: -0.01em; max-width: 24ch; }
@media (max-width: 800px) { .split { grid-template-columns: minmax(0, 1fr); } .split-img { aspect-ratio: 16 / 10; } }
.band-dark { position: relative; background: #0A0F1E; color: #EEF1F7; box-shadow: 0 0 0 100vmax #0A0F1E; clip-path: inset(0 -100vmax); padding-block: clamp(40px, 6vw, 72px); }
.band-dark .eyebrow { color: #E8C877; } .band-dark .eyebrow::before { background: #E8C877; }
.band-dark h2, .band-dark h3 { color: #fff; } .band-dark p { color: rgba(238,241,247,.72); }
.band-dark .steps { counter-reset: s; gap: 0 clamp(20px, 4vw, 48px); }
.band-dark .step { background: none !important; border: 0 !important; border-top: 1px solid rgba(255,255,255,.2) !important; border-radius: 0 !important; box-shadow: none !important; padding: 22px 0 0 !important; }
.band-dark .step::before { content: "0" counter(s); display: block; font-family: var(--display); font-size: 2.8rem; font-weight: 300; line-height: 1; color: #E8C877; margin-bottom: 14px; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* quick check result */
.qr { display: flex; flex-direction: column; gap: 22px; }
.qr-sum { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 300; margin-top: 10px; color: var(--fg); }
.qr-sub { color: var(--muted); max-width: 62ch; margin-top: 6px; }
.qr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.qr-item { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding: 16px 18px; border: 1px solid var(--line); border-inline-start: 3px solid var(--warn); border-radius: 12px; background: var(--surface); }
.qr-item.bad { border-inline-start-color: var(--bad); background: color-mix(in srgb, var(--bad) 7%, var(--surface)); }
.qr-badge { font-size: 0.78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.qr-badge.bad { background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad); }
.qr-body b { font-size: 1.05rem; font-weight: 500; } .qr-body p { color: var(--muted); font-size: 0.95rem; margin-top: 4px; }
.qr-link { display: inline-block; margin-top: 8px; font-size: 0.9rem; color: var(--accent); text-decoration: none; font-weight: 500; }
.qr-link:hover { text-decoration: underline; }
.qr-ok { color: var(--good); font-size: 0.95rem; }
.qr-cta { background: #0A0F1E; color: #EEF1F7; border-radius: 16px; padding: clamp(22px, 4vw, 34px); display: flex; flex-direction: column; gap: 12px; }
.qr-cta h4 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 300; color: #fff; }
.qr-cta p { color: rgba(238,241,247,.75); max-width: 56ch; }
.btn-ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn-ghost-light:hover { border-color: #fff; }
.qr-more summary { cursor: pointer; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 560px) { .qr-item { grid-template-columns: minmax(0, 1fr); gap: 8px; } .qr-badge { justify-self: start; } }
.site-header, body[data-page] .site-header, body[data-page] .site-header.scrolled { border-bottom: 0 !important; }
