/* ============================================================
   Bhukkad marketing site — "The Register", dark mode.

   Three color families, kept deliberately separate so nothing
   flips meaning depending on context:
   - Dark site chrome (--bg/--ink/...): nav, body, headings, CTA —
     the "room" the whole page sits in.
   - Paper artifacts (--paper-*): the ledger page, notice cards,
     register entries, the mess coupon. These stay warm and light
     regardless of site theme, like lit paper on a dark desk —
     paper doesn't turn dark just because the room did.
   - App UI (--app-*): the actual product's own real design tokens
     (src/constants/colors.js) — used only inside the phone/browser
     mockups and the live/owner-panel previews, since those are
     meant to look like literal screenshots of the real app.

   Type: IBM Plex Mono (hero headline, nav, buttons, data, labels),
   IBM Plex Sans Condensed Bold (section titles), IBM Plex Sans
   (body).
   ============================================================ */

:root {
  --bg: #17140F;
  --bg-2: #1D1912;
  --bg-3: #262019;
  --ink: #ECE4D0;
  --ink-soft: #A79C87;
  --ink-faint: #6E6555;
  --line: rgba(236,228,208,0.14);
  --accent-red: #D97A63;
  --accent-gold: #D6A857;
  --accent-green: #8FBF78;
  --accent-carbon: #9A93BE;

  --paper: #FAF6E9;
  --paper-2: #EFE8D6;
  --paper-ink: #1C2A38;
  --paper-ink-soft: #55677A;
  --paper-ink-faint: #8B97A0;
  --paper-rule: #93A8B8;
  --paper-red: #B33A3A;
  --paper-stamp: #A32F2F;
  --paper-green: #3D5C3D;
  --paper-green-soft: #DCE3D6;
  --paper-carbon: #545071;
  --paper-carbon-soft: #E4E1EC;
  --paper-gold: #A9782E;
  --paper-gold-soft: #EFDFB8;

  --app-ink: #1C2127;
  --app-paper: #F5F6F4;
  --app-turmeric: #E2A33D;
  --app-turmeric-soft: rgba(226,163,61,0.18);
  --app-curry: #46663A;
  --app-curry-soft: #DCE8D5;
  --app-steel: #8B9099;
  --app-steel-light: #E4E6E9;

  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --font-head: 'IBM Plex Sans Condensed', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --max-width: 1120px;

  --shadow-paper: 0 24px 55px rgba(0,0,0,0.5);
  --shadow-card: 0 20px 46px rgba(0,0,0,0.4);
  --shadow-soft: 0 12px 28px rgba(0,0,0,0.35);
  --shadow-lifted: 0 30px 70px rgba(0,0,0,0.55);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  background-image: repeating-linear-gradient(
    var(--bg) 0px, var(--bg) 27px,
    rgba(236,228,208,0.025) 27px, rgba(236,228,208,0.025) 28px
  );
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--accent-red); outline-offset: 3px; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-red);
  margin-bottom: 1.1rem;
}
.eyebrow::before, .eyebrow::after { content: '—'; opacity: 0.5; }

.section-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.85rem); line-height: 1.1;
  letter-spacing: -0.01em; text-wrap: balance; color: var(--ink);
}
.section-sub { font-size: 1.02rem; color: var(--ink-soft); line-height: 1.7; max-width: 46ch; margin-top: 1rem; }
.accent { color: var(--accent-red); font-style: normal; }

.section { padding: 6rem 0; }
.section-head { margin-bottom: 3.2rem; }

/* ── ICONS ── */
.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-lg { width: 22px; height: 22px; stroke-width: 1.6; }
.stamp-well {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--paper-ink); color: var(--paper-ink);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem; flex-shrink: 0;
}

/* ── BUTTONS ── */
.btn-stamp {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: var(--radius-sm);
  padding: 0.8rem 1.6rem;
  font-family: var(--font-mono); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.btn-stamp:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }
.btn-stamp.on-paper { border-color: var(--paper-ink); color: var(--paper-ink); }
.btn-stamp.on-paper:hover { background: var(--paper-ink); color: var(--paper); }
.btn-plain {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono); font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.03em; color: var(--ink-soft); text-decoration: none;
  border-bottom: 1.5px solid var(--line); padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.btn-plain:hover { color: var(--ink); border-color: var(--ink); }

/* ── NAV ── */
header.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; background: var(--bg); border-bottom: 2px solid var(--ink); }
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.nav-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.nav-logo img { height: 30px; width: 30px; object-fit: contain; border-radius: 6px; }
.nav-logo-text { font-family: var(--font-mono); font-weight: 600; font-size: 1.1rem; color: var(--ink); letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-soft);
  text-decoration: none; padding-bottom: 4px; border-bottom: 1.5px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover { color: var(--ink); border-color: var(--accent-red); }
.nav-cta.btn-stamp { padding: 0.55rem 1.15rem; font-size: 0.76rem; }

/* ── HERO ── */
#hero { padding: 8.5rem 0 0; position: relative; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding-bottom: 4rem; }

.hero-copy .eyebrow { opacity: 0; animation: fadeUp 0.7s 0.1s ease both; }
.hero-title { opacity: 0; animation: fadeUp 0.8s 0.22s ease both; }
.hero-sub { opacity: 0; animation: fadeUp 0.8s 0.34s ease both; }
.hero-btns { opacity: 0; animation: fadeUp 0.8s 0.46s ease both; }

.hero-title {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.05; letter-spacing: -0.02em;
  margin-bottom: 1.3rem; text-wrap: balance; color: var(--ink);
}
.hero-title .accent { color: var(--accent-red); }
.hero-sub { font-size: 1.06rem; color: var(--ink-soft); max-width: 44ch; line-height: 1.7; margin-bottom: 2rem; }
.hero-btns { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }

/* Ledger scene (signature element) — a lit paper register, escaping into the app */
.ledger-scene { position: relative; min-height: 400px; opacity: 0; animation: fadeUp 0.9s 0.32s ease both; }
.ledger-scene::before {
  content: ''; position: absolute; inset: -50px; z-index: -1;
  background: radial-gradient(ellipse at 42% 32%, rgba(214,168,87,0.16), transparent 65%);
  animation: lampFlicker 6s ease-in-out infinite;
}
@keyframes lampFlicker { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }

.ledger-page {
  position: absolute; top: 0; left: 0; width: 88%;
  background: var(--paper); box-shadow: var(--shadow-paper);
  border-radius: 3px;
  padding: 1.5rem 1.5rem 1.4rem 2.1rem;
  transform: rotate(-2.2deg);
}
.ledger-page::before { content: ''; position: absolute; top: 0; bottom: 0; left: 1.15rem; width: 1.5px; background: var(--paper-red); opacity: 0.55; }
.ledger-title { font-family: var(--font-mono); font-weight: 600; font-size: 0.92rem; margin-bottom: 0.15rem; color: var(--paper-ink); }
.ledger-head { display: flex; justify-content: space-between; margin-bottom: 0.9rem; padding-bottom: 0.7rem; border-bottom: 1.5px solid var(--paper-ink); }
.ledger-head span { font-family: var(--font-mono); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-ink-faint); }
.ledger-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0.5rem 0; border-bottom: 1px solid rgba(147,168,184,0.4);
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--paper-ink);
  opacity: 0; animation: fadeUp 0.5s ease both;
}
.ledger-row:nth-of-type(3) { animation-delay: 0.55s; }
.ledger-row:nth-of-type(4) { animation-delay: 0.64s; }
.ledger-row:nth-of-type(5) { animation-delay: 0.73s; }
.ledger-row:nth-of-type(6) { animation-delay: 0.82s; }
.ledger-row:nth-of-type(7) { animation-delay: 0.91s; }
.ledger-row .lr-name { color: var(--paper-ink-soft); }
.ledger-row .lr-tick { font-weight: 600; }
.ledger-row.is-pending .lr-tick { color: var(--paper-ink-faint); }
.ledger-row.is-fading { opacity: 0.4 !important; }

.live-card {
  position: absolute; right: -4%; bottom: -6%; width: 62%;
  background: var(--app-paper); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: 1.15rem 1.25rem;
  transform: rotate(2deg);
  opacity: 0; animation: fadeUp 0.6s 1.05s ease both;
}
.live-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.8rem; }
.live-name { font-family: var(--font-body); font-weight: 700; font-size: 0.92rem; color: var(--app-ink); }
.live-room { font-family: var(--font-mono); font-size: 0.68rem; color: var(--app-steel); }
.live-code { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 600; letter-spacing: 0.06em; color: var(--app-ink); margin-bottom: 0.7rem; }
.live-verified {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--app-curry-soft); color: var(--app-curry);
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600;
  padding: 0.3rem 0.65rem; border-radius: 100px;
}
.live-verified::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--app-curry); }

.ledger-connector { position: absolute; top: 48%; left: 74%; width: 22%; height: 90px; pointer-events: none; z-index: 1; }
.ledger-connector path {
  fill: none; stroke: var(--paper-ink-faint); stroke-width: 1.5; stroke-dasharray: 4 4;
  stroke-dashoffset: 90; animation: drawDashes 1s 1.05s ease-out forwards;
}
@keyframes drawDashes { to { stroke-dashoffset: 0; } }

.totals-strip { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: var(--bg-2); }
.totals-row {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 0.5rem 0; padding: 0.85rem 0;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft);
  overflow-x: auto;
}
.totals-row b { color: var(--ink); font-weight: 700; }
.totals-sep { margin: 0 1.1rem; color: var(--accent-red); }

/* ── SHOWCASE (student app + web app) ── */
#showcase { background: var(--bg); }
.showcase-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 3rem; align-items: center; margin-top: 3rem; }
.showcase-item { text-align: center; }
.showcase-label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-top: 1.1rem; }

.phone-frame { background: #0B0B0B; border-radius: 34px; padding: 12px; box-shadow: var(--shadow-lifted); max-width: 250px; margin: 0 auto; transition: transform 0.3s; }
.phone-frame:hover { transform: translateY(-6px); }
.phone-screen { background: var(--app-paper); border-radius: 22px; overflow: hidden; aspect-ratio: 9 / 18.5; display: flex; flex-direction: column; }
.phone-notch { width: 60px; height: 16px; background: #0B0B0B; border-radius: 0 0 10px 10px; margin: 0 auto; }
.phone-topbar { padding: 0.7rem 1rem 0.4rem; }
.phone-greet { font-family: var(--font-body); font-weight: 700; font-size: 0.82rem; color: var(--app-ink); }
.phone-greet span { color: var(--app-steel); font-weight: 400; font-size: 0.68rem; display: block; margin-top: 1px; }
.phone-body { flex: 1; padding: 0.3rem 0.9rem 0.7rem; display: flex; flex-direction: column; gap: 0.6rem; }
.phone-qr-card { background: var(--app-ink); border-radius: 12px; padding: 0.9rem; text-align: center; }
.phone-qr-code { font-family: var(--font-mono); font-weight: 700; font-size: 1.15rem; color: var(--app-paper); letter-spacing: 0.05em; }
.phone-qr-label { font-family: var(--font-mono); font-size: 0.56rem; color: rgba(245,246,244,0.5); margin-top: 0.35rem; }
.phone-row { display: flex; gap: 0.5rem; }
.phone-chip { flex: 1; background: var(--white, #fff); border: 1px solid var(--app-steel-light); border-radius: 8px; padding: 0.5rem 0.6rem; }
.phone-chip-label { font-size: 0.58rem; color: var(--app-steel); }
.phone-chip-val { font-size: 0.68rem; font-weight: 700; color: var(--app-ink); margin-top: 2px; }
.phone-pref { display: inline-flex; align-self: flex-start; background: var(--app-curry-soft); color: var(--app-curry); font-family: var(--font-mono); font-size: 0.58rem; font-weight: 600; padding: 0.3rem 0.6rem; border-radius: 100px; }
.phone-tabbar { display: flex; justify-content: space-around; padding: 0.6rem 0; border-top: 1px solid var(--app-steel-light); }
.phone-tabbar .icon { width: 16px; height: 16px; color: var(--app-steel); }
.phone-tabbar .icon.active { color: var(--app-turmeric); }

.browser-frame { background: var(--bg-3); border-radius: 14px; box-shadow: var(--shadow-lifted); overflow: hidden; transition: transform 0.3s; }
.browser-frame:hover { transform: translateY(-6px); }
.browser-bar { background: var(--bg-2); padding: 0.65rem 1rem; display: flex; align-items: center; gap: 0.9rem; }
.browser-dots { display: flex; gap: 6px; flex-shrink: 0; }
.browser-dots span { width: 9px; height: 9px; border-radius: 50%; }
.browser-dots span:nth-child(1) { background: var(--accent-red); }
.browser-dots span:nth-child(2) { background: var(--accent-gold); }
.browser-dots span:nth-child(3) { background: var(--accent-green); }
.browser-url { flex: 1; background: var(--bg); border-radius: 100px; padding: 0.32rem 1rem; font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-faint); text-align: center; }
.browser-body { display: flex; background: var(--app-paper); min-height: 300px; }
.browser-sidebar { width: 128px; background: var(--app-ink); padding: 1.1rem 0.7rem; display: flex; flex-direction: column; gap: 0.35rem; flex-shrink: 0; }
.browser-nav-item { font-family: var(--font-body); font-size: 0.72rem; color: rgba(245,246,244,0.55); padding: 0.5rem 0.6rem; border-radius: 8px; }
.browser-nav-item.active { background: var(--app-turmeric-soft); color: var(--app-turmeric); font-weight: 600; }
.browser-main { flex: 1; padding: 1.2rem; }
.browser-stats-row { display: flex; gap: 0.6rem; margin-bottom: 1rem; }
.browser-stat { flex: 1; background: #fff; border: 1px solid var(--app-steel-light); border-radius: 10px; padding: 0.7rem; text-align: center; }
.browser-stat-num { font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem; color: var(--app-ink); }
.browser-stat-label { font-size: 0.6rem; color: var(--app-steel); margin-top: 0.2rem; }
.browser-chart { background: #fff; border: 1px solid var(--app-steel-light); border-radius: 10px; padding: 0.8rem; }
.browser-chart .bar-chart { height: 44px; }
.browser-chart .bar { background: var(--app-turmeric); }

/* ── PROBLEM (pinned notices) ── */
#problem { background: var(--bg-2); }
.notice-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem 1.5rem; margin-top: 3rem; }
.notice-card {
  position: relative; background: var(--paper); border-radius: 4px;
  box-shadow: var(--shadow-soft); padding: 1.9rem 1.6rem 1.7rem;
  transition: transform 0.25s, box-shadow 0.25s;
}
.notice-card::before {
  content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 11px; height: 11px; border-radius: 50%; background: var(--paper-red); box-shadow: var(--shadow-soft);
}
.notice-card:nth-child(6n+1) { transform: rotate(-1.1deg); }
.notice-card:nth-child(6n+2) { transform: rotate(0.8deg); }
.notice-card:nth-child(6n+3) { transform: rotate(-0.5deg); }
.notice-card:nth-child(6n+4) { transform: rotate(1.3deg); }
.notice-card:nth-child(6n+5) { transform: rotate(-0.9deg); }
.notice-card:nth-child(6n+6) { transform: rotate(0.6deg); }
.notice-card:hover { transform: translateY(-6px) rotate(0deg); box-shadow: var(--shadow-card); }
.notice-card .stamp-well { width: 38px; height: 38px; margin-bottom: 0.9rem; }
.notice-card .stamp-well .icon { width: 17px; height: 17px; }
.notice-card h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--paper-ink); }
.notice-card p { font-size: 0.87rem; color: var(--paper-ink-soft); line-height: 1.65; }

/* ── FEATURES (two registers) ── */
#features { background: var(--bg); }
.reg-tab {
  display: inline-block; background: var(--paper);
  border: 1.5px solid var(--paper-ink); border-bottom: none;
  border-radius: 6px 6px 0 0; padding: 0.5rem 1.1rem;
  font-family: var(--font-mono); font-weight: 600; font-size: 0.74rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-ink);
  margin: 3.2rem 0 0; position: relative; top: 1.5px;
}
.section-head + .reg-tab { margin-top: 0; }

.reg-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5px; background: var(--paper-ink); border: 1.5px solid var(--paper-ink); }
.entry {
  background: var(--paper); padding: 1.9rem; position: relative; border-top: 3px dashed var(--paper-rule);
  transition: transform 0.25s, box-shadow 0.25s, z-index 0s;
}
.entry:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); z-index: 2; }
.entry.wide { grid-column: span 2; }
.entry-no { position: absolute; top: 1.1rem; right: 1.3rem; font-family: var(--font-mono); font-size: 0.68rem; color: var(--paper-ink-faint); }
.entry h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; margin-bottom: 0.5rem; color: var(--paper-ink); }
.entry p { font-size: 0.87rem; color: var(--paper-ink-soft); line-height: 1.65; max-width: 48ch; }

.mini-panel { margin-top: 1.2rem; background: var(--app-paper); border: 1.5px solid var(--app-ink); border-radius: var(--radius-sm); overflow: hidden; }
.mini-panel-head { background: var(--app-steel-light); border-bottom: 1.5px solid var(--app-ink); padding: 0.5rem 0.85rem; display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.03em; color: var(--app-steel); }
.mini-panel-body { padding: 0.75rem 0.9rem; }
.mini-row { display: flex; justify-content: space-between; align-items: center; padding: 0.4rem 0; font-size: 0.78rem; border-bottom: 1px solid var(--app-steel-light); font-family: var(--font-body); color: var(--app-ink); }
.mini-row:last-child { border: none; }
.mini-tag { font-family: var(--font-mono); font-size: 0.6rem; padding: 2px 8px; border-radius: 100px; font-weight: 600; }
.tag-green { background: var(--app-curry-soft); color: var(--app-curry); }
.tag-gold { background: var(--app-turmeric-soft); color: var(--paper-gold); }
.tag-carbon { background: var(--paper-carbon-soft); color: var(--paper-carbon); }
.mini-yes { color: var(--app-curry); font-family: var(--font-mono); font-weight: 600; font-size: 0.78rem; }
.mini-pending { color: var(--app-steel); font-family: var(--font-mono); font-size: 0.78rem; }

.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 52px; margin-top: 1.1rem; }
.bar { flex: 1; background: var(--paper-gold); min-width: 8px; }
.bar-labels { display: flex; justify-content: space-between; margin-top: 6px; }
.bar-labels span { font-size: 0.6rem; color: var(--paper-ink-faint); font-family: var(--font-mono); }

.perm-toggle-row { display: flex; align-items: center; gap: 0.55rem; padding: 0.3rem 0; font-family: var(--font-mono); font-size: 0.76rem; color: var(--app-ink); }
.perm-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.perm-on { background: var(--app-curry); }
.perm-off { background: var(--app-steel); opacity: 0.4; }
.perm-off-label { color: var(--app-steel); }

/* ── HOW IT WORKS (ledger line numbers) ── */
#how { background: var(--bg-2); }
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-top: 3rem; }
.ledger-steps { display: flex; flex-direction: column; }
.lstep { display: grid; grid-template-columns: 44px 1fr; gap: 1.2rem; padding: 1.3rem 0; position: relative; }
.lstep:not(:last-child)::after { content: ''; position: absolute; left: 20px; bottom: 0; width: 1.5px; height: 1.3rem; background: var(--line); }
.lnum { font-family: var(--font-mono); font-weight: 700; font-size: 0.95rem; color: var(--ink-faint); text-align: right; padding-top: 0.15rem; }
.lstep-body h4 { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; margin-bottom: 0.3rem; color: var(--ink); }
.lstep-body p { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.6; }

.owner-panel { background: var(--app-paper); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.op-top { background: var(--app-ink); color: var(--app-paper); padding: 1rem 1.2rem; display: flex; align-items: center; justify-content: space-between; }
.op-title { font-family: var(--font-body); font-weight: 700; font-size: 0.9rem; }
.op-live { font-family: var(--font-mono); font-size: 0.62rem; padding: 3px 9px; border-radius: 100px; background: rgba(70,102,58,0.4); color: #a8c9a4; }
.op-body { padding: 1.1rem 1.2rem; }
.op-row { display: flex; justify-content: space-between; align-items: center; padding: 0.55rem 0; border-bottom: 1px solid var(--app-steel-light); }
.op-row:last-child { border: none; }
.op-name { font-size: 0.8rem; font-family: var(--font-body); font-weight: 600; color: var(--app-ink); }
.op-room { font-size: 0.65rem; color: var(--app-steel); font-family: var(--font-mono); }
.op-check { font-size: 0.76rem; font-weight: 600; font-family: var(--font-mono); }
.op-yes { color: var(--app-curry); }
.op-no { color: var(--app-steel); }
.op-summary { margin-top: 0.9rem; padding: 0.85rem; background: var(--app-turmeric-soft); border-radius: var(--radius-sm); display: flex; justify-content: space-between; }
.op-sum-item { text-align: center; }
.op-sum-num { font-family: var(--font-mono); font-weight: 700; font-size: 1.15rem; color: var(--app-turmeric); }
.op-sum-label { font-size: 0.6rem; color: var(--app-steel); margin-top: 0.2rem; font-family: var(--font-mono); }

/* ── AUDIENCE (staff / access badges) ── */
#audience { background: var(--bg); }
.badge-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.3rem; margin-top: 3rem; }
.badge-card { background: var(--bg-3); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); transition: transform 0.25s, box-shadow 0.25s; }
.badge-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.badge-stripe { height: 8px; }
.badge-stripe.stripe-red { background: var(--accent-red); }
.badge-stripe.stripe-gold { background: var(--accent-gold); }
.badge-stripe.stripe-green { background: var(--accent-green); }
.badge-stripe.stripe-carbon { background: var(--accent-carbon); }
.badge-body { padding: 1.6rem 1.4rem 1.5rem; }
.badge-photo { width: 52px; height: 52px; border-radius: 50%; background: var(--bg-2); border: 1.5px solid var(--ink-faint); color: var(--ink); display: flex; align-items: center; justify-content: center; margin: 0 auto 0.9rem; }
.badge-role { font-family: var(--font-mono); font-weight: 700; font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; text-align: center; margin-bottom: 0.3rem; }
.badge-role.role-red { color: var(--accent-red); }
.badge-role.role-gold { color: var(--accent-gold); }
.badge-role.role-green { color: var(--accent-green); }
.badge-role.role-carbon { color: var(--accent-carbon); }
.badge-title { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; text-align: center; margin-bottom: 0.9rem; color: var(--ink); }
.badge-perf { border-top: 1px dashed var(--ink-faint); margin: 0 -1.4rem 1rem; }
.badge-list { display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 1.2rem; }
.badge-list li { font-size: 0.79rem; display: flex; gap: 0.5rem; align-items: flex-start; color: var(--ink); }
.badge-list .icon { width: 13px; height: 13px; stroke-width: 2.2; color: var(--accent-green); margin-top: 3px; flex-shrink: 0; }
.badge-serial {
  position: relative; overflow: hidden;
  height: 18px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 6px, transparent 6px 11px, var(--ink) 11px 14px, transparent 14px 17px);
  opacity: 0.6; margin-bottom: 0.4rem;
}
.badge-serial::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -100%; width: 60%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s ease;
}
.badge-card:hover .badge-serial::after { left: 130%; }
.badge-serial-label { font-family: var(--font-mono); font-size: 0.6rem; color: var(--ink-faint); text-align: center; letter-spacing: 0.05em; }

/* ── PRICING (the mess coupon) ── */
#pricing { background: var(--bg-2); }
.coupon-wrap { display: flex; justify-content: center; margin-top: 3rem; }
.coupon {
  position: relative; max-width: 780px; width: 100%;
  background: var(--paper); border-radius: 8px; box-shadow: var(--shadow-paper);
  display: grid; grid-template-columns: 1fr 1.3fr; overflow: visible;
}
.coupon::before, .coupon::after {
  content: ''; position: absolute; top: 50%; width: 22px; height: 22px;
  background: var(--bg-2); border: 1.5px solid var(--paper); border-radius: 50%;
  transform: translateY(-50%); box-shadow: inset 0 0 0 1.5px rgba(0,0,0,0.18);
}
.coupon::before { left: -11px; }
.coupon::after { right: -11px; }
.coupon-left { padding: 2.4rem 1.8rem; display: flex; flex-direction: column; justify-content: center; border-right: 2px dashed var(--paper-rule); position: relative; }
.coupon-rate-label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--paper-ink-soft); margin-bottom: 0.5rem; }
.coupon-rate { font-family: var(--font-mono); font-weight: 700; font-size: 3.4rem; line-height: 1; color: var(--paper-ink); }
.coupon-rate span { display: block; font-size: 0.85rem; font-weight: 500; color: var(--paper-ink-soft); margin-top: 0.6rem; letter-spacing: 0.02em; }
.stamp {
  position: absolute; bottom: 1.2rem; right: -0.5rem; width: 108px; height: 108px; border-radius: 50%;
  border: 3px solid var(--paper-stamp); color: var(--paper-stamp);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.62rem; letter-spacing: 0.03em;
  text-transform: uppercase; line-height: 1.3; transform: rotate(-11deg); opacity: 0.9;
  mix-blend-mode: multiply; padding: 0.6rem;
}
.stamp::before { content: ''; position: absolute; inset: 6px; border: 1px solid var(--paper-stamp); border-radius: 50%; }
.coupon-right { padding: 2.4rem 2rem; }
.coupon-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1.3rem; margin-bottom: 1.6rem; }
.coupon-list li { font-size: 0.82rem; display: flex; gap: 0.5rem; align-items: flex-start; color: var(--paper-ink); }
.coupon-list .icon { width: 14px; height: 14px; stroke-width: 2.3; color: var(--paper-green); margin-top: 3px; flex-shrink: 0; }

/* ── CTA (sign the register) ── */
#cta { background: var(--bg-3); position: relative; overflow: hidden; padding: 5.5rem 0; }
#cta::before {
  content: ''; position: absolute; inset: -60px; z-index: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(214,168,87,0.1), transparent 65%);
  animation: lampFlicker 6s ease-in-out infinite;
}
.cta-inner { max-width: 620px; margin: 0 auto; padding: 0 1.5rem; text-align: center; position: relative; z-index: 1; }
.cta-inner .eyebrow { justify-content: center; color: var(--accent-gold); }
.cta-inner .section-title { margin: 0 auto 1rem; }
.cta-inner .accent { color: var(--accent-gold); }
.cta-inner .section-sub { margin: 0 auto 2.4rem; }
.cta-form { display: flex; flex-direction: column; gap: 1.5rem; max-width: 420px; margin: 0 auto 1.6rem; }
.cta-field { text-align: left; }
.cta-field label { display: block; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.5rem; }
.cta-input { width: 100%; background: transparent; border: none; border-bottom: 2px solid var(--line); padding: 0.5rem 0.1rem; color: var(--ink); font-size: 1rem; font-family: var(--font-body); outline: none; transition: border-color 0.2s; }
.cta-input:focus { border-color: var(--accent-gold); }
.cta-input::placeholder { color: var(--ink-faint); }
.cta-note { font-size: 0.75rem; color: var(--ink-faint); margin-top: 1.2rem; font-family: var(--font-mono); }

/* ── FOOTER ── */
.footer-wrap { background: var(--bg-2); border-top: 2px solid var(--ink); padding: 1.6rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.78rem; color: var(--ink-soft); font-family: var(--font-mono); }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; }
.footer-brand img { height: 22px; width: 22px; object-fit: contain; border-radius: 5px; }
.footer-brand span { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.footer-links { display: flex; gap: 1.3rem; }
.footer-links a { color: var(--ink-soft); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--ink); }

/* ── REVEAL / MOTION ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.06s; }
.reveal-d2 { transition-delay: 0.12s; }
.reveal-d3 { transition-delay: 0.18s; }

@keyframes stampDown {
  0% { transform: rotate(-11deg) scale(1.6); opacity: 0; }
  70% { transform: rotate(-11deg) scale(0.95); opacity: 0.9; }
  100% { transform: rotate(-11deg) scale(1); opacity: 0.9; }
}
.stamp.stamped { animation: stampDown 0.5s ease-out both; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal, .hero-copy .eyebrow, .hero-title, .hero-sub, .hero-btns, .ledger-scene, .ledger-row, .live-card { opacity: 1 !important; transform: none !important; }
}

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .ledger-scene { order: -1; width: 100%; max-width: 520px; margin: 0 auto 1rem; }
  .showcase-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; gap: 2.5rem; }
  .reg-grid { grid-template-columns: 1fr; }
  .entry.wide { grid-column: span 1; }
  .notice-grid { grid-template-columns: repeat(2,1fr); }
  .badge-grid { grid-template-columns: repeat(2,1fr); max-width: 560px; margin-left: auto; margin-right: auto; }
  .how-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .coupon { grid-template-columns: 1fr; }
  .coupon-left { border-right: none; border-bottom: 2px dashed var(--paper-rule); }
  .coupon::before, .coupon::after { display: none; }
  .stamp { position: static; margin: 1.2rem auto 0; }
}
@media (max-width: 700px) {
  .notice-grid { grid-template-columns: 1fr; }
  .coupon-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 4rem 0; }
  #hero { padding: 7rem 0 0; }
  .hero-title { font-size: 2.1rem; }
  .totals-row { justify-content: flex-start; }
  .badge-grid { grid-template-columns: 1fr; max-width: 320px; }

  /* Below tablet width the paper/live overlap composition has no room to
     read correctly (text wraps, cards collide) — stack them cleanly instead. */
  .ledger-scene { position: static; display: flex; flex-direction: column; gap: 1.1rem; min-height: 0; max-width: 360px; }
  .ledger-page, .live-card { position: static; width: 100%; transform: none; }
  .ledger-connector { display: none; }
  .ledger-page::before { content: none; }
}
