/* Marqo landing · DA TrendTrack en bleu néon: a blue-black shell, the product at work under the title, a big light panel. */
:root { --gutter: clamp(16px, 4vw, 56px); --maxw: 1200px; --section-pad: clamp(72px, 9vw, 128px); --header-h: 68px; }
html, body { overflow-x: clip; }
body.landing { background: var(--bg-deep); color: var(--text); font-size: 1rem; line-height: 1.45; }
main { display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }

/* Buttons: the glow is the brand; it brightens on hover and tightens on press. */
.button { position: relative; display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 10px; padding: 0 18px; color: var(--text); font-size: 0.9375rem; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; border: 1px solid var(--line); border-radius: 14px; background: var(--glass-strong); box-shadow: var(--glass-glow); transition: background-color 180ms var(--ease), box-shadow 220ms var(--ease), transform 120ms ease-out, filter 220ms var(--ease); }
.button:hover { background: var(--glass-hover); }
.button:active { transform: scale(.97); transition-duration: 70ms; }
.button-glow { color: var(--accent-ink); border-color: transparent; background: var(--brand-gradient); box-shadow: var(--brand-glow); }
.button-glow:hover { background: var(--brand-gradient); box-shadow: var(--brand-glow-strong); filter: brightness(1.05) saturate(1.08); }
.button-glow:active { box-shadow: var(--brand-glow); filter: none; }
.button-glow:has(.button-arrow) { padding: 0 6px 0 18px; }
.button-arrow { display: inline-grid; width: 32px; height: 32px; place-items: center; color: var(--accent-ink); border: 1px solid rgb(255 255 255 / 34%); border-radius: 10px; background: rgb(255 255 255 / 28%); }
.button-arrow svg { width: 17px; height: 17px; stroke-width: 2; transition: transform 220ms var(--ease); }
.button-glow:hover .button-arrow svg { transform: translateX(2px); }
.button-glass { color: var(--text); }
.button-small { min-height: 36px; padding: 0 14px; font-size: 0.875rem; border-radius: 12px; }
.button-large { min-height: 56px; padding: 0 22px; font-size: 1rem; border-radius: 18px; }
.button-large.button-glow:has(.button-arrow) { padding: 0 8px 0 24px; }
.button-large .button-arrow { width: 40px; height: 40px; border-radius: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); font-weight: 600; text-decoration: none; }
.text-link svg { width: 18px; height: 18px; transition: transform 200ms var(--ease); }
.text-link:hover { text-decoration: underline; }
.text-link:hover svg { transform: translateX(3px); }
.text-link { transition: opacity 160ms var(--ease); }
.text-link:active { opacity: .6; transition-duration: 0s; }
.demo-indicator { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 24px; padding: 0 10px; color: var(--accent-text); font-size: 0.75rem; font-weight: 500; line-height: 1.2; white-space: nowrap; border: 1px solid var(--accent-border); border-radius: 999px; background: var(--accent-selected); }

/* Header: clear over the hero, smoked when the page scrolls under it, light over the light panel. */
.site-header { position: sticky; z-index: 30; top: 0; color: var(--text); background: transparent; box-shadow: 0 1px 0 transparent; transition: background-color 220ms var(--ease), box-shadow 220ms var(--ease), color 220ms var(--ease); }
.site-header.is-scrolled { background: rgb(1 4 10 / 78%); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }
.site-header::after { content: ""; position: absolute; top: 100%; right: 0; left: 0; height: 18px; background: linear-gradient(rgb(1 4 10 / 62%), rgb(1 4 10 / 0%)); opacity: 0; transition: opacity 240ms var(--ease); pointer-events: none; }
.site-header.is-scrolled::after { opacity: 1; }
.site-header.on-light { color: var(--paper-ink); background: rgb(251 251 251 / 86%); }
.site-header.on-light::after { background: linear-gradient(rgb(251 251 251 / 80%), rgb(251 251 251 / 0%)); }
.site-header.on-light .desktop-nav a, .site-header.on-light .login-link { color: var(--paper-muted); }
.site-header.on-light .desktop-nav a:hover, .site-header.on-light .login-link:hover { color: var(--paper-ink); }
.site-header.on-light .button-glass { color: var(--paper-ink); border-color: var(--paper-line); background: rgb(15 15 16 / 5%); box-shadow: none; }
.site-header.on-light .button-glass:hover { background: rgb(15 15 16 / 9%); }
.site-header.on-light .menu-toggle { border-color: var(--paper-line-strong); }
.site-header.on-light .mobile-menu a { border-color: var(--paper-line); }
.nav-wrap { display: flex; max-width: calc(var(--maxw) + 2 * var(--gutter)); height: var(--header-h); align-items: center; gap: 32px; margin: 0 auto; padding: 0 var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: inherit; font-family: var(--font-display); font-size: 1.3125rem; font-weight: 600; letter-spacing: -.04em; text-decoration: none; }
.brand img { display: block; border-radius: 6px; }
.desktop-nav { display: flex; align-items: center; gap: 4px; }
.desktop-nav a, .login-link { padding: 7px 11px; color: rgb(255 255 255 / 72%); font-size: 0.875rem; text-decoration: none; border-radius: 10px; transition: color 160ms var(--ease), background-color 160ms var(--ease); }
.desktop-nav a:hover, .login-link:hover { color: var(--text); background: var(--glass); }
.desktop-nav a:active, .login-link:active { transform: scale(.96); transition-duration: 70ms; }
.desktop-nav a, .login-link { transition: color 160ms var(--ease), background-color 160ms var(--ease), transform 160ms var(--ease); }
.desktop-nav a[aria-current="location"] { color: var(--text); background: var(--glass-strong); }
.site-header.on-light .desktop-nav a[aria-current="location"] { color: var(--paper-ink); background: rgb(15 15 16 / 6%); }
.site-header.on-light .desktop-nav a:hover, .site-header.on-light .login-link:hover { background: rgb(15 15 16 / 5%); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.menu-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; color: inherit; border: 1px solid var(--line-strong); border-radius: 12px; background: transparent; }
.mobile-menu { display: grid; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 8px var(--gutter) 18px; }
.mobile-menu a { padding: 13px 0; font-size: 1.0625rem; text-decoration: none; border-bottom: 1px solid var(--line-soft); transition: opacity 160ms var(--ease); }
.mobile-menu a:active { opacity: .55; transition-duration: 0s; }
/* The menu grows down out of its toggle and leaves by the same path. */
.mobile-menu { transform-origin: top right; }
.mobile-menu:not([hidden]) { animation: menu-in 260ms var(--ease) both; }
.mobile-menu.is-closing { animation: menu-out 180ms cubic-bezier(.7, 0, .84, 0) both; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
@keyframes menu-out { to { opacity: 0; transform: translateY(-8px) scale(.98); } }

/* Hero: centred title, the working form, then the product itself in its frame. */
.hero { position: relative; isolation: isolate; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: calc(-1 * var(--header-h)) auto 0; padding: calc(var(--header-h) + clamp(56px, 8vw, 104px)) var(--gutter) 0; text-align: center; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0 calc(50% - 50vw) auto; height: 860px; background: radial-gradient(52% 46% at 50% 18%, rgb(90 170 255 / 16%) 0%, rgb(56 120 255 / 6%) 42%, transparent 72%), radial-gradient(40% 30% at 50% 0%, rgb(255 255 255 / 8%) 0%, transparent 100%); pointer-events: none; }
.hero::after { content: ""; position: absolute; z-index: -1; top: 0; left: 50%; width: min(1240px, 100vw); height: 760px; transform: translateX(-50%); background: radial-gradient(circle at center, rgb(150 200 255 / 22%) 0 1px, transparent 1.6px) 0 0 / 22px 22px, linear-gradient(rgb(140 190 255 / 12%), rgb(140 190 255 / 0%)) left top / 1px 100% no-repeat, linear-gradient(rgb(140 190 255 / 12%), rgb(140 190 255 / 0%)) right top / 1px 100% no-repeat; -webkit-mask-image: radial-gradient(64% 62% at 50% 0%, #000 0%, transparent 76%); mask-image: radial-gradient(64% 62% at 50% 0%, #000 0%, transparent 76%); pointer-events: none; }
.hero-copy { display: flex; flex-direction: column; align-items: center; }
.hero h1 { max-width: 15ch; margin: 0; font-size: clamp(2.625rem, 5.4vw, 4.625rem); line-height: 1.06; letter-spacing: -.042em; }
.glow-text { margin-inline-end: -.08em; padding-inline-end: .08em; color: var(--accent-text); background: var(--brand-gradient-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero-lead { max-width: 54ch; margin: 22px 0 0; color: rgb(255 255 255 / 73%); font-size: clamp(1rem, 1.3vw, 1.125rem); line-height: 1.55; }
.hero-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.hero-facts li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 10px; color: rgb(255 255 255 / 86%); font-size: 0.8125rem; border: 1px solid var(--line-soft); border-radius: 999px; background: rgb(255 255 255 / 3%); }
.hero-facts svg { width: 15px; height: 15px; color: var(--accent-text); stroke-width: 2; }
.hero-search { position: relative; display: flex; width: min(640px, 100%); align-items: center; margin-top: 30px; padding: 6px; text-align: left; border: 1px solid var(--line); border-radius: 18px; background: rgb(255 255 255 / 4%); box-shadow: var(--glass-glow); transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease); }
.hero-search:focus-within { border-color: var(--accent-border); box-shadow: var(--glass-glow), 0 0 0 4px var(--focus-ring); }
.hero-search > svg { position: absolute; top: 50%; left: 20px; margin-top: -10px; color: var(--muted); }
.hero-search input[type="search"] { min-width: 0; height: 48px; flex: 1; padding: 0 12px 0 44px; color: var(--text); font-size: 1rem; border: 0; outline: 0; background: transparent; }
.hero-search input[type="search"]::-webkit-search-cancel-button { filter: grayscale(1) brightness(1.6); }
.hero-search .button { min-height: 48px; border-radius: 12px; }
.hero-search .button-glow { box-shadow: var(--brand-glow-strong); }
.hero-search .button-glow:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / 44%), inset 0 0 12px rgb(255 255 255 / 34%), 0 24px 48px rgb(56 140 255 / 32%), 0 12px 24px rgb(56 140 255 / 26%), 0 4px 10px rgb(56 140 255 / 22%); }
.hero-note { margin: 16px 0 0; color: var(--muted); font-size: 0.875rem; }
.hero-note a { color: var(--accent-text); }

/* The frame: the workspace itself, smoked glass around a working screen. */
.hero-frame { position: relative; max-width: 1120px; margin: clamp(48px, 6vw, 72px) auto 0; padding: 8px; text-align: left; border: 1px solid rgb(255 255 255 / 8%); border-radius: 28px; background: var(--glass); box-shadow: var(--glass-glow), 0 40px 120px -36px rgb(56 140 255 / 28%), 0 24px 60px -30px rgb(0 0 0 / 70%); }
.frame-screen { display: grid; overflow: hidden; grid-template-columns: 56px minmax(0, 1fr); border: 1px solid rgb(255 255 255 / 8%); border-radius: 20px; background: var(--bg); }
.frame-rail { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 0; border-right: 1px solid var(--line-soft); }
.frame-rail img { margin-bottom: 10px; border-radius: 6px; }
.frame-rail span { display: grid; width: 36px; height: 36px; place-items: center; color: var(--text-dim); border-radius: 10px; }
.frame-rail span svg { width: 18px; height: 18px; }
.frame-rail .is-current { color: var(--accent-text); background: var(--accent-selected); }
.frame-main { min-width: 0; padding: 16px 18px 18px; }
.frame-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.frame-crumb { display: flex; min-width: 0; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: 0.8125rem; white-space: nowrap; }
.frame-crumb b { overflow: hidden; color: var(--text); font-weight: 600; text-overflow: ellipsis; }
.frame-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.frame-search, .frame-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 11px; color: var(--text); font-size: 0.75rem; white-space: nowrap; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg); }
.frame-search { flex: 1 1 180px; color: var(--text-secondary); border-radius: 10px; }
.frame-search svg, .frame-pill svg { width: 14px; height: 14px; color: var(--muted); }
.frame-pill-quiet { color: var(--muted); border-style: dashed; }
.frame-body { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 14px; margin-top: 14px; align-items: stretch; }
.frame-table-shell { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.frame-table-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin-top: auto; padding: 12px; color: var(--muted); font-size: 0.75rem; border-top: 1px solid var(--line); }
.frame-table-foot b { color: var(--text-secondary); font-weight: 500; }
.frame-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.frame-table th { height: 34px; padding: 0 12px; color: var(--muted); font-size: 0.75rem; font-weight: 500; text-align: left; white-space: nowrap; background: var(--panel); }
.frame-table td { padding: 9px 12px; white-space: nowrap; border-top: 1px solid var(--line); }
.frame-table .numeric { font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.frame-item { display: flex; align-items: center; gap: 10px; }
.frame-item img { width: 36px; height: 36px; flex: 0 0 36px; object-fit: cover; border-radius: 10px; background: var(--panel); }
.frame-item img.crop-b { object-position: 20% 30%; filter: sepia(.5) saturate(.6) brightness(1.15); }
.frame-item img.crop-c { object-position: 70% 60%; }
.frame-item img.crop-d { object-position: 40% 80%; filter: sepia(.6) hue-rotate(-30deg) saturate(1.3) brightness(.85); }
.frame-item b { display: block; font-weight: 600; }
.frame-item small { display: block; margin-top: 1px; color: var(--muted); font-size: 0.75rem; }
.signal { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; color: var(--text-secondary); font-size: 0.75rem; font-weight: 500; white-space: nowrap; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg); }
.signal.is-active { color: var(--success-text); border-color: var(--success-line); background: var(--success-bg); }
.frame-estimate { padding: 18px 18px 16px; border: 1px solid var(--accent-border); border-radius: 16px; background: linear-gradient(180deg, rgb(59 130 255 / 12%), rgb(59 130 255 / 3%) 55%, transparent), var(--surface); box-shadow: 0 18px 40px -18px rgb(47 107 255 / 45%); }
.estimate-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; color: var(--text-secondary); font-size: 0.8125rem; font-weight: 500; }
.estimate-figure { margin: 10px 0 0; color: var(--accent-text); background: var(--brand-gradient-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-family: var(--font-display); font-size: 2.875rem; font-weight: 600; letter-spacing: -.04em; line-height: 1; filter: drop-shadow(0 6px 18px rgb(56 140 255 / 45%)); }
.estimate-basis { margin: 8px 0 0; color: var(--muted); font-size: 0.75rem; }
.estimate-rows { display: grid; gap: 0; margin: 14px 0 0; border-top: 1px solid var(--line); }
.estimate-rows div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 9px 0; font-size: 0.8125rem; border-bottom: 1px solid var(--line-soft); }
.estimate-rows dt { color: var(--muted); }
.estimate-rows dd { margin: 0; color: var(--text); font-weight: 600; white-space: nowrap; }
.estimate-source { margin: 12px 0 0; color: var(--text-dim); font-size: 0.75rem; }

/* Capability strip: what the API confirms, under the frame. */
.brand-universe { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 16px; max-width: 900px; margin: 28px auto 0; color: var(--muted); }
.brand-universe p { margin: 0; color: var(--muted); font-size: 0.8125rem; }
.brand-universe [data-capability-scope] { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; color: var(--text); font-size: 0.8125rem; font-weight: 600; text-align: center; }
.brand-universe [data-capability-scope] [data-capability-status]::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; vertical-align: 1px; border-radius: 50%; background: var(--accent-text); box-shadow: 0 2px 8px rgb(108 184 255 / 70%); }
.brand-universe [data-capability-scope] span + span { color: var(--text-secondary); font-weight: 400; }
.brand-universe [data-capability-scope][data-state="paused"] [data-capability-status], .brand-universe [data-capability-scope][data-state="interrupted"] [data-capability-status], .brand-universe [data-capability-scope][data-state="overdue"] [data-capability-status] { color: var(--warning-text); }
.brand-universe [data-capability-scope][data-state="paused"] [data-capability-status]::before, .brand-universe [data-capability-scope][data-state="interrupted"] [data-capability-status]::before, .brand-universe [data-capability-scope][data-state="overdue"] [data-capability-status]::before { background: var(--warning-text); box-shadow: none; }
.brand-universe [data-capability-scope][data-state="unverified"] [data-capability-status], .brand-universe [data-capability-scope][data-state="unavailable"] [data-capability-status] { color: var(--muted); }
.brand-universe [data-capability-scope][data-state="unverified"] [data-capability-status]::before, .brand-universe [data-capability-scope][data-state="unavailable"] [data-capability-status]::before { background: var(--text-dim); box-shadow: none; }
.brand-universe small { flex-basis: 100%; color: var(--text-dim); font-size: 0.75rem; line-height: 1.5; }

/* Tracking is size-specific: 12-13 px labels open up slightly, display type stays tight. */
.demo-indicator, .hero-facts li, .frame-crumb, .frame-search, .frame-pill, .frame-table th, .frame-item small, .signal, .estimate-basis, .estimate-source, .frame-table-foot, .brand-universe p, .brand-universe small, .preview-table th, .ranking-table th, .preview-signal, .preview-bottom, .table-footnote, .rank-preview-header span, .soon-chip, .pricing-scope, .footer-bottom, .hero-note, .margin-note { letter-spacing: .01em; }

/* Sections share one rhythm. */
.section { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: var(--section-pad) var(--gutter) 0; }
.section-head h2 { max-width: 18ch; margin: 0; font-size: clamp(2rem, 4vw, 3.375rem); line-height: 1.08; letter-spacing: -.042em; }
.section-head p { max-width: 58ch; margin: 18px 0 0; color: rgb(255 255 255 / 73%); font-size: 1.0625rem; line-height: 1.55; }
.section-head .text-link, .section-head .button { margin-top: 28px; }
.section-head-center { display: flex; flex-direction: column; align-items: center; margin-bottom: 44px; text-align: center; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 36px; }
.section-link { display: flex; width: max-content; margin: 26px auto 0; }
.filter-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 980px; margin: 22px auto 0; padding: 0; list-style: none; }
.filter-facts li { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 16px 0 12px; color: var(--paper-ink); font-size: 0.875rem; border-radius: 999px; background: var(--paper-card); box-shadow: var(--paper-ring); }
.filter-facts svg { width: 16px; height: 16px; color: var(--accent-on-light); stroke-width: 2; }

/* The light panel: one big rounded sheet that carries the working sections. */
.light-panel { margin: clamp(80px, 10vw, 136px) 8px 0; padding-bottom: var(--section-pad); color: var(--paper-ink); border-radius: 32px; background: var(--paper); }
.light-panel ::selection { color: var(--paper-ink); background: rgb(59 130 255 / 22%); }
.light-panel .section-head p { color: var(--paper-muted); }
.light-panel .text-link { color: var(--accent-on-light); }
.light-panel .demo-indicator { color: var(--accent-on-light); border-color: rgb(31 94 255 / 22%); background: rgb(31 94 255 / 7%); }
.light-panel :focus-visible { outline-color: var(--accent-on-light); }

/* Comparables on paper. */
.preview-window { max-width: 980px; margin: 0 auto; overflow: hidden; border-radius: 24px; background: var(--paper-card); box-shadow: var(--paper-ring); }
.preview-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; padding: 16px 18px; border-bottom: 1px solid var(--paper-line); }
.preview-caption { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; color: var(--paper-muted); font-size: 0.875rem; }
.preview-tabs, .feature-switch, .pricing-cycle { position: relative; isolation: isolate; display: inline-flex; flex: 0 0 auto; gap: 2px; padding: 4px; border-radius: 999px; }
.seg-thumb { position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; pointer-events: none; will-change: transform, width; }
.preview-tabs .seg-thumb, .feature-switch .seg-thumb { background: var(--paper-card); box-shadow: var(--paper-ring); }
.pricing-cycle .seg-thumb { background: var(--glass-hover); box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%); }
.has-thumb button[aria-selected="true"], .has-thumb button[aria-pressed="true"] { background: transparent !important; box-shadow: none !important; }
.preview-tabs button:active, .feature-switch button:active, .pricing-cycle button:active { transform: scale(.95); transition-duration: 70ms; }
.preview-tabs, .feature-switch { border: 1px solid var(--paper-line); background: var(--paper-sunken); }
.preview-tabs button, .feature-switch button, .pricing-cycle button { min-height: 32px; padding: 0 14px; font-size: 0.8125rem; font-weight: 500; border: 0; border-radius: 999px; background: none; transition: background-color 180ms var(--ease), color 180ms var(--ease), box-shadow 180ms var(--ease), transform 160ms var(--ease); }
.preview-tabs button, .feature-switch button { color: var(--paper-muted); }
.preview-tabs button:hover, .feature-switch button:hover { color: var(--paper-ink); }
.preview-tabs button[aria-selected="true"], .feature-switch button[aria-selected="true"] { color: var(--paper-ink); font-weight: 600; background: var(--paper-card); box-shadow: var(--paper-ring); }
.preview-table-wrap { position: relative; overflow-x: auto; }
.preview-table, .ranking-table { width: 100%; min-width: 560px; border-collapse: collapse; }
.preview-table th, .ranking-table th { height: 38px; padding: 0 18px; color: var(--paper-dim); font-size: 0.75rem; font-weight: 500; text-align: left; white-space: nowrap; background: var(--paper-sunken); }
.preview-table td, .ranking-table td { padding: 14px 18px; color: var(--paper-ink); font-size: 0.9375rem; white-space: nowrap; vertical-align: middle; border-top: 1px solid var(--paper-line); }
.preview-table .numeric, .ranking-table .numeric { text-align: right; }
.preview-item { display: flex; align-items: center; gap: 14px; }
.preview-item img { width: 48px; height: 48px; flex: 0 0 48px; object-fit: cover; border-radius: 10px; background: var(--paper-sunken); }
.preview-item b { display: block; font-weight: 600; }
.preview-item small { display: block; margin-top: 2px; color: var(--paper-dim); font-size: 0.8125rem; }
.preview-price { font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.preview-signal { display: inline-flex; align-items: center; min-height: 26px; padding: 0 11px; color: var(--paper-muted); font-size: 0.8125rem; font-weight: 500; white-space: nowrap; border: 1px solid var(--paper-line-strong); border-radius: 999px; background: var(--paper-card); }
.preview-signal.active { color: #166534; border-color: rgb(22 163 74 / 30%); background: #dcfce7; }
.preview-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; color: var(--paper-dim); font-size: 0.8125rem; border-top: 1px solid var(--paper-line); }

/* Estimation: a white card whose result lights up on a dark strip. */
.estimate-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.section-estimation .quiet-copy { color: var(--paper-dim) !important; font-size: 0.9375rem !important; }
.margin-card { --card-pad: clamp(22px, 3vw, 32px); overflow: hidden; padding: var(--card-pad); border-radius: 28px; background: var(--paper-card); box-shadow: var(--paper-ring); }
.margin-card h3 { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 22px; font-size: 1.375rem; letter-spacing: -.03em; }
.margin-card label { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr); gap: 8px; color: var(--paper-muted); font-size: 0.875rem; font-weight: 500; }
.margin-card .form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.currency-field { display: flex; min-width: 0; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid var(--paper-line-strong); border-radius: 14px; background: var(--paper); transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease); }
.currency-field:focus-within { border-color: var(--accent-on-light); box-shadow: 0 0 0 4px rgb(31 94 255 / 14%); }
.currency-field input { min-width: 0; height: 54px; flex: 1; padding: 0; color: var(--paper-ink); font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; border: 0; outline: 0; background: transparent; }
.currency-field input::-webkit-outer-spin-button, .currency-field input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.currency-field input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.currency-field input:invalid { color: #c2262b; }
.currency-field > span { color: var(--paper-dim); font-size: 1.125rem; font-weight: 500; }
.margin-deduction { display: flex; justify-content: space-between; margin-top: 20px; padding: 0 4px; color: var(--paper-muted); font-size: 0.9375rem; }
.margin-deduction span:last-child { color: var(--paper-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.margin-result { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 20px calc(-1 * var(--card-pad)) calc(-1 * var(--card-pad)); padding: 22px var(--card-pad); color: var(--text); border-top: 1px solid var(--accent-border); background: var(--bg-deep); }
.margin-result::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(70% 140% at 100% 100%, rgb(56 140 255 / 22%), transparent 70%); pointer-events: none; }
.margin-result > span { display: grid; gap: 2px; font-size: 0.9375rem; font-weight: 600; }
.margin-result small { color: var(--muted); font-size: 0.8125rem; font-weight: 400; }
.margin-result output { margin-inline-end: -.06em; padding-inline-end: .06em; color: var(--accent-text); background: var(--brand-gradient-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-family: var(--font-display); font-size: clamp(2.25rem, 4vw, 3.25rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; white-space: nowrap; filter: drop-shadow(0 6px 18px rgb(56 140 255 / 50%)); }
.margin-note { margin: 14px 0 0; padding: 0 4px; color: var(--paper-dim); font-size: 0.8125rem; }

/* Rankings on paper. */
.ranking-preview { overflow: hidden; border-radius: 24px; background: var(--paper-card); box-shadow: var(--paper-ring); }
.rank-preview-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--paper-line); }
.rank-preview-header h3 { margin: 0; font-size: 1.0625rem; letter-spacing: -.02em; }
.rank-preview-header span { color: var(--paper-dim); font-size: 0.8125rem; }
.ranking-table-wrap { position: relative; overflow-x: auto; }
.rank-number { display: inline-block; width: 28px; margin-right: 12px; vertical-align: middle; color: var(--paper-dim); font-family: var(--font-mono); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.rank-product { display: inline-block; font-weight: 600; vertical-align: middle; }
.rank-product small { display: block; margin-top: 2px; color: var(--paper-dim); font-size: 0.8125rem; font-weight: 400; }
.volume-wrap { display: flex; align-items: center; gap: 12px; }
.volume-wrap .num { min-width: 22px; }
.volume-bar { width: 140px; height: 6px; overflow: hidden; border-radius: 6px; background: var(--paper-sunken); }
.volume-bar i { display: block; width: var(--bar); height: 100%; border-radius: inherit; background: var(--brand-gradient); }
.ranking-table a { display: inline-grid; width: 36px; height: 36px; place-items: center; color: var(--paper-dim); border-radius: 10px; }
.ranking-table a:hover { color: var(--paper-ink); background: var(--paper-sunken); }
.ranking-table td[colspan] { max-width: 70ch; color: var(--paper-muted); line-height: 1.6; white-space: normal; }
.table-footnote { margin: 0; padding: 14px 20px; color: var(--paper-dim); font-size: 0.8125rem; border-top: 1px solid var(--paper-line); }

/* Method: three mentions, each a chip and its meaning. */
.method-specimens { max-width: 980px; margin: 0 auto; overflow: hidden; border-radius: 24px; background: var(--paper-card); box-shadow: var(--paper-ring); }
.method-specimens article { display: grid; grid-template-columns: minmax(220px, 4fr) minmax(0, 8fr); gap: 24px; align-items: center; padding: 24px 28px; border-top: 1px solid var(--paper-line); }
.method-specimens article:first-child { border-top: 0; }
.mention { display: inline-flex; justify-self: start; align-items: center; gap: 8px; padding: 8px 14px 8px 12px; color: var(--paper-ink); font-size: 0.875rem; font-weight: 600; border-radius: 999px; background: var(--paper-card); box-shadow: var(--paper-ring); }
.mention svg { width: 16px; height: 16px; color: var(--accent-on-light); stroke-width: 2; }
.method-specimens p { max-width: 60ch; margin: 0; color: var(--paper-muted); font-size: 1rem; line-height: 1.55; }
.method-scope { display: grid; max-width: 980px; grid-template-columns: minmax(220px, 4fr) minmax(0, 8fr); gap: 8px 24px; margin: 32px auto 0; padding: 0 28px; }
.method-scope h3 { margin: 0; font-size: 1.125rem; letter-spacing: -.02em; }
.method-scope p { max-width: 70ch; margin: 0; color: var(--paper-muted); font-size: 0.9375rem; line-height: 1.6; }
.method-scope .text-link { grid-column: 2; margin-top: 12px; }

/* Pricing on the dark shell: smoked glass cards, no badge. */
.pricing-trial-note { color: var(--muted) !important; font-size: 0.9375rem !important; }
.pricing-cycle { border: 1px solid var(--line); background: var(--glass); }
.pricing-cycle button { color: var(--muted); }
.pricing-cycle button:hover { color: var(--text); }
.pricing-cycle button[aria-pressed="true"] { color: var(--text); background: var(--glass-hover); box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pricing-card { display: flex; flex-direction: column; padding: 26px 24px 24px; border-radius: 28px; background: var(--glass); box-shadow: var(--glass-glow); }
.pricing-card-head h3 { margin: 0; font-size: 1.3125rem; letter-spacing: -.03em; }
.pricing-card-head p { margin: 6px 0 0; color: var(--muted); font-size: 0.9375rem; }
.pricing-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; }
.pricing-price strong { font-family: var(--font-display); font-size: 2.75rem; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.pricing-price span { color: var(--muted); font-size: 0.875rem; }
.pricing-equivalent { margin: 8px 0 0; color: var(--text-secondary); font-size: 0.875rem; }
.pricing-card ul { display: grid; align-content: start; gap: 11px; flex: 1; margin: 24px 0 26px; padding: 20px 0 0; list-style: none; border-top: 1px solid var(--line); }
.pricing-card li { position: relative; padding-left: 26px; color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.45; }
.pricing-card li::before { content: ""; position: absolute; top: 2px; left: 0; width: 17px; height: 17px; background: var(--accent-text); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat; }
.pricing-card li.is-excluded { color: var(--text-dim); }
.pricing-card li.is-excluded::before { background: var(--text-dim); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E") center / contain no-repeat; }
.pricing-button { width: 100%; }
.pricing-card small { display: block; margin: -12px 0 16px; color: var(--text-dim); font-size: 0.8125rem; }
.pricing-future { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 14px; padding: 18px 22px; border: 1px dashed var(--line-strong); border-radius: 20px; }
.pricing-future > span:first-child { display: grid; gap: 3px; }
.pricing-future strong { font-weight: 600; }
.pricing-future small { color: var(--muted); font-size: 0.875rem; }
.soon-chip { flex: 0 0 auto; padding: 5px 12px; color: var(--accent-text); font-size: 0.8125rem; font-weight: 600; border: 1px solid var(--accent-border); border-radius: 999px; background: var(--accent-selected); }
.pricing-scope { max-width: 90ch; margin: 18px 0 0; color: var(--text-dim); font-size: 0.8125rem; line-height: 1.55; }

/* FAQ */
.faq-section { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 0; font-size: 1.0625rem; font-weight: 500; list-style: none; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { width: 18px; height: 18px; color: var(--muted); transition: transform 240ms var(--ease), color 160ms var(--ease); }
.faq-list details[open] summary svg { color: var(--accent-text); transform: rotate(45deg); }
.faq-list summary:hover svg { color: var(--text); }
.faq-list details p { max-width: 66ch; margin: -4px 0 22px; color: rgb(255 255 255 / 73%); font-size: 1rem; line-height: 1.6; }
.faq-list { interpolate-size: allow-keywords; }
.faq-list details::details-content { block-size: 0; overflow: clip; opacity: 0; transition: block-size 340ms var(--ease), opacity 240ms var(--ease), content-visibility 340ms allow-discrete; }
.faq-list details[open]::details-content { block-size: auto; opacity: 1; }
.faq-list summary { transition: opacity 160ms var(--ease); }
.faq-list summary:active { opacity: .6; transition-duration: 0s; }

/* Close and footer */
.closing-section { position: relative; isolation: isolate; display: flex; max-width: calc(var(--maxw) + 2 * var(--gutter)); flex-direction: column; align-items: center; margin: 0 auto; padding: calc(var(--section-pad) * 1.2) var(--gutter); text-align: center; }
.closing-section::before { content: ""; position: absolute; z-index: -1; inset: 10% 0 0; background: radial-gradient(40% 55% at 50% 60%, rgb(56 140 255 / 18%), transparent 70%); pointer-events: none; }
.closing-section h2 { max-width: 16ch; margin: 0 0 34px; font-size: clamp(2.25rem, 5vw, 4.25rem); line-height: 1.05; letter-spacing: -.042em; }
.closing-section p { margin: 18px 0 0; color: var(--muted); font-size: 0.9375rem; }
.site-footer { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) 40px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding: 28px 0; border-top: 1px solid var(--line); }
.footer-top nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-top nav a, .footer-top nav button { padding: 0; color: var(--muted); font-size: 0.875rem; text-decoration: none; border: 0; background: none; }
.footer-top nav a:hover, .footer-top nav button:hover { color: var(--text); text-decoration: underline; }
.footer-top nav a:active, .footer-top nav button:active { opacity: .6; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: var(--text-dim); font-size: 0.8125rem; }

.credits-dialog { width: min(560px, calc(100vw - 32px)); padding: 26px; color: var(--text); border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: 0 24px 70px rgb(0 0 0 / 60%); opacity: 0; transform: translateY(8px) scale(.96); filter: blur(6px); transition: opacity 220ms var(--ease), transform 300ms var(--ease), filter 260ms var(--ease), overlay 300ms allow-discrete, display 300ms allow-discrete; }
.credits-dialog[open] { opacity: 1; transform: none; filter: none; }
@starting-style { .credits-dialog[open] { opacity: 0; transform: translateY(8px) scale(.96); filter: blur(6px); } }
.credits-dialog::backdrop { background: rgb(0 0 0 / 0%); transition: background-color 300ms var(--ease), overlay 300ms allow-discrete, display 300ms allow-discrete; }
.credits-dialog[open]::backdrop { background: rgb(0 0 0 / 66%); }
@starting-style { .credits-dialog[open]::backdrop { background: rgb(0 0 0 / 0%); } }
.credits-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.credits-head h2 { margin: 0; font-size: 1.25rem; letter-spacing: -.02em; }
.credits-head button { display: grid; width: 36px; height: 36px; place-items: center; color: var(--muted); border: 1px solid var(--line); border-radius: 10px; background: none; }
.credits-dialog p, .credits-dialog li { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.55; }
.credits-dialog ul { padding-left: 18px; }
.credits-dialog a { color: var(--accent-text); }

/* One authored entrance: the hero settles into place once; it never starts hidden. */
@keyframes rise { from { transform: translateY(16px); } }
@keyframes rise-frame { from { transform: translateY(32px) scale(.985); } }
.hero h1, .hero-lead, .hero-facts, .hero-search, .hero-note { animation: rise 720ms var(--ease) both; }
.hero-lead { animation-delay: 60ms; }
.hero-facts { animation-delay: 120ms; }
.hero-search { animation-delay: 180ms; }
.hero-note { animation-delay: 220ms; }
.hero-frame { animation: rise-frame 1100ms var(--ease) 200ms both; }

@media (max-width: 1080px) {
  .frame-body { grid-template-columns: minmax(0, 1fr) 260px; }
  .estimate-figure { font-size: 2.5rem; }
}
@media (max-width: 900px) {
  :root { --header-h: 60px; }
  .desktop-nav, .login-link { display: none; }
  .menu-toggle { display: inline-flex; }
  .light-panel { margin-inline: 6px; border-radius: 24px; }
  .frame-screen { grid-template-columns: minmax(0, 1fr); }
  .frame-rail { display: none; }
  .frame-body { grid-template-columns: minmax(0, 1fr); }
  .estimate-layout, .faq-section { grid-template-columns: minmax(0, 1fr); }
  .section-head-row { align-items: flex-start; flex-direction: column; }
  .pricing-grid { grid-template-columns: minmax(0, 1fr); }
  .method-specimens article, .method-scope { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .method-scope .text-link { grid-column: 1; }
}
@media (max-width: 560px) {
  .nav-wrap { gap: 12px; }
  .nav-actions .button-small { padding: 0 12px; }
  .hero h1 { font-size: clamp(2.375rem, 11vw, 2.875rem); }
  .hero-facts li { font-size: 0.75rem; }
  .hero-search { flex-wrap: wrap; padding: 6px; }
  .hero-search input[type="search"] { flex-basis: calc(100% - 10px); }
  .hero-search .button { width: 100%; }
  .hero-search > svg { top: 30px; }
  .hero-frame { padding: 6px; border-radius: 24px; }
  .frame-screen { border-radius: 18px; }
  .frame-main { padding: 12px; }
  .frame-filters .frame-pill:nth-child(n+4) { display: none; }
  .frame-col-condition, .frame-col-signal { display: none; }
  .frame-table td, .frame-table th { padding-inline: 10px; }
  .frame-item small { display: none; }
  .light-panel { margin-inline: 4px; border-radius: 20px; }
  .preview-toolbar { padding: 14px; }
  .margin-card { border-radius: 24px; }
  .margin-card .form-two { grid-template-columns: minmax(0, 1fr); }
  .margin-result { align-items: flex-start; flex-direction: column; }
  .preview-bottom { flex-direction: column; }
  .pricing-future { align-items: flex-start; flex-direction: column; }
  .method-specimens article { padding: 20px; }
  .method-scope { padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-list details::details-content { transition: none; }
  .credits-dialog { transform: none; filter: none; }
}
@media (prefers-contrast: more) {
  .site-header.is-scrolled { box-shadow: 0 1px 0 var(--line-strong); }
  .site-header::after { display: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header::after { display: none; }
  .site-header.is-scrolled { background: var(--bg-deep); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header.on-light { background: var(--paper); }
}

/* Below 600px each comparable and ranking row stacks: the item, then its price and signal. */
@media (max-width: 600px) {
  .preview-table, .ranking-table { min-width: 0; }
  .preview-table thead, .ranking-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .preview-table, .preview-table tbody, .ranking-table, .ranking-table tbody { display: block; }
  .preview-table tbody tr, .ranking-table tbody tr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 16px; border-top: 1px solid var(--paper-line); }
  .preview-table tbody tr:first-child, .ranking-table tbody tr:first-child { border-top: 0; }
  .preview-table td, .ranking-table td { display: block; padding: 0 !important; border: 0 !important; white-space: normal; }
  .preview-table td.cell-item, .ranking-table td.cell-item { flex-basis: 100%; }
  .preview-table td.preview-price { order: 1; font-size: 1rem; text-align: left; }
  .preview-table td.cell-signal { order: 2; }
  .preview-table td.cell-condition { order: 3; color: var(--paper-dim); font-size: 0.875rem; }
  .ranking-table td.cell-item { display: flex; align-items: center; }
  .ranking-table td.cell-volume { order: 1; }
  .ranking-table td.cell-median { order: 2; margin-left: auto; font-weight: 600; text-align: right; }
  .ranking-table td.cell-open { display: none; }
  .ranking-table td[colspan] { flex-basis: 100%; }
  .volume-bar { width: 96px; }
}
