/* ==========================================================================
   Diwa Lucky — luckydiwa.com
   Direction: "Tricolour Press" — a warm bone broadsheet clamped top and bottom
   by near-black chrome. One pair of guide lines runs the whole page; every
   surface fills them. Depth comes from the tiranga swoosh and warm two-layer
   shadows, never from boxes inside boxes.
   ========================================================================== */

:root {
  color-scheme: light;

  /* brand — leaf green, hue 106 */
  --brand: #2A7D11;
  --brand-dark: #1E5C0B;
  --brand-light: #4FA32C;

  /* accent — the logo's gold, with saffron reserved for the swoosh */
  --accent: #E3A61B;
  --accent-warm: #FF8A1F;
  --accent-soft: #FBEFD2;

  /* grounds */
  --bg: #FCF9F2;
  --bg-card: #FFFFFF;
  --bg-elevated: #FFFDF8;
  --bg-panel: #F2EDE0;
  --ink: #0F1208;
  --ink-deep: #080A05;

  /* text */
  --text: #15180D;
  --text-muted: #5C6152;
  --text-dim: #868B79;
  --text-on-dark: #F4F1E6;

  /* lines */
  --border: #E4DECF;
  --border-strong: #CFC7B2;
  --border-soft: #EFEADC;

  /* type */
  --font-body: 'Mukta', 'Segoe UI', sans-serif;
  --font-heading: 'Spectral', Georgia, serif;

  /* radii — one system: cards 18, pills full, inputs 8 */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;
  --card-radius: 18px;

  /* shadows — warm, two-layer, tinted to the ground */
  --shadow-soft: 0 1px 2px rgba(42, 38, 20, .05), 0 8px 22px rgba(42, 38, 20, .05);
  --shadow-card: 0 2px 4px rgba(42, 38, 20, .05), 0 14px 34px rgba(42, 38, 20, .08);
  --shadow-card-hover: 0 4px 10px rgba(42, 38, 20, .07), 0 26px 56px rgba(42, 38, 20, .14);
  --shadow-cta: 0 2px 6px rgba(30, 92, 11, .22), 0 14px 30px rgba(30, 92, 11, .24);

  /* measure */
  --container: 1200px;
  --container-wide: 1320px;
  --header-top-h: 2.25rem;
  --header-main-h: 4.5rem;
  --header-h: calc(var(--header-top-h) + var(--header-main-h));
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.015em;
  margin: 0;
  color: var(--text);
}
p { margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brand); color: #fff; padding: .75rem 1.25rem;
  border-radius: 0 0 var(--r-sm) 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ----- D1 · the width law ----------------------------------------------
   The container cap is the ONLY cap on the page. No card, list, FAQ item,
   divider, section head or panel gets a narrower max-width.
   ---------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ----- the tiranga swoosh — the site's signature ornament ---------------- */
.swoosh {
  display: block;
  width: 86px;
  height: 5px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg,
    var(--accent-warm) 0%,
    var(--accent) 24%,
    var(--bg) 50%,
    var(--brand-light) 74%,
    var(--brand) 100%);
  box-shadow: 0 1px 3px rgba(42, 38, 20, .18);
}
.swoosh--sm { width: 54px; height: 4px; }
.swoosh--on-dark { background: linear-gradient(90deg, var(--accent-warm), var(--accent) 26%, #fff 50%, var(--brand-light) 74%, var(--brand) 100%); }

/* ----- buttons — three CTA variants ------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .55rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .01em;
  padding: .95rem 1.9rem;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s cubic-bezier(.16,1,.3,1), box-shadow .18s, background .18s, color .18s, border-color .18s;
}
.btn:active { transform: translateY(1px) scale(.985); }

/* 1 · primary — leaf green, white label (5.3:1) */
.btn--primary {
  background: linear-gradient(170deg, var(--brand-light) -20%, var(--brand) 42%, var(--brand-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-cta), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 6px 14px rgba(30,92,11,.26), 0 22px 46px rgba(30,92,11,.3), inset 0 1px 0 rgba(255,255,255,.34); }

/* 2 · gold — the logo's gold, ink label (~8:1) */
.btn--gold {
  background: linear-gradient(170deg, #F6CE5C -10%, var(--accent) 50%, #C98B0C 100%);
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(160, 110, 10, .22), 0 14px 30px rgba(160, 110, 10, .24), inset 0 1px 0 rgba(255,255,255,.45);
}
.btn--gold:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 6px 14px rgba(160,110,10,.26), 0 22px 46px rgba(160,110,10,.3), inset 0 1px 0 rgba(255,255,255,.5); }

/* 3 · ghost — hairline ink, inverts on dark chrome */
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: var(--bg-panel); color: var(--text); border-color: var(--brand); transform: translateY(-2px); }
.btn--ghost.on-dark { color: var(--text-on-dark); border-color: rgba(244, 241, 230, .34); }
.btn--ghost.on-dark:hover { background: rgba(244, 241, 230, .1); color: #fff; border-color: var(--accent); }

.btn--sm { padding: .62rem 1.3rem; font-size: .92rem; }

/* ==========================================================================
   HEADER — sticky, two rows, both dark (the logo is light-on-black)
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: var(--ink);
  border-bottom: 1px solid rgba(244, 241, 230, .1);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 10px 34px rgba(8, 10, 5, .3); }

/* top utility bar */
.header-top {
  background: var(--ink-deep);
  border-bottom: 1px solid rgba(244, 241, 230, .07);
  font-size: .8125rem;
}
.header-top .container {
  min-height: var(--header-top-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.trust-note { display: flex; align-items: center; gap: .55rem; color: rgba(244, 241, 230, .74); letter-spacing: .02em; }
.trust-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(227, 166, 27, .6);
  animation: dotPulse 2.4s ease-out infinite;
}
@keyframes dotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(227, 166, 27, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(227, 166, 27, 0); }
  100% { box-shadow: 0 0 0 0 rgba(227, 166, 27, 0); }
}
@media (prefers-reduced-motion: reduce) { .trust-dot { animation: none; } }

.utility-nav { display: flex; align-items: center; gap: 1.35rem; }
.utility-nav a { color: rgba(244, 241, 230, .72); text-decoration: none; letter-spacing: .02em; }
.utility-nav a:hover { color: var(--accent); }

/* main bar */
.header-main .container {
  min-height: var(--header-main-h);
  display: flex; align-items: center; gap: 1.5rem;
}
.brand-mark { display: inline-flex; align-items: center; flex: 0 0 auto; }
/* R6 — logos are not icons */
.brand-mark img { height: 44px; width: auto; object-fit: contain; }

.primary-nav { margin-left: auto; position: relative; }
.primary-nav ul { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  color: rgba(244, 241, 230, .82);
  text-decoration: none;
  font-weight: 600;
  font-size: .96rem;
  padding: .4rem 0;
  display: block;
  transition: color .18s;
}
.primary-nav a:hover, .primary-nav a.active { color: #fff; }
.nav-indicator {
  position: absolute; bottom: -2px; left: 0; height: 3px; width: 0;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--accent-warm), var(--accent) 40%, var(--brand-light));
  opacity: 0;
  transition: transform .3s cubic-bezier(.16,1,.3,1), width .3s cubic-bezier(.16,1,.3,1), opacity .2s;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .nav-indicator { transition: none; } }

.header-cta { flex: 0 0 auto; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid rgba(244, 241, 230, .22);
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 0;
  position: relative;
  margin-left: auto;
}
.nav-toggle span {
  position: absolute; left: 11px; width: 22px; height: 2px;
  background: var(--text-on-dark); border-radius: 2px;
  transition: transform .28s cubic-bezier(.16,1,.3,1), opacity .18s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   HERO — archetype "headline inlay"
   The art card is floated into the headline block: the H1's first line runs
   the full measure above it, the remaining lines and the lede wrap around it.
   ========================================================================== */
.hero {
  --h1-size: clamp(2.05rem, 4.1vw, 3.3rem);
  position: relative;
  background: var(--ink);
  color: var(--text-on-dark);
  padding: 4.5rem 0 5.75rem;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: var(--hero-art, none);
  background-size: cover; background-position: center;
  opacity: .5;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 8% 0%, rgba(15, 18, 8, .95) 0%, rgba(15, 18, 8, .72) 38%, rgba(15, 18, 8, .35) 68%, rgba(15, 18, 8, .55) 100%),
    linear-gradient(180deg, rgba(8, 10, 5, .55) 0%, rgba(8, 10, 5, .1) 45%, rgba(8, 10, 5, .88) 100%);
}
.hero--plain::before { background-image: none; opacity: 0; }

.hero-kicker {
  /* block-level, so the floated art card is placed on the line BELOW it */
  display: flex; width: fit-content; align-items: center; gap: .7rem;
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.hero-inlay { position: relative; }
.hero-inlay::after { content: ""; display: block; clear: both; }

/* The floated art card IS the archetype: it sits one headline line down, so the
   H1's first line runs the full measure above it and the rest of the headline
   plus the lede wrap around its left. */
.hero-art {
  float: right;
  width: 38%;
  margin: calc(var(--h1-size) * 1.16) 0 1.6rem 2.6rem;
  position: relative;
  z-index: 1;
  shape-margin: 1.5rem;
}
.hero-art-frame {
  position: relative;
  z-index: 1;
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 1px solid rgba(244, 241, 230, .2);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .34), 0 36px 70px rgba(0, 0, 0, .44);
  aspect-ratio: 4 / 3;
  background: var(--ink-deep);
}
.hero-art-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-art-frame::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 5px;
  background: linear-gradient(90deg, var(--accent-warm), var(--accent) 26%, #fff 50%, var(--brand-light) 74%, var(--brand));
}

/* the foreground object — "the fortune stamp" (pure CSS, decorative) */
.fortune-stamp {
  position: absolute;
  z-index: 2;
  top: -30px; left: -34px;
  width: 112px; height: 112px;
  transform: rotate(-7deg);
  display: grid; place-items: center;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, var(--ink) 0 6deg, var(--accent) 6deg 12deg) border-box;
  padding: 7px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .5));
}
.fortune-stamp::before {
  content: ""; position: absolute; inset: 7px;
  border-radius: 50%;
  background: var(--ink-deep);
  border: 2px solid var(--accent);
  box-shadow: inset 0 0 0 4px var(--ink-deep), inset 0 0 0 5px rgba(227, 166, 27, .45);
}
.fortune-stamp::after {
  content: ""; position: absolute;
  left: 50%; bottom: 20px; transform: translateX(-50%);
  width: 46px; height: 4px; border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--accent-warm), #fff 50%, var(--brand-light));
}
.stamp-monogram {
  position: relative;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 800;
  font-size: 2.1rem;
  line-height: 1.1;
  padding-bottom: .22em;
  color: var(--accent);
  margin-top: -.4rem;
}

.hero h1 {
  font-size: var(--h1-size);
  color: #fff;
  letter-spacing: -.022em;
  margin-bottom: 1.4rem;
  text-wrap: balance;
}
/* D3.3 — exactly one italic accent word, with descender clearance */
.hero h1 .highlight {
  font-style: italic;
  color: var(--accent);
  line-height: 1.1;
  padding-bottom: .12em;
  background: linear-gradient(transparent 62%, rgba(227, 166, 27, .26) 62% 92%, transparent 92%);
}

.hero-sub {
  font-size: 1.1875rem;
  color: rgba(244, 241, 230, .9);
  margin-bottom: 1.2rem;
}

.page-meta {
  font-size: .88rem;
  color: rgba(244, 241, 230, .6);
  margin-bottom: 1.9rem;
  letter-spacing: .01em;
}
.page-meta-author { color: var(--accent); font-weight: 600; }

.hero-cta { display: flex; flex-wrap: wrap; gap: .95rem; clear: both; padding-top: .4rem; }

/* ----- hero-bridge stat strip — normal flow, never absolute ------------- */
.stat-strip { position: relative; z-index: 5; }
.stat-strip .container { margin-top: -3.25rem; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.stat-cell {
  background: var(--bg-card);
  padding: 1.6rem 1.5rem;
  text-align: left;
}
.stat-cell strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--brand-dark);
  letter-spacing: -.02em;
}
.stat-cell span {
  display: block;
  margin-top: .3rem;
  font-size: .86rem;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   SECTIONS — shared scaffolding
   ========================================================================== */
.section { padding: 4.5rem 0; }
.section--tight { padding: 3rem 0; }
.section--panel { background: var(--bg-panel); }
.section--ink { background: var(--ink); color: var(--text-on-dark); }
.section--ink h2, .section--ink h3, .section--ink h4 { color: #fff; }

/* section head — D1: no max-width here either */
.section-head { margin-bottom: 2.4rem; }
.section-head .swoosh { margin-bottom: 1rem; }
.kicker {
  display: block;
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--brand);
  margin-bottom: .6rem;
}
.section--ink .kicker { color: var(--accent); }
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  text-wrap: balance;
}
.section-head h2 em { font-style: italic; color: var(--brand); line-height: 1.1; padding-bottom: .08em; }
.section--ink .section-head h2 em { color: var(--accent); }
.section-head > p { margin-top: .95rem; color: var(--text-muted); font-size: 1.0625rem; }
.section--ink .section-head > p { color: rgba(244, 241, 230, .76); }

/* intro block — R8, every lede past the first */
.intro-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--card-radius);
  padding: 1.9rem 2.1rem;
  box-shadow: var(--shadow-soft);
  margin-bottom: 2.6rem;
}
.intro-block p { color: var(--text-muted); }

/* ----- the card — D7 -------------------------------------------------- */
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 1.9rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--accent-warm), var(--accent) 26%, var(--bg) 50%, var(--brand-light) 74%, var(--brand));
  opacity: .9;
}
.card::after {
  content: attr(data-mark);
  position: absolute; right: .8rem; bottom: .2rem;
  font-family: var(--font-heading); font-style: italic; font-weight: 800;
  font-size: 3.4rem; line-height: 1;
  color: rgba(42, 125, 17, .07);
  pointer-events: none;
  transition: color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.card:hover::after { color: rgba(227, 166, 27, .22); }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }

.card h3 { font-size: 1.3rem; margin-bottom: .75rem; }
.card p { color: var(--text-muted); }

/* ----- R3 · floor-grid, column count follows item count ----------------- */
.floor-grid { display: grid; gap: 1.5rem; }
.floor-grid--cols-1 { grid-template-columns: minmax(0, 1fr); }
.floor-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.floor-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.floor-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ----- R4b · rich tile layout ------------------------------------------ */
.floor-grid--rich { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
.floor-grid--rich .card { padding: 2.4rem; }
.floor-grid--rich .card h3 { font-size: 1.45rem; margin-bottom: .9rem; }
.floor-grid--rich .card h4 {
  font-family: var(--font-body);
  font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--brand-dark);
  border-top: 2px solid var(--brand);
  padding-top: .85rem;
  margin: 1.7rem 0 .9rem;
}
.rich-list { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .8rem; }
.rich-list li {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 1rem 1.15rem 1rem 1.45rem;
  color: var(--text-muted);
  overflow: hidden;
}
.rich-list li::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--accent-warm), var(--accent) 35%, var(--brand-light) 70%, var(--brand));
}

/* ----- split layout ----------------------------------------------------- */
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 3rem;
  align-items: center;
}
.split-layout--rev .split-media { order: -1; }
.split-media {
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
  background: var(--bg-panel);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-body > p { color: var(--text-muted); }

/* ----- feature check-list ----------------------------------------------- */
.feature-check-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .85rem; }
.feature-check-list li {
  position: relative;
  padding: .95rem 1.2rem .95rem 3.3rem;
  background: linear-gradient(100deg, var(--accent-soft), rgba(251, 239, 210, .3));
  border: 1px solid rgba(227, 166, 27, .3);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-md);
  color: var(--text);
  font-weight: 500;
}
.feature-check-list li::before {
  content: "";
  position: absolute; left: 1.15rem; top: 1.18rem;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
}
.feature-check-list li::after {
  content: "";
  position: absolute; left: 1.52rem; top: 1.45rem;
  width: 5px; height: 10px;
  border: solid var(--ink);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.feature-check-list--plain { margin-top: 0; }

.plain-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 2.2rem 2.4rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}
.plain-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--accent-warm), var(--accent) 26%, var(--bg) 50%, var(--brand-light) 74%, var(--brand));
}
.plain-card p { color: var(--text-muted); }
.plain-card ol { color: var(--text-muted); padding-left: 1.3rem; }
.plain-card ol li { margin-bottom: .6rem; }
.plain-card > ul:not([class]) { color: var(--text-muted); padding-left: 1.2rem; }

/* ----- R5b · image divider — a contained figure, never a banner --------- */
.image-divider {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  margin: 3.2rem 0;
}
.image-divider figure { margin: 0; }
.divider-media {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  background: var(--bg-panel);
}
.divider-media img { width: 100%; height: 100%; object-fit: cover; }
.divider-aside { padding: .5rem 0; }
.divider-aside .kicker { margin-bottom: .75rem; }
.divider-aside h3 { font-size: 1.4rem; }
.divider-aside .swoosh { margin-top: 1.1rem; }

/* ==========================================================================
   HOMEPAGE — six bespoke sections plus the game floor
   ========================================================================== */

/* home-intro */
.home-intro .intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 3rem;
  align-items: start;
}
.home-intro .intro-grid > div > p { color: var(--text-muted); }
.intro-pullquote {
  background: var(--ink);
  color: var(--text-on-dark);
  border-radius: var(--card-radius);
  padding: 2.2rem 2.3rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.intro-pullquote::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--accent-warm), var(--accent) 26%, #fff 50%, var(--brand-light) 74%, var(--brand));
}
.intro-pullquote p { color: rgba(244, 241, 230, .88); font-size: 1.0625rem; }
.intro-pullquote strong { color: var(--accent); }

/* home-floor — bento */
.bento-floor {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.bento-floor .card:first-child { grid-column: span 2; }
.bento-floor .card--wide { grid-column: span 2; }
.bento-floor .card:first-child h3 { font-size: 1.6rem; }

/* game section — "staggered masonry mosaic", square folder */
.game-mosaic {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 1.1rem;
}
.game-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--card-radius);
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s;
}
/* A double-width tile also spans two rows, so it stays square against the
   single-span tiles that set the row height. */
.game-tile--big { grid-column: span 2; grid-row: span 2; }
.game-tile figure { margin: 0; height: 100%; }
.game-tile img { width: 100%; height: 100%; object-fit: cover; }
.game-tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.6rem .85rem .75rem;
  background: linear-gradient(180deg, rgba(8, 10, 5, 0) 0%, rgba(8, 10, 5, .82) 55%, rgba(8, 10, 5, .94) 100%);
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}
.game-tile--big figcaption { font-size: 1.1rem; padding: 2.2rem 1.1rem 1rem; }
.game-tile::after {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  border: 0 solid var(--accent);
  transition: border-width .2s;
  pointer-events: none;
}
.game-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-card-hover); }
.game-tile:hover::after { border-width: 3px; }
@media (prefers-reduced-motion: reduce) { .game-tile:hover { transform: none; } }

/* home-secure — 4-up art-deco cells */
.security-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
.security-cell {
  background: rgba(244, 241, 230, .05);
  border: 1px solid rgba(244, 241, 230, .14);
  border-radius: var(--card-radius);
  padding: 1.9rem 1.6rem;
  position: relative;
  overflow: hidden;
}
.security-cell::before {
  content: ""; position: absolute; top: 0; left: 1.6rem; width: 44px; height: 4px;
  border-radius: 0 0 var(--r-pill) var(--r-pill);
  background: linear-gradient(90deg, var(--accent-warm), var(--accent) 40%, var(--brand-light));
}
.security-cell h3 { font-size: 1.15rem; margin-bottom: 0; }
.security-cell h3 + p { margin-top: .6rem; }
.security-cell p { color: rgba(244, 241, 230, .76); font-size: .96rem; }

/* home-rewards — bento: welcome card top-left, VIP strip across the bottom */
.rewards-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.rewards-bento .reward-welcome { grid-column: span 2; }
.rewards-bento .reward-vip { grid-column: 1 / -1; }
.reward-welcome {
  background: linear-gradient(165deg, var(--brand-light) -30%, var(--brand) 45%, var(--brand-dark) 110%);
  color: #fff;
  border-radius: var(--card-radius);
  padding: 2.2rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.reward-welcome::after {
  content: "DL";
  position: absolute; right: .6rem; bottom: -.9rem;
  font-family: var(--font-heading); font-style: italic; font-weight: 800;
  font-size: 5.5rem; line-height: 1;
  color: rgba(255, 255, 255, .13);
}
.reward-welcome h3 { color: #fff; font-size: 1.6rem; margin-bottom: .8rem; }
.reward-welcome p { color: rgba(255, 255, 255, .95); font-size: 1.22rem; line-height: 1.6; font-weight: 500; }
.reward-vip {
  background: var(--ink);
  color: var(--text-on-dark);
  border-radius: var(--card-radius);
  padding: 2rem 2.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.reward-vip::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--accent-warm), var(--accent) 26%, #fff 50%, var(--brand-light) 74%, var(--brand));
}
.reward-vip h3 { color: #fff; font-size: 1.5rem; margin-bottom: .55rem; }
.reward-vip p { color: rgba(244, 241, 230, .8); }

/* home-support — editorial card with an oversized italic watermark */
.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 3rem 3.2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}
.support-card::before {
  content: "Lucky";
  position: absolute; right: -1.5rem; bottom: -3.2rem;
  font-family: var(--font-heading); font-style: italic; font-weight: 800;
  font-size: clamp(7rem, 15vw, 13rem); line-height: 1;
  color: rgba(42, 125, 17, .055);
  pointer-events: none;
  letter-spacing: -.04em;
}
.support-card > * { position: relative; }
.support-card h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 1rem; }
.support-card p { color: var(--text-muted); }
.support-actions { display: flex; flex-direction: column; gap: .85rem; align-items: flex-start; }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq-list { display: grid; gap: .9rem; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: box-shadow .22s, border-color .22s;
}
.faq-item[open] { box-shadow: var(--shadow-card); border-color: var(--border-strong); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.3rem 3.6rem 1.3rem 1.6rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.4;
  position: relative;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute; right: 1.5rem; top: 50%;
  width: 26px; height: 26px; margin-top: -13px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background:
    linear-gradient(var(--accent), var(--accent)) center / 12px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 2px 12px no-repeat;
  transition: transform .26s cubic-bezier(.16,1,.3,1), background-color .2s;
}
.faq-item[open] summary::after { transform: rotate(135deg); }
@media (prefers-reduced-motion: reduce) { .faq-item summary::after { transition: none; } }
.faq-answer { padding: 0 1.6rem 1.5rem; color: var(--text-muted); border-top: 1px solid var(--border-soft); padding-top: 1.2rem; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--text-on-dark); margin-top: 5rem; }

.footer-cta-wrap { position: relative; z-index: 2; }
.footer-cta-wrap .container { transform: translateY(-3rem); }
.footer-cta {
  background: linear-gradient(165deg, #F6CE5C -10%, var(--accent) 48%, #C98B0C 115%);
  color: var(--ink);
  border-radius: var(--r-xl);
  padding: 2.8rem 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2.2rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(160, 110, 10, .2), 0 32px 64px rgba(160, 110, 10, .26);
}
.footer-cta::after {
  content: "Diwa Lucky";
  position: absolute; right: -1rem; bottom: -2.6rem;
  font-family: var(--font-heading); font-style: italic; font-weight: 800;
  font-size: clamp(4.5rem, 10vw, 8rem); line-height: 1;
  color: rgba(15, 18, 8, .09);
  pointer-events: none; white-space: nowrap;
  letter-spacing: -.035em;
}
.footer-cta > * { position: relative; }
.footer-cta h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); color: var(--ink); margin-bottom: .55rem; }
.footer-cta p { color: rgba(15, 18, 8, .78); }
.footer-cta .btn--primary { box-shadow: 0 4px 10px rgba(15, 18, 8, .22), 0 16px 32px rgba(15, 18, 8, .22); }

.footer-main { padding: 0 0 2.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}
.footer-brand img { height: 42px; width: auto; object-fit: contain; margin-bottom: 1.1rem; }
.footer-brand p { color: rgba(244, 241, 230, .68); font-size: .98rem; }
.pay-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; list-style: none; padding: 0; }
.pay-pills li {
  font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  padding: .35rem .85rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(244, 241, 230, .2);
  color: rgba(244, 241, 230, .8);
  background: rgba(244, 241, 230, .05);
}
.footer-col h3 {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.12rem;
  color: #fff;
  margin-bottom: .55rem;
  padding-bottom: .1em;
  line-height: 1.2;
}
.footer-col .swoosh { margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-col a { color: rgba(244, 241, 230, .72); text-decoration: none; font-size: .96rem; }
.footer-col a:hover { color: var(--accent); }

.trust-row {
  display: flex; flex-wrap: wrap; gap: .6rem;
  padding: 1.6rem 0;
  border-top: 1px solid rgba(244, 241, 230, .12);
  list-style: none; margin: 2.5rem 0 0;
}
.trust-row li {
  font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: .4rem .9rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(227, 166, 27, .35);
  color: var(--accent);
}
.footer-legal {
  border-top: 1px solid rgba(244, 241, 230, .12);
  padding: 1.4rem 0 2rem;
  font-size: .86rem;
  color: rgba(244, 241, 230, .55);
  display: flex; flex-wrap: wrap; gap: .8rem 2rem; justify-content: space-between;
}
.footer-legal p { margin: 0; }

/* ==========================================================================
   404
   ========================================================================== */
.error-page { padding: 6rem 0 5rem; text-align: center; }
.error-code {
  font-family: var(--font-heading);
  font-style: italic; font-weight: 800;
  font-size: clamp(8vw, 16vw, 22vw);
  line-height: 1.04;
  padding-bottom: .06em;
  background: linear-gradient(120deg, var(--accent-warm), var(--accent) 32%, var(--brand-light) 70%, var(--brand));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  letter-spacing: -.04em;
}
.error-page h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: .5rem 0 1rem; }
.error-page p { color: var(--text-muted); margin-bottom: 2rem; }
.error-actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   RTL support (used by locale mirrors that need it)
   ========================================================================== */
[dir="rtl"] .rich-list li { padding: 1rem 1.45rem 1rem 1.15rem; }
[dir="rtl"] .rich-list li::before { left: auto; right: 0; }
[dir="rtl"] .feature-check-list li { padding: .95rem 3.3rem .95rem 1.2rem; border-left: 1px solid rgba(227,166,27,.3); border-right: 4px solid var(--accent); }
[dir="rtl"] .feature-check-list li::before { left: auto; right: 1.15rem; }
[dir="rtl"] .feature-check-list li::after { left: auto; right: 1.52rem; }
[dir="rtl"] .intro-block { border-left: 1px solid var(--border); border-right: 4px solid var(--brand); }

/* ==========================================================================
   BREAKPOINTS
   ========================================================================== */
@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .security-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.2rem; }
  .hero-art { width: 42%; margin-left: 2rem; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .primary-nav {
    position: fixed; inset: 0;
    background: rgba(8, 10, 5, .97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: none;
    margin-left: 0;
    z-index: 95;
    padding: calc(var(--header-h) + 2rem) 1.5rem 2rem;
    overflow-y: auto;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: .25rem; }
  .primary-nav a {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    padding: .85rem 0;
    border-bottom: 1px solid rgba(244, 241, 230, .1);
  }
  .nav-indicator { display: none; }

  /* hero inlay collapses to a stack */
  .hero-art { float: none; width: 100%; margin: 0 0 1.8rem; }
  .hero-art-frame { aspect-ratio: 16 / 10; }
  .fortune-stamp { top: -24px; left: -14px; width: 92px; height: 92px; }
  .stamp-monogram { font-size: 1.7rem; }

  .floor-grid--cols-3, .floor-grid--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-floor { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-floor .card:first-child, .bento-floor .card--wide { grid-column: span 2; }
  .rewards-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rewards-bento .reward-welcome { grid-column: span 2; }
  .split-layout, .image-divider, .home-intro .intro-grid, .support-card { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .split-layout--rev .split-media { order: 0; }
  .game-mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .game-tile--big { grid-column: span 1; grid-row: span 1; }
  .game-tile--big figcaption { font-size: .86rem; padding: 1.6rem .85rem .75rem; }
  .footer-cta, .reward-vip { grid-template-columns: minmax(0, 1fr); }
  .support-card { padding: 2.2rem; }
}

@media (max-width: 700px) {
  .section { padding: 3.25rem 0; }
  .utility-nav { gap: .9rem; font-size: .76rem; }
  .trust-note span { display: none; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .plain-card { padding: 1.7rem 1.5rem; }
  .floor-grid--rich .card { padding: 1.7rem 1.5rem; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .container { padding: 0 1.1rem; }
  .stat-grid, .security-grid, .game-mosaic,
  .floor-grid--cols-2, .floor-grid--cols-3, .floor-grid--cols-4,
  .bento-floor, .rewards-bento { grid-template-columns: minmax(0, 1fr); }
  .bento-floor .card:first-child, .bento-floor .card--wide,
  .rewards-bento .reward-welcome { grid-column: span 1; }
  .hero { padding: 3rem 0 4.5rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .footer-cta { padding: 2rem 1.6rem; }
  .support-card { padding: 1.8rem 1.5rem; }
}

@media (max-width: 480px) {
  .fortune-stamp { width: 76px; height: 76px; top: -18px; left: -10px; }
  .stamp-monogram { font-size: 1.4rem; }
  .fortune-stamp::after { width: 32px; bottom: 15px; }
  .brand-mark img { height: 36px; }
}
