/* Flicky — landing page styles
   Light theme: bright white page + light white cards/panels, near-black ink text,
   brand yellow #FFD001 as bold accent (fills, highlighter markers, badges).
   The sticky header runs on a black bar with light text scoped inside <nav>. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --yellow: #FFD001;
  --yellow-dim: rgba(255,208,1,0.16);
  --yellow-border: rgba(212,170,0,0.45);

  --bg: #FFFFFF;          /* page background — bright white */
  --surface: #F6F6F1;     /* light cards / alternating sections */
  --surface-2: #EEEDE6;

  --ink: #1A1A1A;         /* primary black text */
  --text: #1A1A1A;        /* page text token */
  --text-muted: #6B6B6B;  /* readable muted on white */
  --text-sub: #474747;    /* readable secondary on white */
  --accent-ink: #1A1A1A;  /* text on yellow fills */

  --line: rgba(0,0,0,0.11);
  --line-soft: rgba(0,0,0,0.07);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: clip; /* prevent horizontal scroll without breaking position: sticky */
}

/* ── NAV ── */
/* Sticky lives on the wrapper, not <nav>: a sticky child is bounded by its
   parent, and the header is only as tall as the nav — so sticking <nav>
   itself would release it the moment the header scrolls out of view. */
.site-header { position: sticky; top: 0; z-index: 100; }
nav {
  /* Black header on the light page — re-scope text tokens to light in here */
  --ink: #FFFFFF; --text: #FFFFFF; --text-muted: #B7B7B7;
  background: rgba(20,20,20,0.88);
  backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0 48px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
/* Elevated state once the page is scrolled past the top */
.site-header.is-stuck nav {
  background: rgba(18,18,18,0.96);
  box-shadow: 0 10px 28px -12px rgba(0,0,0,0.5);
  border-bottom-color: rgba(255,255,255,0.12);
}
/* 1px marker used by the sticky-header IntersectionObserver */
.header-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 1px; pointer-events: none; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { width: 36px; height: 36px; border-radius: 8px; }
.nav-logo-name { font-family: 'DM Sans', sans-serif; font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -0.3px; }
.nav-logo-name span { color: var(--yellow); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.btn-primary {
  background: var(--yellow); color: var(--accent-ink); font-weight: 600; font-size: 14px;
  padding: 10px 22px; border-radius: 8px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(255,208,1,0.7); }

/* ── HERO ── */
.hero-wrap {
  background: radial-gradient(ellipse 65% 55% at 62% 28%, rgba(255,208,1,0.14) 0%, transparent 70%);
}
.hero {
  min-height: calc(100vh - 64px);
  max-width: 1200px; margin: 0 auto; padding: 80px 48px;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 72px;
}
.hero-label {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--yellow); border: 1px solid var(--yellow);
  color: var(--ink); font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 100px; margin-bottom: 24px;
}
.hero-label::before { content: ''; width: 6px; height: 6px; background: var(--ink); border-radius: 50%; }
.hero h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(34px, 4vw, 52px); font-weight: 700; color: var(--ink);
  line-height: 1.14; letter-spacing: -0.025em; margin-bottom: 20px;
}
/* Yellow highlighter marker behind key words — bold, on-brand, fully readable */
.hero h1 em, .feature-section h2 em {
  font-style: normal; color: var(--ink);
  background-image: linear-gradient(var(--yellow), var(--yellow));
  background-repeat: no-repeat;
  background-size: 100% 0.62em;
  background-position: 0 0.78em;
  padding: 0 0.06em;
}
.hero-sub {
  font-size: 17px; color: var(--text-sub); line-height: 1.65;
  margin-bottom: 36px; max-width: 460px;
}
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.btn-hero { font-size: 15px; padding: 13px 26px; }
.btn-ghost {
  color: var(--text-muted); font-size: 14px; font-weight: 500;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s;
}
.btn-ghost:hover { color: var(--ink); }

/* ── TOOL SUMMARY ── */
.divider { height: 1px; background: var(--line-soft); max-width: 1200px; margin: 0 auto; }

.summary-section { max-width: 1200px; margin: 0 auto; padding: 88px 48px 80px; }
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; color: var(--ink);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px;
}
.section-label::after { content: ''; display: block; width: 28px; height: 2px; background: var(--yellow); }
.summary-section h2 {
  font-family: 'DM Sans', sans-serif; color: var(--ink);
  font-size: clamp(26px, 2.8vw, 38px); font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 14px;
}
.summary-intro { font-size: 16px; color: var(--text-sub); max-width: 600px; margin-bottom: 56px; line-height: 1.65; }
.tool-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tool-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 28px 28px 24px; position: relative;
  overflow: hidden; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: default;
}
.tool-card:hover {
  border-color: var(--yellow-border); transform: translateY(-2px);
  box-shadow: 0 18px 40px -22px rgba(0,0,0,0.30);
}
.tool-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 100%; background: var(--yellow);
}
.tool-icon {
  width: 42px; height: 42px; background: var(--yellow);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.tool-icon svg { width: 18px; height: 18px; stroke: var(--ink); }
.tool-card h3 {
  font-family: 'DM Sans', sans-serif; font-size: 17px; font-weight: 700; color: var(--ink);
  letter-spacing: -0.02em; margin-bottom: 10px;
}
.tool-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }
.tool-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none;
  transition: gap 0.2s, color 0.2s;
}
.tool-link:hover { gap: 9px; }
.tool-link svg { stroke: var(--yellow); }

/* ── FEATURE SECTIONS (alternating) ── */
.feature-section {
  max-width: 1200px; margin: 0 auto; padding: 88px 48px;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px;
}
.feature-section.reverse { direction: rtl; }
.feature-section.reverse > * { direction: ltr; }
.feature-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; color: var(--ink);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px;
}
.feature-eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--yellow); }
.feature-section h2 {
  font-family: 'DM Sans', sans-serif; color: var(--ink);
  font-size: clamp(24px, 2.5vw, 36px); font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.18; margin-bottom: 16px;
}
.feature-section p { font-size: 15px; color: var(--text-sub); line-height: 1.7; margin-bottom: 24px; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.feature-list li {
  font-size: 14px; color: var(--text-sub);
  display: flex; align-items: flex-start; gap: 9px; line-height: 1.5;
}
.feature-list li::before { content: '→'; color: var(--ink); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* feature visual panel — light white card (elevated with border + soft shadow) */
.feature-panel {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 16px; padding: 28px; color: var(--text);
  box-shadow: 0 24px 50px -28px rgba(0,0,0,0.20);
}
.panel-label {
  font-size: 10px; font-weight: 700; color: var(--ink);
  text-transform: uppercase; letter-spacing: 0.07em;
  background: var(--yellow-dim); border: 1px solid var(--yellow-border);
  display: inline-block; padding: 4px 10px; border-radius: 6px; margin-bottom: 18px;
}
.table-head, .table-row {
  display: grid; gap: 8px; padding: 8px 0;
  border-bottom: 1px solid var(--line-soft); font-size: 13px;
}
.table-head { color: var(--text-muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.table-row.hl { background: rgba(255,208,1,0.20); border-radius: 6px; padding: 8px 6px; }
.col-save { color: var(--ink); font-weight: 700; }
.col-price { color: var(--text); font-weight: 600; }
.variant-tag {
  display: inline-block; background: rgba(0,0,0,0.06);
  border-radius: 5px; padding: 3px 7px; font-size: 11px; color: var(--text-sub);
}
.variant-tag.gold { background: var(--yellow); color: var(--ink); font-weight: 600; }
.rule-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px;
}
.rule-row:last-child { border-bottom: none; }
.rule-pct { font-weight: 700; }
.rule-pct.y, .rule-pct.g, .rule-pct.b { color: var(--ink); }

/* ── CUSTOM DEV ── */
.custom-section {
  background: var(--surface); border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.custom-inner {
  max-width: 1200px; margin: 0 auto; padding: 80px 48px;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 64px;
}
.custom-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; color: var(--ink);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px;
}
.custom-label::before { content: ''; width: 18px; height: 2px; background: var(--yellow); }
.custom-inner h2 {
  font-family: 'DM Sans', sans-serif; color: var(--ink);
  font-size: clamp(24px, 2.5vw, 36px); font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 18px;
}
.custom-inner p { font-size: 15px; color: var(--text-sub); line-height: 1.7; max-width: 540px; margin-bottom: 24px; }
.custom-points { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.custom-points li {
  font-size: 14px; color: var(--text-sub);
  display: flex; align-items: flex-start; gap: 9px;
}
.custom-points li::before { content: '✓'; color: var(--ink); font-weight: 700; flex-shrink: 0; }
.custom-cta { display: flex; align-items: flex-start; padding-top: 8px; }
.btn-outline {
  border: 1.5px solid var(--ink); color: var(--ink); font-weight: 600; font-size: 14px;
  padding: 12px 24px; border-radius: 8px; text-decoration: none; white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-outline:hover { background: var(--yellow); border-color: var(--yellow); color: var(--accent-ink); }

/* ── FOOTER ── */
.footer-wrap { background: #0b0b0d; border-top: 1px solid rgba(255,255,255,0.08); }
footer {
  max-width: 1200px; margin: 0 auto; padding: 40px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.footer-logo img { width: 28px; height: 28px; border-radius: 6px; }
.footer-logo-name { font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 700; color: #f5f5f5; }
.footer-logo-name span { color: #f5f5f5; }
.footer-nav { display: flex; align-items: center; gap: 24px; list-style: none; }
.footer-nav a { font-size: 13px; color: rgba(255,255,255,0.62); text-decoration: none; transition: color 0.2s; }
.footer-nav a:hover { color: #ffffff; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.40); }

/* ── NAV RIGHT GROUP ── */
.nav-right { display: flex; align-items: center; gap: 14px; }

/* ── MOBILE NAV TOGGLE ── */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  color: var(--ink); padding: 8px; border-radius: 8px;
  align-items: center; justify-content: center;
  transition: background 0.2s;
}
.nav-toggle:hover { background: rgba(255,255,255,0.10); }
.nav-toggle svg { width: 22px; height: 22px; display: block; }

/* ── ANCHOR OFFSET (compensate sticky nav height) ── */
section[id] { scroll-margin-top: 84px; }

/* ── SCROLL REVEAL (respects reduced-motion) ── */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0; transform: translateY(18px);
    transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1),
                transform 0.6s cubic-bezier(0.16,1,0.3,1);
  }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* ── RESPONSIVE ── */
@media (min-width: 861px) and (max-width: 1100px) {
  .tool-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  nav { padding: 0 20px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(20,20,20,0.98); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 14px 34px -16px rgba(0,0,0,0.6);
    padding: 8px 20px 16px; display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 2px; }

  .hero { grid-template-columns: 1fr; gap: 40px; padding: 56px 20px; min-height: auto; }
  .summary-section { padding: 64px 20px; }
  .summary-intro { margin-bottom: 40px; }
  .tool-cards { grid-template-columns: 1fr; }
  .feature-section { grid-template-columns: 1fr; gap: 40px; padding: 64px 20px; }
  .feature-section.reverse { direction: ltr; }
  .custom-inner { grid-template-columns: 1fr; gap: 32px; padding: 64px 20px; }
  footer { padding: 32px 20px; gap: 18px; }
}
