/* ANIV Green Energy, v2. Light-first, green and white, led by Nila. */
:root {
  --bg: #F6FBF3;
  --surface: #FFFFFF;
  --surface-2: #EDF6E8;
  --text: #10231A;
  --muted: #475C4F;
  --line: #D3E5CF;
  --green: #04A527;
  --green-ink: #036F1B;
  --btn: #037F1F;
  --btn-hover: #026517;
  --on-btn: #FFFFFF;
  --forest: #0B2E17;
  --forest-2: #134722;
  --on-forest: #F1F8EE;
  --on-forest-muted: #B5CDB7;
  --lime: #B8EA4C;
  --on-lime: #0B2E17;
  --gold: #E3B23C;
  --disc: #DDF3CF;
  --disc-2: #C4EBA8;
  --logo-bg: transparent;
  --focus: #0B5FD1;
  --shadow: 0 10px 30px rgba(11, 46, 23, .10);
  --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Open Sans", "Segoe UI", system-ui, sans-serif;
  --font-ta: "Noto Sans Tamil", "Latha", sans-serif;
  --r: 20px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08160D; --surface: #102418; --surface-2: #14301F; --text: #E8F3E6; --muted: #A7BDAC;
    --line: #23422D; --green-ink: #55E174; --btn: #05A02A; --btn-hover: #08B830; --on-btn: #04140A;
    --forest: #0C3A1D; --forest-2: #12532B; --disc: #17402A; --disc-2: #1F5736; --logo-bg: #FFFFFF;
    --shadow: 0 10px 30px rgba(0, 0, 0, .45); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #08160D; --surface: #102418; --surface-2: #14301F; --text: #E8F3E6; --muted: #A7BDAC;
  --line: #23422D; --green-ink: #55E174; --btn: #05A02A; --btn-hover: #08B830; --on-btn: #04140A;
  --forest: #0C3A1D; --forest-2: #12532B; --disc: #17402A; --disc-2: #1F5736; --logo-bg: #FFFFFF;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.65 var(--font-body); -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--surface); z-index: 60; }
img, svg { max-width: 100%; display: block; }
a { color: var(--green-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
.ta { font-family: var(--font-ta), var(--font-body); }
.num { font-variant-numeric: tabular-nums; }

.wrap {
  width: 100%; max-width: 1180px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.5rem; }
.band { padding-block: clamp(3rem, 7vw, 5.5rem); }
.band--tint { background: var(--surface-2); }
.band--forest { background: var(--forest); color: var(--on-forest); }
.band--forest a { color: var(--lime); }
.band--forest .muted, .band--forest .lede { color: var(--on-forest-muted); }
.eyebrow { font: 700 .78rem/1.2 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--green-ink); }
.band--forest .eyebrow { color: var(--lime); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 58ch; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.grid-2 > * { min-width: 0; }
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem; min-width: 0; }
.card h3 + p { margin-top: .6rem; }
.card--link { display: flex; flex-direction: column; gap: .8rem; box-shadow: var(--shadow); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px;
  padding: .75rem 1.5rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  font: 700 .98rem/1.2 var(--font-display); text-decoration: none; text-align: center;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn--green { background: var(--btn); color: var(--on-btn); }
.btn--green:hover { background: var(--btn-hover); }
.btn--ghost { background: transparent; color: var(--green-ink); border-color: currentColor; }
.btn--lime { background: var(--lime); color: var(--on-lime); }
.band--forest .btn--lime { color: var(--on-lime); }
.band--forest .btn--ghost { color: var(--on-forest); border-color: var(--on-forest-muted); }
.band--forest a.btn--lime { color: var(--on-lime); }
.btn--sm { min-height: 40px; padding: .5rem 1.1rem; font-size: .9rem; }

/* header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: inline-flex; background: var(--logo-bg); border-radius: 10px; padding: 2px 4px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a:not(.btn) { padding: .5rem .8rem; border-radius: 999px; text-decoration: none; color: var(--text); font: 600 .94rem var(--font-body); }
.nav a:not(.btn):hover { background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--green-ink); background: var(--surface-2); }
.nav .btn { margin-left: .5rem; }
.menu-btn { display: none; min-height: 44px; padding: .4rem 1rem; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); color: var(--text); font: 700 .9rem var(--font-display); cursor: pointer; }

/* hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 6vw, 5rem) 0; background:
  radial-gradient(60% 70% at 85% 30%, var(--disc) 0, transparent 70%), var(--bg); }
.hero .grid-2 { align-items: end; }
.hero-copy { padding-bottom: clamp(2rem, 5vw, 4rem); }
.hero h1 { color: var(--text); }
.hero h1 em { font-style: normal; color: var(--green-ink); }
.hero .ta { font-size: 1.05rem; color: var(--green-ink); font-weight: 600; }
.stage { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 320px; }
.stage::before { content: ""; position: absolute; width: min(100%, 520px); aspect-ratio: 1; border-radius: 50%; bottom: -8%;
  background: radial-gradient(circle at 50% 40%, var(--disc-2), var(--disc) 62%); }
.stage::after { content: ""; position: absolute; width: min(112%, 590px); aspect-ratio: 1; border-radius: 50%; bottom: -14%;
  border: 2px dashed color-mix(in srgb, var(--green) 45%, transparent); }
.stage img { position: relative; z-index: 1; width: auto; max-height: clamp(340px, 52vw, 560px); }
.chip { position: absolute; z-index: 2; top: 8%; left: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: .5rem 1rem; font: 700 .8rem var(--font-display); box-shadow: var(--shadow); display: inline-flex; gap: .5rem; align-items: center; }
.chip i { width: .6rem; height: .6rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 25%, transparent); }
.page-hero { background: linear-gradient(180deg, var(--surface-2), var(--bg)); padding-block: clamp(2.5rem, 6vw, 4.5rem) 0; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
.page-hero .grid-2 { align-items: end; }
.page-hero .hero-copy { padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.page-hero .stage img { max-height: clamp(280px, 38vw, 440px); }
@media (max-width: 820px) {
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .stage { order: -1; min-height: 260px; }
  .hero .grid-2, .page-hero .grid-2 { align-items: center; }
  .hero .stage img { max-height: 340px; }
  .chip { left: 4%; }
}

/* trust strip */
.strip { background: var(--forest); color: var(--on-forest); }
.strip ul { list-style: none; margin: 0; padding: 1.1rem 0; display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; font: 600 .92rem var(--font-body); }
.strip li { display: inline-flex; gap: .6rem; align-items: center; }
.strip li::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--lime); flex: none; }

/* nila section */
.mini-steps { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .9rem; counter-reset: s; }
.mini-steps li { counter-increment: s; display: grid; grid-template-columns: 2.4rem 1fr; gap: .9rem; align-items: start; }
.mini-steps li::before { content: counter(s); width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: #fff; font: 800 1rem var(--font-display); }
.mini-steps b { font-family: var(--font-display); }
.cutout { display: flex; justify-content: center; align-items: flex-end; }
.cutout img { max-height: 460px; width: auto; }

/* calculator */
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
.calc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.calc-top label { font: 700 .95rem var(--font-display); }
.calc-fig { font: 800 clamp(2.2rem, 5vw, 3.2rem)/1 var(--font-display); color: var(--green-ink); }
.calc-fig small { font-size: .45em; font-weight: 700; color: var(--muted); margin-left: .3rem; }
input[type="range"] { width: 100%; margin: 1.2rem 0 .3rem; accent-color: var(--green); height: 28px; }
.scale { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); }
.outs { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); margin-top: 1.5rem; }
.out { background: var(--surface-2); border-radius: 16px; padding: 1rem 1.1rem; min-width: 0; }
.out span { display: block; font-size: .8rem; color: var(--muted); }
.out b { display: block; font: 800 1.6rem/1.2 var(--font-display); }
.calc .small { margin-top: 1.2rem; }
.out--wide { grid-column: 1 / -1; background: color-mix(in srgb, var(--gold) 22%, var(--surface)); }
.out[hidden], .small[hidden] { display: none; }
.calc-cta { margin-top: 1.3rem; }
.nav a:not(.btn) { padding-inline: .65rem; }

/* proof */
.stats { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); margin-top: 2rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem; text-align: left; }
.stat b { display: block; font: 800 clamp(2.6rem, 6vw, 3.6rem)/1 var(--font-display); color: var(--green-ink); }
.stat span { display: block; margin-top: .6rem; color: var(--muted); }

/* timeline */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: st; max-width: 46rem; }
.steps li { counter-increment: st; position: relative; padding: 0 0 2rem 4rem; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 2.8rem; height: 2.8rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: #fff; font: 800 1.1rem var(--font-display); z-index: 1; }
.steps li::after { content: ""; position: absolute; left: 1.35rem; top: 2.8rem; bottom: .2rem; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: .35rem; }
.steps p { color: var(--muted); }

/* lists, tables, faq */
.ticks { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .7rem; }
.ticks li { padding-left: 1.9rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 1.05rem; height: .55rem; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg) translateY(-30%); }
.band--forest .ticks li::before { border-color: var(--lime); }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 22rem; background: var(--surface); border-radius: 16px; overflow: hidden; }
th, td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
th { font: 700 .8rem var(--font-display); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--surface-2); }
td.r, th.r { text-align: right; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.1rem 0; font: 700 1.05rem var(--font-display); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--green-ink); }
.faq[open] summary::after { content: "\2212"; }
.faq p { padding: 0 0 1.2rem; color: var(--muted); max-width: 62ch; }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--gold); border-radius: var(--r); padding: 1.6rem 1.8rem; }
.callout h3 { margin-bottom: .6rem; }

/* qr */
.qr { background: #fff; border-radius: 24px; padding: 1.2rem; width: min(100%, 260px); box-shadow: var(--shadow); }
.qr svg { width: 100%; height: auto; }
.report { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.page-card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px 20px 20px 20px; padding: 1.5rem 1.6rem 1.6rem; position: relative; }
.page-card .eyebrow { display: block; margin-bottom: .6rem; }

/* tagline card */
.tag-card { background: #fff; border-radius: 24px; padding: 1.4rem 1.8rem; display: inline-block; }
.tag-card img { height: 96px; width: auto; }

/* forms */
.form { display: grid; gap: 1.1rem; }
.two { display: grid; gap: 1.1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .two { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: .4rem; min-width: 0; }
.field label { font: 700 .88rem var(--font-display); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: .7rem .9rem; border-radius: 12px; border: 2px solid var(--line);
  background: var(--surface); color: var(--text); font: 400 1rem var(--font-body); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 30%, transparent); }
.hint { font-size: .82rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.notice { padding: .9rem 1.1rem; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.notice--ok { border-color: var(--green); }

/* footer */
.site-footer { background: var(--forest); color: var(--on-forest); padding-block: 3.5rem 2rem; }
.site-footer a { color: var(--on-forest); }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.foot-grid > * { min-width: 0; }
.foot-grid h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); margin-bottom: .9rem; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.foot-logo { background: #fff; border-radius: 12px; padding: 6px 10px; display: inline-block; margin-bottom: 1rem; }
.foot-logo img { height: 56px; width: auto; }
.foot-grid p { color: var(--on-forest-muted); }
.copy { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--on-forest) 20%, transparent); color: var(--on-forest-muted); font-size: .85rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* dock + chat */
.dock { position: fixed; z-index: 55; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; gap: .6rem; align-items: center; }
.dock .btn { box-shadow: var(--shadow); }
.dock-nila { padding: .35rem 1.2rem .35rem .4rem; background: var(--forest); color: var(--on-forest); border-color: var(--lime); }
.dock-nila img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 6%; background: var(--disc); }
.dock-wa { width: 52px; padding: 0; background: #25D366; color: #06210F; border-radius: 50%; min-height: 52px; }
.dock-wa svg { width: 26px; height: 26px; fill: currentColor; }
.btn--survey { display: none; }
.chat { position: fixed; z-index: 56; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  width: min(380px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 20px 50px rgba(0,0,0,.28); overflow: hidden; }
.chat[hidden] { display: none; }
.chat-head { display: flex; gap: .8rem; align-items: center; padding: .9rem 1rem; background: var(--forest); color: var(--on-forest); }
.chat-head img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: 50% 6%; background: var(--disc); flex: none; }
.chat-head div { flex: 1; min-width: 0; line-height: 1.25; }
.chat-head b { display: block; font-family: var(--font-display); }
.chat-head span { font-size: .8rem; color: var(--on-forest-muted); }
.chat-head button { background: transparent; border: 0; color: inherit; font-size: 1.8rem; line-height: 1; cursor: pointer; min-width: 44px; min-height: 44px; }
.chat-body { padding: 1rem; display: grid; gap: .9rem; max-height: min(60vh, 460px); overflow-y: auto; }
.bubble { background: var(--surface-2); border-radius: 4px 18px 18px 18px; padding: .8rem 1rem; font-size: .95rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips button { border: 1.5px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: .5rem .9rem; font: 600 .85rem var(--font-body); cursor: pointer; min-height: 40px; }
.chips button:hover { border-color: var(--green); }
.chat form { display: flex; gap: .5rem; }
.chat form input { flex: 1; min-width: 0; min-height: 44px; border-radius: 999px; border: 2px solid var(--line); padding: 0 1rem; background: var(--surface); color: var(--text); font: 400 .95rem var(--font-body); }
.chat small { color: var(--muted); font-size: .78rem; }
@media (max-width: 720px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .dock { left: 0; right: 0; bottom: 0; gap: .5rem; padding: .6rem max(16px, env(safe-area-inset-right, 0px)) calc(.6rem + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: var(--surface); border-top: 1px solid var(--line); }
  .dock .btn { flex: 1; box-shadow: none; min-height: 48px; padding-inline: .5rem; font-size: .85rem; }
  .dock-nila img { display: none; }
  .dock-nila { padding: .5rem; }
  .dock-wa { width: auto; border-radius: 999px; }
  .dock-wa svg { display: none; }
  .dock-wa::after { content: "WhatsApp"; }
  .btn--survey { display: inline-flex; background: var(--lime); color: var(--on-lime); }
  .chat { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); left: max(16px, env(safe-area-inset-left, 0px)); width: auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* header: logo hangs below the bar */
.site-header .wrap { align-items: center; }
.brand { align-self: flex-start; position: relative; z-index: 3; background: #fff; padding: 10px 16px 12px; margin-bottom: -32px;
  border-radius: 0 0 22px 22px; box-shadow: 0 10px 24px rgba(11, 46, 23, .20); border: 1px solid var(--line); border-top: 0; }
.brand img { height: 80px; }
@media (max-width: 1180px) { .brand { padding: 8px 12px 10px; margin-bottom: -18px; } .brand img { height: 62px; } }
:root[data-theme="dark"] .brand { background: #fff; }

/* dock: Nila avatar with headroom, clearer WhatsApp button */
.av { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--disc); flex: none; display: block; }
.av img { width: 100%; height: auto; display: block; transform: translateY(16%); }
.dock-nila { padding: .3rem 1.2rem .3rem .3rem; }
.dock-nila .av img { border-radius: 0; background: none; width: 100%; height: auto; }
.chat-head .av { width: 52px; height: 52px; }
.chat-head .av img { width: 100%; height: auto; border-radius: 0; object-fit: initial; background: none; }
.dock-wa { width: 58px; min-height: 58px; background: #1FA855; color: #fff; border: 3px solid #fff; }
.dock-wa svg { width: 32px; height: 32px; fill: #fff; }

/* tap-to-play video */
.vid { position: relative; width: min(100%, 340px); border-radius: 26px; overflow: hidden; background: #fff; box-shadow: var(--shadow); line-height: 0; }
.vid video { width: 100%; height: auto; display: block; }
.vid-btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%; border: 4px solid #fff;
  background: color-mix(in srgb, var(--btn) 92%, transparent); display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.3); transition: opacity .2s ease; }
.vid-btn svg { width: 34px; height: 34px; fill: #fff; margin-left: 4px; }
.vid.playing .vid-btn { opacity: 0; }
.vid.playing { cursor: pointer; }
@media (max-width: 720px) {
  .dock-nila .av { display: none; }
  .dock-wa { width: auto; border: 0; min-height: 48px; border-radius: 999px; background: #1FA855; color: #fff; }
}

/* nav collapses to the menu button when it no longer fits */
@media (max-width: 1180px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: .25rem;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: .75rem max(16px, env(safe-area-inset-right, 0px)) 1rem max(16px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: .8rem 1rem; }
  .nav .btn { margin: .5rem 0 0; }
}
.nav a:not(.btn), .nav .btn { white-space: nowrap; }
.brand { flex: none; }

.site-header .wrap { max-width: 1320px; }
.nav .btn { margin-left: .25rem; }
.nav a:not(.btn) { padding-inline: .55rem; }

.brand-chip { display: inline-block; background: #fff; border-radius: 14px; padding: .5rem .9rem; margin-bottom: 1rem; border: 1px solid var(--line); }
.brand-chip img { height: 56px; width: auto; }

.qr { aspect-ratio: 1; width: min(100%, 300px); display: grid; place-items: center; }
.qr svg { width: 100%; height: 100%; }

/* EB service number checker */
.eb { max-width: 720px; margin-inline: auto; display: flex; flex-direction: column; gap: 1rem; }
.eb-label { display: block; font-weight: 700; margin-bottom: .5rem; }
.eb-h { font: 700 .85rem var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 .8rem; }
.eb-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.eb-row input, .eb-search { flex: 1 1 220px; min-width: 0; padding: .75rem .9rem; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); color: var(--text); }
.eb-row input { font: 600 1.35rem ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .04em; }
.eb-row input:focus, .eb-search:focus { outline: 3px solid var(--green); outline-offset: 1px; }
.eb-search { width: 100%; margin-top: .8rem; font: 400 .95rem var(--font-body); }
.parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: .6rem; }
.part { border: 1.5px solid var(--line); border-radius: 10px; padding: .7rem .8rem; background: var(--surface-2); min-width: 0; }
.part .k { font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.part .v { font: 700 1.4rem ui-monospace, Menlo, Consolas, monospace; margin: .15rem 0; }
.part .n { font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; min-height: 1.2em; }
.part .tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: .05rem .5rem; border-radius: 99px; margin-bottom: .2rem; background: var(--line); color: var(--text); }
.part.ok { border-color: var(--green); } .part.ok .tag { background: var(--green); color: var(--on-btn); }
.part.bad { border-color: #B42318; } .part.bad .tag { background: #B42318; color: #fff; }
.part.warn { border-color: #9A5B00; } .part.warn .tag { background: #9A5B00; color: #fff; }
.verdict { margin-top: 1rem; padding: .9rem 1rem; border-radius: 10px; border: 1.5px solid var(--line); font-weight: 700; overflow-wrap: anywhere; }
.verdict small { display: block; font-weight: 400; margin-top: .25rem; }
.verdict.idle { background: var(--surface-2); color: var(--muted); }
.verdict.ok { background: var(--surface-2); border-color: var(--green); color: var(--green-ink); }
.verdict.bad { background: #FDECEA; border-color: #B42318; color: #8C1A10; }
.verdict.warn { background: #FFF3DC; border-color: #9A5B00; color: #6E4100; }
:root[data-theme="dark"] .verdict.bad { background: #3A1816; color: #FF8A80; }
:root[data-theme="dark"] .verdict.warn { background: #3A2B0E; color: #F2B64E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .verdict.bad { background: #3A1816; color: #FF8A80; } :root:not([data-theme="light"]) .verdict.warn { background: #3A2B0E; color: #F2B64E; } }
.eb-steps { margin: 0 0 .8rem; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .3rem; }
.eb details summary { cursor: pointer; font-weight: 700; }
.eb-list { max-height: 240px; overflow: auto; margin-top: .8rem; border: 1px solid var(--line); border-radius: 10px; }
.eb-list div { display: flex; gap: .8rem; padding: .4rem .7rem; border-bottom: 1px solid var(--line); font-size: .9rem; }
.eb-list div:last-child { border-bottom: 0; }
.eb-list b { font-family: ui-monospace, Menlo, Consolas, monospace; min-width: 3ch; }

/* dock: three buttons of one size */
.dock .btn { flex: 0 0 auto; width: 168px; min-height: 54px; padding: .4rem .9rem; font-size: .88rem; line-height: 1.2; text-align: center; justify-content: center; border-radius: 999px; }
.dock .dock-eb { background: var(--surface); color: var(--green-ink); border: 2px solid var(--green); }
.dock .dock-wa { width: 168px; min-height: 54px; border: 0; border-radius: 999px; background: #1FA855; color: #fff; gap: .5rem; }
.dock .dock-wa svg { display: block; width: 22px; height: 22px; fill: #fff; flex: none; }
.dock .dock-wa::after { content: "WhatsApp"; }
.dock .btn--survey { display: inline-flex; background: var(--lime); color: var(--on-lime); }
@media (max-width: 720px) {
  .dock .btn, .dock .dock-wa { flex: 1 1 0; width: auto; min-width: 0; min-height: 56px; padding: .3rem .4rem; font-size: .8rem; }
  .dock .dock-wa svg { display: none; }
}
/* hero label sits above Nila on small screens, not over her face */
@media (max-width: 820px) {
  .stage:has(.chip) { flex-direction: column; align-items: center; gap: .8rem; }
  .stage .chip { position: relative; top: auto; left: auto; }
}

/* checker: result sits under the box and stays above the phone keyboard */
.page-eb .dock { display: none; }
.page-eb body, body.page-eb { padding-bottom: 0; }
.eb-main { scroll-margin-top: 96px; }
.eb-main .parts { margin-top: .8rem; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; }
.eb-main .part { padding: .45rem .5rem; }
.eb-main .part .k { font-size: .62rem; letter-spacing: .02em; }
.eb-main .part .v { font-size: 1.05rem; margin: .1rem 0; }
.eb-main .part .tag { font-size: .62rem; padding: 0 .4rem; margin: 0; }
.eb-main .part .n { font-size: .68rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 0; }
.eb-main .verdict { margin-top: .6rem; padding: .6rem .8rem; font-size: .9rem; }
.eb-inline { margin-top: .6rem; }
.eb-inline .btn { width: 100%; }
@media (max-width: 420px) { .eb-main { padding: 1rem; } .eb-row input { font-size: 1.2rem; } }

.eb-main .eb-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.eb-main .eb-row input { padding: .6rem .8rem; }
.eb-main .part .tag { display: inline-block; }
.eb-main .part .n { -webkit-line-clamp: 1; }
.eb-main .verdict small { margin-top: .1rem; font-size: .8rem; }
.dock .btn, .dock .dock-wa { border: 2px solid transparent; }
.dock .dock-eb { border-color: var(--green); }
.eb-main .part .n { font-size: 0; line-height: 0; }
.eb-main .part .n br { display: none; }
.eb-main .part .n .tag { font-size: .62rem; line-height: 1.4; }

/* keep the franchise line above the decorative circles */
.hero-copy { position: relative; z-index: 3; }
@media (max-width: 820px) { .stage { margin-bottom: 3.2rem; } }

/* Countdown headline: second line same size as the paragraph below, Nila sits higher */
.hero h1 .sub { display: block; font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.5; margin-top: .6em; font-weight: 700; letter-spacing: 0; }
@media (min-width: 821px) { .hero .stage img { max-height: none; height: clamp(420px, 61vw, 820px); } .hero .stage::before { bottom: -6%; } }
@media (max-width: 820px) {
  .hero { padding-top: .5rem; }
  .hero .stage { min-height: 0; margin-bottom: 1.2rem; }
  .hero .stage:has(.chip) { gap: .35rem; }
  .hero .stage .chip { padding: .3rem .7rem; font-size: .78rem; }
  .hero .stage img { max-height: 380px; }
  .hero .stage::before { width: min(78%, 300px); bottom: -4%; }
  .hero .stage::after { width: min(92%, 350px); bottom: -8%; }
}
