/* ==========================================================================
   NFC IRAQ - homepage design system (2026 rebrand)
   Loaded ONLY by index.html. The other pages (login, dashboard, terms,
   support, delete, forgot-password) still use style.css - do not merge
   these two files or those pages will break.

   The visual language deliberately matches the iOS app: large radii, layered
   radial glows, deep shadows, gradient gold accents.
   ========================================================================== */

:root {
  --green: #0e3b2e;
  --green-deep: #061d16;
  --green-mid: #195443;
  --green-soft: #e6f0eb;
  --gold: #c9a227;
  --gold-bright: #dfbc36;
  --gold-soft: #f2e7bf;
  --paper: #fbfaf6;
  --white: #ffffff;
  --ink: #121514;
  --muted: #6b746f;
  --line: #dce2de;

  --radius: 22px;
  --radius-sm: 14px;
  --radius-pill: 999px;

  --shadow-sm: 0 10px 26px rgba(6, 29, 22, 0.09);
  --shadow-md: 0 18px 42px rgba(6, 29, 22, 0.13);
  --shadow-lg: 0 28px 64px rgba(6, 29, 22, 0.18);

/* --- surface / text tokens (these are what dark mode swaps) --- */
  --page: #fbfaf6;
  --surface: #ffffff;
  --surface-alt: #e6f0eb;
  --text: #121514;
  --text-muted: #57605b;
  --text-brand: #0e3b2e;
  --border: #dce2de;
  --border-alt: #cbdcd4;
  --gold-text: #7a6210;
  --brand-fg: #0e3b2e;
  --header-bg: rgba(251, 250, 246, 0.82);
  --carousel-bg: #123F2F;
  --dot-idle: rgba(6, 29, 22, 0.22);

  --maxw: 1180px;
  --pad: clamp(18px, 4vw, 44px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--page);
  line-height: 1.75;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.015em; margin: 0; }
p { margin: 0; }

/* ---------- shared layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  padding-block: clamp(56px, 9vw, 108px);
}

.section-head {
  max-width: 660px;
  margin-inline: auto;
  margin-bottom: clamp(30px, 5vw, 52px);
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.6rem, 4.2vw, 2.5rem);
  font-weight: 700;
  margin-block: 10px 12px;
}

.section-head > p:last-child {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.kicker::before {
  content: "";
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

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

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 0;
  border-radius: var(--radius-pill);
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.button-primary {
  color: var(--green-deep);
  background: linear-gradient(135deg, #f4e7b2, var(--gold-bright));
  box-shadow: 0 12px 30px rgba(201, 162, 39, 0.34);
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(201, 162, 39, 0.42);
}

/* shimmer sweep, same idea as the app */
.button-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}

.button-primary:hover::after { transform: translateX(120%); }

.button-secondary {
  color: var(--text-brand);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.button-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.button-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(8px);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px var(--pad);
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--brand-fg);
  flex: 0 0 auto;
}


.site-nav {
  display: flex;
  gap: 22px;
  margin-inline: auto;
  font-size: 0.92rem;
  font-weight: 600;
}

.site-nav a {
  position: relative;
  color: var(--text-muted);
  padding-block: 4px;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.24s ease;
}

.site-nav a:hover { color: var(--text-brand); }
.site-nav a:hover::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.language-switcher { display: inline-flex; gap: 4px; }

.lang-toggle {
  padding: 7px 12px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-toggle:hover { color: var(--text-brand); border-color: var(--text-brand); }

.header-action {
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green-deep);
  background: linear-gradient(135deg, #f4e7b2, var(--gold-bright));
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 20px rgba(201, 162, 39, 0.3);
  transition: transform 0.2s ease;
}

.header-action:hover { transform: translateY(-1px); }

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

.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(64px, 11vw, 132px);
  color: var(--white);
  background:
    radial-gradient(circle at 88% 12%, rgba(201, 162, 39, 0.3), transparent 42%),
    radial-gradient(circle at 6% 78%, rgba(37, 121, 91, 0.42), transparent 44%),
    linear-gradient(155deg, #0b3227 0%, var(--green-deep) 58%, #03110d 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 72%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  margin-block: 14px 16px;
}

.hero h1 .grad {
  background: linear-gradient(120deg, var(--gold-bright), #f4e7b2 60%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  color: #cfdcd6;
  max-width: 52ch;
  margin-bottom: 22px;
}

.hero-price {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 11px 20px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
}

.hero-price strong { font-size: 1.16rem; color: var(--gold-bright); }
.hero-price span { font-size: 0.85rem; color: #b9c7c1; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.84rem;
  color: #b9c7c1;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-badges span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- hero phone: real iPhone geometry ----------
   The device is built at true logical size - 393 x 852 screen, which is the
   iPhone 15/16 Pro CSS resolution - and then scaled as a whole with --ps.
   Building at 1:1 and scaling keeps every proportion exactly right instead of
   guessing at reduced sizes.

   What is on the screen is the REAL bio page: the same markup that
   functions/_lib/bio-render.js emits, with the same values as bio.css, using
   the "mono" theme from BIO_THEMES (the white one in the app's page-theme
   picker): bg #E8EAE9 -> #D5D9D7, card #FFFFFF, banner/button #2B2B2B,
   button text #FFFFFF, text #1F2422, muted #5C6562, footer #4A524F.
   If those theme values ever change in bio-render.js, update them here too.
   -------------------------------------------------------------------- */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-stage {
  --ps: 0.66;
  position: relative;
  width: calc(413px * var(--ps));
  height: calc(872px * var(--ps));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@media (prefers-reduced-motion: reduce) {
  .phone-stage { animation: none; }
}

.phone-device {
  position: absolute;
  top: 0;
  left: 0;
  width: 413px;
  height: 872px;
  padding: 10px;
  transform: scale(var(--ps));
  transform-origin: top left;
  border-radius: 66px;
  background: linear-gradient(150deg, #7b8087 0%, #33383e 20%, #1a1d20 52%, #52585f 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 50px 100px rgba(0, 0, 0, 0.55),
    0 14px 34px rgba(0, 0, 0, 0.42);
}

/* side buttons */
.phone-btn {
  position: absolute;
  background: linear-gradient(180deg, #6a6f76, #303439);
  border-radius: 2px;
}

.phone-btn-action { left: -2px; top: 168px; width: 3px; height: 32px; }
.phone-btn-up     { left: -2px; top: 224px; width: 3px; height: 62px; }
.phone-btn-down   { left: -2px; top: 300px; width: 3px; height: 62px; }
.phone-btn-power  { right: -2px; top: 250px; width: 3px; height: 100px; }

.phone-screen {
  position: relative;
  width: 393px;
  height: 852px;
  border-radius: 56px;
  overflow: hidden;
  /* mono theme: --bio-bg -> --bio-bg-deep */
  background: linear-gradient(180deg, #e8eae9, #d5d9d7);
}

/* Dynamic Island */
.phone-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 125px;
  height: 36px;
  border-radius: 20px;
  background: #000;
  z-index: 3;
}

/* home indicator */
.phone-home {
  position: absolute;
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 139px;
  height: 5px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.32);
  z-index: 3;
}

/* --- the real bio page, mono theme --- */
/* mirrors .bio-shell in bio.css: min(520px, 100% - 28px), centred, gap 16 */
.bio-mock {
  width: 365px;
  height: 100%;
  margin-inline: auto;
  padding-block: 28px;
  display: grid;
  align-content: center;
  gap: 16px;
}

.bio-mock .bio-card {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background: #fff;
  color: #1f2422;
  box-shadow: 0 18px 45px rgba(6, 29, 22, 0.16);
  text-align: center;
  overflow: hidden;
}

.bio-mock .bio-cover {
  height: 118px;
  background: #2b2b2b;
}

.bio-mock .bio-card-body { padding: 28px; }

.bio-mock .bio-avatar {
  width: 96px;
  height: 96px;
  margin: -76px auto 16px;
  border-radius: 50%;
  object-fit: contain;
  border: 3px solid #2b2b2b;
  background: #fff;
  padding: 10px;
}

.bio-mock h1 {
  margin: 0;
  color: #1f2422;
  font-size: 32px;
  line-height: 1.05;
  font-weight: 700;
}

.bio-mock .bio-text {
  margin: 14px 0 0;
  color: #5c6562;
  font-size: 15px;
  line-height: 1.6;
}

.bio-mock .bio-links {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.bio-mock .bio-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff;
  background: #2b2b2b;
  font-weight: 700;
  font-size: 15px;
}

.bio-mock .bio-powered {
  color: #4a524f;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}

.phone-tap {
  position: absolute;
  inset-block-end: 22px;
  inset-inline-start: -18px;
  z-index: 4;
  padding: 9px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-deep);
  background: linear-gradient(135deg, #f4e7b2, var(--gold-bright));
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 26px rgba(201, 162, 39, 0.45);
}

/* ---------- trust strip ---------- */

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: -34px;
  position: relative;
  z-index: 5;
}

.trust-strip div {
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.trust-strip strong { display: block; font-size: 0.98rem; color: var(--text-brand); }
.trust-strip span { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- generic card ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

/* ---------- steps ---------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step {
  position: relative;
  padding: 30px 26px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-deep);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-bright));
  border-radius: 14px;
}

.step h3 { font-size: 1.08rem; margin-bottom: 7px; }
.step p { font-size: 0.92rem; color: var(--text-muted); }

/* ---------- app band (dark) ---------- */

.app-band {
  position: relative;
  color: var(--white);
  background:
    radial-gradient(circle at 12% 18%, rgba(201, 162, 39, 0.26), transparent 40%),
    radial-gradient(circle at 90% 82%, rgba(37, 121, 91, 0.4), transparent 42%),
    linear-gradient(150deg, #0b3227, var(--green-deep) 62%, #03110d);
  overflow: hidden;
}

.app-band-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(28px, 5vw, 56px);
}

.app-band h2 {
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  margin-block: 12px 14px;
}

.app-band .app-lead { color: #cfdcd6; margin-bottom: 20px; font-size: 1.02rem; }

.app-free {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  margin-bottom: 18px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--green-deep);
  background: linear-gradient(135deg, #f4e7b2, var(--gold-bright));
  border-radius: var(--radius-pill);
}

.app-points { list-style: none; margin: 0 0 20px; padding: 0; }

.app-points li {
  position: relative;
  padding-inline-start: 28px;
  margin-bottom: 10px;
  color: #e4ece8;
  font-size: 0.95rem;
}

.app-points li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.2);
}

.app-note {
  margin-bottom: 22px;
  padding: 14px 16px;
  font-size: 0.87rem;
  line-height: 1.7;
  color: #cfdcd6;
  background: rgba(255, 255, 255, 0.06);
  border-inline-start: 3px solid var(--gold);
  border-radius: var(--radius-sm);
}

.app-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  backdrop-filter: blur(8px);
  transition: all 0.22s ease;
}

.store-button svg { width: 26px; height: 26px; flex: 0 0 auto; fill: currentColor; }
.store-button span { display: flex; flex-direction: column; line-height: 1.2; text-align: start; }
.store-button small { font-size: 0.68rem; opacity: 0.82; }
.store-button strong { font-size: 1rem; }

.store-live:hover {
  background: var(--surface);
  color: var(--green-deep);
  border-color: var(--white);
  transform: translateY(-2px);
}

.store-soon { opacity: 0.5; cursor: default; }
.store-soon strong { color: var(--gold-bright); }

.app-visual { display: flex; justify-content: center; }

.app-visual img {
  width: 100%;
  max-width: 330px;
  border-radius: var(--radius);
  box-shadow: 0 34px 74px rgba(0, 0, 0, 0.5);
}

.media-missing-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 330px;
  min-height: 300px;
  padding: 26px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gold-soft);
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
}

/* ---------- smart page band ---------- */

.smart-band { background: var(--surface-alt); }

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

.smart-card {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--border-alt);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.smart-card strong { display: block; font-size: 1.02rem; color: var(--text-brand); margin-bottom: 5px; }
.smart-card span { font-size: 0.9rem; color: var(--text-muted); }

/* ---------- products ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  display: grid;
  grid-template-columns: 42% 1fr;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.carousel {
  position: relative;
  min-height: 300px;
  background: var(--carousel-bg);
  overflow: hidden;
}

.carousel-track {
  display: flex;
  direction: ltr;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 16px 38px;
}

.carousel-slide img {
  width: 100%;
  max-height: 250px;
  object-fit: contain;
}

.carousel-slide.media-missing {
  flex-direction: column;
  gap: 12px;
  text-align: center;
  color: var(--white);
  background:
    radial-gradient(circle at 70% 20%, rgba(201, 162, 39, 0.28), transparent 45%),
    linear-gradient(150deg, var(--green-mid), var(--green-deep));
}

.carousel-slide.media-missing::before {
  content: "";
  width: 44px;
  height: 44px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  opacity: 0.9;
}

.carousel-slide.media-missing span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-soft);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.carousel-prev { inset-inline-start: 10px; }
.carousel-next { inset-inline-end: 10px; }

.carousel-btn svg { width: 16px; height: 16px; fill: none; stroke: var(--green); stroke-width: 2.2; }
.carousel-prev svg { transform: rotate(180deg); }

.carousel-dots {
  position: absolute;
  inset-inline: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--dot-idle);
  cursor: pointer;
}

.carousel-dot.active { background: var(--gold); width: 18px; border-radius: 4px; }

.product-content { padding: 26px 26px 28px; }

.product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin: 0;
}

.stock-badge {
  flex: 0 0 auto;
  font-size: 0.71rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.stock-in { color: #0b5136; background: #dcf3e7; border: 1px solid #b7e2cd; }
.stock-pre { color: #7a5b06; background: var(--gold-soft); border: 1px solid #e2d49a; }

.product-content h3 { font-size: 1.24rem; margin-bottom: 4px; }

.product-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 9px;
  margin-block: 6px 12px;
}

.product-price strong {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-brand);
}

.product-price span { font-size: 0.82rem; color: var(--text-muted); }

.product-content > p { font-size: 0.92rem; color: var(--text-muted); }

.product-content ul { list-style: none; margin: 14px 0; padding: 0; }

.product-content li {
  position: relative;
  padding-inline-start: 24px;
  margin-bottom: 7px;
  font-size: 0.89rem;
}

.product-content li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}

.product-bestfor {
  margin-bottom: 16px;
  padding: 11px 13px;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-muted);
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.product-bestfor strong { color: var(--text); }

.product-cta { width: 100%; }

/* ---------- bulk band ---------- */

.bulk-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding: 26px 30px;
  color: var(--white);
  background:
    radial-gradient(circle at 90% 20%, rgba(201, 162, 39, 0.26), transparent 45%),
    linear-gradient(140deg, var(--green-mid), var(--green-deep));
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.bulk-band h3 { font-size: 1.2rem; margin-bottom: 4px; }
.bulk-band p { font-size: 0.92rem; color: #cfdcd6; }

/* ---------- prices ---------- */

.tier-tables {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tier-table {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.tier-table h3 {
  font-size: 1.08rem;
  color: var(--text-brand);
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.tier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 11px;
  border-bottom: 1px dashed var(--border);
  font-size: 0.92rem;
}

.tier-row:last-child { border-bottom: 0; }
.tier-row strong { color: var(--text-brand); white-space: nowrap; }

.tier-popular {
  margin-inline: -12px;
  padding-inline: 12px;
  background: var(--gold-soft);
  border-radius: var(--radius-sm);
  border-bottom-color: transparent;
}

.tier-badge {
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 700;
  padding: 3px 8px;
  color: var(--green-deep);
  background: var(--gold-bright);
  border-radius: var(--radius-pill);
}

.prices-cta { margin-top: 28px; text-align: center; }
.prices-note { margin-top: 12px; font-size: 0.86rem; color: var(--text-muted); }

/* ---------- faq ---------- */

.faq-list { display: grid; gap: 12px; max-width: 780px; margin-inline: auto; }

.faq-list details {
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-brand);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--gold-text);
  transition: transform 0.22s ease;
}

.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { margin-top: 12px; font-size: 0.92rem; color: var(--text-muted); }

/* ---------- final cta ---------- */

.final-cta {
  text-align: center;
  color: var(--white);
  background:
    radial-gradient(circle at 20% 20%, rgba(201, 162, 39, 0.28), transparent 45%),
    radial-gradient(circle at 82% 80%, rgba(37, 121, 91, 0.4), transparent 45%),
    linear-gradient(150deg, #0b3227, var(--green-deep) 60%, #03110d);
}

.final-cta h2 {
  font-size: clamp(1.6rem, 4.4vw, 2.6rem);
  margin-block: 12px 22px;
  max-width: 20ch;
  margin-inline: auto;
}

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

.site-footer {
  padding: 40px var(--pad) 34px;
  background: var(--green-deep);
  color: #b9c7c1;
}

.footer-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: 0.88rem; }
.site-footer a { transition: color 0.2s ease; }
.site-footer a:hover { color: var(--gold-bright); }
.footer-legal { width: 100%; font-size: 0.8rem; opacity: 0.65; }

/* ---------- sticky mobile order bar ---------- */

.sticky-order {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 70;
  display: none;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(6, 29, 22, 0.94);
  backdrop-filter: blur(12px);
}

.sticky-order .button { width: 100%; }

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

@media (max-width: 980px) {
  .tier-tables { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .site-nav { display: none; }
  .hero-inner,
  .app-band-inner { grid-template-columns: 1fr; }
  /* Copy first on small screens. The phone is tall, so putting it above the
     headline pushes the price and the order button below the fold. */
  .hero-visual,
  .app-visual { order: 1; }
  .product-grid { grid-template-columns: 1fr; }
  .steps-grid,
  .smart-inner { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr; margin-top: -20px; }
}

@media (max-width: 720px) {
  .tier-tables { grid-template-columns: 1fr; }
  .product-card { grid-template-columns: 1fr; }
  .carousel { min-height: 260px; }
  .bulk-band { flex-direction: column; align-items: stretch; text-align: center; }
  .sticky-order { display: block; }
  body { padding-bottom: 76px; }
  .header-action { display: none; }
}

@media (max-width: 520px) {
  .hero-actions .button { width: 100%; }
}

/* phone scale per breakpoint - the device geometry never changes, only --ps */
@media (max-width: 1100px) { .phone-stage { --ps: 0.62; } }
@media (max-width: 900px)  { .phone-stage { --ps: 0.62; } }
@media (max-width: 420px)  { .phone-stage { --ps: 0.62; } }
@media (max-width: 360px)  { .phone-stage { --ps: 0.55; } }

/* ============================================================
   How people use it - usage scenarios + real numbers
   ============================================================ */

.cases { background: var(--surface-alt); }

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.case-card {
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  background: var(--surface);
  border: 1px solid var(--border-alt);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.case-tag {
  align-self: flex-start;
  padding: 6px 13px;
  margin-bottom: 12px;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--green-deep);
  background: var(--gold-soft);
  border-radius: var(--radius-pill);
}

.case-card h3 {
  font-size: 1.12rem;
  line-height: 1.45;
  margin-bottom: 16px;
  color: var(--text-brand);
}

.case-row { margin-bottom: 14px; }

.case-row strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.case-row p { font-size: 0.9rem; color: var(--text); }

.case-row-result {
  margin-top: auto;
  margin-bottom: 0;
  padding: 13px 15px;
  background: var(--surface-alt);
  border-inline-start: 3px solid var(--gold);
  border-radius: var(--radius-sm);
}

.case-row-result strong { color: var(--text-brand); }
.case-row-result p { font-weight: 600; color: var(--text); }

/* real numbers band */
.proof-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
  padding: 28px 30px;
  color: var(--white);
  background:
    radial-gradient(circle at 12% 20%, rgba(201, 162, 39, 0.26), transparent 45%),
    linear-gradient(140deg, var(--green-mid), var(--green-deep));
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.proof-stat { text-align: center; }

.proof-stat strong {
  display: block;
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1.2;
}

.proof-stat span {
  display: block;
  margin-top: 4px;
  font-size: 0.83rem;
  color: #cfdcd6;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .cases-grid { grid-template-columns: 1fr; }
  .proof-band { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}

@media (max-width: 480px) {
  .proof-band { grid-template-columns: 1fr; }
}

/* ==========================================================================
   DARK MODE
   Same approach as the iOS app: the page follows the OS by default, and an
   explicit choice on <html data-theme> always wins over the OS.

   Only the surface/text tokens flip. Deliberately NOT flipped:
   - the gold gradients and anything sitting on them (their text stays dark)
   - the hero / app / bulk / proof / final-cta bands, which are already dark
   - the phone mock and .bio-mock, which are a screenshot of the white "mono"
     page theme and must look identical in both modes
   ========================================================================== */

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0b1310;
    --surface: #131e19;
    --surface-alt: #0f1a16;
    --text: #e9efec;
    --text-muted: #9aa8a2;
    --text-brand: #7fc9a8;
    --border: #22302a;
    --border-alt: #22302a;
    --gold-text: #dfbc36;
    --brand-fg: #ffffff;
    --header-bg: rgba(11, 19, 16, 0.85);
    --carousel-bg: #123F2F;
    --dot-idle: rgba(255, 255, 255, 0.25);
  }
}

:root[data-theme="dark"] {
  --page: #0b1310;
  --surface: #131e19;
  --surface-alt: #0f1a16;
  --text: #e9efec;
  --text-muted: #9aa8a2;
  --text-brand: #7fc9a8;
  --border: #22302a;
  --border-alt: #22302a;
  --gold-text: #dfbc36;
  --brand-fg: #ffffff;
  --header-bg: rgba(11, 19, 16, 0.85);
  --carousel-bg: #123F2F;
  --dot-idle: rgba(255, 255, 255, 0.25);
}

/* --- carve-outs: pale gold surfaces keep dark text in dark mode --- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tier-popular,
  :root:not([data-theme="light"]) .tier-popular strong,
  :root:not([data-theme="light"]) .tier-popular span,
  :root:not([data-theme="light"]) .tier-popular em {
    color: #1a1405;
  }
  :root:not([data-theme="light"]) .stock-in {
    color: #9ff0c6; background: rgba(46, 125, 83, 0.18); border-color: rgba(46, 125, 83, 0.45);
  }
  :root:not([data-theme="light"]) .stock-pre {
    color: #f0d98a; background: rgba(201, 162, 39, 0.16); border-color: rgba(201, 162, 39, 0.42);
  }
  :root:not([data-theme="light"]) .carousel-btn { background: #1b2823; }
}

:root[data-theme="dark"] .tier-popular,
:root[data-theme="dark"] .tier-popular strong,
:root[data-theme="dark"] .tier-popular span,
:root[data-theme="dark"] .tier-popular em {
  color: #1a1405;
}

:root[data-theme="dark"] .stock-in {
  color: #9ff0c6; background: rgba(46, 125, 83, 0.18); border-color: rgba(46, 125, 83, 0.45);
}

:root[data-theme="dark"] .stock-pre {
  color: #f0d98a; background: rgba(201, 162, 39, 0.16); border-color: rgba(201, 162, 39, 0.42);
}

:root[data-theme="dark"] .carousel-btn { background: #1b2823; }

/* --- the theme toggle button --- */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover { color: var(--text-brand); border-color: var(--text-brand); }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.theme-toggle .icon-moon { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}

:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Kickers sitting on the dark bands keep the bright gold - the darker
   --gold-text exists only so gold reads on LIGHT surfaces. */
.hero .kicker,
.app-band .kicker,
.final-cta .kicker { color: var(--gold-bright); }


/* Brand logo. Two badge variants that invert with the theme:
   - logo-on-light.png = dark brand-green badge, used on the light header
   - logo-on-dark.png  = white badge, used on the dark header
   Delivered as a background-image so the browser only downloads the one that
   matches. /assets/logo.png is left untouched - the other pages and the
   favicon still point at it. */
.brand-logo {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: #143521 center / contain no-repeat url('/assets/logo-on-light.png');
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo {
    background-image: url('/assets/logo-on-dark.png');
    background-color: #ffffff;
  }
}

:root[data-theme="dark"] .brand-logo {
  background-image: url('/assets/logo-on-dark.png');
  background-color: #ffffff;
}

:root[data-theme="light"] .brand-logo {
  background-image: url('/assets/logo-on-light.png');
  background-color: #143521;
}

/* With an odd number of products the last card would sit alone in a half-width
   column. Let it span the full row instead so the grid stays balanced. */
@media (min-width: 901px) {
  .product-grid > article:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ============================================================
   Price section: two blocks (ready-made vs bulk)
   ============================================================ */

.price-block {
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 18px;
  text-align: center;
}

.price-block-bulk { margin-top: 44px; }

.price-block-title {
  display: inline-block;
  padding: 7px 18px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-deep);
  background: linear-gradient(135deg, #f4e7b2, var(--gold-bright));
  border-radius: var(--radius-pill);
}

.price-block-note {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* the per-unit figure sits under the total, on its own line */
.tier-row { flex-wrap: wrap; }

.tier-each {
  flex: 1 0 100%;
  margin-top: 2px;
  font-size: 0.76rem;
  font-style: normal;
  color: var(--text-muted);
  text-align: end;
}

.tier-tables-bulk { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1100px) {
  .tier-tables-bulk { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .tier-tables,
  .tier-tables-bulk { grid-template-columns: 1fr; }
}

/* A price grid holding a single table should not stretch across a third of the
   row - centre it at a readable width instead. */
.tier-tables-solo {
  grid-template-columns: minmax(0, 380px);
  justify-content: center;
}
