/* ==========================================================================
   Nommi website — shared styles
   Brand tokens follow the Nommi design system (WokColor.swift)
   and the brand world boards in the brand guide.
   ========================================================================== */

@font-face {
  font-family: "Archivo Black";
  src: url("../fonts/archivo-black.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* palette — from app design tokens */
  --cream: #fbf4e9;
  --cream-soft: #fff9f0;
  --cream-deep: #f3ead9;
  --ink: #1f0029;
  --ink-70: rgba(31, 0, 41, 0.72);
  --muted: #6f6675;
  --lime: #adee00;
  --lime-soft: #e5ffa1;
  --lime-deep: #5f8a00;
  --coral: #ff5d4f;
  --amber: #f5a623;
  --blue: #265bff;
  --purple: #7e57c2;
  --green: #14c762;
  --danger: #fa1f33;
  --aubergine: #2b0b33;
  --aubergine-deep: #1e0524;
  --border: #e6dfd6;
  --border-ink: rgba(31, 0, 41, 0.14);
  --on-dark: #fff9f0;
  --on-dark-muted: #c9bcd2;

  --font-display: "Archivo Black", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;

  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-card: 0 12px 32px rgba(31, 0, 41, 0.09);
  --shadow-pop: 0 20px 48px rgba(31, 0, 41, 0.16);
  --container: 1180px;
  --nav-h: 72px;
}

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* keep anchored section titles clear of the fixed header */
  scroll-padding-top: 24px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -48px;
  left: 16px;
  z-index: 200;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 18px;
  border-radius: 999px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* --------------------------------------------------------------------------
   bilingual switch — dual markup (.lang-en / .lang-zh)
   a tiny inline script sets <html data-lang> before first paint;
   without JS the site degrades to English.
   -------------------------------------------------------------------------- */

html:not([data-lang="zh"]) .lang-zh {
  display: none !important;
}

html[data-lang="zh"] .lang-en {
  display: none !important;
}

/* --------------------------------------------------------------------------
   header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(251, 244, 233, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.site-header.on-dark {
  color: var(--on-dark);
}

.site-header.on-dark.scrolled {
  background: rgba(251, 244, 233, 0.9);
  border-bottom-color: var(--border);
  color: var(--ink);
}

.site-header.on-dark.scrolled .lang-toggle {
  border-color: var(--border-ink);
}

.site-header.on-dark.scrolled .lang-toggle button.active {
  background: var(--ink);
  color: var(--cream);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}

.brand-badge {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  overflow: hidden;
  flex: none;
  box-shadow: 0 4px 12px rgba(31, 0, 41, 0.22);
}

.brand-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-inline: auto;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.82;
  transition: opacity 0.2s ease;
}

.main-nav a:hover {
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

/* language segmented control */
.lang-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border-ink);
  background: transparent;
}

.on-dark .lang-toggle {
  border-color: rgba(255, 249, 240, 0.28);
}

.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  font: 600 0.85rem/1 var(--font-body);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.lang-toggle button.active {
  background: var(--ink);
  color: var(--cream);
  opacity: 1;
}

.on-dark .lang-toggle button.active {
  background: var(--lime);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-lime {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(173, 238, 0, 0.32);
}

.btn-lime:hover {
  box-shadow: 0 14px 32px rgba(173, 238, 0, 0.42);
}

.btn-ink {
  background: var(--ink);
  color: var(--cream);
}

.btn-ghost {
  background: transparent;
  border: 1.5px solid currentColor;
  color: inherit;
}

.btn-sm {
  min-height: 42px;
  padding: 0 20px;
  font-size: 0.92rem;
}

.btn .btn-icon {
  width: 18px;
  height: 18px;
  flex: none;
}

/* --------------------------------------------------------------------------
   hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--aubergine);
  color: var(--on-dark);
  padding: calc(var(--nav-h) + 72px) 0 110px;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.hero::before {
  width: 560px;
  height: 560px;
  background: rgba(173, 238, 0, 0.16);
  top: -180px;
  right: -120px;
}

.hero::after {
  width: 480px;
  height: 480px;
  background: rgba(255, 93, 79, 0.14);
  bottom: -220px;
  left: -140px;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: center;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border: 1px solid rgba(255, 249, 240, 0.24);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-bottom: 26px;
}

.hero-eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(173, 238, 0, 0.9);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.7rem, 6.4vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 26px;
}

/* line mask for the GSAP entrance; keeps .lang-en/.lang-zh markup intact */
.hero-line {
  display: block;
  overflow: hidden;
  padding-block: 0.04em;
}

.hero-line > span {
  display: inline-block;
  will-change: transform;
}

.hero-title .accent {
  color: var(--lime);
}

.hero-title .accent-outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--on-dark);
}

.hero-sub {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--on-dark-muted);
  max-width: 34em;
  margin-bottom: 38px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-note {
  font-size: 0.88rem;
  color: var(--on-dark-muted);
}

/* mascot stage */
.hero-stage {
  position: relative;
  min-height: 480px;
}

.hero-stage .mascot-card {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(400px, 86%);
  aspect-ratio: 1;
  border-radius: 26%;
  overflow: hidden;
  border: 6px solid rgba(255, 249, 240, 0.14);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
  will-change: transform;
}

.hero-stage .mascot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shape {
  position: absolute;
  pointer-events: none;
  will-change: transform;
}

.shape-ring {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 22px solid transparent;
  background: linear-gradient(var(--aubergine), var(--aubergine)) padding-box,
    linear-gradient(135deg, var(--lime), #4d6a00) border-box;
  top: -8%;
  right: 2%;
}

.shape-capsule {
  width: 110px;
  height: 46px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4d7dff, #1e3fd1);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.4);
  bottom: 12%;
  left: -4%;
  rotate: -24deg;
}

.shape-coral {
  width: 120px;
  height: 120px;
  background: var(--coral);
  border-radius: 58% 42% 55% 45% / 55% 48% 52% 45%;
  bottom: -4%;
  right: 10%;
  opacity: 0.92;
}

.shape-star {
  top: 16%;
  left: 6%;
  color: var(--lime-soft);
}

/* --------------------------------------------------------------------------
   marquee
   -------------------------------------------------------------------------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--ink);
  background: var(--lime);
  color: var(--ink);
  padding: 18px 0;
}

.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  will-change: transform;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 56px;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.marquee-item .sep {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
  flex: none;
}

/* food gallery marquee */
.gallery {
  padding: 72px 0 0;
}

.gallery-track {
  display: flex;
  gap: 22px;
  width: max-content;
  will-change: transform;
}

.gallery-track figure {
  margin: 0;
  width: 240px;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.gallery-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   sections
   -------------------------------------------------------------------------- */

.section {
  padding: 96px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime-deep);
  margin-bottom: 16px;
}

.eyebrow .num {
  font-size: 1.1rem;
  color: var(--ink);
  opacity: 0.35;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  margin-bottom: 18px;
}

.section-lead {
  color: var(--muted);
  font-size: 1.06rem;
}

/* DNA tiles — poster grid */
.dna-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  gap: 1px;
}

.dna-tile {
  background: var(--cream);
  padding: 30px 26px 34px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 22px;
}

.dna-tile .word {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin-bottom: 12px;
}

/* the English brand word stays visible as a small label under the Chinese word */
.dna-tile .word .lang-zh small {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-top: 7px;
}

.dna-tile .glyph {
  width: 46px;
  height: 46px;
  flex: none;
}

.dna-tile p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
}

.dna-tile:nth-child(1) .glyph { color: var(--lime-deep); }
.dna-tile:nth-child(2) .glyph { color: var(--coral); }
.dna-tile:nth-child(3) .glyph { color: var(--blue); }
.dna-tile:nth-child(4) .glyph { color: var(--aubergine); }
.dna-tile:nth-child(5) .glyph { color: var(--amber); }

/* feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px 34px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.feature-card .icon-tile {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex: none;
}

.feature-card .icon-tile svg {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  font-size: 1.28rem;
}

.feature-card .en-name {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.65;
}

/* wide banner (pantry smart capture) */
.banner {
  margin-top: 26px;
  background: var(--cream-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.banner h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin-bottom: 14px;
}

.banner p {
  color: var(--muted);
  max-width: 36em;
}

.banner-art {
  display: grid;
  place-items: center;
  padding: 8px 0;
}

/* hand-built inventory mock — matches the import-card mocks */
.mock-inventory {
  width: min(330px, 100%);
  background: var(--cream);
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 8px 8px 0 var(--lime);
}

.mock-inventory .inv-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1.5px solid var(--ink);
}

.mock-inventory .inv-scan {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--lime);
  display: grid;
  place-items: center;
  flex: none;
}

.mock-inventory .inv-scan svg {
  width: 20px;
  height: 20px;
  color: var(--ink);
}

.mock-inventory .inv-lines {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mock-inventory .inv-line {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--border);
}

.mock-inventory .inv-line.short {
  width: 62%;
}

.mock-inventory .inv-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-ink);
}

.mock-inventory .inv-row:last-child {
  border-bottom: 0;
  padding-bottom: 2px;
}

.mock-inventory .inv-thumb {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1.5px solid var(--border-ink);
  flex: none;
}

.mock-inventory .inv-chip {
  flex: none;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
}

.mock-inventory .inv-chip.fresh { background: #e6f9ee; color: #0e8a48; }
.mock-inventory .inv-chip.expiring { background: #ffe4e1; color: #b3301f; }
.mock-inventory .inv-chip.buy { background: #e3ecff; color: #1c3fae; }

/* import cards */
.import-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.import-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.import-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.import-media {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.import-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.import-media .mock {
  position: relative;
  z-index: 1;
}

.import-body {
  padding: 26px 26px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.import-body .tag {
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--lime-soft);
  color: var(--ink);
}

.import-body .tag.offline { background: #ffe4e1; color: #b3301f; }
.import-body .tag.cloud { background: #e3ecff; color: #1c3fae; }

.import-body h3 {
  font-size: 1.24rem;
}

.import-body p {
  font-size: 0.96rem;
  color: var(--muted);
  line-height: 1.65;
}

/* mini mock: link import */
.mock-link {
  width: 74%;
  background: var(--cream);
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 6px 6px 0 var(--lime);
}

.mock-link .bar {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.mock-link .bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
}

.mock-link .bar i:first-child { background: var(--coral); }
.mock-link .bar i:nth-child(2) { background: var(--amber); }
.mock-link .bar i:nth-child(3) { background: var(--green); }

.mock-link .field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid var(--border-ink);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.mock-link .field svg {
  width: 16px;
  height: 16px;
  color: var(--lime-deep);
  flex: none;
}

/* mini mock: camera import */
.mock-camera {
  width: 50%;
  aspect-ratio: 3 / 3.4;
  border: 3px solid var(--ink);
  border-radius: 22px;
  position: relative;
  background: var(--cream-soft);
  box-shadow: 8px 8px 0 var(--coral);
}

.mock-camera .corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border: 3.5px solid var(--lime-deep);
}

.mock-camera .corner.tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.mock-camera .corner.tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.mock-camera .corner.bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.mock-camera .corner.br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

.mock-camera .shutter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  translate: -50% 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--lime);
  border: 3px solid var(--ink);
  display: grid;
  place-items: center;
}

/* cooking (dark section) */
.cooking {
  background: var(--aubergine);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}

.cooking::before {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: rgba(173, 238, 0, 0.1);
  filter: blur(110px);
  top: -160px;
  left: -180px;
}

.cooking-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.cooking .eyebrow { color: var(--lime); }
.cooking .section-lead { color: var(--on-dark-muted); }

.cooking-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 34px;
}

.cooking-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.cooking-list .li-num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--lime);
  border: 1.5px solid rgba(173, 238, 0, 0.5);
  border-radius: 999px;
  min-width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: none;
}

.cooking-list strong {
  display: block;
  font-size: 1.06rem;
  margin-bottom: 3px;
}

.cooking-list span {
  color: var(--on-dark-muted);
  font-size: 0.95rem;
}

/* timer mock */
.timer-card {
  background: rgba(255, 249, 240, 0.06);
  border: 1px solid rgba(255, 249, 240, 0.14);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  backdrop-filter: blur(6px);
}

.timer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
}

.timer-top .chip {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255, 249, 240, 0.12);
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--on-dark-muted);
}

.timer-top .step {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--lime);
}

.timer-digits {
  font-family: var(--font-display);
  font-size: clamp(4rem, 7vw, 5.6rem);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 26px;
  font-variant-numeric: tabular-nums;
}

.timer-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 249, 240, 0.12);
  overflow: hidden;
  margin-bottom: 30px;
}

.timer-bar i {
  display: block;
  height: 100%;
  width: 58%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--amber), var(--lime));
  transform-origin: left center;
}

.timer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.timer-foot .hint {
  color: var(--on-dark-muted);
  font-size: 0.92rem;
}

.pause-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--lime);
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(173, 238, 0, 0.35);
}

.pause-btn svg {
  width: 20px;
  height: 20px;
  color: var(--ink);
}

/* health */
.health-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.ring-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-card);
}

.ring-wrap {
  position: relative;
  width: min(300px, 100%);
}

.ring-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

.ring-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 2px;
}

.ring-center .score {
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 1;
}

.ring-center .score-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.metric-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 34px;
}

.metric-list li {
  display: grid;
  grid-template-columns: 92px 1fr 64px;
  align-items: center;
  gap: 18px;
}

.metric-list .m-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.metric-list .m-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--cream-deep);
  overflow: hidden;
}

.metric-list .m-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  transform-origin: left center;
}

.metric-list .m-val {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: right;
  color: var(--muted);
}

.health-note {
  margin-top: 26px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* trust strip */
.trust-strip {
  border-block: 1px solid var(--border);
  background: var(--cream-soft);
  padding: 40px 0;
}

.trust-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.trust-item {
  display: flex;
  gap: 16px;
  align-items: center;
}

.trust-item svg {
  width: 40px;
  height: 40px;
  flex: none;
  color: var(--lime-deep);
}

.trust-item strong {
  display: block;
  font-size: 1.02rem;
}

.trust-item span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.price-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.price-card.featured {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
  position: relative;
  overflow: hidden;
}

.price-card.featured::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(173, 238, 0, 0.18);
  filter: blur(70px);
  top: -80px;
  right: -80px;
}

.price-card .plan {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.price-card.featured .plan { color: var(--lime); }

.price-card .price {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
}

.price-card .price small {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: inherit;
  opacity: 0.6;
}

.price-card ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-block: 6px 10px;
}

.price-card li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.97rem;
}

.price-card li svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 3px;
  color: var(--lime-deep);
}

.price-card.featured li svg { color: var(--lime); }

.price-card .btn { margin-top: auto; }

.price-note {
  margin-top: 22px;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

/* final CTA */
.final-cta {
  background: var(--lime);
  border-top: 1px solid var(--ink);
  padding: 88px 0;
  text-align: center;
}

.final-cta h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 4rem);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.final-cta p {
  color: var(--ink-70);
  max-width: 40em;
  margin: 0 auto 34px;
}

/* --------------------------------------------------------------------------
   footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--aubergine-deep);
  color: var(--on-dark);
  padding: 72px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand p {
  color: var(--on-dark-muted);
  font-size: 0.95rem;
  margin-top: 18px;
  max-width: 26em;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a,
.footer-col button {
  color: var(--on-dark-muted);
  font-size: 0.95rem;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s ease;
}

.footer-col a:hover,
.footer-col button:hover {
  color: var(--on-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 249, 240, 0.12);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--on-dark-muted);
}

.footer-bottom .lang-toggle {
  border-color: rgba(255, 249, 240, 0.28);
}

/* --------------------------------------------------------------------------
   document pages (privacy / terms)
   -------------------------------------------------------------------------- */

.doc-hero {
  background: var(--aubergine);
  color: var(--on-dark);
  padding: calc(var(--nav-h) + 64px) 0 56px;
}

.doc-hero .eyebrow { color: var(--lime); }

.doc-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.doc-hero .doc-meta {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  color: var(--on-dark-muted);
  font-size: 0.92rem;
}

.doc-layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 64px;
  padding: 72px 0 110px;
}

.doc-toc {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
  align-self: start;
  max-height: calc(100vh - var(--nav-h) - 56px);
  overflow: auto;
  padding-right: 8px;
}

.doc-toc .toc-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.doc-toc ol {
  display: flex;
  flex-direction: column;
  gap: 2px;
  counter-reset: toc;
}

.doc-toc a {
  display: block;
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
  border-left: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

.doc-toc a:hover {
  background: rgba(31, 0, 41, 0.05);
  color: var(--ink);
}

.doc-toc a.active {
  background: rgba(173, 238, 0, 0.18);
  border-left-color: var(--lime-deep);
  color: var(--ink);
  font-weight: 600;
}

.doc-body {
  max-width: 760px;
}

.doc-body > p {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 1.02rem;
}

.policy-sec {
  padding: 34px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

.policy-sec h2 {
  font-size: 1.5rem;
  margin-bottom: 18px;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

.policy-sec h3 {
  font-size: 1.12rem;
  margin: 26px 0 12px;
}

.policy-sec p {
  color: var(--ink-70);
  margin-bottom: 14px;
}

.policy-sec ul,
.policy-sec ol {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 16px;
  padding-left: 22px;
  list-style: disc;
  color: var(--ink-70);
}

.policy-sec ol {
  list-style: decimal;
}

.policy-sec li::marker {
  color: var(--lime-deep);
  font-weight: 700;
}

.policy-sec strong {
  color: var(--ink);
}

.policy-sec a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.policy-sec a:hover {
  background: rgba(173, 238, 0, 0.25);
}

.doc-callout {
  background: var(--cream-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--lime-deep);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-bottom: 16px;
}

.doc-callout p {
  margin: 0;
  font-size: 0.95rem;
}

.doc-bottom-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   reveal defaults (JS enhances; content stays visible without JS)
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1020px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .dna-grid { grid-template-columns: repeat(3, 1fr); }
  .dna-tile:last-child { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .doc-layout { grid-template-columns: 1fr; gap: 40px; }
  .doc-toc {
    position: static;
    max-height: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    background: var(--cream-soft);
  }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .hero { padding-bottom: 84px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-stage { min-height: 380px; }
  .cooking-grid,
  .health-grid,
  .banner,
  .pricing-grid { grid-template-columns: 1fr; }
  .banner { padding: 32px 28px; }
  .import-grid { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: 1fr; gap: 20px; }
  .section { padding: 72px 0; }
}

@media (max-width: 640px) {
  .header-actions .btn { display: none; }
}

@media (max-width: 560px) {
  .dna-grid { grid-template-columns: 1fr 1fr; }
  .dna-tile:last-child { grid-column: span 2; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-cta .btn { width: 100%; }
  .timer-card { padding: 32px 24px; }
  .ring-card { padding: 30px; }
  .metric-list li { grid-template-columns: 80px 1fr 58px; }
}

/* --------------------------------------------------------------------------
   reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
