/* ============================================================
   QED — shared landing-page kit
   Sticker / pub-quiz-poster design language.
   Tokens mirror main-site/qed-tokens.jsx so the marketing
   pages stay coherent with the app they link to.
   ============================================================ */

:root{
  /* surfaces */
  --cream:#FBF6EA; --cream-soft:#F5EDDA; --paper:#FFFFFF;
  --ink:#1F1A14; --ink-soft:#5C5044; --ink-mute:#8B7E6F;
  --hairline:rgba(31,26,20,0.10); --hairline-strong:rgba(31,26,20,0.16);

  /* brand */
  --orange:#E8631A; --orange-deep:#C84F0B; --orange-soft:#FFE6D2;
  --yellow:#F5C518; --yellow-soft:#FFF1B8;
  --green:#7FB58A; --green-soft:#DCEDDF; --green-ink:#3F7A4A;
  --red:#D64545; --red-deep:#B83232; --red-soft:#FFE0E0;

  /* type */
  --sans:"Plus Jakarta Sans","Inter",-apple-system,system-ui,sans-serif;
  --mono:"JetBrains Mono",ui-monospace,monospace;

  /* radii */
  --r-sm:10px; --r-md:14px; --r-lg:20px; --r-xl:28px;
  --maxw:1140px;

  /* per-page accent (default orange; pages set a theme-* class) */
  --accent:#E8631A; --accent-deep:#C84F0B; --accent-soft:#FFE6D2; --accent-on:#FFFFFF;
}

/* per-page signature colors */
.theme-orange{ --accent:#E8631A; --accent-deep:#C84F0B; --accent-soft:#FFE6D2; --accent-on:#fff; }
.theme-party { --accent:#D64545; --accent-deep:#B83232; --accent-soft:#FFF1B8; --accent-on:#fff; }
.theme-ink   { --accent:#1F1A14; --accent-deep:#000;    --accent-soft:#FFF1B8; --accent-on:#F5C518; }
.theme-green { --accent:#3F7A4A; --accent-deep:#2C5F37; --accent-soft:#DCEDDF; --accent-on:#fff; }
.theme-multi { --accent:#E8631A; --accent-deep:#C84F0B; --accent-soft:#FFE6D2; --accent-on:#fff; }

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  margin:0; color:var(--ink); font-family:var(--sans); font-weight:500; line-height:1.5;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  background:
    radial-gradient(1100px 560px at 16% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    radial-gradient(880px 520px at 106% 2%, color-mix(in srgb, var(--yellow) 24%, transparent), transparent 55%),
    var(--cream);
  background-repeat:no-repeat;
}
::selection{ background:var(--accent); color:var(--accent-on); }
img{ max-width:100%; display:block; }
a{ color:inherit; }

/* ---------- layout ---------- */
.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 22px; }
.wrap--narrow{ max-width:860px; }
.section{ padding:clamp(52px,8vw,104px) 0; position:relative; }
.section--tight{ padding:clamp(36px,5vw,64px) 0; }
[id]{ scroll-margin-top:84px; }
.stack{ display:flex; flex-direction:column; }
.row{ display:flex; flex-wrap:wrap; align-items:center; }
.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

/* ---------- type ---------- */
.h-display{ font-weight:900; letter-spacing:-0.038em; line-height:0.96; font-size:clamp(42px,7.4vw,78px); margin:0; }
.h1{ font-weight:900; letter-spacing:-0.03em; line-height:1.0; font-size:clamp(34px,5vw,54px); margin:0; }
.h2{ font-weight:900; letter-spacing:-0.027em; line-height:1.04; font-size:clamp(27px,3.6vw,40px); margin:0; }
.h3{ font-weight:800; letter-spacing:-0.02em; line-height:1.12; font-size:clamp(19px,1.9vw,23px); margin:0; }
.lead{ font-size:clamp(16px,1.55vw,19px); line-height:1.55; color:var(--ink-soft); font-weight:500; }
.lead-tight{ max-width:54ch; }
.muted{ color:var(--ink-soft); }
.accent{ color:var(--accent); }
.prose p{ line-height:1.62; color:var(--ink-soft); max-width:68ch; }
.prose strong{ color:var(--ink); font-weight:800; }

.eyebrow{
  font-family:var(--mono); font-size:12px; font-weight:700; letter-spacing:0.16em;
  text-transform:uppercase; color:var(--ink-soft);
  display:inline-flex; align-items:center; gap:9px;
}
.eyebrow::before{ content:""; width:22px; height:2px; background:var(--accent); display:inline-block; }
.eyebrow--plain::before{ display:none; }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  height:52px; padding:0 24px; border:2px solid var(--ink); border-radius:999px;
  font-family:var(--sans); font-size:16px; font-weight:800; letter-spacing:-0.01em;
  color:var(--ink); background:var(--paper); cursor:pointer; text-decoration:none; white-space:nowrap;
  box-shadow:4px 4px 0 0 var(--ink);
  transition:transform .12s cubic-bezier(.2,.7,.2,1), box-shadow .12s cubic-bezier(.2,.7,.2,1);
}
.btn:hover{ transform:translate(-2px,-2px); box-shadow:6px 6px 0 0 var(--ink); }
.btn:active{ transform:translate(2px,2px); box-shadow:1px 1px 0 0 var(--ink); }
.btn:focus-visible{ outline:3px solid var(--accent); outline-offset:3px; }
.btn--cta{ background:var(--accent); color:var(--accent-on); }
.btn--dark{ background:var(--ink); color:#fff; }
.btn--soft{ background:var(--yellow); color:var(--ink); }
.btn--lg{ height:60px; font-size:17px; padding:0 32px; }
.btn--sm{ height:44px; font-size:14.5px; padding:0 18px; box-shadow:3px 3px 0 0 var(--ink); }
.btn--ghost{ background:transparent; box-shadow:none; }
.btn--block{ width:100%; }
.btn .arr{ font-size:1.15em; line-height:0; transform:translateY(1px); transition:transform .15s; }
.btn:hover .arr{ transform:translate(3px,1px); }

/* ---------- cards / stickers ---------- */
.card{ background:var(--paper); border:2px solid var(--ink); border-radius:var(--r-lg); box-shadow:5px 5px 0 0 var(--ink); }
.card--sm{ box-shadow:3px 3px 0 0 var(--ink); border-radius:var(--r-md); }
.card--flat{ box-shadow:none; }
.card--cream{ background:var(--cream-soft); }
.card--ink{ background:var(--ink); color:#fff; }
.card--accent{ background:var(--accent); color:var(--accent-on); }
.pad{ padding:clamp(20px,3vw,30px); }
.pad-sm{ padding:18px; }
.lift{ transition:transform .15s cubic-bezier(.2,.7,.2,1), box-shadow .15s cubic-bezier(.2,.7,.2,1); }
.lift:hover{ transform:translate(-3px,-3px); box-shadow:8px 8px 0 0 var(--ink); }
a.lift{ text-decoration:none; color:inherit; display:block; }

/* tag / pill / stamp */
.tag{
  display:inline-flex; align-items:center; gap:7px; padding:6px 13px;
  border:2px solid var(--ink); border-radius:999px; background:var(--paper);
  font-family:var(--mono); font-size:11px; font-weight:700; letter-spacing:0.09em; text-transform:uppercase;
}
.tag--solid{ background:var(--ink); color:#fff; }
.tag--accent{ background:var(--accent-soft); }
.tag--shadow{ box-shadow:2px 2px 0 0 var(--ink); }
.stamp{
  display:inline-flex; flex-direction:column; align-items:center; justify-content:center;
  width:84px; height:84px; border-radius:50%; border:2px solid var(--ink);
  background:var(--yellow); box-shadow:3px 3px 0 0 var(--ink); text-align:center; line-height:1;
}
.stamp b{ font-size:22px; font-weight:900; letter-spacing:-0.03em; }
.stamp span{ font-family:var(--mono); font-size:9.5px; font-weight:700; letter-spacing:0.06em; text-transform:uppercase; margin-top:3px; }
.rot-1{ transform:rotate(-4deg); } .rot-2{ transform:rotate(3deg); } .rot-3{ transform:rotate(-7deg); } .rot-4{ transform:rotate(6deg); }

/* halftone + dashes */
.halftone{ background-image:radial-gradient(currentColor 1.5px, transparent 1.6px); background-size:9px 9px; }
.dash{ border:0; border-top:2px dashed var(--hairline-strong); margin:0; }
.divider{ height:2px; background:var(--ink); border:0; }

/* number tokens (mono) */
.kpi{ font-weight:900; letter-spacing:-0.03em; line-height:1; font-size:clamp(30px,4.4vw,46px); }
.kpi-lab{ font-family:var(--mono); font-size:11.5px; font-weight:700; letter-spacing:0.06em; text-transform:uppercase; color:var(--ink-soft); margin-top:5px; }
.price{ font-weight:900; letter-spacing:-0.03em; line-height:0.95; }
.price-sm{ font-family:var(--mono); font-weight:700; color:var(--ink-soft); }

/* checklist (no icon-in-box) */
.ticks{ list-style:none; margin:0; padding:0; display:grid; gap:12px; }
.ticks li{ display:flex; gap:11px; align-items:flex-start; line-height:1.45; font-weight:600; }
.ticks li::before{
  content:""; flex:0 0 auto; width:22px; height:22px; margin-top:1px; border-radius:50%;
  border:2px solid var(--ink); background:var(--accent);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5 9-11' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size:15px; background-position:center; background-repeat:no-repeat;
}
.ticks--ink li::before{ background:var(--ink); }

/* scorecard motif (recurring) */
.scorecard{ background:var(--paper); border:2px solid var(--ink); border-radius:var(--r-md); box-shadow:4px 4px 0 0 var(--ink); overflow:hidden; }
.scorecard__hd{ background:var(--ink); color:var(--yellow); padding:9px 13px; font-family:var(--mono); font-size:11px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; display:flex; justify-content:space-between; align-items:center; }
.scorecard__hd span{ color:#fff; }
.scorecard__row{ display:flex; justify-content:space-between; align-items:center; padding:8px 13px; font-family:var(--mono); font-size:13px; font-weight:600; border-bottom:1px dashed var(--hairline-strong); }
.scorecard__row:last-child{ border-bottom:0; }
.scorecard__row b{ font-weight:700; }

/* ---------- language switcher ---------- */
.langsw{ display:inline-flex; align-self:center; border:2px solid var(--ink); border-radius:999px; overflow:hidden; flex:0 0 auto; }
.langsw button{ font-family:var(--mono); font-size:12px; font-weight:700; letter-spacing:.03em; padding:7px 12px; background:var(--paper); border:0; cursor:pointer; color:var(--ink-soft); line-height:1; }
.langsw button + button{ border-left:2px solid var(--ink); }
.langsw button.active{ background:var(--ink); color:#fff; }

/* ---------- dev banner ---------- */
.devbar{ background:var(--ink); color:#fff; display:flex; align-items:center; justify-content:center; gap:10px; padding:9px 46px 9px 16px; position:relative; font-family:var(--mono); font-size:12px; font-weight:600; letter-spacing:.02em; text-align:center; }
.devbar__tag{ background:var(--yellow); color:var(--ink); font-weight:700; letter-spacing:.09em; padding:3px 8px; border-radius:6px; font-size:10.5px; flex:0 0 auto; }
.devbar__msg{ color:rgba(255,255,255,.86); }
.devbar__x{ position:absolute; right:9px; top:50%; transform:translateY(-50%); background:none; border:0; color:#fff; font-size:22px; line-height:1; cursor:pointer; padding:0 10px; border-radius:8px; }
.devbar__x:hover{ background:rgba(255,255,255,.14); }
@media (max-width:560px){ .devbar{ font-size:11px; padding:8px 42px 8px 13px; gap:8px; } }

/* ---------- nav ---------- */
.nav{ position:sticky; top:0; z-index:60; background:var(--cream); border-bottom:2px solid var(--ink); }
.nav__in{ max-width:var(--maxw); margin:0 auto; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:11px 22px; }
.logo{ display:inline-flex; align-items:center; gap:11px; text-decoration:none; color:var(--ink); }
.logo__mark{ width:40px; height:40px; flex:0 0 auto; border-radius:10px; background:var(--ink); color:var(--yellow); display:flex; align-items:center; justify-content:center; font-weight:900; font-size:15px; letter-spacing:-0.04em; box-shadow:3px 3px 0 0 var(--accent); }
.logo__word{ font-weight:900; letter-spacing:-0.03em; font-size:19px; }
.logo__tag{ font-family:var(--mono); font-size:10.5px; font-weight:700; letter-spacing:0.13em; text-transform:uppercase; color:var(--ink-soft); }
.nav__links{ display:flex; align-items:center; gap:24px; }
.nav__links a{ text-decoration:none; font-weight:700; font-size:15px; color:var(--ink); }
.nav__links a:not(.btn):hover{ color:var(--accent); }
.nav__toggle{ display:none; width:46px; height:42px; border:2px solid var(--ink); border-radius:11px; background:var(--paper); cursor:pointer; align-items:center; justify-content:center; box-shadow:3px 3px 0 0 var(--ink); }
.nav__toggle svg{ width:22px; height:22px; }
@media (max-width:860px){
  .nav__links{
    position:absolute; top:100%; left:0; right:0; flex-direction:column; align-items:stretch; gap:0;
    background:var(--cream); border-bottom:2px solid var(--ink);
    max-height:0; overflow:hidden; transition:max-height .3s ease;
  }
  .nav__links.open{ max-height:520px; }
  .nav__links a{ padding:15px 22px; border-top:1px solid var(--hairline-strong); }
  .nav__links .btn{ margin:14px 22px; }
  .nav__links .langsw{ margin:16px 22px 2px; align-self:flex-start; }
  .nav__toggle{ display:inline-flex; }
}

/* ---------- hero ---------- */
.hero{ padding:clamp(44px,7vw,92px) 0 clamp(40px,5vw,68px); position:relative; overflow:hidden; }
.hero__glow{ position:absolute; inset:0; pointer-events:none; z-index:0; }

/* ---------- forms ---------- */
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-grid .full{ grid-column:1 / -1; }
@media (max-width:560px){ .form-grid{ grid-template-columns:1fr; } }
.label{ display:block; font-family:var(--mono); font-size:11px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:var(--ink-soft); margin-bottom:7px; }
.label .req{ color:var(--accent); }
.input{
  width:100%; height:52px; padding:0 15px; border:2px solid var(--ink); border-radius:var(--r-md);
  background:var(--paper); font-family:var(--sans); font-size:16px; font-weight:600; color:var(--ink);
}
textarea.input{ height:auto; min-height:120px; padding:13px 15px; resize:vertical; line-height:1.5; }
select.input{ appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%231F1A14' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 14px center; background-size:20px; padding-right:42px; }
.input::placeholder{ color:var(--ink-mute); font-weight:500; }
.input:focus{ outline:none; border-color:var(--accent-deep); box-shadow:0 0 0 4px var(--accent-soft); }
.form-note{ font-family:var(--mono); font-size:11.5px; color:var(--ink-mute); letter-spacing:0.02em; }
.hp{ position:absolute; left:-9999px; opacity:0; height:0; width:0; }
.form-success{ display:none; }
.form-success.show{ display:block; }
form.sent .form-body{ display:none; }
form.sent .form-success{ display:block; }

/* two-step lead form: step 2 slides open after step 1 validates */
.form-step2{ display:grid; grid-template-rows:0fr; transition:grid-template-rows .36s cubic-bezier(.2,.7,.2,1); }
.form-step2.is-open{ grid-template-rows:1fr; }
.form-step2__in{ overflow:hidden; min-height:0; }
.form-step2.is-open .form-step2__in{ padding-top:18px; }
@media (prefers-reduced-motion:reduce){ .form-step2{ transition:none; } }

/* ---------- footer ---------- */
.footer{ background:var(--ink); color:#fff; border-top:2px solid var(--ink); }
.footer__in{ max-width:var(--maxw); margin:0 auto; padding:clamp(40px,5vw,60px) 22px 30px; }
.footer a{ color:rgba(255,255,255,0.78); text-decoration:none; }
.footer a:hover{ color:var(--yellow); }
.footer__brand{ display:flex; align-items:center; gap:24px; flex-wrap:wrap; margin-bottom:40px; padding-bottom:36px; border-bottom:1px solid rgba(255,255,255,.1); }
.footer__tagline{ color:rgba(255,255,255,.55); font-size:14px; line-height:1.6; max-width:44ch; margin:0; }
.footer__cols{ display:grid; grid-template-columns:repeat(4,1fr); gap:32px; }
@media (max-width:780px){ .footer__cols{ grid-template-columns:1fr 1fr; } }
@media (max-width:380px){ .footer__cols{ grid-template-columns:1fr; } }
.footer__lab{ font-family:var(--mono); font-size:11px; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; color:rgba(255,255,255,0.5); margin:0 0 14px; }
.footer__links{ display:flex; flex-direction:column; gap:10px; font-weight:600; font-size:15px; }
.footer__base{ margin-top:38px; padding-top:22px; border-top:1px solid rgba(255,255,255,0.16); display:flex; flex-wrap:wrap; gap:12px; justify-content:space-between; align-items:center; font-size:13px; color:rgba(255,255,255,0.55); }
.footer .logo__word{ color:#fff; }
.footer .logo__tag{ color:rgba(255,255,255,0.55); }

/* ---------- grids ---------- */
.grid{ display:grid; gap:18px; }
.g-2{ grid-template-columns:repeat(2,1fr); }
.g-3{ grid-template-columns:repeat(3,1fr); }
.g-auto{ grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); }
@media (max-width:820px){ .g-3{ grid-template-columns:1fr; } .g-2{ grid-template-columns:1fr; } }

/* responsive split — one column on mobile, custom ratio on desktop.
   Set the desktop ratio with style="--split:1.1fr 0.9fr" (only applies >=781px). */
.split{ display:grid; grid-template-columns:1fr; gap:clamp(24px,4vw,40px); align-items:center; }
.split--flush{ gap:0; }
@media (min-width:781px){
  .split{ grid-template-columns:var(--split,1fr 1fr); align-items:var(--split-align,center); }
  .split--flush{ align-items:stretch; }
}
/* mobile-only helpers */
@media (max-width:780px){
  .deco-hide{ display:none !important; }
  .statbar4{ grid-template-columns:1fr 1fr !important; }
  .statbar4 > *:nth-child(2){ border-right:0 !important; }
}

/* ---------- motion ---------- */
.reveal{ opacity:0; transform:translateY(18px); transition:opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in{ opacity:1; transform:none; }
.reveal[data-d="1"]{ transition-delay:.07s; }
.reveal[data-d="2"]{ transition-delay:.14s; }
.reveal[data-d="3"]{ transition-delay:.21s; }
.reveal[data-d="4"]{ transition-delay:.28s; }

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  .reveal{ opacity:1; transform:none; transition:none; }
  .btn,.lift,.btn .arr{ transition:none; }
}

/* ============================================================
   Shared page sections (corporate + celebrations reuse these)
   ============================================================ */

/* two delivery formats */
.formats{ display:grid; grid-template-columns:1fr 1fr; gap:20px; align-items:stretch; }
@media (max-width:780px){ .formats{ grid-template-columns:1fr; } }
.fmt{ overflow:hidden; display:flex; flex-direction:column; }
.fmt__hd{ padding:17px 22px; display:flex; align-items:center; justify-content:space-between; gap:12px; color:#fff; }
.fmt__hd h3{ font-size:22px; font-weight:900; letter-spacing:-0.02em; margin:0; }
.fmt__price{ padding:20px 22px 4px; display:flex; align-items:baseline; gap:9px; flex-wrap:wrap; }
.fmt__price .price{ font-size:clamp(30px,4vw,40px); }
.fmt__body{ padding:14px 22px 22px; display:flex; flex-direction:column; gap:20px; flex:1; }

/* how it works steps */
.steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(18px,3vw,30px); }
@media (max-width:780px){ .steps{ grid-template-columns:1fr; } }
.step__n{ font-family:var(--mono); font-size:clamp(34px,4vw,46px); font-weight:700; color:var(--accent); line-height:1; letter-spacing:-0.02em; }
.step__bar{ height:3px; background:var(--ink); width:46px; margin:14px 0 16px; }

/* bento feature grid (asymmetric, not a uniform card wall) */
.bento{ display:grid; grid-template-columns:repeat(6,1fr); gap:16px; }
.b-feature{ grid-column:span 3; grid-row:span 2; }
.b-half{ grid-column:span 3; }
@media (max-width:820px){ .bento{ grid-template-columns:1fr 1fr; } .b-feature,.b-half{ grid-column:auto; grid-row:auto; } }
@media (max-width:520px){ .bento{ grid-template-columns:1fr; } }
.bento .h3{ margin-bottom:8px; }

/* numbered use-case / scenario rows */
.cases{ list-style:none; margin:0; padding:0; border-top:2px solid var(--ink); }
.cases li{ display:grid; grid-template-columns:auto 1fr auto; gap:clamp(16px,3vw,34px); align-items:center; padding:clamp(22px,3vw,30px) 0; border-bottom:2px solid var(--ink); }
.cases .case-n{ font-family:var(--mono); font-size:clamp(28px,3.5vw,40px); font-weight:700; color:var(--accent); line-height:1; }
.cases .case-side{ flex:0 0 auto; }
@media (max-width:640px){ .cases li{ grid-template-columns:auto 1fr; } .cases .case-side{ display:none; } }

/* FAQ accordion */
.faq{ border-top:2px solid var(--ink); }
.faq details{ border-bottom:2px solid var(--ink); }
.faq summary{ list-style:none; cursor:pointer; padding:21px 0; display:flex; justify-content:space-between; gap:18px; align-items:center; font-weight:800; font-size:clamp(17px,2vw,21px); letter-spacing:-0.012em; }
.faq summary::-webkit-details-marker{ display:none; }
.faq summary .pm{ flex:0 0 auto; width:32px; height:32px; border:2px solid var(--ink); border-radius:50%; display:flex; align-items:center; justify-content:center; transition:transform .2s, background .2s; }
.faq summary .pm svg{ width:16px; height:16px; }
.faq details[open] summary .pm{ transform:rotate(45deg); background:var(--accent); }
.faq .ans{ padding:0 0 22px; color:var(--ink-soft); line-height:1.62; max-width:72ch; }
.faq .ans a{ color:var(--accent-deep); font-weight:700; }

/* ---------- coming-soon (Express) ---------- */
.btn--soon{ background:var(--cream-soft); color:var(--ink-mute); box-shadow:none; border-style:dashed; cursor:default; }
.btn--soon:hover{ transform:none; box-shadow:none; }
.btn--soon:active{ transform:none; box-shadow:none; }
.fmt--soon .fmt__body{ opacity:.92; }
.soon-tag{ background:var(--paper) !important; color:var(--ink) !important; border-color:var(--ink) !important; }

/* ---------- footer wordmark (cropped from the padded square logo) ---------- */
.wordmark{ display:inline-block; height:72px; overflow:hidden; line-height:0; }
.wordmark img{ height:180px; width:auto; max-width:none; display:block; margin:-54px -27px; }
@media (max-width:560px){ .wordmark{ height:60px; } .wordmark img{ height:150px; margin:-45px -23px; } }

/* ---------- brand logo — language-bound (EN: Quiz Eat Drink · ES: Tardeo de Trivia) ----------
   Both logos sit in the DOM; CSS shows the one matching <html lang>, which the i18n
   engine sets. EN png has transparent padding, so it's cropped to the wordmark band;
   the Tardeo svg has tight bounds, so it renders at height directly. */
.brand{ display:inline-flex; align-items:center; text-decoration:none; line-height:0; --brand-h:44px; }
.brand__en{ display:block; overflow:hidden; height:var(--brand-h); }
.brand__en img{ height:calc(var(--brand-h) * 2.5); width:auto; max-width:none; display:block; margin:calc(var(--brand-h) * -0.75) calc(var(--brand-h) * -0.375); }
.brand__es{ display:block; width:auto; height:calc(var(--brand-h) * 0.96); }
html[lang="es"] .brand__en{ display:none; }
html:not([lang="es"]) .brand__es{ display:none; }
.footer .brand{ --brand-h:58px; }
@media (max-width:560px){ .brand{ --brand-h:38px; } .footer .brand{ --brand-h:50px; } }
