/* Lemon Law Explained — lemon-yellow neo-brutalism 🍋
   Tokens + rules from Drive → Projects/*Internal/Lemon Law Explained/.claude/docs/design/tokens.md
   Layout per frontend-standards: no max-width page container, full-bleed sections, clamped gutter. */

:root {
  --lemon:      #FFE000;
  --lemon-soft: #FFF4B8;
  --lemon-zest: #E8B400;
  --paper:      #FFFDF5;
  --ink:        #14140A;
  --leaf:       #4FB14B;
  --pop:        #FF5630;
  --pop-soft:   #FFE3DB;
  --white:      #FFFFFF;

  --font-display: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'Space Mono', ui-monospace, monospace;

  --border:       3px solid var(--ink);
  --border-thick: 4px solid var(--ink);
  --shadow-hard:  6px 6px 0 var(--ink);
  --shadow-pop:   6px 6px 0 var(--pop);
  --shadow-lift:  9px 9px 0 var(--ink);

  --r-badge: 8px; --r-btn: 12px; --r-card: 18px; --r-hero: 26px; --r-pill: 100px;

  --gutter: clamp(20px, 5vw, 80px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 .4em; }
p { margin: 0 0 1rem; }
a { color: inherit; }
mark { background: var(--lemon); padding: 0 .12em; box-decoration-break: clone; }
img, svg { display: block; max-width: 100%; }

/* ---- the brainrot <-> plain English toggle ---- */
.eng { display: none; }
body.plain .rot { display: none; }
body.plain .eng { display: revert; }

/* ---- layout: full-bleed sections, clamped inner gutter (no max-width page box) ---- */
.wrap { width: 100%; margin-inline: auto; padding-inline: var(--gutter); }
section { padding-block: clamp(3.5rem, 7vw, 6.5rem); position: relative; }
.section-soft { background: var(--lemon-soft); border-block: var(--border); }
.section-lemon { background: var(--lemon); border-block: var(--border); }
.section-ink { background: var(--ink); color: var(--lemon); border-block: var(--border); }
.section-ink h2, .section-ink h3 { color: var(--white); }

/* ---- kicker label ---- */
.kicker {
  display: inline-flex; align-items: center; gap: .5ch;
  font-family: var(--font-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em;
  background: var(--ink); color: var(--lemon); padding: .35em .8em; border-radius: var(--r-pill);
  margin-bottom: 1.1rem;
}
.section-ink .kicker { background: var(--lemon); color: var(--ink); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .55ch; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; text-decoration: none;
  padding: .85em 1.4em; border: var(--border); border-radius: var(--r-btn);
  background: var(--white); color: var(--ink); box-shadow: var(--shadow-hard);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lift); }
.btn:active { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.btn-pop { background: var(--pop); color: var(--white); }
.btn-lemon { background: var(--lemon); }
.btn-lg { font-size: 1.18rem; padding: 1em 1.7em; }

/* ---- nav ---- */
.bar {
  background: var(--ink); color: var(--lemon); font-family: var(--font-mono);
  font-size: .82rem; text-align: center; padding: .5em var(--gutter); letter-spacing: .02em;
}
.nav {
  position: sticky; top: 0; z-index: 50; background: var(--lemon); border-bottom: var(--border-thick);
}
.nav-inner { display: flex; align-items: center; gap: .8rem; padding-block: .7rem; }
.logo { display: inline-flex; align-items: center; gap: .5ch; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; text-decoration: none; letter-spacing: -0.02em; }
.logo .mark { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: .1rem; margin-left: auto; }
.nav-links a { font-weight: 600; text-decoration: none; padding: .45em .6em; border-radius: var(--r-btn); font-size: .95rem; white-space: nowrap; }
.nav-links a:hover { background: var(--ink); color: var(--lemon); }
.nav-cta { margin-left: .4rem; }

/* voice toggle pill */
.toggle {
  display: inline-flex; align-items: center; gap: .5ch; cursor: pointer;
  font-family: var(--font-mono); font-size: .8rem; font-weight: 700;
  background: var(--white); border: var(--border); border-radius: var(--r-pill);
  padding: .4em .8em; box-shadow: 3px 3px 0 var(--ink);
  min-width: 162px; justify-content: center; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.toggle:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); }
.toggle .dot { width: .7em; height: .7em; border-radius: 50%; background: var(--pop); }
body.plain .toggle .dot { background: var(--leaf); }

.hamburger { display: none; }

/* mobile nav panel (full-screen slide-in from the right) */
.nav-panel {
  position: fixed; inset: 0 0 0 auto; width: min(86vw, 380px); background: var(--lemon);
  border-left: var(--border-thick); transform: translateX(105%); transition: transform .28s ease;
  z-index: 60; padding: 1.5rem; display: flex; flex-direction: column; gap: .4rem;
}
body.nav-open .nav-panel { transform: translateX(0); }
.nav-panel a { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; text-decoration: none; padding: .5em 0; border-bottom: 2px dashed var(--ink); }
.nav-panel .close { align-self: flex-end; font-size: 1.5rem; background: none; border: none; cursor: pointer; }
.scrim { position: fixed; inset: 0; background: rgba(20,20,10,.4); opacity: 0; pointer-events: none; transition: opacity .28s ease; z-index: 55; }
body.nav-open .scrim { opacity: 1; pointer-events: auto; }

/* ---- hero ---- */
.hero { background: var(--lemon); border-bottom: var(--border-thick); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 6.4vw, 5.3rem); }
.hero .sub { font-size: clamp(1.1rem, 1.6vw, 1.4rem); max-width: 34ch; font-weight: 500; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }
.trust { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.9rem; font-family: var(--font-mono); font-size: .82rem; }
.trust span { display: inline-flex; align-items: center; gap: .5ch; }
.hero-art { display: grid; place-items: center; position: relative; }
.big-lemon { width: min(78%, 320px); filter: drop-shadow(8px 8px 0 var(--ink)); animation: floaty 6s ease-in-out infinite; }
.hero-tag {
  position: absolute; font-family: var(--font-mono); font-weight: 700; font-size: .8rem;
  background: var(--white); border: var(--border); border-radius: var(--r-pill); padding: .4em .9em; box-shadow: 3px 3px 0 var(--ink);
}

/* ---- generic card grids ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.card {
  background: var(--white); border: var(--border); border-radius: var(--r-card);
  box-shadow: var(--shadow-hard); padding: 1.6rem;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translate(-3px,-3px); box-shadow: var(--shadow-lift); }
.card .ico { font-size: 2.2rem; line-height: 1; margin-bottom: .6rem; }
.card h3 { font-size: 1.4rem; }
.card.lemon { background: var(--lemon-soft); }
.card.pop { box-shadow: var(--shadow-pop); }
.card-link { display: inline-flex; align-items: center; gap: .4ch; font-family: var(--font-mono); font-weight: 700; font-size: .85rem; text-decoration: none; margin-top: .4rem; }
.card-link::after { content: "→"; transition: transform .15s ease; }
.card:hover .card-link::after { transform: translateX(3px); }

.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(1.9rem, 4.4vw, 3.3rem); }
.section-head p { font-size: 1.1rem; }

/* ---- mini checker ---- */
.checker { background: var(--white); border: var(--border-thick); border-radius: var(--r-hero); box-shadow: var(--shadow-hard); padding: clamp(1.5rem, 3vw, 2.6rem); max-width: 760px; }
.q { border-bottom: 2px dashed var(--ink); padding-block: 1.1rem; }
.q:first-of-type { padding-top: 0; }
.q-label { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin-bottom: .7rem; }
.q-num { font-family: var(--font-mono); color: var(--pop); margin-right: .4ch; }
.opts { display: flex; gap: .7rem; }
.opt {
  cursor: pointer; font-family: var(--font-mono); font-weight: 700; font-size: .92rem;
  padding: .5em 1.3em; border: var(--border); border-radius: var(--r-pill); background: var(--white);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.opt:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--ink); }
.opt.sel { background: var(--ink); color: var(--lemon); }
.verdict { margin-top: 1.4rem; padding: 1.3rem; border: var(--border); border-radius: var(--r-card); background: var(--lemon-soft); display: none; }
.verdict.show { display: block; animation: pop .3s ease; }
.verdict h3 { font-size: 1.5rem; margin-bottom: .3rem; }
.verdict .fine { font-family: var(--font-mono); font-size: .74rem; opacity: .7; margin-top: .8rem; }

/* ---- state grid ---- */
.states { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .8rem; }
.state {
  display: flex; flex-direction: column; gap: .15rem; text-decoration: none;
  background: var(--white); border: var(--border); border-radius: var(--r-badge);
  padding: .7rem .85rem; box-shadow: 3px 3px 0 var(--ink);
  transition: transform .14s ease, box-shadow .14s ease;
}
.state:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); }
.state b { font-family: var(--font-display); font-size: 1.05rem; }
.state .tier { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .04em; }
.state.s { background: var(--lemon); }
.tier-s { color: var(--pop); } .tier-a { color: var(--leaf); }

/* ---- glossary teaser ---- */
.terms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.term { background: var(--white); border: var(--border); border-radius: var(--r-card); padding: 1.2rem 1.4rem; box-shadow: var(--shadow-hard); }
.term .word { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; }
.term .pron { font-family: var(--font-mono); font-size: .76rem; opacity: .6; margin-left: .4ch; }

/* ---- big stat / catch block ---- */
.bigstat { font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 9vw, 7rem); line-height: .9; color: var(--lemon); }

/* ---- faq ---- */
.faq { max-width: 820px; }
.faq details { border: var(--border); border-radius: var(--r-card); background: var(--white); margin-bottom: .9rem; box-shadow: var(--shadow-hard); overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 1.4rem; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 1.4rem 1.2rem; }

/* ---- final cta ---- */
.cta-band { background: var(--pop); border-block: var(--border-thick); text-align: center; }
.cta-band h2 { color: var(--white); font-size: clamp(2rem, 5vw, 3.6rem); }
.cta-band .sub { color: var(--white); font-weight: 500; max-width: 40ch; margin-inline: auto; font-size: 1.15rem; }

/* ---- footer ---- */
.footer { background: var(--ink); color: var(--paper); padding-block: clamp(2.5rem, 5vw, 4rem); }
.footer a { color: var(--lemon); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.foot-cols h4 { font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--lemon-zest); margin: 0 0 .8rem; }
.foot-cols a { display: block; padding: .2rem 0; }
.disclaimer { font-family: var(--font-mono); font-size: .76rem; line-height: 1.7; opacity: .72; border-top: 1px solid #3a3a26; margin-top: 2.5rem; padding-top: 1.5rem; }

/* ---- reveal-on-scroll ---- */
/* progressive enhancement: only hide for reveal when JS is on, so no-JS users + crawlers see everything */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-16px) rotate(3deg); } }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ===== responsive — frontend-standards: 1025 / 1024-641 / 640 ===== */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .big-lemon { width: min(46%, 220px); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .hamburger { display: inline-flex; }
  .toggle { margin-left: auto; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2, .terms { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.2rem, 11vw, 3.2rem); }
  .opts { flex-wrap: wrap; }
  .bar .hide-sm { display: none; }
  .nav-cta { display: none; }
  .toggle { min-width: auto; font-size: .72rem; padding: .4em .6em; }
  .logo { font-size: 1.05rem; }
  .logo .mark { width: 26px; height: 26px; }
}
/* wide-viewport scale-up so it doesn't go hollow */
@media (min-width: 1600px) { :root { --gutter: clamp(80px, 8vw, 160px); } body { font-size: 1.18rem; } }
@media (min-width: 1800px) { .hero h1 { font-size: 5.8rem; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .nav, .bar, .hamburger, .nav-panel, .scrim, .toggle, .hero-art { display: none !important; }
  body { background: #fff; } .card, .checker, .term, .faq details { box-shadow: none; }
}
