/* Shared design system for drumfillgenerator.com.
   Page-specific pieces (hero sequencer, legal prose) stay inline in each page. */

/* ---------- TOKENS ---------- */
:root {
  --ground: #FBFBFD;
  --surface: #FFFFFF;
  --ink: #12141C;
  --body: #2C2F3A;
  --muted: #5B6172;
  --hairline: #E7E9F0;
  --hairline-strong: #D6D9E4;
  --stage: #0B0D12;
  --stage-line: #1B1D24;

  --kick: #2E7DF5;
  --snare: #E8943B;
  --tom: #A352E8;
  --hihat: #2ED4B0;
  --green: #2ECC70;
  --green-deep: #25A85C;
  --red: #E5484D;

  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Menlo", "Cascadia Code", monospace;

  --maxw: 1140px;
  --measure: 62ch;
  --r: 16px;
  --r-lg: 24px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0E1016;
    --surface: #161922;
    --ink: #F2F4F8;
    --body: #C9CDD8;
    --muted: #9097A8;
    --hairline: #23262F;
    --hairline-strong: #323642;
    --stage: #07080B;
    --stage-line: #262933;
    --green-deep: #3FDC85;
  }
}

/* ---------- BASE ---------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

a { color: inherit; }
img { max-width: 100%; height: auto; }

h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.02em; line-height: 1.1; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 700; letter-spacing: -0.02em; font-size: 16px; }
.brand svg { display: block; }
.nav-links { display: flex; gap: 28px; margin-left: auto; align-items: center; }
.nav-links a {
  font-size: 14.5px; font-weight: 500;
  color: var(--muted); text-decoration: none; transition: color .18s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav .btn { margin-left: 8px; }
@media (max-width: 760px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-size: 15px; font-weight: 650;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--green); color: #06270F;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 8px 22px -10px color-mix(in srgb, var(--green) 70%, transparent);
}
.btn-primary:hover { background: #29B864; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hairline-strong); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn svg { display: block; flex: none; }

/* ---------- SECTIONS ---------- */
.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
.alt { background: var(--surface); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { font-size: clamp(30px, 3.8vw, 44px); font-weight: 800; }
.section-head p { color: var(--muted); margin: 16px 0 0; font-size: 18px; }
@media (max-width: 860px) { .section { padding: 68px 0; } .section.tight { padding: 48px 0; } }

/* ---------- HOOK (problem statement) ---------- */
.hook { max-width: 820px; margin: 0 auto; text-align: center; }
.hook h2 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 800; }
.hook p { color: var(--muted); font-size: clamp(17px, 1.9vw, 20px); margin: 20px auto 0; max-width: 40em; }

/* ---------- FEATURE ROWS ---------- */
.feature-rows { display: grid; gap: 112px; }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature-row.flip .feature-media { order: -1; }
.feature-copy { max-width: 30em; }
.feature-copy .tag {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.feature-copy h3 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; }
.feature-copy > p { color: var(--body); font-size: 17.5px; margin: 16px 0 0; }
.feature-media { display: flex; justify-content: center; }
@media (max-width: 860px) {
  .feature-rows { gap: 72px; }
  .feature-row { grid-template-columns: 1fr; gap: 36px; }
  .feature-row.flip .feature-media { order: 0; }
}

.checks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; color: var(--body); font-size: 16px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%;
  background: color-mix(in srgb, var(--green) 20%, transparent)
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M4.5 8.3l2.2 2.2 4.8-5" fill="none" stroke="%2325A85C" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></svg>') center / 16px no-repeat;
}

/* ---------- PHONE FRAME ---------- */
.phone {
  position: relative; width: min(300px, 78vw); aspect-ratio: 1206 / 2622;
  border-radius: 46px; padding: 10px; background: #050608;
  box-shadow: 0 0 0 1px #2A2D36, 0 50px 90px -40px rgba(8,10,20,.55), 0 20px 40px -30px rgba(8,10,20,.4);
}
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 37px; }
.phone-glow { position: relative; }
.phone-glow::before {
  content: ""; position: absolute; inset: 12% -10%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow, color-mix(in srgb, var(--kick) 28%, transparent)), transparent);
  filter: blur(30px); z-index: -1;
}

/* ---------- TRACKING VISUAL ---------- */
.track-shot { width: 100%; max-width: 520px; }
.track-shot img { display: block; width: 100%; border-radius: 22px; box-shadow: 0 40px 80px -40px rgba(8,10,20,.55); }
.track-shot .timeline { margin-top: 14px; background: #000; border-radius: 16px; padding: 10px 12px; }
.track-shot .timeline img { border-radius: 10px; box-shadow: none; }
.hit-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 4px 0; }
.hit-legend span { font-size: 13.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.hit-legend i { width: 4px; height: 14px; border-radius: 2px; display: inline-block; }

/* ---------- MINI FEATURES ---------- */
.minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mini {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r); padding: 20px;
}
.alt .mini { background: var(--ground); }
.mini .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; }
.mini h3 { font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.mini p { color: var(--muted); font-size: 15px; margin: 5px 0 0; line-height: 1.5; }
@media (max-width: 900px) { .minis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .minis { grid-template-columns: 1fr; } }

/* ---------- PREMIUM CHIP ---------- */
.pro-chip {
  display: inline-block; vertical-align: 2px; margin-left: 6px;
  font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px; line-height: 1.5;
  color: var(--snare); background: color-mix(in srgb, var(--snare) 14%, transparent);
}

/* ---------- STEPS ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { border-top: 2px solid var(--ink); padding-top: 18px; }
.step .n { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--muted); }
.step h3 { font-size: 18px; font-weight: 800; margin: 10px 0 8px; }
.step p { color: var(--body); font-size: 15.5px; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- STATS STRIP ---------- */
.stats {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px;
  background: var(--hairline); border: 1px solid var(--hairline);
  border-radius: var(--r); overflow: hidden;
}
.stats .cell { background: var(--surface); padding: 24px 20px; }
.stats .n { font-size: 32px; font-weight: 850; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats .n small { font-size: .5em; font-weight: 700; }
.stats .l { font-size: 13.5px; color: var(--muted); margin-top: 10px; line-height: 1.4; }
@media (max-width: 980px) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- PRICING TIERS ---------- */
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tier { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r); padding: 30px 28px; }
.tier.pro { background: var(--stage); border-color: var(--stage-line); color: #fff; }
.tier .name { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.tier.pro .name { color: #8F96AB; }
.tier h3 { font-size: 24px; font-weight: 800; margin: 12px 0 6px; }
.tier .sub { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.tier.pro .sub { color: #A8AEC2; }
.tier ul { list-style: none; margin: 0; padding: 0; }
.tier li { position: relative; padding-left: 26px; margin: 11px 0; font-size: 15.5px; color: var(--body); }
.tier.pro li { color: #DFE3EE; }
.tier li::before { content: ""; position: absolute; left: 3px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.tier.pro li::before { background: var(--snare); }
.tiers-note { color: var(--muted); font-size: 14.5px; margin: 18px 0 0; }
.tiers-note a { color: var(--green-deep); text-underline-offset: 2px; }
@media (max-width: 760px) { .tiers { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details {
  border: 1px solid var(--hairline); border-radius: 12px;
  background: var(--surface); margin: 10px 0; overflow: hidden;
}
.alt .faq details { background: var(--ground); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 22px;
  font-weight: 700; color: var(--ink); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 20px; color: var(--muted); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--hairline); }
.faq .answer { padding: 4px 22px 18px; color: var(--body); }
.faq .answer p { margin: 12px 0; }

/* ---------- CTA BAND ---------- */
.cta-band {
  background: var(--stage); color: #fff; border: 1px solid var(--stage-line);
  border-radius: var(--r-lg); padding: clamp(44px, 6vw, 72px) clamp(24px, 4vw, 48px);
  text-align: center; position: relative; overflow: hidden;
}
.cta-band h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
.cta-band p { color: #B6B9C4; margin: 16px auto 0; max-width: 32em; }

/* ---------- FOOTER ---------- */
.foot { padding: 48px 0 56px; border-top: 1px solid var(--hairline); }
.foot-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.foot .brand { font-size: 15px; }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-links a { font-size: 14px; color: var(--muted); text-decoration: none; transition: color .18s ease; }
.foot-links a:hover { color: var(--ink); }
.foot-note { font-size: 13px; color: var(--muted); margin: 22px 0 0; max-width: 70ch; }

/* ---------- MOTION ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover { transform: none; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ---------- LANGUAGE SWITCHER ---------- */
.lang-switch { margin-left: 8px; display: inline-flex; align-items: center; }
.nav-links + .lang-switch { margin-left: 4px; }
.lang-select {
  appearance: none; -webkit-appearance: none;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink);
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236B7280' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--hairline-strong); border-radius: 999px;
  padding: 8px 32px 8px 14px; cursor: pointer; max-width: 150px;
}
.lang-select:hover { border-color: var(--ink); }
.lang-select:focus-visible { outline: 2px solid var(--green-deep); outline-offset: 2px; }
.lang-select option { color: #111; background: #fff; }
@media (max-width: 760px) {
  .lang-switch, .nav-links + .lang-switch { margin-left: auto; }
  .nav .lang-switch + .btn { margin-left: 8px; }
}
@media (max-width: 560px) {
  .nav-inner { gap: 10px; }
  .nav .brand span { display: none; }
  .lang-select { font-size: 13px; padding: 7px 26px 7px 11px; background-position: right 9px center; max-width: 124px; }
  .nav .btn-sm { padding-left: 14px; padding-right: 14px; white-space: nowrap; }
}
