/* KiteGEO — uses the lihaila.com design tokens so it reads as the same site. */

/* Inter, served from this site (Google Fonts is blocked in mainland China and its stylesheet
   would hold up the whole page there). SIL Open Font License: fonts/OFL.txt */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  --bg: #fbfbfa; --bg-raised: #ffffff; --bg-sunken: #f3f3f1;
  --text: #16161a; --text-muted: #5c5c66; --text-faint: #8a8a94;
  --border: #e4e4e0; --border-strong: #d2d2cc;
  --accent: #2f5d50; --accent-text: #ffffff; --accent-soft: #e8f0ed;
  --neutral-mark: #c9c9c3;
  --good: #2f7d4f; --good-soft: #e5f2ea;
  --warn: #9a6a00; --warn-soft: #fbf1d9;
  --bad: #b23b3b; --bad-soft: #f9e6e6;
  --radius: 14px; --radius-s: 9px; --maxw: 1080px;
  --gutter: clamp(16px, 5vw, 48px);
  --shadow-1: 0 1px 2px rgba(20,20,26,.05), 0 1px 3px rgba(20,20,26,.04);
  --shadow-2: 0 4px 6px -2px rgba(20,20,26,.06), 0 12px 24px -6px rgba(20,20,26,.09);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121215; --bg-raised: #1a1a1f; --bg-sunken: #0d0d10;
    --text: #f0f0ee; --text-muted: #a3a3ad; --text-faint: #74747e;
    --border: #2a2a31; --border-strong: #3a3a43;
    --accent: #7fbfa8; --accent-text: #0d1f1a; --accent-soft: #1b2a25;
    --neutral-mark: #4a4a53;
    --good: #6cc08f; --good-soft: #17271e; --warn: #e0b04a; --warn-soft: #2a2312; --bad: #e57d7d; --bad-soft: #2c1a1a;
    --shadow-1: 0 1px 2px rgba(0,0,0,.4);
    --shadow-2: 0 4px 6px -2px rgba(0,0,0,.4), 0 12px 24px -6px rgba(0,0,0,.5);
  }
}
:root[data-theme="dark"] {
  --bg: #121215; --bg-raised: #1a1a1f; --bg-sunken: #0d0d10;
  --text: #f0f0ee; --text-muted: #a3a3ad; --text-faint: #74747e;
  --border: #2a2a31; --border-strong: #3a3a43;
  --accent: #7fbfa8; --accent-text: #0d1f1a; --accent-soft: #1b2a25;
  --neutral-mark: #4a4a53;
  --good: #6cc08f; --good-soft: #17271e; --warn: #e0b04a; --warn-soft: #2a2312; --bad: #e57d7d; --bad-soft: #2c1a1a;
  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 4px 6px -2px rgba(0,0,0,.4), 0 12px 24px -6px rgba(0,0,0,.5);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.021em; font-weight: 640; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.4rem); letter-spacing: -0.032em; }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2rem); letter-spacing: -0.026em; }
h3 { font-size: 1.08rem; }
h4 { font-size: .76rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 600; color: var(--text-faint); }
p { text-wrap: pretty; }
a { color: inherit; }
svg { display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.small { font-size: .86rem; }
.hidden { display: none !important; }

/* ---------- header / footer (same as lihaila.com) ---------- */
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--accent); color: var(--accent-text); padding: 9px 16px; border-radius: 0 0 var(--radius-s) var(--radius-s); text-decoration: none; }
.skip-link:focus { top: 0; }
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; gap: 14px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; letter-spacing: -0.02em; }
.brand .logo, .footer-brand .logo { width: 24px; height: 24px; fill: var(--accent); flex: none; }
.product-name { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 650; color: var(--text); margin-right: auto; letter-spacing: -0.02em; padding-left: 14px; border-left: 1px solid var(--border-strong); }
.kite { width: 22px; height: 22px; flex: none; }
.kite .k1 { fill: var(--accent); }
.kite .k2 { fill: color-mix(in srgb, var(--accent) 55%, var(--bg)); }
.kite .kt { stroke: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-size: .93rem; font-weight: 500; padding: 7px 11px; border-radius: var(--radius-s); transition: color .15s, background .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--bg-sunken); }
.theme-toggle { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; padding: 0; cursor: pointer; color: var(--text-muted); background: none; border: 0; border-radius: 9px; }
.theme-toggle:hover { color: var(--text); background: var(--bg-sunken); }
.theme-toggle svg { width: 17px; height: 17px; grid-area: 1 / 1; }
.theme-toggle .icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.nav-links a { white-space: nowrap; }
#nav-account a { display: inline-flex; align-items: center; gap: 6px; }
#nav-account svg { width: 17px; height: 17px; flex: none; }
@media (max-width: 640px) {
  .nav { gap: 6px; }
  .brand span { display: none; }
  .product-name { padding-left: 10px; margin-left: 4px; }
  .nav-links { gap: 0; }
  .nav-links li:first-child { display: none; }
  .nav-links a { padding: 7px 8px; }
}
/* Phones: the account link collapses to its icon so the row never overflows in any language. */
@media (max-width: 480px) {
  #nav-account a { padding: 0; width: 34px; height: 34px; justify-content: center; }
  #nav-account span { display: none; }
}
@media (max-width: 360px) {
  .nav { gap: 2px; }
  .product-name { padding-left: 8px; margin-left: 6px; }
  .nav-links a { padding: 7px 6px; }
  .lang-pick > button, .theme-toggle, #nav-account a { width: 32px; }
}

.site-footer { border-top: 1px solid var(--border); background: var(--bg-sunken); padding: 46px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 32px; }
.footer-brand { display: flex; align-items: center; gap: 9px; font-weight: 640; margin-bottom: 9px; }
.footer-col p { color: var(--text-muted); font-size: .88rem; max-width: 34ch; }
.footer-col h4 { margin-bottom: 12px; }
.footer-col a { display: block; color: var(--text-muted); text-decoration: none; font-size: .89rem; padding: 3px 0; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 34px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; color: var(--text-faint); font-size: .84rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- buttons / inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: .94rem; font-weight: 550; text-decoration: none; padding: 11px 20px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; background: none; transition: transform .12s, background .15s, border-color .15s, opacity .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 88%, var(--text)); }
.btn-ghost { border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--bg-sunken); }
.btn-sm { padding: 7px 14px; font-size: .86rem; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; background: none; border-radius: 8px; color: var(--text-muted); cursor: pointer; }
.icon-btn:hover { background: var(--bg-sunken); color: var(--text); }
.icon-btn svg { width: 16px; height: 16px; }

.field { width: 100%; font: inherit; color: var(--text); background: var(--bg-raised); border: 1px solid var(--border-strong); border-radius: 12px; padding: 12px 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
.field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
textarea.field { resize: vertical; min-height: 44px; line-height: 1.45; }

/* ---------- layout pieces ---------- */
section.block { padding: clamp(36px, 5vw, 64px) 0; }
.section-head { margin-bottom: 24px; }
.section-head p { color: var(--text-muted); margin-top: 8px; max-width: 62ch; }
.card { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-1); }
.card + .card { margin-top: 16px; }
.grid-2 > .card, .grid-3 > .card, .plans > .card { margin-top: 0; }
.card-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-title h3 { font-size: 1.02rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 15px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
@media (max-width: 400px) { .grid-2 { grid-template-columns: 1fr; } }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--bg-sunken); color: var(--text-muted); white-space: nowrap; }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.accent { background: var(--accent-soft); color: var(--accent); }

/* ---------- hero / checker ---------- */
.hero { padding: clamp(52px, 8vw, 104px) 0 clamp(36px, 5vw, 60px); position: relative; }
.hero { isolation: isolate; overflow: hidden; }
/* Moving gradient, matching lihaila.com: four blurred colour fields drifting on long, offset
   loops, cut off with a slanted bottom edge. Transforms only, so it stays cheap on phones. */
.hero-aurora { position: absolute; inset: 0 0 -1px; z-index: -1; pointer-events: none; overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 74%, 0 100%); opacity: var(--aurora-opacity, .4); }
.hero-aurora span { position: absolute; width: 52vw; height: 52vw; max-width: 760px; max-height: 760px; border-radius: 50%;
  filter: blur(70px); will-change: transform; animation: aurora 26s ease-in-out infinite alternate; }
.hero-aurora span:nth-child(1) { background: #2f5d50; left: -10%; top: -35%; }
.hero-aurora span:nth-child(2) { background: #7fbfa8; left: 42%; top: -50%; animation-duration: 31s; animation-delay: -8s; }
.hero-aurora span:nth-child(3) { background: #3f8f86; right: -10%; top: -20%; animation-duration: 23s; animation-delay: -15s; }
.hero-aurora span:nth-child(4) { background: #6fa9cf; right: 8%; top: 20%; width: 34vw; height: 34vw; opacity: .6; animation-duration: 37s; animation-delay: -4s; }
@keyframes aurora {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  33%  { transform: translate3d(9vw, 6vh, 0) scale(1.12); }
  66%  { transform: translate3d(-6vw, 10vh, 0) scale(.92); }
  100% { transform: translate3d(5vw, -4vh, 0) scale(1.06); }
}
/* On phones vw-sized fields are tiny and barely move; make them big enough to read as motion. */
@media (max-width: 720px) {
  .hero-aurora span { width: 110vw; height: 110vw; filter: blur(50px); }
  .hero-aurora span:nth-child(4) { width: 80vw; height: 80vw; }
  @keyframes aurora {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    33%  { transform: translate3d(28vw, 8vh, 0) scale(1.15); }
    66%  { transform: translate3d(-22vw, 14vh, 0) scale(.9); }
    100% { transform: translate3d(14vw, -6vh, 0) scale(1.08); }
  }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --aurora-opacity: .46; } }
:root[data-theme="dark"] { --aurora-opacity: .46; }
.hero-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: clamp(20px, 4vw, 48px); align-items: center; }
.hero-copy > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > :nth-child(2) { animation-delay: .12s; }
.hero-copy > :nth-child(3) { animation-delay: .24s; }
.hero-art img { display: block; width: 100%; height: auto; animation: rise 1s .2s cubic-bezier(.2,.7,.2,1) both, float 7s 1.2s ease-in-out infinite; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
/* First paint is the server's HTML; when the script swaps in the live page, don't play the entrance again. */
.no-intro .hero-copy > * { animation: none; }
.no-intro .hero-art img { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 720px) {
  .hero-top { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 190px; margin: 0 auto -6px; }
}
.hero h1 { max-width: none; } /* same width as the checker below */
/* Chinese/Japanese headlines wrap between marked phrases, never inside one. */
.hero h1 .ph { display: inline-block; }
.hero .lede { font-size: clamp(1.02rem, .95rem + .4vw, 1.18rem); color: var(--text-muted); margin-top: 18px; }
.checker { margin-top: 30px; } /* full container width, like the sections below */
.checker-row { display: flex; gap: 10px; background: var(--bg-raised); border: 1px solid var(--border-strong); border-radius: 999px; padding: 6px 6px 6px 20px; box-shadow: var(--shadow-2); transition: border-color .15s, box-shadow .15s; }
.checker-row:focus-within { border-color: var(--accent); }
.checker-row input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 1.04rem; color: var(--text); }
.checker-more { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: .88rem; color: var(--text-faint); }
.linkish { background: none; border: 0; padding: 0; color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: inherit; }
.linkish:hover { color: var(--text); }
.engine-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; align-items: center; }
.engine-chip { display: inline-flex; align-items: center; gap: 7px; font-size: .86rem; font-weight: 550; padding: 6px 12px; border-radius: 999px; background: var(--bg-raised); border: 1px solid var(--border); }
.engine-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.engine-chip.off { color: var(--text-faint); }
.engine-chip.off .dot { background: var(--neutral-mark); }
@media (max-width: 560px) {
  .checker-row { flex-direction: column; border-radius: 18px; padding: 10px; }
  .checker-row input { padding: 6px 6px 10px; }
}

.steps { counter-reset: s; }
.step-card h3 { margin: 10px 0 6px; }
.step-card p { color: var(--text-muted); font-size: .93rem; }
.step-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 650; font-size: .88rem; }

.faq details { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; color: var(--text-faint); font-weight: 400; font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--text-muted); margin-top: 10px; max-width: 72ch; }

/* ---------- confirm step ---------- */
.confirm { max-width: 820px; margin: 0 auto; }
.profile-head { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.brand-input { font: inherit; font-size: 1.5rem; font-weight: 650; letter-spacing: -0.02em; border: 0; border-bottom: 1px dashed var(--border-strong); background: none; color: var(--text); padding: 2px 0; width: min(100%, 420px); outline: 0; }
.brand-input:focus { border-bottom-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: .84rem; padding: 4px 6px 4px 11px; border-radius: 999px; background: var(--bg-sunken); }
.chip button { border: 0; background: none; cursor: pointer; color: var(--text-faint); width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; }
.chip button:hover { color: var(--text); background: var(--border); }
.chip-add { border: 1px dashed var(--border-strong); background: none; font-size: .84rem; padding: 4px 11px; border-radius: 999px; color: var(--text-muted); width: 150px; outline: 0; font-family: inherit; }
.q-list { display: grid; gap: 8px; margin-top: 6px; }
.q-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-raised); cursor: pointer; transition: border-color .15s, background .15s; }
.q-item:hover { border-color: var(--border-strong); }
.q-item.on { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent-soft) 45%, var(--bg-raised)); }
.q-item input[type="checkbox"] { margin-top: 4px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.q-item .q-text { flex: 1; outline: 0; min-width: 0; overflow-wrap: anywhere; }
.q-item .q-text[contenteditable="true"]:focus { text-decoration: underline dotted var(--text-faint); }
.sticky-cta { position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(to top, var(--bg) 70%, transparent); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 10px; }

/* ---------- waiting states ---------- */
.dots { display: inline-flex; gap: 4px; align-items: center; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: bounce 1.1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .35; } 40% { transform: translateY(-5px); opacity: 1; } }
.progress { height: 10px; border-radius: 999px; background: var(--bg-sunken); overflow: hidden; }
.progress > div { height: 100%; border-radius: 999px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 60%, #7fd1b3), var(--accent)); position: relative; transition: width .6s ease; min-width: 6%; }
.progress > div::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.running { max-width: 640px; margin: 0 auto; text-align: center; padding: 70px 0 30px; }
.running .step-label { margin-top: 14px; color: var(--text-muted); min-height: 1.6em; font-size: .93rem; }
.engine-pulse { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.engine-pulse .engine-chip .dot { animation: pulse 1.6s infinite; }
.engine-pulse .engine-chip:nth-child(2) .dot { animation-delay: .3s; }
.engine-pulse .engine-chip:nth-child(3) .dot { animation-delay: .6s; }
.engine-pulse .engine-chip:nth-child(4) .dot { animation-delay: .9s; }
.engine-pulse .engine-chip:nth-child(5) .dot { animation-delay: 1.2s; }
@keyframes pulse { 0%, 100% { opacity: .3; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.2); } }
.busy-inline { display: inline-flex; align-items: center; gap: 10px; color: var(--text-muted); }
.skeleton { border-radius: 8px; background: linear-gradient(90deg, var(--bg-sunken), var(--border), var(--bg-sunken)); background-size: 200% 100%; animation: sk 1.4s infinite; height: 14px; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- report ---------- */
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; padding: 34px 0 18px; }
.report-head h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
.report-head .meta { color: var(--text-faint); font-size: .86rem; margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.head-actions { display: flex; gap: 6px; align-items: center; }

.score-hero { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 44px); align-items: center; }
@media (max-width: 680px) { .score-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.gauge { position: relative; width: 190px; height: 190px; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge .track { stroke: var(--bg-sunken); }
.gauge .val { stroke: var(--accent); transition: stroke-dashoffset 1.2s cubic-bezier(.2,.8,.2,1); }
.gauge .num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge .num b { font-size: 3.2rem; font-weight: 680; letter-spacing: -0.04em; line-height: 1; }
.gauge .num span { font-size: .8rem; color: var(--text-faint); margin-top: 4px; }
.verdict h2 { font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem); }
.verdict p { color: var(--text-muted); margin-top: 8px; max-width: 60ch; }
.subscores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
@media (max-width: 520px) { .subscores { grid-template-columns: 1fr; } }
.stat { background: var(--bg-sunken); border-radius: 12px; padding: 12px 14px; text-align: left; }
.stat .label { font-size: .78rem; color: var(--text-muted); font-weight: 550; display: flex; align-items: center; gap: 5px; }
.stat .value { font-size: 1.55rem; font-weight: 660; letter-spacing: -0.03em; margin-top: 2px; }
.stat .value small { font-size: .82rem; color: var(--text-faint); font-weight: 500; letter-spacing: 0; }
.stat .hint { font-size: .76rem; color: var(--text-faint); }

.bar-list { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 64px; gap: 12px; align-items: center; font-size: .9rem; position: relative; }
.bar-row .name { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .track { height: 10px; background: var(--bg-sunken); border-radius: 4px; overflow: hidden; }
.bar-row .fill { height: 100%; background: var(--neutral-mark); border-radius: 0 4px 4px 0; transition: width 1s cubic-bezier(.2,.8,.2,1); }
.bar-row.us .fill, .bar-row.accent .fill { background: var(--accent); }
.bar-row.us .name { color: var(--accent); }
.bar-row .v { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-muted); }
.bar-row .sub { grid-column: 2 / 4; font-size: .78rem; color: var(--text-faint); margin-top: -8px; }
.locked-name { filter: blur(5px); user-select: none; color: var(--text-faint); }
.tip { position: fixed; z-index: 80; pointer-events: none; background: var(--text); color: var(--bg); font-size: .8rem; padding: 6px 9px; border-radius: 7px; box-shadow: var(--shadow-2); max-width: 260px; opacity: 0; transition: opacity .1s; }

.matrix-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
table.matrix { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .88rem; min-width: 560px; }
.matrix th { font-size: .76rem; font-weight: 600; color: var(--text-faint); text-align: center; padding: 6px 4px 10px; white-space: nowrap; }
.matrix th:first-child { text-align: left; }
.matrix td { padding: 10px 4px; border-top: 1px solid var(--border); text-align: center; vertical-align: middle; }
.matrix td:first-child { text-align: left; padding-right: 14px; }
.matrix .q { cursor: pointer; }
.matrix .q:hover { color: var(--accent); }
.matrix .branded-tag { font-size: .7rem; color: var(--text-faint); margin-left: 6px; }
/* Phones: one block per question (question on top, each assistant's result beneath) instead of a wide table. */
@media (max-width: 640px) {
  table.matrix { min-width: 0; }
  .matrix thead { display: none; }
  .matrix, .matrix tbody, .matrix tr { display: block; }
  .matrix tr { padding: 12px 0; border-top: 1px solid var(--border); }
  .matrix tr:first-child { border-top: 0; padding-top: 0; }
  .matrix td { display: inline-flex; align-items: center; gap: 6px; border-top: 0; padding: 6px 14px 0 0; }
  .matrix td:first-child { display: block; padding: 0 0 2px; }
  .matrix td[data-engine]::before { content: attr(data-engine); font-size: .76rem; font-weight: 600; color: var(--text-faint); }
}
.cell { display: inline-grid; place-items: center; min-width: 40px; height: 26px; padding: 0 7px; border-radius: 7px; font-size: .78rem; font-weight: 650; }
.cell.yes { background: var(--good-soft); color: var(--good); }
.cell.mid { background: var(--warn-soft); color: var(--warn); }
.cell.no { background: var(--bg-sunken); color: var(--text-faint); font-weight: 500; }
.cell.neg { background: var(--bad-soft); color: var(--bad); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .78rem; color: var(--text-muted); margin-top: 12px; align-items: center; }
.legend .cell { min-width: 30px; height: 20px; }

.checklist { display: grid; gap: 2px; }
.check { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); align-items: start; }
.check:first-child { border-top: 0; }
.check svg { width: 18px; height: 18px; margin-top: 2px; }
.check.pass svg { color: var(--good); }
.check.fail svg { color: var(--bad); }
.check .t { font-weight: 560; font-size: .92rem; }
.check .d { color: var(--text-muted); font-size: .84rem; overflow-wrap: anywhere; }
.check .w { font-size: .74rem; color: var(--text-faint); white-space: nowrap; }

.quote { border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; margin: 12px 0; color: var(--text-muted); font-size: .94rem; }
.quote b { color: var(--text); font-weight: 600; font-size: .8rem; display: block; margin-bottom: 2px; }

.answers .tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tab { border: 1px solid var(--border); background: var(--bg-raised); border-radius: 999px; padding: 5px 12px; font-size: .84rem; cursor: pointer; color: var(--text-muted); display: inline-flex; gap: 6px; align-items: center; }
.tab[aria-selected="true"] { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.answer-text { white-space: normal; font-size: .9rem; line-height: 1.6; color: var(--text-muted); max-height: 420px; overflow: auto; background: var(--bg-sunken); border-radius: 12px; padding: 16px; overflow-wrap: anywhere; }
.answer-text h1, .answer-text h2, .answer-text h3, .answer-text h4, .answer-text h5 { font-size: .95rem; color: var(--text); margin: 14px 0 6px; text-transform: none; letter-spacing: 0; }
.answer-text p { margin: 0 0 8px; }
.answer-text ul, .answer-text ol { margin: 0 0 8px; padding-left: 1.3em; }
.answer-text li { margin: 2px 0; }
.answer-text strong { color: var(--text); font-weight: 600; }
.answer-text hr { border: 0; border-top: 1px solid var(--border); margin: 12px 0; }
.answer-text table { border-collapse: collapse; font-size: .82rem; margin: 6px 0 10px; display: block; overflow-x: auto; }
.answer-text td, .answer-text th { border: 1px solid var(--border); padding: 4px 8px; text-align: left; }
.answer-text a { color: var(--accent); }
.cell.err { background: none; color: var(--text-faint); font-weight: 500; border: 1px dashed var(--border-strong); }
.answer-text mark { background: color-mix(in srgb, var(--accent) 25%, transparent); color: var(--text); border-radius: 3px; padding: 0 2px; }
.cites { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cites a { font-size: .78rem; color: var(--text-muted); text-decoration: none; background: var(--bg-sunken); border-radius: 999px; padding: 3px 10px; }
.cites a:hover { color: var(--text); }

.lock-card { position: relative; overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border)); background: linear-gradient(160deg, var(--accent-soft), var(--bg-raised) 60%); }
.lock-card h3 { font-size: 1.2rem; }
.lock-list { list-style: none; padding: 0; display: grid; gap: 8px; margin: 14px 0 18px; }
.lock-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; }
.lock-list svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }
.locked-row { display: flex; align-items: center; gap: 8px; color: var(--text-faint); font-size: .86rem; margin-top: 10px; }
.locked-row svg { width: 15px; height: 15px; }

/* action plan */
.action { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--border); }
.action:first-of-type { border-top: 0; }
.action .n { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 650; font-size: .85rem; }
.action h4 { text-transform: none; letter-spacing: -0.01em; font-size: 1rem; color: var(--text); font-weight: 620; }
.action .why { color: var(--text-muted); font-size: .9rem; margin-top: 4px; }
.action ol { margin-top: 8px; padding-left: 1.2em; color: var(--text-muted); font-size: .9rem; display: grid; gap: 3px; }
.action .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.codebox { position: relative; }
.codebox pre { font-family: var(--mono); font-size: .8rem; line-height: 1.55; background: var(--bg-sunken); border-radius: 12px; padding: 16px; overflow: auto; max-height: 420px; white-space: pre-wrap; overflow-wrap: anywhere; }
.codebox .icon-btn { position: absolute; top: 8px; right: 8px; background: var(--bg-raised); box-shadow: var(--shadow-1); }
.brief { padding: 14px 0; border-top: 1px solid var(--border); }
.brief:first-child { border-top: 0; }
.brief ul { padding-left: 1.2em; color: var(--text-muted); font-size: .9rem; margin-top: 6px; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent); box-shadow: var(--shadow-2); }
.plan .price { font-size: 2.2rem; font-weight: 680; letter-spacing: -0.03em; margin: 8px 0 2px; }
.plan .price small { font-size: .9rem; color: var(--text-faint); font-weight: 500; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 8px; font-size: .92rem; flex: 1; align-content: start; }
.plan li { display: flex; gap: 9px; }
.plan li svg { width: 17px; height: 17px; color: var(--accent); flex: none; margin-top: 3px; }

/* dashboard trend chart */
.trend { position: relative; }
.trend svg { display: block; overflow: visible; }
.trend .gridline { stroke: var(--border); stroke-width: 1; }
.trend .axis { fill: var(--text-faint); font-size: 11px; }
.trend .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.trend .pt { fill: var(--accent); stroke: var(--bg-raised); stroke-width: 2; }
.trend .cross { stroke: var(--text-faint); stroke-dasharray: 3 3; }

.modal-back { position: fixed; inset: 0; background: rgba(10,10,14,.45); display: grid; place-items: center; z-index: 90; padding: 16px; }
.modal { width: min(440px, 100%); }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: .9rem; opacity: 0; transition: opacity .2s, transform .2s; z-index: 100; pointer-events: none; max-width: calc(100% - 32px); }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.error-box { background: var(--bad-soft); color: var(--bad); border-radius: 12px; padding: 12px 14px; font-size: .9rem; margin-top: 14px; }
.empty { text-align: center; color: var(--text-muted); padding: 30px 10px; }

/* ---------- language picker (same look as lihaila.com) ---------- */
.dropdown { position: relative; }
.dropdown-menu[hidden] { display: none; }
.dropdown-menu {
  position: absolute; top: calc(100% + 7px); right: 0; min-width: 172px; z-index: 60;
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-2); padding: 6px; display: grid; gap: 1px;
}
.dropdown-menu a { padding: 9px 12px; border-radius: 8px; font-size: .9rem; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.dropdown-menu a:hover { background: var(--bg-sunken); }
.dropdown-menu a[aria-current="true"] { color: var(--accent); font-weight: 600; }
.flag { display: block; width: 22px; height: 15px; border-radius: 2.5px; flex: none; box-shadow: 0 0 0 1px color-mix(in srgb, var(--text) 22%, transparent); }
.lang-pick > button { padding: 0; width: 34px; height: 34px; display: grid; place-items: center; background: none; border: 1px solid transparent; border-radius: 9px; cursor: pointer; }
.lang-pick > button:hover { background: var(--bg-sunken); border-color: var(--border); }

/* password field with show/hide toggle */
.pw-field { position: relative; }
.pw-field .field { padding-right: 46px; }
.pw-field .icon-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; }
.pw-field .icon-btn:hover { color: var(--text); background: var(--bg-sunken); }
.pw-field .icon-btn svg { width: 18px; height: 18px; }
.pw-field .field::-ms-reveal { display: none; }

/* password rules on sign-up: grey until met, then green with a check */
.pw-rules { list-style: none; padding: 0; margin: 10px 2px 0; display: grid; gap: 3px; font-size: .82rem; color: var(--text-faint); }
.pw-rules li::before { content: '○'; display: inline-block; width: 1.2em; }
.pw-rules li.ok { color: var(--good); }
.pw-rules li.ok::before { content: '✓'; }

/* Pro pass buttons */
/* Stacked full-width rows so they fit narrow plan cards: label (+ saving) left, price right. */
.pass-row { display: flex; flex-direction: column; gap: 8px; }
.pass-row .btn { width: 100%; min-width: 0; justify-content: space-between; gap: 8px; white-space: normal; text-align: left; }
.pass-row .btn b { white-space: nowrap; }
.pass-save { display: block; color: var(--good); font-weight: 600; font-size: 0.85em; }
.btn-primary .pass-save { color: inherit; opacity: 0.85; }

/* Launch price: the old price crossed out */
s.was { font-size: 0.7em; font-weight: 400; opacity: 0.6; margin-left: 4px; }
.price s.was { font-size: 0.5em; }

/* ---------- Print / Save as PDF (report) ---------- */
.print-only { display: none; }
@media print {
  @page { margin: 14mm 12mm; }
  html, body { background: #fff !important; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; font-size: 11pt; }
  .site-header, .site-footer, .head-actions, .btn, .icon-btn, .lock-card, .locked-row, #answers, #toast, .toast,
  [data-buy], #track, #file-tabs, .sticky-cta, .no-print { display: none !important; }
  /* Score ring and bars animate in on screen; on paper they must already be drawn. */
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .print-only { display: block; }
  .print-foot { margin-top: 18px; font-size: 9pt; color: #555; word-break: break-all; }
  .container { max-width: none !important; padding: 0 !important; }
  .card { box-shadow: none !important; break-inside: avoid; page-break-inside: avoid; }
  .card:has(.checklist), #plan .card { break-inside: auto; page-break-inside: auto; }
  h1, h2, h3, h4, .card-title { break-after: avoid; page-break-after: avoid; }
  .check, .quote, tr { break-inside: avoid; page-break-inside: avoid; }
  .grid-2 { display: block !important; }
  .grid-2 > .card + .card { margin-top: 16px; }
  .matrix-wrap { overflow: visible !important; }
  .codebox pre { white-space: pre-wrap; max-height: none !important; overflow: visible !important; }
  a { color: inherit; text-decoration: none; }
  [data-tip]::after, [data-tip]::before { display: none !important; }
}

/* Dashboard purchase history */
.purchase { display: grid; grid-template-columns: 1fr auto 92px; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--border); }
.purchase:first-child { border-top: 0; padding-top: 4px; }
.purchase .t { font-weight: 600; }
.purchase .d { font-size: .85rem; color: var(--text-faint); margin-top: 2px; }
.purchase .amt { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.purchase .receipt { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; font-size: .88rem; color: var(--text-muted); text-decoration: none; }
.purchase .receipt:hover { color: var(--accent); }
@media (max-width: 480px) { .purchase { grid-template-columns: 1fr auto; } .purchase .receipt { grid-column: 1 / -1; justify-content: flex-start; } }
