/* =============================================================================
   Plandia — Landing page
   Design tokens transcribed verbatim from the handoff (design_handoff_plania/README.md)
   and the canonical source of truth (reference_designs/Plania Fresh.dc.html).
   The x-dc / support.js prototype runtime is NOT ported — this is a clean rebuild.
   ========================================================================== */

/* ----------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Color — light theme (product is light-first) */
  --bg: #F7F7F4;          /* Page background (warm off-white) */
  --surface: #FFFFFF;     /* Cards, inputs */
  --surface-2: #F0F0EC;   /* Insets, secondary panels, tab track */
  --ink: #0B0B0D;         /* Near-black — headings, dark sections, primary buttons */
  --ink-2: #26262B;       /* Secondary ink */
  --text: #0B0B0D;        /* Body text */
  --text-2: #42424A;      /* Secondary text */
  --muted: #7A7A82;       /* Meta, captions */
  --border: #E6E6E0;      /* Hairline borders */
  --border-2: #D8D8D1;    /* Stronger borders / input outlines */

  /* Accent — the canonical Fresh accent is electric violet (#6C4BF6).
     It is a single theme variable; --accent-ink is derived by luminance at
     runtime in main.js. Alternate presets: #4B5BFF #FF6A4B #FF4D8D #12B981 #CBFB45 */
  --accent: #6C4BF6;
  --violet: #6C4BF6;      /* Decorative */
  --coral: #FF6A4B;       /* Decorative supplier swatch */
  --sky: #4BC7FF;         /* Decorative supplier swatch */

  /* Derived accent values.
     --accent-ink is set by main.js (luminance rule); the default here matches
     violet (dark accent → white ink) so there is no flash before JS runs. */
  --accent-ink: #FFFFFF;
  --accent-deep: color-mix(in oklab, var(--accent), #000 20%);
  --accent-subtle: color-mix(in oklab, var(--accent), var(--bg) 88%);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(11, 11, 13, .06);
  --shadow-md: 0 2px 8px rgba(11, 11, 13, .06), 0 18px 36px -20px rgba(11, 11, 13, .24);
  --shadow-lg: 0 2px 8px rgba(11, 11, 13, .08), 0 40px 70px -30px rgba(11, 11, 13, .4);
  --hard: 0 1px 2px rgba(11, 11, 13, .04), 0 20px 44px -24px rgba(11, 11, 13, .30);

  /* Spacing scale — 4 · 8 · 12 · 16 · 24 · 32 · 48 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;

  /* Radius */
  --radius-md: 13px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-2xl: 30px;
  --radius-pill: 100px;

  /* Layout */
  --maxw-landing: 1140px;
  --maxw-system: 1100px;

  /* Fonts */
  --font-sans: 'Geist', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ----------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3, p { margin: 0; }
button { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* Keyframes */
@keyframes fx-marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes fx-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes fx-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* ----------------------------------------------------------------------------
   Page shell + fixed background texture
   -------------------------------------------------------------------------- */
.page {
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
}

/* 1. Accent glows — three soft radial gradients */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 42% at 14% -4%, color-mix(in oklab, var(--accent), transparent 85%), transparent 72%),
    radial-gradient(48% 40% at 102% 58%, color-mix(in oklab, var(--accent), transparent 89%), transparent 72%),
    radial-gradient(60% 40% at 50% 116%, color-mix(in oklab, var(--accent), transparent 90%), transparent 74%);
}

/* 2. Dot grid — fades downward via mask */
.bg-dots {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  background-image: radial-gradient(var(--border-2) 1.1px, transparent 1.1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(125% 95% at 50% 2%, #000, transparent 76%);
  mask-image: radial-gradient(125% 95% at 50% 2%, #000, transparent 76%);
}

main { position: relative; z-index: 1; }
.container { max-width: var(--maxw-landing); margin: 0 auto; }

/* ----------------------------------------------------------------------------
   Shared logo mark (accent diamond)
   -------------------------------------------------------------------------- */
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.logo-mark .diamond {
  width: 11px; height: 11px;
  border: 2.6px solid var(--ink);
  border-radius: 3px;
  transform: rotate(45deg);
}
.logo-name { font-weight: 800; font-size: 19px; letter-spacing: -.03em; }

/* ----------------------------------------------------------------------------
   Buttons (shared component specs)
   -------------------------------------------------------------------------- */
.btn { cursor: pointer; border: none; font-family: inherit; transition: transform .14s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Primary — ink fill, white text, trailing accent chip */
.btn-primary {
  display: inline-flex; align-items: center; gap: 9px;
  height: 56px; padding: 0 28px;
  border-radius: var(--radius-pill);
  background: var(--ink); color: #fff;
  font-weight: 700; font-size: 16.5px;
  box-shadow: var(--shadow-md);
}
.btn-primary .chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: var(--radius-pill);
  background: var(--accent); color: var(--accent-ink);
}

/* Accent — accent fill, derived ink text */
.btn-accent {
  display: inline-flex; align-items: center; gap: 7px;
  height: 44px; padding: 0 22px;
  border-radius: var(--radius-pill);
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 14.5px;
}

/* ----------------------------------------------------------------------------
   Header (sticky pill bar on ink)
   -------------------------------------------------------------------------- */
.header {
  position: sticky; top: 16px; z-index: 50;
  max-width: var(--maxw-landing);
  margin: 16px auto 0;
  padding: 0 20px;
}
.header-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 9px 9px 9px 18px;
  background: var(--ink);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
}
.header .logo-name { color: #fff; }

/* Segmented tabs */
.tabs {
  display: flex; align-items: center; gap: 3px;
  padding: 3px;
  background: rgba(255, 255, 255, .08);
  border-radius: var(--radius-pill);
}
.tab {
  padding: 9px 17px;
  border-radius: var(--radius-pill);
  border: none;
  font-family: inherit; font-weight: 700; font-size: 13.5px;
  cursor: pointer;
  background: transparent; color: rgba(255, 255, 255, .6);
  transition: all .15s ease;
}
.tab.is-active { background: var(--accent); color: var(--accent-ink); }

/* ----------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; max-width: var(--maxw-landing); margin: 0 auto; padding: 70px 24px 30px; }

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 8px 7px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  margin-bottom: 26px;
  font-size: 13px; font-weight: 600;
}
.badge .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); }

.hero h1 {
  font-size: clamp(44px, 8.4vw, 104px);
  line-height: .94;
  letter-spacing: -.045em;
  font-weight: 800;
  max-width: 15ch;
  text-wrap: balance;
}
/* "hodiny" highlight — accent bar behind the word */
.mark { position: relative; white-space: nowrap; }
.mark > .mark-text { position: relative; z-index: 1; }
.mark > .mark-bar {
  position: absolute; left: -3%; right: -3%; bottom: .08em;
  height: .32em; background: var(--accent);
  z-index: 0; border-radius: 3px;
}

.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px; align-items: end;
  margin-top: 30px;
}
.hero-sub {
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.5; color: var(--text-2);
  max-width: 52ch; text-wrap: pretty;
}
.hero-sub strong { color: var(--text); font-weight: 700; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-trust { font-size: 13.5px; color: var(--muted); margin-top: 16px; }

/* ----------------------------------------------------------------------------
   Marquee (full-bleed ink strip, rotated, infinite scroll)
   -------------------------------------------------------------------------- */
.marquee {
  margin: 26px 0 8px;
  padding: 14px 0;
  background: var(--ink);
  overflow: hidden;
  transform: rotate(-1.4deg);
}
.marquee-track { display: flex; width: max-content; animation: fx-marq 26s linear infinite; }
.marquee-group { display: flex; align-items: center; flex: none; }
.marquee-word {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 0 16px;
  font-family: var(--font-sans); font-weight: 700; font-size: 22px;
  letter-spacing: -.02em; color: #fff;
}
.marquee-word .dot { width: 9px; height: 9px; border-radius: var(--radius-pill); background: var(--accent); }

/* ----------------------------------------------------------------------------
   Product visual ("the table") — browser-window mock
   -------------------------------------------------------------------------- */
.product { max-width: var(--maxw-landing); margin: 0 auto; padding: 40px 24px 20px; }
.window {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--hard);
  overflow: hidden;
}
.window-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.window-dots { display: flex; gap: 7px; }
.window-dots span { width: 12px; height: 12px; border-radius: var(--radius-pill); }
.window-url {
  flex: 1; max-width: 300px; margin: 0 auto; text-align: center;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  padding: 6px 14px; background: var(--surface-2); border-radius: var(--radius-pill);
}
.window-bar .spacer { width: 50px; }

.window-body { display: grid; grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr); }
.window-col { padding: 26px; }
.window-col--left { border-right: 1px solid var(--border); }
.window-col--right { background: var(--surface-2); }

.mono-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}

.desc-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-2);
  padding: 16px;
  margin-top: 14px;
}
.desc-card p { font-size: 15px; line-height: 1.6; }
.hl { background: var(--accent); color: var(--accent-ink); padding: 1px 7px; border-radius: 5px; font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  font-size: 12.5px; font-weight: 600;
  padding: 7px 13px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1.5px solid var(--border-2);
}
.chip.is-selected {
  font-weight: 700; background: var(--ink); color: #fff; border-color: var(--ink);
}

.btn-plan {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 48px; margin-top: 18px;
  border-radius: 14px;
  background: var(--accent); color: var(--accent-ink);
  border: 1px solid var(--border);
  font-family: inherit; font-weight: 700; font-size: 14.5px;
  cursor: pointer;
}

.supplier-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.count-pill {
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: var(--radius-pill);
  background: var(--accent); color: var(--accent-ink);
}
.supplier-list { display: flex; flex-direction: column; gap: 10px; }
.supplier {
  display: flex; gap: 13px; align-items: center;
  padding: 13px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 15px;
}
.supplier .swatch { flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); }
.supplier .body { flex: 1; min-width: 0; }
.supplier .name-row { display: flex; align-items: center; gap: 7px; }
.supplier .name { font-weight: 700; font-size: 14px; }
.supplier .tag { font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: var(--radius-pill); background: var(--surface-2); }
.supplier .meta { margin-top: 3px; font-size: 12px; color: var(--muted); }
.supplier .action { flex: none; font-size: 12px; font-weight: 700; }

/* ----------------------------------------------------------------------------
   Value props
   -------------------------------------------------------------------------- */
.values { max-width: var(--maxw-landing); margin: 0 auto; padding: 56px 24px; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin-bottom: 34px;
}
.section-head h2 {
  font-size: clamp(32px, 5vw, 54px); line-height: .98;
  letter-spacing: -.035em; font-weight: 800; max-width: 16ch;
}
.section-head .count { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.value-card { border-radius: 22px; padding: 26px; box-shadow: var(--hard); }
.value-card .top { display: flex; align-items: center; justify-content: space-between; }
.value-card .ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 13px; font-size: 20px;
}
.value-card .num { font-family: var(--font-mono); font-size: 12px; }
.value-card h3 { font-size: 23px; font-weight: 800; letter-spacing: -.02em; margin: 20px 0 7px; }
.value-card p { font-size: 14.5px; line-height: 1.55; }

/* Light variant */
.value-card--light { border: 1px solid var(--border); background: var(--surface); }
.value-card--light .ico { background: var(--accent); color: var(--accent-ink); }
.value-card--light .num { color: var(--muted); }
.value-card--light h3 { color: var(--ink); }
.value-card--light p { color: var(--text-2); }

/* Accent (lime/violet) variant */
.value-card--accent { border: 1px solid color-mix(in oklab, var(--accent), #000 16%); background: var(--accent); }
.value-card--accent .ico { background: var(--ink); color: var(--accent); }
.value-card--accent .num { color: color-mix(in oklab, var(--accent-ink), transparent 52%); }
.value-card--accent h3 { color: var(--accent-ink); }
.value-card--accent p { color: color-mix(in oklab, var(--accent-ink), transparent 26%); }

/* Dark variant */
.value-card--dark { border: 1px solid rgba(255, 255, 255, .08); background: var(--ink); }
.value-card--dark .ico { background: var(--ink); color: var(--accent); }
.value-card--dark .num { color: rgba(255, 255, 255, .5); }
.value-card--dark h3 { color: #fff; }
.value-card--dark p { color: rgba(255, 255, 255, .66); }

/* ----------------------------------------------------------------------------
   How it works (dark block)
   -------------------------------------------------------------------------- */
.how { max-width: var(--maxw-landing); margin: 0 auto; padding: 30px 24px 64px; }
.how-block {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--ink);
  padding: clamp(28px, 5vw, 52px);
  box-shadow: var(--hard);
}
.how-head { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; }
.how-head .label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
}
.how-head .rule { flex: 1; height: 1.5px; background: rgba(255, 255, 255, .15); }

.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step { color: #fff; }
.step .num {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: var(--radius-pill);
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-sans); font-weight: 800; font-size: 22px;
  margin-bottom: 20px;
}
.step h3 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 8px; }
.step p { font-size: 14.5px; line-height: 1.55; color: rgba(255, 255, 255, .66); }

/* ----------------------------------------------------------------------------
   CTA (full accent block)
   -------------------------------------------------------------------------- */
.cta { max-width: var(--maxw-landing); margin: 0 auto; padding: 0 24px 64px; }
.cta-block {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--accent);
  padding: clamp(40px, 6vw, 76px) 28px;
  text-align: center;
  box-shadow: var(--hard);
  overflow: hidden;
}
.cta-spin {
  position: absolute; top: 24px; right: 34px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--accent-ink);
  animation: fx-spin 14s linear infinite;
  transform-origin: center;
}
.cta-block h2 {
  font-size: clamp(32px, 5.4vw, 60px); line-height: .96;
  letter-spacing: -.035em; font-weight: 800;
  color: var(--accent-ink);
  max-width: 16ch; margin-inline: auto; text-wrap: balance;
}
.cta-block p {
  font-size: 17px; color: var(--accent-ink); opacity: .72;
  margin: 16px auto 0; max-width: 42ch; font-weight: 500;
}
.cta-block .btn-primary { margin-top: 28px; }

/* ----------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { max-width: var(--maxw-landing); margin: 0 auto; padding: 0 24px 48px; }
.footer-inner { border-top: 1px solid var(--border); padding-top: 28px; }
.footer-trust {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 20px;
}
.footer-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; margin-bottom: 34px; }
.footer-logos span {
  font-family: var(--font-sans); font-weight: 800; font-size: 20px;
  letter-spacing: -.02em; color: var(--text-2);
}
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
}
.footer-bottom .logo-mark { width: 28px; height: 28px; border-radius: 8px; }
.footer-bottom .logo-mark .diamond { width: 10px; height: 10px; border-width: 2.4px; }
.footer-bottom .logo-name { font-size: 16px; }
.footer-copy { font-size: 13px; color: var(--muted); margin-left: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.footer-links a { cursor: pointer; }

/* ----------------------------------------------------------------------------
   Design System view (Systém tab)
   -------------------------------------------------------------------------- */
.system { max-width: var(--maxw-system); margin: 0 auto; padding: 56px 24px 90px; }
.system-head { margin-bottom: 44px; }
.system-head .kicker {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}
.system-head h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: .98; letter-spacing: -.04em; font-weight: 800; }
.system-head p { font-size: 17px; color: var(--text-2); max-width: 60ch; margin-top: 16px; line-height: 1.55; }

.sys-section { margin-bottom: 52px; }
.sys-h2 {
  font-size: 13px; font-family: var(--font-mono); letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
  margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.sys-h2 .note { text-transform: none; letter-spacing: 0; color: var(--text-2); }

/* Colors */
.color-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.color-card { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface); }
.color-card .swatch { height: 66px; border-bottom: 1px solid var(--border); }
.color-card .meta { padding: 12px 13px; }
.color-card .name { font-weight: 700; font-size: 13px; }
.color-card .token { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 3px; }
.color-card .hex { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-2); margin-top: 6px; }

/* Typography specimen */
.type-rows { display: flex; flex-direction: column; gap: 2px; }
.type-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: 16px 0; border-bottom: 1.5px solid var(--border);
}
.type-sample {
  line-height: 1.1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.type-info { flex: none; text-align: right; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.type-info .name { color: var(--text-2); font-weight: 500; }

/* Spacing + Radius */
.sys-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; margin-bottom: 52px; }
.spacing-rows { display: flex; flex-direction: column; gap: 12px; }
.spacing-row { display: flex; align-items: center; gap: 16px; }
.spacing-row .token { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); width: 78px; flex: none; }
.spacing-row .bar { height: 16px; background: var(--ink); border-radius: 4px; }
.spacing-row .px { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-2); }

.radius-rows { display: flex; flex-wrap: wrap; gap: 18px; }
.radius-item { text-align: center; }
.radius-item .box {
  width: 74px; height: 74px; background: var(--accent);
  border: 1px solid var(--border); border-bottom: none; border-right: none;
}
.radius-item .token { font-family: var(--font-mono); font-size: 11px; color: var(--text-2); margin-top: 8px; }
.radius-item .px { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

/* Components */
.comp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.comp-card { border: 1px solid var(--border); border-radius: 20px; background: var(--surface); padding: 24px; box-shadow: var(--hard); }
.comp-card .label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 18px;
}
.comp-btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.comp-btn {
  height: 46px; padding: 0 22px; border-radius: var(--radius-pill);
  font-family: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer;
}
.comp-btn--primary { background: var(--ink); color: #fff; border: none; }
.comp-btn--accent { background: var(--accent); color: var(--accent-ink); border: 1px solid var(--border); }
.comp-btn--secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--border); }

.comp-field-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.comp-input {
  width: 100%; height: 46px; padding: 0 15px;
  border-radius: 13px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
  font-family: inherit; font-size: 14.5px; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.comp-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-subtle); }

.comp-select {
  display: flex; align-items: center; justify-content: space-between;
  height: 46px; padding: 0 15px;
  border-radius: 13px; border: 1px solid var(--border);
  background: var(--surface); font-size: 14.5px; margin-bottom: 14px; cursor: pointer;
}
.comp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.comp-chip {
  font-size: 13px; font-weight: 600; padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface); border: 1.5px solid var(--border-2);
}
.comp-chip.is-selected { font-weight: 700; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--border); }

.comp-supplier {
  display: flex; gap: 13px; align-items: center; padding: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
}
.comp-supplier .swatch { flex: none; width: 46px; height: 46px; border-radius: 13px; background: var(--accent); border: 1px solid var(--border); }
.comp-supplier .body { flex: 1; min-width: 0; }
.comp-supplier .name-row { display: flex; align-items: center; gap: 8px; }
.comp-supplier .name { font-weight: 700; font-size: 14.5px; }
.comp-supplier .tag { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: var(--radius-pill); background: var(--surface-2); }
.comp-supplier .meta { margin-top: 3px; font-size: 12.5px; color: var(--muted); }

/* ----------------------------------------------------------------------------
   View toggle helper
   -------------------------------------------------------------------------- */
[hidden] { display: none !important; }

/* ----------------------------------------------------------------------------
   Entrance animation (applied to above/near-fold groups)
   -------------------------------------------------------------------------- */
.rise { animation: fx-rise .42s ease both; }

/* ----------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
  .hero-row { grid-template-columns: 1fr; align-items: start; }
  .hero-cta { width: 100%; }
  .hero-cta .btn-primary { width: 100%; justify-content: center; }
  .window-body { grid-template-columns: 1fr; }
  .window-col--left { border-right: none; border-bottom: 1px solid var(--border); }
}

@media (max-width: 640px) {
  .header { padding: 0 14px; }
  .header-bar { gap: 10px; padding: 8px 8px 8px 14px; }
  .tabs { display: none; } /* keep logo + CTA reachable on small screens */
  .hero { padding-top: 48px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .cta-spin { animation: none; }
  .rise { animation: none; }
  .btn, .tab { transition: none; }
}
