/* Qurba — qurba.cc. Visual world: DESIGN.md (inherits the Qurba brand book v1.0). */
@font-face { font-family: Inter; src: url(/fonts/inter-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url(/fonts/inter-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Inter; src: url(/fonts/inter-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url(/fonts/inter-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Noto Serif"; src: url(/fonts/noto-serif-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Scheherazade New"; src: url(/fonts/scheherazade-new-arabic-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFF; }

:root {
  --green: #0F4C3A;
  --deep: #1A3C34;
  --gold: #E3C57C;
  --gold-ink: #7E611A;
  --ivory: #F5EFE3;
  --ground: #F5F5F0;
  --mint: #EEF5F3;
  --sage: #A8C5BC;
  --ink: #1F2937;
  --slate: #566070;
  --hair: #E2E2D9;
  --white: #FFFFFF;
  --on-green-soft: rgba(245, 239, 227, .82);

  --serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --arabic: "Scheherazade New", "Noto Naskh Arabic", serif;

  --step--1: clamp(.84rem, .82rem + .1vw, .9rem);
  --step-0: clamp(1rem, .97rem + .15vw, 1.075rem);
  --step-1: clamp(1.15rem, 1.08rem + .35vw, 1.35rem);
  --step-2: clamp(1.4rem, 1.25rem + .75vw, 1.85rem);
  --step-3: clamp(1.8rem, 1.5rem + 1.5vw, 2.7rem);
  --step-4: clamp(2.3rem, 1.8rem + 2.6vw, 3.9rem);

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(26, 60, 52, .06), 0 10px 30px -12px rgba(26, 60, 52, .18);
  --shadow-phone: 0 2px 4px rgba(10, 30, 25, .18), 0 30px 60px -20px rgba(10, 30, 25, .45);
  --wrap: 1180px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
body {
  margin: 0; touch-action: manipulation; -webkit-tap-highlight-color: rgba(227, 197, 124, .25); font-family: var(--sans); font-size: var(--step-0); line-height: 1.6;
  color: var(--ink); background: var(--ground);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--deep); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--gold); color: var(--deep); }
:focus-visible { outline: 3px solid var(--gold-ink); outline-offset: 3px; border-radius: 6px; }
.on-green :focus-visible { outline-color: var(--gold); }
h1, h2, h3 { line-height: 1.15; margin: 0; text-wrap: balance; color: var(--deep); }
h1 { font-family: var(--serif); font-weight: 600; font-size: var(--step-4); letter-spacing: -.015em; }
h2 { font-size: var(--step-3); font-weight: 700; letter-spacing: -.025em; }
h3 { font-size: var(--step-1); font-weight: 650; letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }
.ar { font-family: var(--arabic); font-weight: 700; direction: rtl; text-align: left; }
.skip { position: absolute; left: -9999px; top: .5rem; z-index: 100; background: var(--white); padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { left: .5rem; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.lede { font-size: var(--step-1); color: var(--slate); max-width: 38rem; }
.muted { color: var(--slate); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 1.25em; height: 1.25em; flex: none; }

/* ── Header ─────────────────────────────────────────────────────────── */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--green); color: var(--ivory); }
.site-head .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ivory); text-decoration: none; }
.brand svg { width: 34px; height: 34px; }
.brand span { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; letter-spacing: .02em; }
.nav { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.nav a { color: var(--on-green-soft); text-decoration: none; font-weight: 500; font-size: .96rem; padding: .55rem .8rem; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ivory); background: rgba(245, 239, 227, .08); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); border-radius: 8px 8px 2px 2px; }
.nav .btn { margin-left: .75rem; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; color: var(--ivory); padding: .6rem; border-radius: 8px; cursor: pointer; min-width: 44px; min-height: 44px; }
.menu-btn svg { width: 26px; height: 26px; }
@media (max-width: 880px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--green); padding: .5rem var(--gutter) 1.25rem; border-top: 1px solid rgba(245, 239, 227, .12); }
  .nav.open { display: flex; }
  .nav a { padding: .9rem .25rem; font-size: 1.05rem; border-bottom: 1px solid rgba(245, 239, 227, .08); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--gold); }
  .nav .btn, .nav a.btn-gold { margin: 1rem 0 0; justify-content: center; border-radius: 12px; border-bottom: 0; padding: .9rem 1rem; }
  .nav.open { box-shadow: 0 24px 40px -12px rgba(0, 0, 0, .45); }
}

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: .6rem; font: 600 1rem/1.2 var(--sans); text-decoration: none; padding: .85rem 1.3rem; border-radius: 12px; border: 0; cursor: pointer; transition: transform .15s ease-out, background-color .15s ease-out, box-shadow .15s ease-out; min-height: 48px; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-gold { background: var(--gold); color: var(--deep); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .45); }
.btn-gold:hover { background: #EBD08F; }
.btn-deep { background: var(--deep); color: var(--white); }
.btn-deep:hover { background: #224B41; }
.btn-line { background: transparent; color: var(--deep); box-shadow: inset 0 0 0 1.5px var(--deep); }
.btn-line:hover { background: var(--mint); }
.btn-light { background: transparent; color: var(--ivory); box-shadow: inset 0 0 0 1.5px rgba(245, 239, 227, .7); }
.btn-light:hover { background: rgba(245, 239, 227, .12); box-shadow: inset 0 0 0 1.5px var(--ivory); }
.nav .btn { padding: .6rem 1rem; min-height: 44px; font-size: .95rem; }
.nav a.btn-gold, .nav a.btn-gold:hover { color: var(--deep); background: var(--gold); box-shadow: none; }
.play { padding: .7rem 1.2rem .7rem 1rem; }
.play svg { width: 1.6rem; height: 1.6rem; }
.play span { text-align: left; }
.play small { display: block; font-size: .72rem; font-weight: 500; opacity: .85; letter-spacing: .01em; }
.play b { display: block; font-size: 1.08rem; font-weight: 700; }
.ios-note { display: inline-flex; align-items: center; gap: .45rem; font-size: .92rem; }
.ios-note svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }
.play svg { fill: currentColor; }
svg.i { fill: currentColor; }
svg.i [fill="none"] { fill: none; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.4rem; margin-top: 2rem; }

/* ── Green bands with the Qurba grid ───────────────────────────────── */
.on-green { background-color: var(--green); color: var(--ivory); position: relative; isolation: isolate; }
.on-green h1, .on-green h2, .on-green h3 { color: var(--ivory); }
.on-green .lede, .on-green .muted { color: var(--on-green-soft); }
.on-green a:not(.btn) { color: var(--ivory); }
.pattern::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: url(/img/pattern.svg); background-size: 220px 220px; opacity: .055; pointer-events: none; }

/* ── Phones (real screenshots in a CSS device) ─────────────────────── */
.phone { --w: 280px; width: var(--w); aspect-ratio: 720 / 1604; padding: calc(var(--w) * .035); background: #0D1412; border-radius: calc(var(--w) * .15); box-shadow: var(--shadow-phone), inset 0 0 0 1.5px #2D3A36; flex: none; position: relative; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--w) * .118); background: var(--ground); }
.phone.sm { --w: 230px; }
.phone.xs { --w: 190px; }

/* ── Sections ───────────────────────────────────────────────────────── */
section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.sec-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head p { margin-top: 1rem; }
.center { text-align: center; margin-inline: auto; }
.center .lede { margin-inline: auto; }

/* Hero */
.hero { padding-block: clamp(3rem, 7vw, 6rem) 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: end; gap: 2rem; }
.hero-copy { padding-bottom: clamp(3rem, 7vw, 6.5rem); align-self: center; }
.hero h1 { max-width: 17ch; font-size: clamp(2.3rem, 1.7rem + 2.3vw, 3.6rem); }
.hero .lede { margin-top: 1.4rem; }
.hero-phones { position: relative; height: clamp(470px, 52vw, 640px); }
.hero-phones .phone { position: absolute; bottom: -12%; }
.hero-phones .p1 { --w: clamp(230px, 24vw, 300px); left: 8%; z-index: 2; }
.hero-phones .p2 { --w: clamp(200px, 21vw, 262px); left: 52%; bottom: -4%; }
.facts { display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; margin-top: 2.2rem; padding: 0; list-style: none; font-size: .95rem; color: var(--on-green-soft); }
.facts li { display: inline-flex; align-items: center; gap: .5rem; }
.facts svg { color: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .hero-phones .phone { animation: rise .9s cubic-bezier(.16, 1, .3, 1) both; }
  .hero-phones .p2 { animation-delay: .12s; }
  @keyframes rise { from { transform: translateY(48px); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-bottom: 0; }
  .hero-phones { height: 430px; margin-top: 1rem; }
  .hero-phones .p1 { --w: 220px; left: calc(50% - 205px); }
  .hero-phones .p2 { --w: 195px; left: calc(50% + 0px); }
}
@media (max-width: 420px) {
  .hero-phones .p1 { left: 2%; --w: 200px; }
  .hero-phones .p2 { left: auto; right: 2%; --w: 172px; }
}

/* The teaching cycle — the one memorable element */
.cycle { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); position: relative; counter-reset: step; }
.cycle::before { content: ""; position: absolute; top: 22px; left: 6%; right: 6%; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 18px); }
.cycle li { counter-increment: step; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.cycle .num { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--deep); color: var(--gold); font-weight: 700; box-shadow: 0 0 0 6px var(--ground); position: relative; }
.cycle .num::after { content: counter(step); }
.cycle h3 { margin-top: 1.1rem; }
.cycle p { margin-top: .45rem; color: var(--slate); font-size: .97rem; max-width: 30ch; }
.cycle .phone { --w: min(100%, 230px); margin-top: 1.6rem; }
@media (max-width: 960px) {
  .cycle { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3.5rem; }
  .cycle::before { display: none; }
}
@media (max-width: 560px) {
  .cycle { grid-template-columns: 1fr; }
  .cycle .phone { --w: 240px; }
}

/* Split feature rows */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.split + .split { margin-top: clamp(4rem, 8vw, 7rem); }
.split.flip .split-media { order: -1; }
.split-media { display: flex; justify-content: center; gap: 1.25rem; align-items: flex-end; }
.split-copy h2 { font-size: var(--step-3); }
.split-copy p { margin-top: 1rem; color: var(--slate); max-width: 34rem; }
.ticks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .8rem; }
.ticks li { display: flex; gap: .7rem; align-items: flex-start; }
.ticks svg { color: var(--green); margin-top: .2rem; }
.on-green .ticks svg { color: var(--gold); }
/* One phone beside the text: keep the two together instead of at opposite edges */
@media (min-width: 881px) {
  .split:has(> .split-media > .phone:only-child) { grid-template-columns: minmax(0, 36rem) auto; justify-content: center; gap: clamp(3rem, 7vw, 7rem); }
}
@media (max-width: 880px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split.flip .split-media { order: 0; }
  .split-media { justify-content: flex-start; }
}
@media (max-width: 520px) { .split-media .phone.sm { --w: calc((100vw - 2 * var(--gutter) - 1.25rem) / 2); } .split-media { justify-content: center; } }

/* Mushaf band */
.mushaf { background: var(--white); border-block: 1px solid var(--hair); }
.basmala { font-size: clamp(2rem, 5vw, 3.2rem); color: var(--deep); line-height: 1.6; text-align: left; }

/* Audience panels */
.audiences { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.aud { border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 2.75rem); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: end; overflow: hidden; min-height: 360px; }
.aud.teach { background: var(--white); box-shadow: var(--shadow); }
.aud.inst { background: var(--deep); color: var(--ivory); }
.aud.inst h3, .aud.inst a { color: var(--ivory); }
.aud.inst p { color: var(--on-green-soft); }
.aud h3 { font-size: var(--step-2); }
.aud p { margin-top: .8rem; color: var(--slate); }
.aud .go { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.4rem; font-weight: 600; }
.aud .phone { --w: 170px; margin-bottom: calc(-1 * clamp(1.75rem, 4vw, 2.75rem) - 40px); }
@media (max-width: 880px) { .audiences { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .aud { grid-template-columns: 1fr; min-height: 0; } .aud .phone { display: none; } }

.students-note { margin-top: 1.5rem; display: flex; gap: .9rem; align-items: center; padding: 1.1rem 1.4rem; border-radius: var(--radius); background: var(--mint); color: var(--deep); }
.students-note svg { width: 1.6rem; height: 1.6rem; color: var(--green); }

/* Plain feature list (no card grid) */
.flist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem 3rem; list-style: none; padding: 0; margin: 0; }
.flist li { border-top: 2px solid var(--deep); padding-top: 1.1rem; }
.flist svg { width: 1.6rem; height: 1.6rem; color: var(--green); }
.on-green .flist svg { color: var(--gold); }
.on-green .flist li { border-top-color: rgba(227, 197, 124, .55); }
.flist h3 { margin-top: .8rem; font-size: 1.12rem; }
.flist p { margin-top: .4rem; color: var(--slate); font-size: .97rem; }
@media (max-width: 880px) { .flist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .flist { grid-template-columns: 1fr; } }

/* Closing band */
.closing { text-align: center; }
.closing .mark { width: 72px; height: 72px; margin: 0 auto 1.5rem; }
.closing h2 { font-family: var(--serif); font-weight: 600; font-size: var(--step-3); }
.closing .cta-row { justify-content: center; }
.tagline { margin-top: 1rem; color: var(--gold); font-weight: 500; letter-spacing: .02em; }

/* Page heads (inner pages) */
.page-head { padding-block: clamp(3rem, 7vw, 5.5rem); }
.page-head .lede { margin-top: 1.2rem; }

/* Pricing */
.billing { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--hair); margin-top: 2rem; position: relative; }
.billing input { position: absolute; opacity: 0; pointer-events: none; }
.billing label { padding: .6rem 1.2rem; border-radius: 999px; font-weight: 600; font-size: .95rem; cursor: pointer; color: var(--slate); min-height: 44px; display: inline-flex; align-items: center; gap: .5rem; }
.billing label span { font-size: .78rem; font-weight: 600; color: var(--gold-ink); }
#bill-m:checked ~ label[for="bill-m"], #bill-y:checked ~ label[for="bill-y"] { background: var(--deep); color: var(--white); }
#bill-y:checked ~ label[for="bill-y"] span { color: var(--gold); }
#bill-m:focus-visible ~ label[for="bill-m"], #bill-y:focus-visible ~ label[for="bill-y"] { outline: 3px solid var(--gold-ink); outline-offset: 2px; }
.price-y { display: none; }
body:has(#bill-y:checked) .price-y { display: inline; }
body:has(#bill-y:checked) .price-m { display: none; }
.plan-group + .plan-group { margin-top: clamp(4rem, 8vw, 6rem); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2rem; align-items: stretch; }
.plan { background: var(--white); border-radius: var(--radius-lg); padding: 2rem 1.75rem; box-shadow: inset 0 0 0 1px var(--hair); display: flex; flex-direction: column; }
.plan.pick { box-shadow: inset 0 0 0 2px var(--deep), var(--shadow); position: relative; }
.plan .badge { position: absolute; top: -.8rem; left: 1.75rem; background: var(--gold); color: var(--deep); font-size: .8rem; font-weight: 700; padding: .25rem .75rem; border-radius: 999px; }
.plan h3 { font-size: 1.3rem; }
.plan .for { color: var(--slate); font-size: .95rem; margin-top: .3rem; min-height: 3em; }
.plan .amount { margin-top: 1.25rem; display: flex; align-items: baseline; gap: .4rem; }
.plan .amount strong { font-size: 2.6rem; font-weight: 700; letter-spacing: -.03em; color: var(--deep); line-height: 1; font-variant-numeric: tabular-nums; }
.plan .amount em { font-style: normal; color: var(--slate); font-size: .95rem; }
.plan .note { color: var(--slate); font-size: .86rem; margin-top: .35rem; min-height: 1.4em; }
.plan .limits { margin: 1.4rem 0 0; padding: 1.2rem 0 0; border-top: 1px solid var(--hair); list-style: none; display: grid; gap: .55rem; font-size: .96rem; }
.plan .limits b { color: var(--deep); font-variant-numeric: tabular-nums; }
.plan .btn { margin-top: auto; justify-content: center; }
.plan .limits + .btn, .plan .ticks + .btn { margin-top: 1.75rem; }
.plan .ticks { margin-top: 1.1rem; gap: .5rem; font-size: .93rem; }
.plan .ticks svg { width: 1.05rem; height: 1.05rem; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 30rem; } }
.includes { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; color: var(--slate); font-size: .95rem; }
.includes span { display: inline-flex; align-items: center; gap: .45rem; }
.includes svg { color: var(--green); width: 1.1rem; height: 1.1rem; }

/* FAQ */
.faq > * { max-width: 50rem; }
.faq h2 { font-size: var(--step-2); margin: 3rem 0 .75rem; }
.faq h2:first-child { margin-top: 0; }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 2.5rem 1.15rem 0; font-weight: 600; color: var(--deep); position: relative; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .4rem; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--gold-ink); border-bottom: 2px solid var(--gold-ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease-out; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details > div { padding: 0 0 1.3rem; color: var(--slate); max-width: 44rem; }
.faq details > div p + p { margin-top: .7rem; }

/* Prose (legal, about) */
.prose > * { max-width: 46rem; }
.prose h2 { font-size: var(--step-2); margin: 2.6rem 0 .8rem; }
.prose h3 { font-size: 1.08rem; margin: 1.6rem 0 .5rem; }
.prose p, .prose li { color: #374151; }
.prose p + p { margin-top: .9rem; }
.prose ul { padding-left: 1.2rem; margin: .5rem 0 0; }
.prose li + li { margin-top: .4rem; }
.prose .meta { color: var(--slate); font-size: .95rem; margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .7rem .8rem; border-bottom: 1px solid var(--hair); }
.prose th { color: var(--deep); background: var(--mint); }
.toc { list-style: none; padding: 1.2rem 1.4rem; margin: 2rem 0 0; background: var(--white); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--hair); columns: 2; column-gap: 2rem; font-size: .95rem; }
.toc li { break-inside: avoid; padding: .2rem 0; }
@media (max-width: 600px) { .toc { columns: 1; } }

/* Contact, delete, join panels */
.panel { background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.5rem); box-shadow: inset 0 0 0 1px var(--hair); }
.mail-big { font-size: clamp(1.5rem, 4vw, 2.3rem); font-weight: 700; letter-spacing: -.02em; color: var(--deep); text-decoration: none; word-break: break-all; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 1rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.2rem 1fr; gap: .8rem; align-items: start; }
.steps li::before { content: counter(s); width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--mint); color: var(--deep); font-weight: 700; display: grid; place-items: center; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

/* Footer */
.site-foot { background: var(--deep); color: var(--on-green-soft); padding-block: 3.5rem 2.5rem; font-size: .95rem; }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.site-foot h2 { font-size: 1.2rem; font-weight: 600; color: var(--ivory); margin-bottom: .8rem; letter-spacing: 0; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-foot a { color: var(--on-green-soft); text-decoration: none; }
.site-foot a:hover { color: var(--ivory); text-decoration: underline; }
.site-foot .brand { margin-bottom: 1rem; }
.site-foot .legal { grid-column: 1 / -1; border-top: 1px solid rgba(245, 239, 227, .12); padding-top: 1.5rem; margin-top: 1rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; font-size: .88rem; }
@media (max-width: 800px) { .site-foot .wrap { grid-template-columns: 1fr 1fr; } .site-foot .about-col { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Email links: confirmation and password reset */
.auth-head { min-height: 52vh; display: grid; align-items: center; }
.page-head .wrap > .mark { width: 64px; height: auto; margin-inline: auto; display: block; }
body[data-auth="reset"] main > .section { padding-top: clamp(2rem, 4vw, 3rem); }
body[data-auth="reset"] .auth-head { min-height: 0; }
.auth-head h1 { margin-top: 1.5rem; font-size: var(--step-3); }
.auth-head .muted { color: var(--on-green-soft); }
.reset-box { background: var(--white); border: 1px solid var(--hair); border-radius: 14px; padding: clamp(1.25rem, 4vw, 2rem); }
.reset-box h2 { font-size: var(--step-1); margin-bottom: 1rem; }
.reset-box label { display: block; font-weight: 600; margin: 1rem 0 .4rem; }
.reset-box input { width: 100%; min-height: 48px; padding: .7rem .9rem; border: 1px solid var(--hair); border-radius: 10px; font: inherit; background: var(--ground); color: var(--ink); }
.reset-box input:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.reset-box button { margin-top: 1.4rem; width: 100%; justify-content: center; }
.reset-box button:disabled { opacity: .6; cursor: default; }
.form-msg { margin-top: 1rem; min-height: 1.5em; }
.form-msg.ok { color: var(--green); font-weight: 600; }
.form-msg.bad { color: #A12C2C; font-weight: 600; }
