/* ==========================================================================
   Shubh Biodata website
   Shared stylesheet. Mobile-first; no frameworks.
   ========================================================================== */

/* ---------- Self-hosted fonts (no third-party requests) ---------- */
/* Noto Serif: SIL Open Font License 1.1. Roboto: Apache License 2.0.
   Licence texts: /assets/fonts/LICENSE-OFL.txt and LICENSE-Apache.txt */
@font-face {
  font-family: "Noto Serif";
  src: url("../fonts/NotoSerif-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --maroon: #8C1C2B;
  --maroon-light: #A62A3F;
  --maroon-dark: #5E1224;
  --maroon-ink: #3D0B16;
  --gold: #C88B14;          /* decorative only on light backgrounds */
  --gold-btn: #E5B13A;
  --gold-soft: #F3D89A;
  --gold-text: #7A5200;     /* readable gold-brown text on cream/white */
  --cream: #FFF6E6;
  --cream-deep: #FBE9CC;
  --bg: #FFFBF7;
  --surface: #FFFFFF;
  --text: #2B1210;
  --text-muted: #5C3B36;
  --line: #EBD9C3;
  --focus: #1D4ED8;

  --grad-maroon: linear-gradient(135deg, var(--maroon-light) 0%, var(--maroon-dark) 100%);

  --font-serif: "Noto Serif", "Noto Serif Devanagari", Georgia, "Times New Roman", serif;
  --font-sans: "Roboto", "Noto Sans", system-ui, -apple-system, "Segoe UI", "Noto Sans Devanagari",
    "Noto Sans Bengali", "Noto Sans Telugu", "Noto Sans Tamil", "Noto Sans Gujarati", Arial, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(61, 11, 22, .06), 0 2px 8px rgba(61, 11, 22, .06);
  --shadow: 0 6px 24px rgba(61, 11, 22, .10), 0 2px 6px rgba(61, 11, 22, .06);
  --shadow-lg: 0 24px 60px rgba(61, 11, 22, .22), 0 8px 20px rgba(61, 11, 22, .12);

  --wrap: 1160px;
  --gutter: 16px;
  --header-h: 64px;

  color-scheme: light;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--maroon); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--maroon-dark); text-decoration-thickness: 2px; }
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--maroon-ink);
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 6.2vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 4.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
strong { font-weight: 700; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--gold-btn); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--maroon-ink);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 48px;
  padding: .7em 1.4em;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 700 1rem/1.2 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-gold { background: var(--gold-btn); color: var(--maroon-ink); box-shadow: 0 4px 14px rgba(200, 139, 20, .35); }
.btn-gold:hover { background: #EDBE51; color: var(--maroon-ink); }
.btn-maroon { background: var(--maroon); color: #fff; }
.btn-maroon:hover { background: var(--maroon-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--maroon); border-color: currentColor; }
.btn-ghost:hover { background: var(--cream); color: var(--maroon-dark); }
.on-dark .btn-ghost { color: var(--cream); }
.on-dark .btn-ghost:hover { background: rgba(255, 246, 230, .1); color: #fff; }

/* "Get it on Google Play" style button, drawn in HTML/CSS (no official badge artwork). */
.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 9px 22px 9px 16px;
  background: #140507;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 12px;
  text-decoration: none;
  line-height: 1.1;
  box-shadow: 0 6px 18px rgba(20, 5, 7, .3);
  transition: transform .15s ease, box-shadow .15s ease;
}
.play-btn:hover { color: #fff; text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20, 5, 7, .35); }
.play-btn svg { width: 26px; height: 26px; flex: none; }
.play-btn small { display: block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.play-btn strong { display: block; font-size: 1.2rem; font-weight: 700; letter-spacing: .01em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 247, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--maroon);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.2rem;
  white-space: nowrap;
}
.brand:hover { color: var(--maroon-dark); text-decoration: none; }
.brand img { width: 38px; height: 38px; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-right: -8px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--maroon);
  cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
}
.site-nav a:hover { background: var(--cream); color: var(--maroon); }
.site-nav a[aria-current="page"] { color: var(--maroon); box-shadow: inset 0 -3px 0 var(--gold); border-radius: 0; }
.site-nav .nav-cta a { background: var(--maroon); color: #fff; border-radius: 999px; padding: 0 18px; }
.site-nav .nav-cta a:hover { background: var(--maroon-dark); color: #fff; }

/* Mobile navigation: collapsible only when JS is available (class set in <head>). */
@media (max-width: 899.98px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 8px var(--gutter) 16px;
    display: none;
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; align-items: stretch; }
  .js .site-nav a { width: 100%; min-height: 48px; font-size: 1.05rem; }
  .js .site-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--gold); padding-left: 16px; }
  .js .site-nav .nav-cta { margin-top: 8px; }
  .js .site-nav .nav-cta a { justify-content: center; }
  /* No-JS fallback: nav wraps under the brand. */
  html:not(.js) .header-inner { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  html:not(.js) .site-nav { width: 100%; }
}

/* ---------- Ornaments (original SVG motifs) ---------- */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gold);
  margin: 0 auto 14px;
}
.ornament::before, .ornament::after {
  content: "";
  height: 1px;
  width: 56px;
  background: linear-gradient(90deg, transparent, currentColor);
}
.ornament::after { background: linear-gradient(90deg, currentColor, transparent); }
.ornament svg { width: 28px; height: 28px; }
.section-head .ornament { justify-content: center; }

/* Scalloped edge used between sections. */
.scallop {
  height: 14px;
  background:
    radial-gradient(circle at 10px -2px, transparent 10px, var(--scallop-color, var(--cream)) 10.5px) 0 0 / 20px 14px repeat-x;
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }
.section-alt { background: var(--cream); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; margin: 0; }
.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-text);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 56px;
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(229, 177, 58, .20), transparent 70%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(166, 42, 63, .10), transparent 70%),
    var(--bg);
}
.hero::before {
  /* faint original mandala pattern */
  content: "";
  position: absolute;
  right: -180px; top: -160px;
  width: 560px; height: 560px;
  background: url("../img/mandala.svg") center / contain no-repeat;
  opacity: .22;
  pointer-events: none;
}
@media (min-width: 900px) { .hero { padding: 72px 0 96px; } .hero::before { opacity: .5; } }
.hero-grid {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; } }
.hero-logo { width: 72px; height: 72px; margin-bottom: 20px; filter: drop-shadow(0 6px 14px rgba(94, 18, 36, .25)); }
.hero h1 { margin-bottom: .35em; }
.hero h1 .accent { color: var(--maroon); display: block; }
.hero-sub { font-size: 1.15rem; color: var(--text-muted); max-width: 36em; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-points {
  list-style: none;
  margin: 28px 0 0; padding: 0;
  display: flex; flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--text-muted);
  font-size: .95rem;
}
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--maroon); flex: none; }

/* Phone mock (pure CSS) */
.hero-visual { position: relative; display: flex; justify-content: center; padding: 8px 0; width: 100%; max-width: 440px; margin: 0 auto; }
.phone {
  position: relative;
  width: min(300px, 80vw);
  aspect-ratio: 9 / 18.5;
  padding: 12px;
  background: linear-gradient(160deg, #3a0d17, #1a0509);
  border-radius: 42px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, .08);
}
.phone::before {
  /* camera notch */
  content: "";
  position: absolute;
  top: 20px; left: 50%;
  width: 10px; height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: #000;
  z-index: 2;
  box-shadow: 0 0 0 2px #2a0a10;
}
.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 32px;
  background: #F4EDE4;
  display: flex;
  flex-direction: column;
}
.phone-screen > img { width: 100%; height: 100%; object-fit: cover; }
.app-bar {
  background: var(--grad-maroon);
  color: var(--cream);
  padding: 34px 16px 12px;
  font: 700 .95rem/1.2 var(--font-serif);
  display: flex; align-items: center; justify-content: space-between;
}
.app-bar span:last-child { font: 700 .62rem/1 var(--font-sans); letter-spacing: .08em; background: var(--gold-btn); color: var(--maroon-ink); padding: 5px 8px; border-radius: 999px; }
.app-body { flex: 1; padding: 14px; display: flex; align-items: center; justify-content: center; }
.app-actions {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  padding: 10px 12px 18px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.app-actions span {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 0;
  border-radius: 10px;
  font: 700 .62rem/1 var(--font-sans);
  color: var(--maroon);
}
.app-actions span:last-child { background: var(--maroon); color: var(--cream); }
.app-actions svg { width: 16px; height: 16px; }

/* Mini biodata page used in the phone and the styles showcase. */
.bio-page {
  --p-bg: var(--cream);
  --p-ink: var(--maroon);
  --p-accent: var(--gold);
  --p-line: rgba(140, 28, 43, .22);
  position: relative;
  width: 100%;
  aspect-ratio: 210 / 297; /* A4 */
  background: var(--p-bg);
  color: var(--p-ink);
  border-radius: 4px;
  box-shadow: 0 6px 16px rgba(61, 11, 22, .16);
  padding: 9% 9% 7%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  font-size: clamp(7px, 1.9vw, 10px);
}
.bio-page::before {
  content: "";
  position: absolute; inset: 4%;
  border: 2px solid var(--p-accent);
  outline: 1px solid var(--p-accent);
  outline-offset: -6px;
  border-radius: 2px;
  pointer-events: none;
}
.bio-symbol { width: 18%; height: auto; color: var(--p-accent); margin-bottom: 3%; }
.bio-blessing { font: 700 1em/1.3 var(--font-serif); color: var(--p-ink); letter-spacing: .02em; margin-bottom: 4%; white-space: nowrap; }
.bio-title { font: 700 1.5em/1.2 var(--font-serif); color: var(--p-ink); margin-bottom: 6%; letter-spacing: .04em; }
.bio-row-wrap { display: flex; gap: 7%; width: 100%; align-items: flex-start; }
.bio-photo { flex: none; width: 30%; aspect-ratio: 4 / 5; border-radius: 50% / 40%; background: linear-gradient(180deg, var(--p-line), transparent), var(--p-bg); border: 2px solid var(--p-accent); }
.bio-lines { flex: 1; display: grid; gap: .9em; padding-top: 2%; }
.bio-section { width: 100%; margin-top: 7%; }
.bio-h { font: 700 .95em/1 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--p-ink); margin-bottom: .9em; padding-bottom: .4em; border-bottom: 1px solid var(--p-accent); }
.bio-line { display: grid; grid-template-columns: 38% 1fr; gap: 6%; margin-bottom: .75em; }
.bio-line i, .bio-lines i { display: block; height: .55em; border-radius: 2px; background: var(--p-line); }
.bio-line i:first-child { opacity: .75; }
.bio-lines i:nth-child(2) { width: 80%; }
.bio-lines i:nth-child(3) { width: 65%; }
.bio-lines i:nth-child(4) { width: 72%; }

/* Floating chips around the phone */
.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: .85rem;
  font-weight: 700;
  color: var(--maroon-ink);
  white-space: nowrap;
}
.chip svg { width: 18px; height: 18px; color: var(--maroon); }
.chip-1 { top: 12%; left: 0; }
.chip-2 { top: 46%; right: 0; }
.chip-3 { bottom: 24%; left: 0; }
@media (max-width: 479.98px) {
  .chip { font-size: .78rem; padding: 7px 11px; }
  .chip-1 { left: -4px; }
  .chip-2 { right: -4px; }
}
@media (min-width: 900px) {
  .chip-1 { left: -6%; }
  .chip-2 { right: -8%; }
  .chip-3 { left: -2%; }
}

/* ---------- How it works ---------- */
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 20px;
  counter-reset: step;
}
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--grad-maroon);
  color: var(--cream);
  font: 700 1.25rem/1 var(--font-serif);
  box-shadow: 0 0 0 5px var(--cream), 0 0 0 6px var(--gold);
}
.step h3 { margin-bottom: .4em; }
.step p { margin: 0; color: var(--text-muted); }

/* ---------- Features grid ---------- */
.features {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--gold-soft); }
.feature-icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--cream);
  color: var(--maroon);
  border: 1px solid var(--gold-soft);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.08rem; margin-bottom: .35em; }
.feature p { margin: 0; color: var(--text-muted); font-size: .95rem; }

/* ---------- Design styles showcase ---------- */
.styles-grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .styles-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
@media (min-width: 1100px) { .styles-grid { grid-template-columns: repeat(6, 1fr); gap: 20px; } }
.style-card { text-align: center; }
.style-card .bio-page { margin-bottom: 12px; transition: transform .2s ease, box-shadow .2s ease; }
.style-card:hover .bio-page { transform: translateY(-4px) rotate(-.6deg); box-shadow: 0 14px 28px rgba(61, 11, 22, .2); }
.style-card h3 { font-size: 1.05rem; margin: 0 0 .15em; }
.style-card p { font-size: .88rem; color: var(--text-muted); margin: 0; line-height: 1.4; }
.styles-note { text-align: center; color: var(--text-muted); font-size: .92rem; margin: 28px auto 0; max-width: 620px; }

/* Style variants */
.bio-page.s-traditional { --p-bg: #FFF6E6; --p-ink: #8C1C2B; --p-accent: #C88B14; }
.bio-page.s-royal { --p-bg: #5E1224; --p-ink: #F3D89A; --p-accent: #E5B13A; --p-line: rgba(243, 216, 154, .35); background: radial-gradient(circle at 50% 0%, #8C1C2B, #4A0E1C 75%); }
.bio-page.s-royal::before { border-width: 3px; outline-color: rgba(229, 177, 58, .6); }
.bio-page.s-floral { --p-bg: #FFF4F2; --p-ink: #9A2F4B; --p-accent: #D9849A; --p-line: rgba(154, 47, 75, .2); }
.bio-page.s-floral::before { border-style: dashed; outline-style: solid; border-radius: 10px; }
.bio-page.s-islamic { --p-bg: #F2F7F1; --p-ink: #1E5A44; --p-accent: #B8892A; --p-line: rgba(30, 90, 68, .22); }
.bio-page.s-islamic::before { border-radius: 40% 40% 2px 2px / 12% 12% 2px 2px; }
.bio-page.s-modern { --p-bg: #FFFFFF; --p-ink: #2B1210; --p-accent: #8C1C2B; --p-line: rgba(43, 18, 16, .16); padding-left: 16%; align-items: flex-start; }
.bio-page.s-modern::before { inset: 0 auto 0 0; width: 8%; border: 0; outline: 0; border-radius: 0; background: var(--grad-maroon); }
.bio-page.s-modern .bio-title { font-family: var(--font-sans); letter-spacing: .14em; text-transform: uppercase; font-size: 1.25em; }
.bio-page.s-modern .bio-photo { border-radius: 6px; border-color: var(--p-line); }
.bio-page.s-minimal { --p-bg: #FFFFFF; --p-ink: #3A2A28; --p-accent: #D6C7BA; --p-line: rgba(58, 42, 40, .14); }
.bio-page.s-minimal::before { border-width: 1px; outline: 0; }
.bio-page.s-minimal .bio-title { font-weight: 700; letter-spacing: .3em; font-size: 1.15em; text-transform: uppercase; }
.bio-page.s-minimal .bio-photo { border-radius: 50%; aspect-ratio: 1; border-width: 1px; }
.bio-page.s-minimal .bio-h { border-bottom-color: var(--p-line); }
.bio-corner { position: absolute; width: 22%; color: var(--p-accent); pointer-events: none; }
.bio-corner.tl { top: 2%; left: 2%; }
.bio-corner.br { bottom: 2%; right: 2%; transform: rotate(180deg); }

/* ---------- Communities ---------- */
.communities {
  margin: 48px auto 0;
  max-width: 900px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.communities h3 { margin-bottom: .4em; }
.communities p { color: var(--text-muted); margin: 0 auto 18px; max-width: 640px; }
.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tag-list li { padding: 8px 16px; border-radius: 999px; background: var(--cream); border: 1px solid var(--gold-soft); font-weight: 700; color: var(--maroon-ink); font-size: .95rem; }

/* ---------- Languages strip ---------- */
.languages { background: var(--grad-maroon); color: var(--cream); position: relative; overflow: hidden; }
.languages::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/pattern-gold.svg") 0 0 / 72px 72px repeat;
  opacity: .12; pointer-events: none;
}
.languages .wrap { position: relative; }
.languages h2 { color: #fff; }
.languages .section-head p { color: rgba(255, 246, 230, .9); }
.languages .eyebrow { color: var(--gold-btn); }
.lang-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 600px) { .lang-list { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .lang-list { grid-template-columns: repeat(7, 1fr); } }
.lang-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 108px;
  padding: 16px 8px;
  border-radius: var(--radius);
  background: rgba(255, 246, 230, .08);
  border: 1px solid rgba(229, 177, 58, .45);
  text-align: center;
}
.lang-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 600px) { .lang-list li:last-child:nth-child(odd) { grid-column: auto; } }
.lang-native { font-size: 1.55rem; font-weight: 700; line-height: 1.3; color: #fff; font-family: var(--font-sans); }
.lang-en { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-btn); font-weight: 700; }

/* ---------- Screenshots ---------- */
.shots {
  list-style: none;
  margin: 0; padding: 4px var(--gutter) 20px;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 1280px) { .shots { justify-content: center; overflow: visible; } }
.shots li { flex: none; width: min(220px, 62vw); scroll-snap-align: center; }
.shots figure { margin: 0; }
.shots img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: var(--cream-deep);
}
.shots figcaption { text-align: center; font-size: .92rem; font-weight: 700; color: var(--maroon-ink); margin-top: 12px; }

/* ---------- Privacy highlight ---------- */
.privacy-band { background: var(--maroon-ink); color: var(--cream); position: relative; overflow: hidden; }
.privacy-band::after {
  content: ""; position: absolute; left: -140px; bottom: -200px;
  width: 460px; height: 460px;
  background: url("../img/mandala.svg") center / contain no-repeat;
  opacity: .14; pointer-events: none;
}
.privacy-grid { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .privacy-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; } }
.privacy-band h2 { color: #fff; }
.privacy-band .eyebrow { color: var(--gold-btn); }
.privacy-band p { color: rgba(255, 246, 230, .92); font-size: 1.08rem; }
.privacy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 560px) { .privacy-list { grid-template-columns: 1fr 1fr; } }
.privacy-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255, 246, 230, .06);
  border: 1px solid rgba(229, 177, 58, .3);
}
.privacy-list svg { width: 24px; height: 24px; flex: none; color: var(--gold-btn); margin-top: 1px; }
.privacy-list strong { display: block; color: #fff; }
.privacy-list span { font-size: .93rem; color: rgba(255, 246, 230, .85); }
.privacy-band a:not(.btn) { color: var(--gold-btn); }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.faq details[open] { box-shadow: var(--shadow-sm); border-color: var(--gold-soft); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  min-height: 56px;
  font: 700 1.05rem/1.35 var(--font-serif);
  color: var(--maroon-ink);
  border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C1C2B' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  border: 1px solid var(--gold-soft);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 20px 18px; color: var(--text-muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Final CTA ---------- */
.cta-band { padding: 0 0 72px; }
@media (min-width: 768px) { .cta-band { padding-bottom: 96px; } }
.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--grad-maroon);
  color: var(--cream);
  padding: 48px 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-card::before, .cta-card::after {
  content: ""; position: absolute;
  width: 280px; height: 280px;
  background: url("../img/mandala.svg") center / contain no-repeat;
  opacity: .22; pointer-events: none;
}
.cta-card::before { left: -120px; top: -120px; }
.cta-card::after { right: -120px; bottom: -120px; }
.cta-card > * { position: relative; }
.cta-card h2 { color: #fff; margin-bottom: .3em; }
.cta-card p { color: rgba(255, 246, 230, .92); max-width: 34em; margin: 0 auto 28px; font-size: 1.08rem; }
.cta-card img { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 16px; box-shadow: 0 0 0 3px rgba(229, 177, 58, .7); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: #2A0810; color: rgba(255, 246, 230, .86); padding: 0 0 28px; font-size: .95rem; }
.site-footer .scallop { --scallop-color: var(--bg); transform: rotate(180deg); }
.footer-grid { display: grid; gap: 32px; padding: 48px 0 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .brand { color: var(--cream); }
.site-footer .brand:hover { color: #fff; }
.footer-about { margin: 14px 0 0; max-width: 30em; }
.site-footer h2 { font-size: 1rem; color: var(--gold-btn); font-family: var(--font-sans); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer a { color: var(--cream); text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; }
.site-footer a:hover { color: var(--gold-btn); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(229, 177, 58, .25);
  padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  font-size: .87rem; color: rgba(255, 246, 230, .72);
}
.footer-bottom p { margin: 0; }
.email-link { word-break: break-all; }

/* ---------- Inner pages ---------- */
.page-hero {
  background:
    radial-gradient(ellipse 50% 80% at 100% 0%, rgba(229, 177, 58, .22), transparent 70%),
    var(--cream);
  padding: 48px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 340px; height: 340px;
  background: url("../img/mandala.svg") center / contain no-repeat;
  opacity: .45; pointer-events: none;
}
.page-hero > .wrap { position: relative; }
.page-hero h1 { font-size: clamp(1.9rem, 5.5vw, 2.8rem); margin-bottom: .3em; }
.page-hero p { color: var(--text-muted); margin: 0 auto; max-width: 40em; }
.page-meta { font-size: .92rem; }

.prose-wrap { padding-top: 40px; padding-bottom: 72px; }
.prose { max-width: 720px; margin: 0 auto; font-size: 1.04rem; }
.prose h2 {
  font-size: clamp(1.3rem, 3.6vw, 1.6rem);
  margin: 2.2em 0 .6em;
  padding-top: .2em;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.prose h2:first-of-type { margin-top: 1.2em; }
.prose h3 { margin: 1.6em 0 .5em; font-size: 1.12rem; }
.prose li { margin-bottom: .45em; }
.prose .lead { font-size: 1.12rem; color: var(--text-muted); }
.callout {
  margin: 1.5em 0;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid var(--gold-soft);
  border-left: 5px solid var(--gold);
}
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.toc {
  margin: 0 0 2em;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.toc h2 { font-size: 1rem; font-family: var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 10px !important; padding: 0; }
.toc ol { margin: 0; padding-left: 1.4em; columns: 1; }
@media (min-width: 640px) { .toc ol { columns: 2; column-gap: 32px; } }
.toc li { margin-bottom: .3em; break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.back-top { display: inline-block; margin-top: 2.5em; font-weight: 700; }

/* Contact page */
.contact-grid { display: grid; gap: 24px; max-width: 980px; margin: 0 auto; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1.1fr .9fr; gap: 32px; } }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) { .card { padding: 36px 32px; } }
.card h2 { font-size: 1.4rem; }
.email-big {
  display: block;
  margin: 8px 0 20px;
  font: 700 clamp(1.05rem, 4.6vw, 1.45rem)/1.3 var(--font-serif);
  word-break: break-all;
}
.checklist { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; color: var(--maroon); flex: none; margin-top: 2px; }
.note { font-size: .93rem; color: var(--text-muted); }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.notfound .big { font: 700 clamp(4rem, 18vw, 7.5rem)/1 var(--font-serif); color: var(--maroon); margin: 0 0 8px; letter-spacing: .02em; }
.notfound p { color: var(--text-muted); max-width: 32em; margin: 0 auto 24px; }
.notfound .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer .scallop, .nav-toggle, .skip-link, .cta-band, .hero-visual { display: none !important; }
  body { background: #fff; }
  .prose { max-width: none; }
  a { color: inherit; }
}
