/* Trading Diary — public marketing site (F6).
   Brand palette per DECISIONS.md D145 / Documentation/marketing-draft/copy-draft.md's
   REVISED "Design direction": black/near-black background, off-white ink, dark red
   (#A80000, the exact hex baked into public/icon.svg) reserved as a deliberate accent
   for CTAs and highlights — NOT spread evenly, and deliberately never used for the
   equity-curve mockup line (an all-red curve reads as "always losing" — see the
   design-direction note this file's comments keep pointing back to).

   Structural neutrals (--bg/--panel/--panel2/--field/--rule/--rule2) are lifted
   directly from the app's own dark theme (public/style.css [data-theme=dark]) so this
   page reads as the same product, not a reinvented palette. --ink and --acc instead
   use the *literal* brand hex values from icon.svg rather than the app's own
   contrast-tuned dark-mode ink/accent (#E6E8ED / #C6414D) — this page is the brand
   surface itself, not a themed app screen, so it gets the exact logo colors.

   No external fonts: reuses the app's own system-font stacks (public/style.css
   --sans/--mono) rather than shipping the self-hosted IBM Plex/Space Grotesk woff2
   set — this page has no in-app typography toggle to serve, and a system stack is
   the simplest way to stay genuinely zero-external-request. */

*, *::before, *::after { box-sizing: border-box; }

:root {
  color-scheme: dark;
  --bg: #0A0B0E;
  --panel: #101216;
  --panel2: #171A20;
  --field: #0D0F13;
  --rule: #1E212A;
  --rule2: #2C313D;

  /* Brand ink/accent — literal icon.svg hex, not the app's dark-theme tokens. */
  --paper: #F2F0EB;
  --ink: var(--paper);
  --muted: #9A968E;
  --muted2: #6E6B65;

  --acc: #A80000;
  --acc-hover: #C21414;
  --acc-soft: #2A1416;
  --on-acc: var(--paper);

  /* Mockup-only "win/loss" colors — depict the app's own in-UI P/L convention
     (green=win, red=loss), deliberately distinct from --acc so a screenshot
     mockup doesn't get confused with brand chrome. Never used outside .mock-*. */
  --mock-bull: #3FB980;
  --mock-bear: #E5484D;

  --r: 8px;
  --r-lg: 14px;
  --shadow-float: 0 20px 60px rgba(0,0,0,.5), 0 4px 16px rgba(0,0,0,.35);

  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", "Segoe UI", -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1120px;
}

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--acc); color: var(--on-acc); padding: 10px 16px; border-radius: var(--r);
  font-weight: 600; text-decoration: none; transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

::selection { background: var(--acc); color: var(--on-acc); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border-radius: var(--r); border: 1px solid var(--rule2);
  background: var(--panel); color: var(--ink);
  font-weight: 600; font-size: .95rem; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: border-color .15s ease, background-color .15s ease, transform .1s ease;
}
.btn:hover { border-color: var(--muted2); background: var(--panel2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.btn.primary { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }
.btn.primary:hover { background: var(--acc-hover); border-color: var(--acc-hover); }
.btn.large { min-height: 50px; padding: 0 26px; font-size: 1.02rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10,11,14,.88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-row { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.nav-mark { width: 30px; height: 30px; flex: none; background: #0D0D0D; border-radius: 6px; display: grid; place-items: center; }
.nav-mark svg { width: 26px; height: 26px; display: block; }
.nav-name { font-weight: 800; font-size: 1.02rem; letter-spacing: -.01em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  text-decoration: none; color: var(--muted); font-size: .92rem; font-weight: 600;
  padding: 6px 2px; border-bottom: 1px solid transparent;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; margin-left: auto; width: 40px; height: 40px; border-radius: var(--r);
  border: 1px solid var(--rule2); background: var(--panel); color: var(--ink);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-mobile-panel {
  display: none; flex-direction: column; gap: 2px;
  border-top: 1px solid var(--rule); background: var(--panel);
}
.nav-mobile-panel a {
  padding: 14px 24px; text-decoration: none; color: var(--ink); font-weight: 600;
  border-bottom: 1px solid var(--rule);
  min-height: 44px; display: flex; align-items: center;
}
.nav.mobile-open .nav-mobile-panel { display: flex; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 84px 0 96px;
  border-bottom: 1px solid var(--rule);
}
.hero-canvas { position: absolute; inset: 0; z-index: 0; opacity: .55; }
.hero-canvas::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,11,14,.35) 0%, rgba(10,11,14,.65) 55%, var(--bg) 100%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 .74rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--acc); background: var(--acc-soft); border: 1px solid rgba(168,0,0,.4);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.12; font-weight: 800; letter-spacing: -.015em; }
.hero-sub { margin-top: 20px; font-size: 1.08rem; line-height: 1.6; color: #C9C6BE; max-width: 54ch; }
.hero-ctas { display: flex; align-items: center; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-visual { position: relative; }

.browser-frame {
  border: 1px solid var(--rule2); border-radius: var(--r-lg); overflow: hidden;
  background: var(--panel); box-shadow: var(--shadow-float);
}
.browser-frame-bar {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  background: var(--panel2); border-bottom: 1px solid var(--rule);
}
.browser-frame-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rule2); }
.browser-frame-url {
  margin-left: 10px; font: 500 .74rem var(--mono); color: var(--muted);
  background: var(--field); border: 1px solid var(--rule); border-radius: 6px;
  padding: 3px 10px; flex: 1;
}
.browser-frame-body { padding: 18px; background: var(--field); }

.mock-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.mock-kpi {
  background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r);
  padding: 10px 12px;
}
.mock-kpi-label { display: block; font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.mock-kpi-value { display: block; margin-top: 4px; font: 700 1.15rem/1 var(--mono); color: var(--ink); }
.mock-kpi-value.accent { color: var(--acc-hover); }
.mock-chart {
  background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r);
  padding: 14px; height: 130px;
}
.mock-chart svg { width: 100%; height: 100%; display: block; }
.mock-chart polyline { fill: none; stroke: var(--paper); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; opacity: .92; }
.mock-chart circle { fill: var(--acc-hover); }

/* ── Section scaffolding ─────────────────────────────────────────────── */
section { padding: 88px 0; }
.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-eyebrow {
  display: block; font: 700 .74rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--acc-hover); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.01em; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 1.02rem; }
.section-alt { background: var(--panel); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

/* ── Feature grid ────────────────────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.feature-card {
  background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r-lg);
  padding: 24px; transition: border-color .15s ease;
}
.feature-card:hover { border-color: var(--rule2); }
.feature-icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--panel2);
  border: 1px solid var(--rule); display: grid; place-items: center; margin-bottom: 16px;
  color: var(--acc-hover);
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: .93rem; line-height: 1.55; }

/* ── Deep dives ──────────────────────────────────────────────────────── */
.deep-dive { padding: 72px 0; border-bottom: 1px solid var(--rule); }
.deep-dive:last-of-type { border-bottom: none; }
.deep-dive-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
/* `order` rather than a direction:rtl/ltr flip — same visual result with no
   bidi side effects on child text alignment. */
.deep-dive.reverse .deep-dive-copy { order: 2; }
.deep-dive.reverse .deep-dive-visual { order: 1; }
.deep-dive-num { font: 700 .8rem/1 var(--mono); color: var(--acc-hover); letter-spacing: .06em; margin-bottom: 14px; display: block; }
.deep-dive-copy h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.deep-dive-copy p { margin-top: 16px; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.deep-dive-visual { position: relative; }
/* §4.2 only: a static "connected data points" field behind the Edge Score mockup —
   deliberately CSS-only rather than a second bg-animations.js canvas mount. That
   module's own scheduler tracks exactly one `activeInstance` at a time (by design —
   the authenticated app itself never mounts more than one canvas animation
   simultaneously), so a second concurrent mount here would silently lose the live
   prefers-reduced-motion-toggle handling the moment the hero's canvas re-mounts
   after it. A static dot-grid needs no such handling at all (nothing ever moves),
   which is a stronger reduced-motion guarantee than a second live mount would have
   had — see the marketing build report for the full reasoning. */
.deep-dive-visual.has-dot-field { border-radius: var(--r-lg); overflow: hidden; }
.static-dot-field {
  position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(circle, rgba(242,240,235,.16) 1px, transparent 1.6px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(62% 75% at 62% 38%, #000 0%, transparent 72%);
  mask-image: radial-gradient(62% 75% at 62% 38%, #000 0%, transparent 72%);
}
.deep-dive-visual.has-dot-field .browser-frame { position: relative; z-index: 1; background: rgba(16,18,22,.86); }

/* 4.1 trade detail mockup */
.mock-trade-rows { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.mock-row {
  display: grid; grid-template-columns: auto auto 1fr; gap: 10px; align-items: center;
  font: 600 .8rem/1 var(--mono); color: var(--muted); background: var(--panel); border: 1px solid var(--rule);
  border-radius: 6px; padding: 8px 10px;
}
.mock-row .tag { font-size: .66rem; padding: 2px 7px; border-radius: 4px; font-weight: 800; letter-spacing: .02em; }
.mock-row .tag.buy { background: rgba(63,185,128,.16); color: var(--mock-bull); }
.mock-row .tag.sell { background: rgba(229,72,77,.16); color: var(--mock-bear); }
.mock-row .val { color: var(--ink); justify-self: end; }
.mock-shots { display: flex; gap: 8px; margin-bottom: 12px; }
.mock-shot {
  flex: 1; height: 58px; border-radius: 6px; border: 1px dashed var(--rule2);
  background: repeating-linear-gradient(135deg, var(--panel2) 0 8px, var(--field) 8px 16px);
}
.mock-note {
  font-size: .82rem; color: var(--muted); font-style: italic;
  border-left: 2px solid var(--acc); padding: 8px 12px; background: var(--panel);
  border-radius: 0 6px 6px 0;
}

/* 4.2 edge score radar mockup */
.mock-radar-wrap { display: flex; gap: 16px; align-items: center; }
.mock-radar { flex: none; width: 168px; height: 168px; }
.mock-radar .grid-line { stroke: var(--rule2); stroke-width: 1; fill: none; }
.mock-radar .axis-line { stroke: var(--rule); stroke-width: 1; }
.mock-radar polygon.fill { fill: rgba(168,0,0,.22); stroke: var(--acc-hover); stroke-width: 1.5; stroke-linejoin: round; }
.mock-radar-labels { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.mock-radar-labels li { font: 600 .72rem/1.2 var(--mono); color: var(--muted); }
.mock-radar-labels li b { color: var(--ink); display: block; font-size: .88rem; margin-top: 2px; }

/* 4.3 playbook breakdown mockup */
.mock-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.mock-table th {
  text-align: left; font: 700 .68rem var(--mono); text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--rule2);
}
.mock-table td { padding: 9px 10px; border-bottom: 1px solid var(--rule); color: var(--ink); }
.mock-table td.num { font-family: var(--mono); text-align: right; }
.mock-table td.num.pos { color: var(--mock-bull); }
.mock-table td.num.neg { color: var(--mock-bear); }

/* 4.4 desktop window mockup */
.mock-window { border: 1px solid var(--rule2); border-radius: var(--r); overflow: hidden; background: var(--field); }
.mock-titlebar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; background: var(--panel2); border-bottom: 1px solid var(--rule);
  font: 700 .76rem var(--sans);
}
.mock-titlebar .win-dots { display: flex; gap: 6px; }
.mock-titlebar .win-dots span { width: 10px; height: 10px; border-radius: 2px; border: 1px solid var(--rule2); }
.mock-window-body { padding: 16px; }
.mock-sync {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  font: 600 .82rem var(--sans); color: var(--muted);
  background: var(--panel); border: 1px solid var(--rule); border-radius: 999px; padding: 7px 14px;
}
.mock-sync-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mock-bull); box-shadow: 0 0 0 3px rgba(63,185,128,.18); }

/* ── How it works ────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { position: relative; padding-top: 8px; }
.step-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--acc-soft); color: var(--acc-hover); border: 1px solid rgba(168,0,0,.4);
  font: 800 1.05rem var(--mono); margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .93rem; line-height: 1.55; }

/* ── Mid-page demo CTA ───────────────────────────────────────────────── */
.demo-cta {
  position: relative; overflow: hidden; text-align: center;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 76px 0;
}
/* Static-only (no canvas mount here, see app.js's comment on hero-canvas for
   why): a soft red glow behind the CTA — the one deliberate non-hero use of
   accent color as a highlight, plus the same static dot-field §4.2 uses. */
.demo-cta-canvas {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(circle, rgba(242,240,235,.09) 1px, transparent 1.6px) 0 0 / 24px 24px,
    radial-gradient(45% 65% at 50% 40%, rgba(168,0,0,.16), transparent 72%);
}
.demo-cta .container { position: relative; z-index: 1; max-width: 640px; }
.demo-cta h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.01em; }
.demo-cta p { margin-top: 14px; color: var(--muted); font-size: 1.02rem; }
.demo-cta .btn { margin-top: 28px; }

/* ── Pricing ─────────────────────────────────────────────────────────── */
.pricing .container { display: flex; justify-content: center; }
.pricing-card {
  width: 100%; max-width: 440px; text-align: center;
  background: var(--panel); border: 1px solid var(--rule2); border-radius: var(--r-lg);
  padding: 40px 32px; position: relative;
}
.pricing-card::before {
  content: ""; position: absolute; top: 0; left: 20px; right: 20px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--acc), transparent);
}
.pricing-badge {
  display: inline-block; font: 700 .7rem var(--mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--acc-hover); background: var(--acc-soft); border: 1px solid rgba(168,0,0,.4);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.pricing-card h2 { font-size: 1.4rem; font-weight: 800; }
.pricing-card p { margin-top: 14px; color: var(--muted); font-size: .96rem; line-height: 1.55; }
.pricing-card .btn { margin-top: 24px; width: 100%; }
.billing-toggle { display: inline-flex; gap: 4px; margin-top: 22px; padding: 4px; background: var(--bg, #0b0b0c); border: 1px solid var(--rule2); border-radius: 999px; }
.billing-opt { font: 600 .84rem var(--sans, inherit); color: var(--muted); background: transparent; border: 0; border-radius: 999px; padding: 7px 16px; cursor: pointer; }
.billing-opt.is-on { background: var(--acc-soft); color: var(--ink); }
.billing-save { font: 700 .66rem var(--mono); color: var(--acc-hover); margin-left: 4px; text-transform: uppercase; letter-spacing: .04em; }
.price { margin-top: 22px !important; display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.price-amount { font-size: 2.6rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.price-per { color: var(--muted); font-size: 1rem; }
.pricing-card .price-note { margin-top: 4px; font-size: .86rem; }
.price-list { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.price-list li { color: var(--muted); font-size: .92rem; padding-left: 18px; position: relative; }
.price-list li::before { content: "\2013"; position: absolute; left: 0; color: var(--acc-hover); }
.pricing-soon a { color: var(--acc-hover); text-decoration: underline; text-underline-offset: 2px; }
.pricing-soon { margin-top: 14px; font-style: italic; color: var(--muted2); font-size: .84rem; }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid var(--rule); border-radius: var(--r); background: var(--panel);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 46px 16px 18px; font-weight: 700; font-size: .98rem;
  position: relative; min-height: 44px; display: flex; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font: 700 1.1rem var(--mono); color: var(--acc-hover); transition: transform .15s ease;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:hover { background: var(--panel2); }
.faq-item p { padding: 0 18px 18px; color: var(--muted); font-size: .92rem; line-height: 1.6; }
.faq-item p a { color: var(--acc-hover); text-decoration: underline; text-underline-offset: 2px; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer { padding: 48px 0 32px; border-top: 1px solid var(--rule); }
.footer-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.footer-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--muted); font-size: .88rem; font-weight: 600; }
.footer-links a:hover { color: var(--ink); }
.footer-fine { margin-top: 24px; color: var(--muted2); font-size: .8rem; }

/* ── Signup / waitlist modal ─────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(6,7,9,.72);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.modal-overlay.open { display: flex; }
.modal {
  width: 100%; max-width: 420px; max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--panel); border: 1px solid var(--rule2); border-radius: var(--r-lg);
  box-shadow: var(--shadow-float); padding: 28px 26px;
  position: relative;
}
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid var(--rule2); background: var(--panel2); color: var(--muted);
  display: grid; place-items: center; cursor: pointer;
}
.modal-close:hover { color: var(--ink); border-color: var(--muted2); }
.modal h2 { font-size: 1.3rem; font-weight: 800; padding-right: 34px; }
.modal-framing { margin-top: 10px; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.modal-form { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.field label { display: block; font-size: .78rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"] {
  width: 100%; min-height: 44px; padding: 0 12px; border-radius: var(--r);
  background: var(--field); border: 1px solid var(--rule2); color: var(--ink); font: inherit;
}
.field input:focus { outline: none; border-color: var(--acc); }
.field-consent { display: flex; align-items: flex-start; gap: 10px; }
.field-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--acc); flex: none; }
.field-consent label { font-size: .84rem; color: var(--muted); font-weight: 500; }
.modal-privacy { font-size: .78rem; color: var(--muted2); line-height: 1.5; }
.modal-privacy a { color: var(--acc-hover); text-decoration: underline; text-underline-offset: 2px; }
.modal-error {
  display: none; font-size: .84rem; color: #FF8A8E; background: rgba(229,72,77,.12);
  border: 1px solid rgba(229,72,77,.4); border-radius: 8px; padding: 10px 12px;
}
.modal-error.show { display: block; }
.modal-form .btn { width: 100%; margin-top: 4px; }
.modal-success { display: none; text-align: center; padding: 10px 0 4px; }
.modal-success.show { display: block; }
.modal-success .ok-icon {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--acc-soft); border: 1px solid rgba(168,0,0,.4); color: var(--acc-hover);
  display: grid; place-items: center;
}
.modal-success .ok-icon svg { width: 26px; height: 26px; }
.modal-success h3 { font-size: 1.1rem; font-weight: 800; }
.modal-success p { margin-top: 10px; color: var(--muted); font-size: .92rem; line-height: 1.55; }

/* Honeypot: a real, focusable-by-tab-avoidingly-but-present field, hidden purely
   with off-screen positioning + opacity — never display:none / disabled, both of
   which spam bots specifically know to detect and route around. */
.hp-field {
  position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px;
  opacity: 0; overflow: hidden;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { order: -1; }
  .deep-dive-grid { grid-template-columns: 1fr; gap: 32px; }
  /* Stacked single column: always copy-then-visual reading order, even for
     the desktop-reversed sections — undoes the order:1/2 pair above. */
  .deep-dive.reverse .deep-dive-copy, .deep-dive.reverse .deep-dive-visual { order: 0; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  section { padding: 64px 0; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-cta .btn.ghost-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .hero { padding: 48px 0 60px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .mock-kpis { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 28px; }
  .mock-radar-wrap { flex-direction: column; align-items: stretch; }
  .mock-radar { margin: 0 auto; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .modal { padding: 24px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .skip-link, .btn { transition: none; }
}

/* ── Cookie oznámení (F: privacy/consent, viz marketing/app.js
   initCookieNotice) — informativní jednorázový bar, ne accept/reject
   dvojice (žádné non-essential cookies zatím na webu nejsou). Stejné
   brandové tokeny jako zbytek stránky (--panel/--rule/--acc atd.), žádná
   ad-hoc paleta. */
.cookie-notice {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--rule2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-float);
}

.cookie-notice-text {
  flex: 1 1 320px;
  margin: 0;
  font-size: .88rem;
  line-height: 1.5;
  color: var(--muted);
}

.cookie-notice-text a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.cookie-notice-text a:hover { color: var(--acc); }

.cookie-notice-btn {
  flex: none;
  padding: 9px 18px;
  border: 1px solid var(--acc);
  border-radius: var(--r);
  background: var(--acc);
  color: var(--on-acc);
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
}

.cookie-notice-btn:hover { background: var(--acc-hover); border-color: var(--acc-hover); }
.cookie-notice-btn:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

@media (max-width: 640px) {
  .cookie-notice { left: 10px; right: 10px; bottom: 10px; padding: 14px; }
}
