/* ==========================================================================
   Qynaat Nikah — Design System
   A division of Qynaat International Canada
   --------------------------------------------------------------------------
   1. Tokens          5. Header / nav       9.  Cards & profiles
   2. Base / type     6. Footer            10.  Page sections
   3. Layout          7. Buttons & forms   11.  Motion
   4. Ornaments       8. Modal / toast     12.  Responsive
   ========================================================================== */

/* 1. TOKENS --------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* Wine (primary) */
  --wine-950: #3a0718;
  --wine-900: #4d0a20;
  --wine-800: #5f0e29;
  --wine-700: #721533;
  --wine-600: #8a1f41;
  --wine-500: #a33256;
  --wine-100: #f6e4e8;

  /* Gold (accent) */
  --gold-700: #8a6430;
  --gold-600: #a57c42;
  --gold-500: #bf9658;
  --gold-400: #d4b07a;
  --gold-300: #e5cda3;
  --gold-200: #efe0c4;
  --gold-100: #f7eedd;

  /* Neutrals */
  --cream-0: #fffdf9;
  --cream-50: #fdf8f1;
  --cream-100: #f9f1e5;
  --cream-200: #f2e6d4;
  --line: #e8dac4;
  --line-soft: #f0e6d6;
  --ink: #2a171d;
  --ink-2: #4b3a3f;
  --ink-3: #75656a;
  --success: #2f7a4f;
  --danger: #b3261e;

  /* Semantic */
  --bg: var(--cream-50);
  --surface: var(--cream-0);
  --surface-2: var(--cream-100);
  --primary: var(--wine-700);
  --primary-hover: var(--wine-800);
  --on-primary: #fff8f0;
  --accent: var(--gold-600);
  --focus: #b8894a;

  /* Type */
  --f-display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --f-body: "EB Garamond", Georgia, "Times New Roman", serif;
  --f-caps: "Cinzel", "Trajan Pro", Georgia, serif;
  --f-script: "Pinyon Script", "Great Vibes", cursive;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --fs-2xl: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  --fs-3xl: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);
  --fs-4xl: clamp(2.9rem, 1.6rem + 5vw, 5.75rem);

  /* Space & shape */
  --gutter: clamp(1rem, 0.5rem + 2.2vw, 2.5rem);
  --maxw: 1240px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-arch: 999px 999px var(--r-lg) var(--r-lg);

  --shadow-sm: 0 1px 2px rgb(74 32 20 / 0.06), 0 2px 8px rgb(74 32 20 / 0.05);
  --shadow-md: 0 2px 6px rgb(74 32 20 / 0.06), 0 12px 32px -8px rgb(74 32 20 / 0.14);
  --shadow-lg: 0 4px 12px rgb(74 32 20 / 0.08), 0 32px 64px -16px rgb(74 32 20 / 0.24);
  --shadow-wine: 0 8px 22px -8px rgb(95 14 41 / 0.55);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --header-h: 84px;
}

/* 2. BASE ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.08; margin: 0; color: var(--wine-800); letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--wine-700); color: var(--cream-0); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.sr-only { 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: 1rem; top: -60px; z-index: 200; background: var(--primary); color: var(--on-primary); padding: .6rem 1rem; border-radius: var(--r-sm); transition: top .2s; }
.skip-link:focus { top: 1rem; }

.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic--fill { fill: currentColor; stroke: none; }

/* Type helpers */
.eyebrow {
  font-family: var(--f-caps);
  font-size: var(--fs-xs);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--wine-700);
  font-weight: 500;
}
.eyebrow--gold { color: var(--gold-700); }
.display { font-size: var(--fs-4xl); line-height: 0.98; }
.h1 { font-size: var(--fs-3xl); }
.h2 { font-size: var(--fs-2xl); }
.h3 { font-size: var(--fs-xl); }
.lead { font-size: clamp(1.125rem, 1rem + .5vw, 1.4rem); color: var(--ink-2); line-height: 1.5; }
.muted { color: var(--ink-3); }
.italic-wine { font-style: italic; color: var(--wine-700); font-weight: 600; }
.script { font-family: var(--f-script); font-weight: 400; color: var(--wine-700); line-height: 1.2; }
.serif-italic { font-family: var(--f-display); font-style: italic; color: var(--wine-800); }
.caps-stack { font-family: var(--f-caps); font-size: .8rem; letter-spacing: .28em; line-height: 2.1; color: var(--wine-700); text-transform: uppercase; }

/* 3. LAYOUT --------------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: 1400px; }
.container--narrow { max-width: 880px; }
.section { padding-block: clamp(4rem, 3rem + 5vw, 7.5rem); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(2.5rem, 2rem + 2vw, 3.75rem); display: grid; gap: 1rem; justify-items: center; }
.section-head p { color: var(--ink-2); font-size: var(--fs-lg); }
.stack { display: grid; gap: var(--stack, 1rem); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--cluster, 1rem); align-items: center; }
.center { text-align: center; }
main { display: block; }

/* Paper background with subtle arch pattern */
.paper {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgb(229 205 163 / .35), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgb(246 228 232 / .7), transparent 60%),
    var(--cream-50);
}
.paper-pattern { position: relative; isolation: isolate; }
.paper-pattern::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23d9c09a' stroke-width='.6' opacity='.55'%3E%3Cpath d='M60 6l10 24 24 10-24 10-10 24-10-24-24-10 24-10z'/%3E%3Ccircle cx='60' cy='40' r='3'/%3E%3Cpath d='M0 100h120M60 90v20'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px;
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}

/* 4. ORNAMENTS ------------------------------------------------------------ */
.ornament { display: flex; align-items: center; justify-content: center; gap: .75rem; color: var(--gold-600); width: 100%; max-width: var(--orn-w, 320px); }
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-500)); }
.ornament::after { background: linear-gradient(-90deg, transparent, var(--gold-500)); }
.ornament svg { width: 22px; height: 22px; }
.ornament--left { justify-content: flex-start; margin: 0; }
.ornament--left::before { display: none; }
.ornament--sm { --orn-w: 140px; }

.side-words { position: absolute; top: 50%; transform: translateY(-50%); display: none; text-align: center; z-index: 2; }
.side-words--left { left: clamp(1rem, 2vw, 2.5rem); }
.side-words--right { right: clamp(1rem, 2vw, 2.5rem); }
.side-words .serif-italic { font-size: 1.35rem; line-height: 1.3; display: block; }

.frame-arch {
  position: relative; border-radius: var(--r-arch); overflow: hidden;
  box-shadow: var(--shadow-lg);
  outline: 1px solid rgb(191 150 88 / .6); outline-offset: 10px;
}
.frame-arch img { width: 100%; height: 100%; object-fit: cover; }

.seal {
  width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, var(--wine-500), var(--wine-800) 55%, var(--wine-950));
  box-shadow: 0 10px 24px -8px rgb(58 7 24 / .6), inset 0 2px 3px rgb(255 255 255 / .18), inset 0 -4px 8px rgb(0 0 0 / .3);
  position: relative;
}
.seal::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; border: 1.5px solid rgb(229 205 163 / .75); }
.seal img { width: 58%; filter: brightness(1.25) sepia(.4) saturate(1.3) hue-rotate(-8deg); }
.seal--scalloped { clip-path: polygon(50% 0%, 61% 4%, 71% 2%, 78% 10%, 88% 12%, 90% 22%, 98% 29%, 96% 39%, 100% 50%, 96% 61%, 98% 71%, 90% 78%, 88% 88%, 78% 90%, 71% 98%, 61% 96%, 50% 100%, 39% 96%, 29% 98%, 22% 90%, 12% 88%, 10% 78%, 2% 71%, 4% 61%, 0% 50%, 4% 39%, 2% 29%, 10% 22%, 12% 12%, 22% 10%, 29% 2%, 39% 4%); }

/* 5. HEADER --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgb(253 248 241 / .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgb(74 32 20 / .5); background: rgb(253 248 241 / .94); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.5rem); }
.brand { display: flex; align-items: center; gap: .7rem; flex: none; }
.brand__mark { width: 62px; height: auto; }
.brand__text { display: grid; line-height: 1; }
.brand__name { font-family: var(--f-caps); font-weight: 600; font-size: 1.55rem; letter-spacing: .02em; color: var(--wine-800); }
.brand__name .cap { font-size: 1.22em; }
.brand__sub { font-family: var(--f-caps); font-size: .52rem; letter-spacing: .14em; color: var(--ink-2); margin-top: .35rem; text-transform: uppercase; }

.nav { display: flex; gap: clamp(1rem, 2.2vw, 2.25rem); margin-inline: auto; }
.nav a { position: relative; font-size: 1.05rem; color: var(--ink-2); padding-block: .5rem; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--wine-700); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.nav a:hover { color: var(--wine-700); }
.nav a[aria-current="page"] { color: var(--wine-700); font-weight: 500; }
.nav a[aria-current="page"]::after, .nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: .75rem; flex: none; }
.header-tag { display: flex; align-items: center; gap: .9rem; padding-left: 1.1rem; margin-left: .4rem; border-left: 1px solid var(--line); }
.header-tag .maple { width: 26px; color: var(--wine-700); }
.header-tag span { font-family: var(--f-caps); font-size: .56rem; letter-spacing: .2em; line-height: 1.55; color: var(--wine-700); text-transform: uppercase; }

.menu-toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-sm); place-items: center; color: var(--wine-800); }
.menu-toggle .bars { width: 22px; height: 14px; position: relative; }
.menu-toggle .bars span { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .35s var(--ease-out), opacity .2s; }
.menu-toggle .bars span:nth-child(1) { top: 0; }
.menu-toggle .bars span:nth-child(2) { top: 6px; }
.menu-toggle .bars span:nth-child(3) { top: 12px; }
.menu-open .menu-toggle .bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle .bars span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle .bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: var(--cream-50);
  padding: 2rem var(--gutter) 3rem; display: flex; flex-direction: column; gap: .25rem;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), visibility .3s;
  overflow-y: auto;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a.m-link { font-family: var(--f-display); font-size: 2rem; font-weight: 600; color: var(--wine-800); padding: .6rem 0; border-bottom: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center; }
.mobile-menu a.m-link[aria-current="page"] { color: var(--wine-600); font-style: italic; }
.mobile-menu .m-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 2rem; }
.mobile-menu .m-foot { margin-top: auto; padding-top: 2rem; text-align: center; }
body.menu-open { overflow: hidden; }

/* 6. FOOTER --------------------------------------------------------------- */
.site-footer { background: var(--cream-100); border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.footer-values { border-bottom: 1px solid var(--line); }
.footer-values .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; padding-block: 1.6rem; }
.fv-item { display: flex; align-items: center; gap: .75rem; font-family: var(--f-caps); font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); }
.fv-item .ic { width: 28px; height: 28px; color: var(--gold-600); stroke-width: 1.3; }
.footer-main { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2.5rem; padding-block: 3.5rem 2.5rem; }
.footer-brand p { color: var(--ink-3); margin-top: 1rem; max-width: 34ch; font-size: var(--fs-sm); }
.footer-brand .script { font-size: 2rem; margin-top: 1.25rem; transform: rotate(-4deg); transform-origin: left; display: block; }
.footer-col h4 { font-family: var(--f-caps); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--wine-700); margin-bottom: 1rem; font-weight: 600; }
.footer-col li + li { margin-top: .55rem; }
.footer-col a { color: var(--ink-2); font-size: var(--fs-sm); transition: color .2s; }
.footer-col a:hover { color: var(--wine-700); }
.footer-legal { border-top: 1px solid var(--line); }
.footer-legal .container { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-block: 1.25rem; font-size: var(--fs-xs); color: var(--ink-3); }
.footer-legal .maple-line { display: flex; align-items: center; gap: .6rem; font-family: var(--f-caps); letter-spacing: .2em; font-size: .62rem; text-transform: uppercase; color: var(--wine-700); }
.footer-legal .maple-line svg { width: 18px; color: var(--wine-700); }

/* 7. BUTTONS & FORMS ------------------------------------------------------ */
.btn {
  --btn-h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: var(--btn-h); padding: 0 1.6rem; border-radius: var(--r-sm);
  font-family: var(--f-body); font-size: 1.08rem; font-weight: 500; letter-spacing: .01em; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; position: relative; overflow: hidden;
  transition: transform .2s var(--ease-out), box-shadow .25s, background-color .25s, color .25s, border-color .25s;
}
.btn .ic { width: 1.1em; height: 1.1em; transition: transform .3s var(--ease-out); }
.btn:hover .ic--arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: linear-gradient(180deg, var(--wine-600), var(--wine-800)); color: var(--on-primary); box-shadow: var(--shadow-wine), inset 0 1px 0 rgb(255 255 255 / .14); }
.btn--primary::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgb(255 230 200 / .22) 50%, transparent 70%); transform: translateX(-100%); transition: transform .8s var(--ease-out); }
.btn--primary:hover::before { transform: translateX(100%); }
.btn--primary:hover { box-shadow: 0 12px 28px -10px rgb(95 14 41 / .7), inset 0 1px 0 rgb(255 255 255 / .14); }
.btn--outline { background: rgb(255 253 249 / .7); color: var(--wine-800); border-color: var(--wine-700); }
.btn--outline:hover { background: var(--wine-100); }
.btn--gold { background: rgb(255 253 249 / .8); color: var(--wine-800); border-color: var(--gold-500); }
.btn--gold:hover { background: var(--gold-100); border-color: var(--gold-600); }
.btn--ghost { color: var(--wine-700); padding-inline: .5rem; }
.btn--ghost:hover { color: var(--wine-900); }
.btn--sm { --btn-h: 40px; font-size: .98rem; padding-inline: 1.15rem; }
.btn--lg { --btn-h: 58px; font-size: 1.22rem; padding-inline: 2.2rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .65; pointer-events: none; }
.btn.is-loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }

.link { color: var(--wine-700); text-decoration: underline; text-decoration-color: rgb(114 21 51 / .35); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: currentColor; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; color: var(--wine-700); font-weight: 500; }
.link-arrow .ic { width: 1em; transition: transform .3s var(--ease-out); }
.link-arrow:hover .ic { transform: translateX(4px); }

.field { display: grid; gap: .4rem; }
.field > label, .label { font-size: .98rem; color: var(--ink); font-weight: 500; }
.req { color: var(--wine-600); margin-left: 2px; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > .ic { position: absolute; left: 14px; color: var(--ink-3); pointer-events: none; width: 18px; height: 18px; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: .7rem 1rem; border-radius: var(--r-sm);
  background: var(--cream-0); border: 1px solid var(--line); color: var(--ink); font-size: 1.02rem;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.input-wrap > .ic ~ .input { padding-left: 44px; }
.input::placeholder, .textarea::placeholder { color: #a39498; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--gold-400); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold-600); box-shadow: 0 0 0 4px rgb(191 150 88 / .18); background: #fff; }
.select { appearance: none; padding-right: 2.5rem; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234b3a3f' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field-hint { font-size: var(--fs-xs); color: var(--ink-3); }
.field-error { font-size: var(--fs-xs); color: var(--danger); display: none; align-items: center; gap: .35rem; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); box-shadow: 0 0 0 3px rgb(179 38 30 / .1); }
.field.has-error .field-error { display: flex; }
.pw-toggle { position: absolute; right: 6px; width: 40px; height: 40px; display: grid; place-items: center; color: var(--ink-3); border-radius: var(--r-sm); }
.pw-toggle:hover { color: var(--wine-700); }
.pw-meter { height: 4px; border-radius: 4px; background: var(--line-soft); overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; background: var(--danger); transition: width .35s var(--ease-out), background .35s; }

.check { display: flex; gap: .7rem; align-items: flex-start; cursor: pointer; font-size: .98rem; color: var(--ink-2); line-height: 1.45; }
.check input { appearance: none; flex: none; width: 20px; height: 20px; margin-top: 1px; border: 1.5px solid var(--gold-500); border-radius: 4px; background: var(--cream-0); display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.check input::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform .2s var(--ease-out); }
.check input:checked { background: var(--wine-700); border-color: var(--wine-700); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }

.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .4rem; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { min-height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--cream-0); cursor: pointer; font-size: .98rem; color: var(--ink-2); transition: all .2s; }
.segmented label:hover { border-color: var(--gold-400); }
.segmented input:checked + label { background: var(--wine-700); border-color: var(--wine-700); color: var(--on-primary); box-shadow: var(--shadow-wine); }
.segmented input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }

.otp { display: flex; gap: .5rem; }
.otp input { width: 48px; height: 56px; text-align: center; font-size: 1.5rem; font-family: var(--f-display); font-weight: 600; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--cream-0); color: var(--wine-800); transition: border-color .2s, box-shadow .2s; }
.otp input:focus { outline: none; border-color: var(--gold-600); box-shadow: 0 0 0 4px rgb(191 150 88 / .18); }

.card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.card--glass { background: rgb(255 253 249 / .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: rgb(232 218 196 / .8); box-shadow: var(--shadow-lg); }
.card--pad { padding: clamp(1.4rem, 1rem + 1.5vw, 2.25rem); }
.card-deco { position: relative; }
.card-deco::before, .card-deco::after { content: ""; position: absolute; width: 90px; height: 90px; pointer-events: none; opacity: .55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 90' fill='none' stroke='%23d4b07a' stroke-width='.8'%3E%3Cpath d='M2 60C2 28 28 2 60 2'/%3E%3Cpath d='M2 40C2 19 19 2 40 2'/%3E%3Ccircle cx='14' cy='14' r='3'/%3E%3Cpath d='M22 30c6-2 10-6 12-12M30 22c-4 0-8 2-10 6'/%3E%3C/svg%3E") no-repeat; }
.card-deco::before { top: 10px; left: 10px; }
.card-deco::after { bottom: 10px; right: 10px; transform: rotate(180deg); }

.badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--ink-2); }
.badge .ic { width: 16px; height: 16px; }
.badge--verified .ic { color: var(--success); }
.badge--guide .ic { color: var(--gold-600); }
.pill { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .8rem; border-radius: 999px; background: var(--gold-100); border: 1px solid var(--gold-300); color: var(--gold-700); font-family: var(--f-caps); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.pill .ic { width: 15px; height: 15px; }
.pill--wine { background: var(--wine-700); border-color: var(--wine-700); color: var(--cream-0); }

.icon-circle { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; flex: none; background: radial-gradient(circle at 30% 25%, #fff, var(--gold-100)); border: 1px solid var(--gold-300); color: var(--gold-700); }
.icon-circle .ic { width: 26px; height: 26px; stroke-width: 1.4; }
.icon-circle--wine { background: radial-gradient(circle at 30% 25%, var(--wine-500), var(--wine-800)); color: var(--gold-200); border-color: var(--wine-800); }

/* 8. MODAL / TOAST -------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 1rem; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgb(42 23 29 / .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .4s var(--ease-out); }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__dialog {
  position: relative; width: min(560px, 100%); margin-top: 48px;
  background: var(--cream-0); border-radius: var(--r-xl); border: 1px solid var(--gold-300);
  box-shadow: 0 40px 80px -20px rgb(42 23 29 / .5), 0 0 0 6px rgb(255 253 249 / .5);
  padding: 4.25rem clamp(1.4rem, 1rem + 2vw, 3rem) 2.25rem; text-align: center;
  opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .45s var(--ease-out), transform .55s var(--ease-out);
}
.modal.is-open .modal__dialog { opacity: 1; transform: none; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); transition: background .2s, color .2s; }
.modal__close:hover { background: var(--cream-100); color: var(--wine-800); }
.modal .seal { position: absolute; top: -52px; left: 50%; transform: translateX(-50%); }
@media (max-height: 760px) { .modal__dialog { max-height: calc(100dvh - 2rem); overflow: auto; margin-top: 0; padding-top: 1.5rem; } .modal .seal { position: static; transform: none; margin: 0 auto 1rem; width: 72px; height: 72px; } }
.modal__dialog.card-deco::before { top: 16px; left: 16px; }
.claim-meter { border: 1px solid var(--gold-300); background: var(--gold-100); border-radius: var(--r-md); padding: .7rem 1rem; font-size: 1.15rem; color: var(--ink-2); }
.claim-meter strong { font-family: var(--f-display); font-size: 2rem; color: var(--wine-800); font-weight: 600; margin-right: .25rem; }
.progress { height: 10px; border-radius: 99px; background: var(--cream-200); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--wine-800), var(--wine-600)); transition: width 1.4s var(--ease-out); }

.toast-region { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 400; display: grid; gap: .5rem; width: min(440px, calc(100% - 2rem)); }
.toast { display: flex; align-items: center; gap: .75rem; padding: .9rem 1.1rem; border-radius: var(--r-md); background: var(--wine-900); color: var(--cream-0); box-shadow: var(--shadow-lg); animation: toast-in .45s var(--ease-out); font-size: .98rem; }
.toast .ic { color: var(--gold-300); }
.toast.is-leaving { animation: toast-out .3s ease-in forwards; }

.demo-switch { position: fixed; right: 1rem; bottom: 1rem; z-index: 90; display: flex; align-items: center; gap: .3rem; padding: .3rem; border-radius: 99px; background: rgb(42 23 29 / .88); color: var(--cream-0); font-size: .75rem; box-shadow: var(--shadow-md); }
.demo-switch span { padding: 0 .5rem; font-family: var(--f-caps); letter-spacing: .14em; opacity: .7; font-size: .6rem; }
.demo-switch button { padding: .35rem .75rem; border-radius: 99px; color: var(--cream-0); opacity: .75; }
.demo-switch button[aria-pressed="true"] { background: var(--gold-500); color: var(--wine-950); opacity: 1; font-weight: 600; }

/* 9. CARDS & PROFILES ----------------------------------------------------- */
.photo { position: relative; overflow: hidden; background: linear-gradient(160deg, #cdb9a6, #7b6660); user-select: none; -webkit-user-select: none; }
.photo img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform .8s var(--ease-out), filter .5s; -webkit-user-drag: none; }
.photo.photo--wm::after { /* optional overlay watermark (real uploads should be watermarked server-side) */
  content: "QYNAAT NIKAH"; position: absolute; left: 0; right: 0; bottom: 10%; text-align: center;
  font-family: var(--f-caps); letter-spacing: .08em; font-size: clamp(.8rem, 5cqi, 1.3rem); color: rgb(255 255 255 / .55); text-shadow: 0 1px 2px rgb(0 0 0 / .25); pointer-events: none;
}
.photo { container-type: inline-size; }
.photo.is-locked img { filter: blur(14px) saturate(.7) brightness(.8); transform: scale(1.15); }
.photo.no-photo img { display: none; }
.photo__lock { position: absolute; inset: 0; display: none; place-content: center; justify-items: center; gap: .5rem; text-align: center; color: #fff; padding: 1rem; z-index: 1; text-shadow: 0 1px 4px rgb(0 0 0 / .35); font-size: .98rem; line-height: 1.3; }
.photo.is-locked .photo__lock, .photo.no-photo .photo__lock { display: grid; }
.photo.is-locked::after, .photo.no-photo::after { display: none; }
.photo__lock .ic { width: 26px; height: 26px; }
.photo.no-photo { background: radial-gradient(circle at 50% 35%, #a28f86 0 18%, transparent 19%), radial-gradient(ellipse at 50% 100%, #a28f86 0 42%, transparent 43%), linear-gradient(160deg, #cbb8a8, #8e7870); }
.photo.no-photo .photo__lock { background: rgb(42 23 29 / .35); backdrop-filter: blur(6px); }

.heart-btn { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 253 249 / .92); color: var(--wine-700); box-shadow: var(--shadow-sm); transition: transform .25s var(--ease-out), background .2s; }
.heart-btn:hover { transform: scale(1.08); }
.heart-btn .ic { width: 18px; height: 18px; transition: fill .2s; }
.heart-btn[aria-pressed="true"] .ic { fill: var(--wine-700); animation: pop .4s var(--ease-out); }

.profile-card { display: flex; flex-direction: column; overflow: hidden; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out); }
.profile-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.profile-card:hover .photo:not(.is-locked) img { transform: scale(1.04); }
.profile-card .photo { aspect-ratio: 4 / 4.2; }
.profile-card__body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.profile-card__id { font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; color: var(--ink); letter-spacing: .01em; }
.profile-card__meta { font-size: .95rem; color: var(--ink-2); line-height: 1.4; }
.profile-card__badges { display: flex; gap: .9rem; flex-wrap: wrap; margin: .35rem 0 .8rem; }
.profile-card .btn { margin-top: auto; }

.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.1rem; }
.results-grid.is-list { grid-template-columns: 1fr; }
.results-grid.is-list .profile-card { flex-direction: row; }
.results-grid.is-list .profile-card .photo { width: 180px; aspect-ratio: auto; flex: none; }
.results-grid.is-list .profile-card__body { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .3rem 1.5rem; }
.results-grid.is-list .profile-card__body > div { flex: 1 1 220px; }
.results-grid.is-list .profile-card .btn { margin-top: 0; }

/* Info table (profile) */
.info-card { padding: 1.4rem 1.5rem; }
.info-card__head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line-soft); }
.info-card__head .ic { width: 26px; height: 26px; color: var(--gold-600); }
.info-card__head h2 { font-size: 1.5rem; color: var(--wine-700); }
.info-list { display: grid; gap: .1rem; }
.info-row { display: grid; grid-template-columns: minmax(120px, 40%) 1fr auto; gap: .75rem; padding: .42rem 0; align-items: start; font-size: .98rem; }
.info-row dt { color: var(--ink-3); }
.info-row dd { margin: 0; color: var(--ink); }
.info-row .lock { width: 15px; height: 15px; color: var(--wine-800); margin-top: 4px; }
.redact { display: inline-block; height: .8em; width: var(--w, 70%); border-radius: 4px; background: linear-gradient(90deg, #d8c8c0, #e9ddd6, #d8c8c0); filter: blur(2.5px); vertical-align: middle; }

/* Stepper */
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; counter-reset: s; }
.stepper::before { content: ""; position: absolute; top: 22px; left: 12.5%; right: 12.5%; height: 1px; background: var(--gold-300); }
.stepper li { display: grid; justify-items: center; gap: .45rem; position: relative; font-size: .98rem; color: var(--ink-2); text-align: center; }
.stepper .dot { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--cream-0); border: 1.5px solid var(--gold-400); font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; color: var(--gold-700); transition: all .35s var(--ease-out); position: relative; }
.stepper li.is-active { color: var(--wine-700); font-weight: 600; }
.stepper li.is-active .dot { background: var(--wine-700); border-color: var(--wine-700); color: #fff; box-shadow: 0 0 0 5px rgb(114 21 51 / .12); }
.stepper li.is-done .dot { background: var(--gold-100); border-color: var(--gold-500); color: var(--success); }

.vsteps { display: grid; gap: .35rem; }
.vsteps a, .vsteps button { width: 100%; text-align: left; display: flex; align-items: center; gap: .85rem; padding: .7rem .8rem; border-radius: var(--r-md); transition: background .2s; }
.vsteps a:hover, .vsteps button:hover { background: var(--cream-100); }
.vsteps .dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 1.5px solid var(--gold-400); color: var(--gold-700); font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; background: var(--cream-0); }
.vsteps .is-done .dot { background: var(--success); border-color: var(--success); color: #fff; }
.vsteps .is-active { background: var(--wine-100); }
.vsteps .is-active .dot { background: var(--wine-700); border-color: var(--wine-700); color: #fff; }
.vsteps strong { display: block; font-weight: 500; color: var(--ink); font-size: 1rem; line-height: 1.2; }
.vsteps small { color: var(--ink-3); font-size: .82rem; }
.vsteps .is-active strong { color: var(--wine-800); }

/* 10. PAGE SECTIONS ------------------------------------------------------- */
/* Hero (home) */
.hero { position: relative; overflow: hidden; isolation: isolate; min-height: min(calc(100svh - var(--header-h)), 860px); display: grid; align-items: center; padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.hero__bg { position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(900px 520px at 72% 38%, rgb(255 236 206 / .9), transparent 65%),
  radial-gradient(700px 500px at 10% 90%, rgb(246 228 232 / .8), transparent 60%),
  linear-gradient(180deg, var(--cream-50), var(--cream-100)); }
.hero__bg::after { content: ""; position: absolute; right: -2%; bottom: 0; width: 55%; height: 55%; background: url("../img/mosque-garden.webp") center bottom / cover no-repeat; opacity: .16; mask-image: radial-gradient(closest-side, #000, transparent); filter: sepia(.4); }
.hero__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero__copy { display: grid; gap: 1.5rem; }
.hero__title { font-size: clamp(2.8rem, 1.6rem + 4vw, 5rem); line-height: .98; color: var(--ink); font-weight: 500; }
.hero__title em { display: block; font-style: italic; color: var(--wine-700); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: .5rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; margin-top: .75rem; }
.trust-item { display: flex; align-items: center; gap: .7rem; font-size: .95rem; line-height: 1.25; color: var(--ink-2); }
.trust-item .icon-circle { width: 44px; height: 44px; }
.trust-item .icon-circle .ic { width: 20px; height: 20px; }
.hero__visual { position: relative; justify-self: center; width: min(460px, 100%); }
.hero__visual .frame-arch { aspect-ratio: 4 / 4.9; }
.hero__visual .frame-arch img { object-position: 50% 30%; }
.float-card { position: absolute; background: rgb(255 253 249 / .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--gold-300); border-radius: var(--r-md); padding: 1rem 1.25rem; box-shadow: var(--shadow-md); }
.float-card--quote { left: -14%; bottom: 12%; max-width: 230px; }
.float-card--quote p { font-family: var(--f-display); font-style: italic; font-size: 1.35rem; line-height: 1.2; color: var(--wine-800); }
.float-card--quote small { display: block; margin-top: .4rem; color: var(--gold-700); font-family: var(--f-caps); font-size: .62rem; letter-spacing: .2em; }
.float-card--stat { right: -8%; top: 10%; display: flex; gap: .7rem; align-items: center; }
.float-card--stat strong { font-family: var(--f-display); font-size: 1.6rem; color: var(--wine-800); line-height: 1; display: block; }
.float-card--stat span { font-size: .82rem; color: var(--ink-3); }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.pillar { background: var(--cream-0); padding: 2rem 1.6rem; display: grid; gap: .75rem; align-content: start; transition: background .3s; }
.pillar:hover { background: var(--cream-50); }
.pillar h3 { font-size: 1.5rem; }
.pillar p { color: var(--ink-2); font-size: .98rem; }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; scrollbar-width: thin; scrollbar-color: var(--gold-300) transparent; }
.rail > * { scroll-snap-align: start; }

.path { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; position: relative; counter-reset: path; }
.path::before { content: ""; position: absolute; top: 36px; left: 10%; right: 10%; height: 1px; background: repeating-linear-gradient(90deg, var(--gold-400) 0 6px, transparent 6px 12px); }
.path-step { text-align: center; display: grid; justify-items: center; gap: .6rem; position: relative; }
.path-step .icon-circle { width: 72px; height: 72px; background: var(--cream-0); box-shadow: 0 0 0 8px var(--cream-50); }
.path-step .icon-circle .ic { width: 30px; height: 30px; }
.path-step .num { position: absolute; top: -4px; left: calc(50% + 22px); width: 26px; height: 26px; border-radius: 50%; background: var(--wine-700); color: #fff; font-size: .8rem; display: grid; place-items: center; font-weight: 600; }
.path-step h3 { font-size: 1.35rem; color: var(--wine-700); }
.path-step p { font-size: .95rem; color: var(--ink-2); max-width: 22ch; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }

.plans { display: grid; grid-template-columns: 1fr 1.08fr; gap: 1.5rem; align-items: stretch; max-width: 860px; margin-inline: auto; }
.plan { display: flex; flex-direction: column; text-align: center; overflow: hidden; }
.plan__head { padding: 2rem 1.75rem 1.25rem; display: grid; justify-items: center; gap: .35rem; }
.plan__head h3 { font-size: 1.9rem; }
.plan__price { font-family: var(--f-display); font-size: 3.6rem; font-weight: 600; color: var(--wine-800); line-height: 1; margin-top: .6rem; }
.plan__price small { font-size: 1.25rem; color: var(--ink-2); font-weight: 500; }
.plan__list { display: grid; gap: .95rem; padding: 1.25rem 2rem 1.75rem; text-align: left; }
.plan__list li { display: flex; gap: .85rem; align-items: center; color: var(--ink-2); }
.plan__list .ic { color: var(--gold-600); width: 22px; height: 22px; }
.plan__cta { padding: 0 1.75rem 2rem; margin-top: auto; }
.plan--featured { border: 1.5px solid var(--wine-700); box-shadow: var(--shadow-lg), 0 0 0 6px rgb(114 21 51 / .06); position: relative; }
.plan--featured .plan__head { background: radial-gradient(120% 140% at 50% 0%, var(--wine-600), var(--wine-900)); color: var(--cream-0); padding-top: 2.75rem; position: relative; }
.plan--featured .plan__head h3 { color: var(--cream-0); }
.plan--featured .plan__head p { color: var(--gold-200); }
.plan--featured .plan__crown { position: absolute; top: -1px; left: 50%; transform: translate(-50%, -45%); }
.plan__ribbon { z-index: 2; position: absolute; top: 16px; right: -1px; background: linear-gradient(90deg, var(--gold-400), var(--gold-300)); color: var(--wine-900); font-family: var(--f-caps); font-size: .6rem; letter-spacing: .16em; padding: .35rem .8rem .35rem 1.1rem; clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%); font-weight: 600; }

.quote-band { background: radial-gradient(120% 120% at 20% 0%, var(--wine-700), var(--wine-950)); color: var(--cream-0); position: relative; overflow: hidden; isolation: isolate; }
.quote-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/henna-hands.webp") right center / cover no-repeat; opacity: .28; mask-image: linear-gradient(90deg, transparent 20%, #000 80%); }
.quote-band blockquote { margin: 0; font-family: var(--f-display); font-style: italic; font-size: clamp(2rem, 1.4rem + 3vw, 3.6rem); line-height: 1.12; max-width: 18ch; }
.quote-band cite { display: block; font-style: normal; margin-top: 1.25rem; font-family: var(--f-caps); letter-spacing: .28em; font-size: .75rem; color: var(--gold-300); }
.quote-band .ornament { color: var(--gold-300); }

.cta-panel { position: relative; border-radius: var(--r-xl); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; background: var(--cream-0); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.cta-panel__img { min-height: 360px; background: url("../img/rings-cloth.webp") center / cover; }
.cta-panel__copy { padding: clamp(2rem, 1.5rem + 3vw, 4rem); display: grid; gap: 1.25rem; align-content: center; }

/* Auth / split screens */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(calc(100svh - var(--header-h)), 920px); }
.auth__visual { position: relative; overflow: hidden; isolation: isolate; }
.auth__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; z-index: -2; }
.auth__visual::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 45%, rgb(253 248 241 / .85) 82%, var(--cream-50)); }
.auth__caption { position: absolute; left: 0; right: 0; bottom: clamp(1.5rem, 4vw, 3.5rem); text-align: center; display: grid; justify-items: center; gap: 1rem; padding: 0 1.5rem; }
.auth__caption h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 500; color: var(--ink); line-height: 1.05; }
.auth__panel { display: grid; place-items: center; padding: clamp(2rem, 4vw, 4rem) var(--gutter); }
.auth__card { width: min(560px, 100%); }
.auth__card-head { text-align: center; display: grid; justify-items: center; gap: .75rem; margin-bottom: 1.75rem; }
.auth__card-head h1 { font-size: clamp(2.3rem, 1.8rem + 2vw, 3.3rem); }
.form-grid { display: grid; gap: 1.1rem; }
.phone-row { display: grid; grid-template-columns: 120px 1fr; gap: .6rem; }
.or-rule { display: flex; align-items: center; gap: 1rem; font-family: var(--f-caps); font-size: .7rem; letter-spacing: .2em; color: var(--ink-3); }
.or-rule::before, .or-rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.step-panel[hidden] { display: none; }
.step-panel { animation: fade-up .5s var(--ease-out); }

.trust-bar { background: var(--cream-100); border-top: 1px solid var(--line); }
.trust-bar .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.25rem 2rem; padding-block: 1.4rem; }

/* Page hero (inner pages) */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.page-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.page-hero h1 { font-size: var(--fs-4xl); line-height: .95; }
.page-hero .lead { max-width: 34ch; }
.page-hero__img { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 5 / 4; position: relative; }
.page-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__img .script { position: absolute; right: 1.25rem; bottom: 1rem; color: #fff; font-size: 1.9rem; text-shadow: 0 2px 8px rgb(0 0 0 / .35); }

.feature-row { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.feature { display: flex; align-items: center; gap: .7rem; font-size: .95rem; line-height: 1.25; color: var(--ink-2); }
.feature .ic { width: 34px; height: 34px; color: var(--gold-600); stroke-width: 1.3; }

.value-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.value-card { display: grid; grid-template-columns: 1fr 96px; gap: 1rem; padding: 1.4rem; overflow: hidden; transition: transform .4s var(--ease-out), box-shadow .4s; }
.value-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.value-card img { width: 96px; height: 130px; object-fit: cover; border-radius: 48px 48px 8px 8px; }
.value-card h3 { font-size: 1.45rem; margin: .6rem 0 .5rem; }
.value-card p { font-size: .95rem; color: var(--ink-2); line-height: 1.5; }
.value-card .ic { width: 30px; height: 30px; color: var(--gold-600); }

.story-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.story-card { padding: 2.25rem 1.5rem; text-align: center; display: grid; justify-items: center; gap: .9rem; transition: transform .4s var(--ease-out), box-shadow .4s; }
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.story-card > .ic { width: 52px; height: 52px; color: var(--gold-600); stroke-width: 1.1; }
.story-card h3 { font-size: 1.6rem; color: var(--wine-700); }
.story-card p { color: var(--ink-2); }

.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.help-card { padding: 1.4rem; display: flex; gap: 1rem; align-items: flex-start; transition: transform .35s var(--ease-out), box-shadow .35s; }
.help-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.help-card h3 { font-size: 1.4rem; }
.help-card p { color: var(--ink-2); font-size: .96rem; margin: .3rem 0 .6rem; }

/* Find a match */
.fam-layout { display: grid; grid-template-columns: 300px 1fr; gap: 1.5rem; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 1rem); padding: 1.4rem; display: grid; gap: 1.15rem; }
.filters__head { display: flex; justify-content: space-between; align-items: center; }
.filters__head h2 { font-size: 1.5rem; color: var(--ink); display: flex; gap: .5rem; align-items: center; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.1rem; margin-bottom: 1.1rem; }
.view-toggle { display: flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.view-toggle button { width: 42px; height: 40px; display: grid; place-items: center; color: var(--ink-2); }
.view-toggle button[aria-pressed="true"] { background: var(--wine-700); color: #fff; }
.empty-state { text-align: center; padding: 4rem 1rem; display: grid; gap: 1rem; justify-items: center; }
.filters-toggle { display: none; }

/* Profile page */
.profile-layout { display: grid; grid-template-columns: 330px 1fr; gap: 1.5rem; align-items: start; }
.gallery .photo--main { aspect-ratio: 4 / 4.6; border-radius: var(--r-lg); }
.gallery .thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: .6rem; }
.gallery .thumbs .photo { aspect-ratio: 1; border-radius: var(--r-md); }
.gallery .thumbs .more { display: grid; place-items: center; text-align: center; border-radius: var(--r-md); background: linear-gradient(160deg, var(--wine-800), var(--wine-950)); color: var(--cream-0); font-family: var(--f-display); font-size: 1.6rem; line-height: 1; }
.gallery .thumbs .more small { font-family: var(--f-body); font-size: .75rem; opacity: .8; }
.photo-flag { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; gap: .45rem; align-items: center; padding: .45rem .8rem; border-radius: var(--r-sm); background: rgb(42 23 29 / .82); color: #fff; font-size: .88rem; }
.photo-flag .ic { width: 16px; height: 16px; }
.photo-flag--ok { background: var(--wine-700); }
.profile-title { padding: 1.4rem 1.6rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; }
.profile-title h1 { font-size: clamp(2.4rem, 2rem + 2vw, 3.4rem); color: var(--wine-700); margin: .35rem 0; }
.profile-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--ink-2); }
.profile-facts span { display: inline-flex; gap: .45rem; align-items: center; }
.profile-facts .ic { width: 18px; color: var(--wine-700); }
.save-tile { display: grid; justify-items: center; gap: .35rem; padding: .9rem 1.4rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--cream-50); color: var(--ink); transition: all .2s; }
.save-tile .ic { width: 30px; height: 30px; color: var(--gold-600); }
.save-tile[aria-pressed="true"] .ic { fill: var(--wine-700); color: var(--wine-700); }
.save-tile:hover { border-color: var(--gold-400); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.info-grid .span-2 { grid-column: 1 / -1; }
.upsell { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center; padding: 1.6rem; background: linear-gradient(120deg, var(--cream-0), var(--gold-100)); }
.upsell h2 { font-size: 1.9rem; }
.upsell ul { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: .75rem; }
.upsell li { display: flex; gap: .45rem; align-items: center; font-size: .95rem; color: var(--ink-2); }
.upsell li .ic { color: var(--gold-600); }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 1.25rem 0 1.5rem; }
.flow li { display: flex; gap: .8rem; align-items: flex-start; }
.flow .n { width: 36px; height: 36px; border-radius: 50%; background: var(--wine-700); color: #fff; display: grid; place-items: center; flex: none; font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; }
.flow strong { color: var(--wine-700); font-weight: 600; display: block; }
.flow p { font-size: .9rem; color: var(--ink-2); font-style: italic; line-height: 1.4; }
.flow.is-locked { opacity: .55; filter: grayscale(.4); }

/* Complete profile */
.cp-layout { display: grid; grid-template-columns: 250px 1fr; gap: 1.5rem; align-items: start; }
.cp-aside { position: sticky; top: calc(var(--header-h) + 1rem); padding: 1.25rem; }
.cp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cp-section { padding: 1.4rem 1.5rem; }
.cp-section__head { display: flex; gap: .9rem; align-items: center; margin-bottom: 1.1rem; }
.cp-section__head h2 { font-size: 1.6rem; color: var(--wine-800); }
.cp-section__head p { color: var(--ink-3); font-size: .95rem; }
.cp-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.cp-fields .span-2 { grid-column: span 2; }
.cp-fields .span-3 { grid-column: 1 / -1; }
.cp-fields .field > label { font-size: .88rem; color: var(--ink-2); }
.cp-fields .input, .cp-fields .select { min-height: 42px; font-size: .95rem; padding-block: .5rem; }
.check-row { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.check-row .check { font-size: .92rem; }
.dropzone { border: 1.5px dashed var(--gold-400); border-radius: var(--r-md); padding: 1.75rem 1rem; text-align: center; display: grid; justify-items: center; gap: .5rem; background: var(--cream-50); transition: background .2s, border-color .2s; }
.dropzone.is-over { background: var(--gold-100); border-color: var(--wine-700); }
.dropzone .ic { width: 40px; height: 40px; color: var(--wine-700); stroke-width: 1.2; }
.previews { display: flex; flex-wrap: wrap; gap: .5rem; }
.previews img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); }
.rules li { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--ink-2); padding: .45rem 0; }
.rules .ic { color: var(--gold-600); width: 20px; height: 20px; }
.sticky-actions { position: sticky; bottom: 0; z-index: 5; padding: 1rem; margin-top: 1rem; background: linear-gradient(180deg, transparent, var(--cream-50) 35%); display: flex; justify-content: center; gap: 1rem; }
.counter { text-align: right; font-size: .75rem; color: var(--ink-3); }

/* Membership */
.pay-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1.25rem 1.75rem; }
.pay-logos { display: flex; flex-wrap: wrap; gap: .6rem; }
.pay-logos span { display: inline-grid; place-items: center; min-width: 76px; height: 40px; padding: 0 .9rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 700; font-size: .9rem; letter-spacing: -.01em; color: #1f2a5a; }
.assurances { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.assurance { display: flex; gap: .9rem; align-items: center; padding: 1.25rem 1.5rem; }
.assurance + .assurance { border-left: 1px solid var(--line); }
.assurance .ic { width: 34px; height: 34px; color: var(--gold-600); stroke-width: 1.3; }
.assurance strong { display: block; font-weight: 500; }
.assurance span { font-size: .88rem; color: var(--ink-3); }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.2rem 0; display: flex; justify-content: space-between; gap: 1rem; font-family: var(--f-display); font-size: 1.4rem; font-weight: 600; color: var(--wine-800); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .35s var(--ease-out); color: var(--gold-600); margin-top: .3rem; }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.3rem; color: var(--ink-2); max-width: 65ch; }

/* Welcome */
.welcome { position: relative; min-height: min(calc(100svh - var(--header-h)), 960px); display: grid; place-items: center; padding: 6rem var(--gutter) 4rem; isolation: isolate; overflow: hidden; }
.welcome__side { position: absolute; top: 0; bottom: 0; width: 34%; z-index: -1; background-size: cover; background-position: center; }
.welcome__side--l { left: 0; background-image: url("../img/aisle-left.webp"); mask-image: linear-gradient(90deg, #000 40%, transparent); }
.welcome__side--r { right: 0; background-image: url("../img/aisle-right.webp"); mask-image: linear-gradient(-90deg, #000 40%, transparent); }
.welcome__card { width: min(660px, 100%); text-align: center; padding: 5rem clamp(1.4rem, 1rem + 3vw, 3.5rem) 2.5rem; position: relative; }
.welcome__card .seal { position: absolute; top: -52px; left: 50%; transform: translateX(-50%); }
.receipt { display: flex; gap: 1.1rem; align-items: center; text-align: left; padding: 1.1rem 1.4rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--cream-50); }
.perk-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.perk { display: grid; justify-items: center; gap: .5rem; text-align: center; padding: .5rem; font-size: .95rem; line-height: 1.25; }
.perk + .perk { border-left: 1px solid var(--line); }
.perk .ic { width: 34px; height: 34px; color: var(--gold-600); stroke-width: 1.3; }

/* Confetti petals */
.petal { position: fixed; top: -20px; width: 12px; height: 16px; border-radius: 60% 0 60% 0; z-index: 250; pointer-events: none; animation: fall linear forwards; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 1.75rem; align-items: start; }

/* 11. MOTION -------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
.hero-in > * { animation: fade-up 1s var(--ease-out) both; }
.hero-in > *:nth-child(2) { animation-delay: .08s; }
.hero-in > *:nth-child(3) { animation-delay: .16s; }
.hero-in > *:nth-child(4) { animation-delay: .24s; }
.hero-in > *:nth-child(5) { animation-delay: .32s; }
.hero-in > *:nth-child(6) { animation-delay: .4s; }
.float { animation: float 7s ease-in-out infinite; }
.float--late { animation-delay: -3.5s; }
.img-reveal { animation: img-reveal 1.4s var(--ease-out) both .15s; }

@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes img-reveal { from { clip-path: inset(100% 0 0 0 round 999px 999px 16px 16px); } to { clip-path: inset(0 0 0 0 round 999px 999px 16px 16px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { 40% { transform: scale(1.3); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }
@keyframes fall { to { transform: translate3d(var(--dx, 40px), 110vh, 0) rotate(540deg); opacity: .9; } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.shake { animation: shake .4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* 12. RESPONSIVE ---------------------------------------------------------- */
@media (min-width: 1500px) {
  .side-words { display: block; }
}
@media (max-width: 1240px) {
  .header-tag { display: none; }
  .fam-layout { grid-template-columns: 260px 1fr; }
  .value-cards, .story-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1080px) {
  .nav, .header-actions .btn { display: none; }
  .menu-toggle { display: grid; }
  .hero__grid, .page-hero__grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero__visual { width: min(400px, 88%); margin-top: 1rem; }
  .float-card--quote { left: -10%; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .path { grid-template-columns: repeat(3, 1fr); row-gap: 2.5rem; }
  .path::before { display: none; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth__visual { min-height: 340px; }
  .profile-layout, .cp-layout { grid-template-columns: 1fr; }
  .cp-aside { position: static; }
  .cp-aside .vsteps { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; }
  .cp-aside .vsteps small, .cp-aside blockquote { display: none; }
  .gallery { max-width: 460px; }
  .fam-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 auto 0 0; width: min(340px, 90vw); z-index: 150; border-radius: 0; overflow-y: auto; transform: translateX(-105%); transition: transform .4s var(--ease-out); box-shadow: var(--shadow-lg); top: 0; }
  .filters.is-open { transform: none; }
  .filters-toggle { display: inline-flex; }
  .upsell { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .assurances { grid-template-columns: 1fr 1fr; }
  .assurance:nth-child(3) { border-left: 0; }
  .assurance:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cta-panel { grid-template-columns: 1fr; }
  .cta-panel__img { min-height: 240px; }
  .welcome__side { width: 50%; opacity: .45; }
}
@media (max-width: 760px) {
  :root { --header-h: 70px; }
  .brand__mark { width: 50px; }
  .brand__name { font-size: 1.25rem; }
  .brand__sub { font-size: .45rem; letter-spacing: .1em; }
  .pillars, .value-cards, .story-cards, .help-grid, .info-grid, .cp-grid, .plans { grid-template-columns: 1fr; }
  .path { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 2rem; }
  .cp-fields { grid-template-columns: 1fr 1fr; }
  .float-card--quote { left: -4%; bottom: -6%; max-width: 200px; }
  .float-card--stat { right: -4%; }
  .perk-row { grid-template-columns: 1fr 1fr; row-gap: 1rem; }
  .perk:nth-child(3) { border-left: 0; }
  .flow { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .results-grid.is-list .profile-card .photo { width: 120px; }
  .profile-card__body { padding: .8rem; }
  .profile-card .btn { font-size: .88rem; padding-inline: .5rem; white-space: normal; line-height: 1.2; }
  .otp input { width: 42px; height: 50px; }
  .stepper li { font-size: .82rem; }
  .info-row { grid-template-columns: 1fr 1.2fr auto; }
  .assurances { grid-template-columns: 1fr; }
  .assurance { border-left: 0 !important; }
  .assurance + .assurance { border-top: 1px solid var(--line); }
}
@media (max-width: 420px) {
  .cp-fields { grid-template-columns: 1fr; }
  .cp-fields .span-2 { grid-column: auto; }
  .phone-row { grid-template-columns: 100px 1fr; }
  .brand__sub { display: none; }
}

/* Late additions */
.intro-form { grid-template-columns: 1.3fr 1fr auto; align-items: end; }
@media (max-width: 1080px) { .intro-form { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .photo-cols { grid-template-columns: 1fr !important; } }
.thumbs .photo__lock span { display: none; }
.info-list { align-content: start; }
.path-step h3 { min-height: 2.3em; display: flex; align-items: center; }
.cp-layout > *, .fam-layout > *, .profile-layout > * { min-width: 0; }
.mobile-menu { overflow-x: hidden; } .mobile-menu .m-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mobile-menu .m-actions .btn { white-space: normal; padding-inline: .75rem; }
@media (max-width: 760px) { .sticky-actions .btn { min-width: 0 !important; flex: 1; padding-inline: 1rem; } #acct-chip { max-width: none !important; width: 100%; flex-wrap: nowrap; } }
