/* Mahraaz website. Colours and type follow brand/mahraaz-brand-spec.md and
   brand/mahraaz-tokens.json; keep the token names when changing them. */

@font-face {
  font-family: 'Nunito';
  src: url('fonts/Nunito-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('fonts/Nunito-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('fonts/Nunito-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Gulzar';
  src: url('fonts/Gulzar-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --surface: #f7f4fb;
  --surface-raised: #ffffff;
  --surface-sunken: #eee8f5;
  --line: #e2d9ee;
  --ink: #241a33;
  --ink-muted: #665a7a;
  --night: #33224f;
  --night-deep: #22163a;
  --plum: #6441a0;
  --on-plum: #ffffff;
  --plum-soft: #ece4f7;
  --anaar: #a82c45;
  --anaar-soft: #f8e3e7;
  --saunf: #3a6b4a;
  --saunf-soft: #e2f0e6;
  --leaf-light: #a6ddb6;
  --chandni: #e4a72a;
  --chandni-ink: #7a5a10;
  --chandni-soft: #fbefcf;
  --focus-ring: #5b3a8c;
  --moonlight: #f1ecf7;
  /* Phase colours on night grounds (the dark-theme values). */
  --anaar-night: #f07a8e;
  --saunf-night: #8fc79f;
  --chandni-night: #f0c25e;
  --plum-night: #b79ae8;
  --shadow: 0 1px 2px rgb(36 26 51 / 5%), 0 12px 32px rgb(36 26 51 / 7%);
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --sans: 'Nunito', system-ui, sans-serif;
  --urdu: 'Gulzar', 'Noto Nastaliq Urdu', serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #16111f;
    --surface-raised: #211a2e;
    --surface-sunken: #100c17;
    --line: #3a3049;
    --ink: #f1ecf7;
    --ink-muted: #b4a8c6;
    --plum: #b79ae8;
    --on-plum: #16111f;
    --plum-soft: #2f2245;
    --anaar: #f07a8e;
    --anaar-soft: #3a1821;
    --saunf: #8fc79f;
    --saunf-soft: #16291d;
    --chandni: #f0c25e;
    --chandni-ink: #f0c25e;
    --chandni-soft: #3a2e12;
    --focus-ring: #b79ae8;
    --shadow: none;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.15;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--plum);
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 6px;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-inline: 16px;
}
.narrow {
  max-width: 820px;
}

@media (min-width: 720px) {
  .wrap {
    padding-inline: 32px;
  }
}

/* ─── Languages ──────────────────────────────────────────────────────── */

.ur {
  display: none;
}
html[lang='ur'] .en {
  display: none;
}
html[lang='ur'] .ur {
  display: inline;
}
[lang='ur'] {
  font-family: var(--urdu);
}
[lang='en'] {
  font-family: var(--sans);
}
/* Nastaliq letters must join, so Urdu never takes letter-spacing or capitals. */
[lang='ur'],
[lang='ur'] * {
  letter-spacing: 0 !important;
  text-transform: none !important;
}
/* Nastaliq reads smaller than Nunito at the same size (the app uses 20 for body). */
html[lang='ur'] body {
  font-size: 20px;
  line-height: 2.1;
}
html[lang='ur'] :is(h1, h2, h3, .ring-day, .band-name, .step-num) {
  font-weight: 400;
  line-height: 1.9;
}
html[lang='ur'] :is(.fine, .small, .chip, .evidence, .remedy-note, .remedy-why, .footer) {
  font-size: 18px;
}

/* In English, each main heading carries its Urdu line in Nastaliq as a
   decorative accent that screen readers skip. In Urdu the heading itself is
   the Urdu, so the accent is not shown. */
.accent {
  margin-top: 10px;
  color: var(--plum);
  font: 400 clamp(1.4rem, 1.1rem + 1vw, 1.9rem) / 1.9 var(--urdu);
  direction: rtl;
  text-align: end;
}
html[lang='ur'] .accent {
  display: none;
}
.hero .accent,
.privacy .accent {
  color: var(--chandni-night);
}

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -100px;
  z-index: 20;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  background: var(--surface-raised);
}
.skip:focus {
  top: 16px;
}

/* ─── Shared pieces ──────────────────────────────────────────────────── */

section {
  padding-block: 96px;
}
@media (max-width: 719px) {
  section {
    padding-block: 64px;
  }
}

.title {
  max-width: 20em;
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
html[lang='ur'] .title {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
}

.subtitle {
  max-width: 38em;
  margin-top: 14px;
  color: var(--ink-muted);
  font-size: 1.1rem;
}
html[lang='ur'] .subtitle {
  font-size: 1.05em;
}

.fine {
  margin-top: 16px;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.dot {
  display: inline-block;
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-period {
  background: var(--anaar-night);
}
.dot-follicular {
  background: var(--saunf-night);
}
.dot-fertile {
  background: #f7dfa4;
}
.dot-ovulation {
  background: var(--chandni-night);
}
.dot-luteal {
  background: var(--plum-night);
}

.icon {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--plum-soft);
  color: var(--plum);
}
.icon svg,
.remedy-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tint-anaar {
  background: var(--anaar-soft);
  color: var(--anaar);
}
.tint-saunf {
  background: var(--saunf-soft);
  color: var(--saunf);
}
.tint-chandni {
  background: var(--chandni-soft);
  color: var(--chandni-ink);
}
.tint-plum {
  background: var(--plum-soft);
  color: var(--plum);
}

/* A sky of small stars, drawn with gradients so it needs no image. */
.stars,
.closing-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgb(241 236 247 / 70%), transparent),
    radial-gradient(1px 1px at 28% 62%, rgb(241 236 247 / 50%), transparent),
    radial-gradient(1.5px 1.5px at 44% 12%, rgb(240 194 94 / 70%), transparent),
    radial-gradient(1px 1px at 57% 78%, rgb(241 236 247 / 45%), transparent),
    radial-gradient(1.5px 1.5px at 71% 30%, rgb(241 236 247 / 60%), transparent),
    radial-gradient(1px 1px at 86% 70%, rgb(240 194 94 / 55%), transparent),
    radial-gradient(1px 1px at 93% 14%, rgb(241 236 247 / 50%), transparent),
    radial-gradient(1px 1px at 6% 84%, rgb(241 236 247 / 40%), transparent);
  background-size: 640px 520px;
}

/* ─── Navigation ─────────────────────────────────────────────────────── */

.nav-shell {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(34 22 58 / 88%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgb(241 236 247 / 8%);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
}
.brand img {
  width: 124px;
}
.nav-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgb(241 236 247 / 12%);
  border-radius: 999px;
  background: rgb(241 236 247 / 6%);
}
.nav-link,
.lang {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: rgb(241 236 247 / 85%);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.nav-link:hover,
.lang:hover {
  background: rgb(241 236 247 / 10%);
  color: var(--moonlight);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--chandni-night);
  color: var(--night-deep);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
}
.nav-cta:hover {
  background: #f5d084;
}
@media (max-width: 800px) {
  .nav-link {
    display: none;
  }
  .brand img {
    width: 104px;
  }
}

/* ─── Hero ───────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 32px 56px;
  background:
    radial-gradient(900px 480px at 80% 10%, rgb(183 154 232 / 22%), transparent 65%),
    linear-gradient(180deg, var(--night-deep), var(--night));
  color: var(--moonlight);
}
.hero-body {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1000px) {
  .hero-body {
    grid-template-columns: minmax(0, 1fr) 460px;
    gap: 56px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px 14px;
  border: 1px solid rgb(240 194 94 / 35%);
  border-radius: 999px;
  background: rgb(240 194 94 / 8%);
  color: var(--chandni-night);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
html[lang='ur'] .eyebrow {
  font-size: 1.05rem;
}

h1 {
  font-size: clamp(2.4rem, 1.3rem + 3.6vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.06;
  text-wrap: balance;
}
h1 em {
  display: block;
  font-style: normal;
}
/* In English the gold goes to the Nastaliq line below; in Urdu, to the second sentence. */
html[lang='ur'] h1 em {
  color: var(--chandni-night);
}
html[lang='ur'] h1 {
  font-size: clamp(2.3rem, 1.4rem + 3.4vw, 3.6rem);
  line-height: 1.8;
}
.hero .accent {
  font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem);
  opacity: 0.85;
}

.lead {
  max-width: 32em;
  margin-top: 22px;
  color: rgb(241 236 247 / 80%);
  font-size: 1.12rem;
}
html[lang='ur'] .lead {
  font-size: 1.1em;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 184px;
  min-height: 58px;
  padding: 8px 20px;
  border-radius: 14px;
  background: var(--moonlight);
  color: var(--night-deep);
  text-decoration: none;
  white-space: nowrap;
}
.store svg {
  flex: none;
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.store small {
  font-size: 0.78rem;
  opacity: 0.8;
}
.store strong {
  font-size: 1.15rem;
  font-weight: 800;
}
.store[aria-disabled='true'] {
  border: 1px solid rgb(241 236 247 / 22%);
  background: rgb(241 236 247 / 6%);
  color: var(--moonlight);
  cursor: default;
}
.hero-note {
  margin-top: 18px;
  color: rgb(241 236 247 / 65%);
  font-size: 0.95rem;
}

/* The sample cycle ring, matching the app's Today ring */

.ring-card {
  position: relative;
  justify-self: center;
  width: min(440px, 100%);
  padding: 18px 20px 20px;
  border: 1px solid rgb(241 236 247 / 12%);
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgb(241 236 247 / 9%), rgb(241 236 247 / 3%));
  box-shadow: 0 40px 80px rgb(10 6 18 / 35%);
}
.ring-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
}
.ring-label {
  color: rgb(241 236 247 / 60%);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ring-wrap {
  position: relative;
  width: min(340px, 100%);
  margin: 0 auto;
}
/* On short laptop screens the ring shrinks so the whole hero fits. */
@media (min-width: 1000px) and (max-height: 860px) {
  .ring-wrap {
    width: 320px;
  }
  .ring-day {
    font-size: 2.2rem;
  }
  html[lang='ur'] h1 {
    font-size: 2.9rem;
    line-height: 1.7;
  }
  html[lang='ur'] .lead {
    font-size: 1em;
  }
}
.ring {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.arc {
  fill: none;
  stroke-linecap: round;
}
.mark {
  fill: rgb(241 236 247 / 55%);
  font: 600 16px var(--sans);
  text-anchor: middle;
}
.mark[lang='ur'] {
  font: 400 19px var(--urdu);
}
.mark-active {
  fill: var(--moonlight);
  font-weight: 800;
}
.ring-hit {
  fill: none;
  stroke: transparent;
  stroke-width: 64;
  pointer-events: stroke;
  touch-action: none;
  cursor: grab;
}
.ring-hit:active {
  cursor: grabbing;
}
.marker {
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgb(0 0 0 / 35%));
}
.marker-rim {
  fill: none;
  stroke: #fff;
  stroke-opacity: 0.9;
  stroke-width: 1.5;
}
.marker-edge {
  fill: none;
  stroke: var(--night-deep);
  stroke-opacity: 0.45;
  stroke-width: 1.5;
}
.ring-centre {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 2px;
  text-align: center;
  pointer-events: none;
}
.ring-day {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.ring-small {
  color: rgb(241 236 247 / 65%);
  font-size: 0.9rem;
}
.ring-part {
  max-width: 11em;
  color: var(--moonlight);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.25;
}

.next-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  background: rgb(240 122 142 / 12%);
}
.next-label {
  color: rgb(241 236 247 / 75%);
  font-weight: 600;
}
.next-date {
  color: var(--anaar-night);
  font-weight: 800;
}

.part-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-top: 10px;
}
.part-buttons button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  color: rgb(241 236 247 / 75%);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.part-buttons button:hover {
  background: rgb(241 236 247 / 7%);
}
.part-buttons button[aria-pressed='true'] {
  border-color: rgb(241 236 247 / 20%);
  background: rgb(241 236 247 / 12%);
  color: var(--moonlight);
}

.fertile-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgb(241 236 247 / 80%);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.fertile-switch input {
  width: 18px;
  height: 18px;
  accent-color: var(--chandni-night);
}
.fertile-warning {
  margin-top: 6px;
  color: var(--chandni-night);
  font-size: 0.88rem;
  text-align: center;
}

.tip {
  margin-top: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  background: rgb(241 236 247 / 7%);
}
.tip-note {
  color: rgb(241 236 247 / 85%);
  font-size: 0.95rem;
}
.tip-remedy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 8px;
  font-weight: 800;
}
.tip .chip {
  background: rgb(143 199 159 / 18%);
  color: var(--saunf-night);
}
.leaf {
  width: 14px;
  height: 14px;
  border-radius: 0 70% 0 70%;
  background: var(--leaf-light);
}

/* ─── Remedy checker ─────────────────────────────────────────────────── */

.remedies {
  background: var(--surface-raised);
  border-bottom: 1px solid var(--line);
}
.remedies-grid {
  display: grid;
  gap: 40px;
  align-items: start;
}
@media (min-width: 960px) {
  .remedies-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 64px;
  }
  .remedies-intro {
    position: sticky;
    top: 120px;
  }
}

.checker {
  padding: 22px;
  border-radius: var(--radius-xl);
  background: var(--surface-sunken);
}
.situations {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.situations button {
  min-height: 42px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}
.situations button:hover {
  border-color: var(--plum);
}
.situations button[aria-pressed='true'] {
  border-color: var(--plum);
  background: var(--plum);
  color: var(--on-plum);
}
.checker-summary {
  margin: 14px 4px 10px;
  color: var(--ink-muted);
  font-size: 0.95rem;
  font-weight: 600;
}
.remedy-list {
  display: grid;
  gap: 8px;
}
.remedy {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  transition: opacity 0.25s;
}
.remedy-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--saunf-soft);
  color: var(--saunf);
}
.remedy-body {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.remedy-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}
.remedy-name {
  font-weight: 800;
}
.evidence {
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}
.evidence-strong {
  background: var(--saunf-soft);
  color: var(--saunf);
}
.evidence-moderate {
  background: var(--plum-soft);
  color: var(--plum);
}
.evidence-emerging {
  background: var(--chandni-soft);
  color: var(--chandni-ink);
}
.evidence-traditional {
  background: var(--surface-sunken);
  color: var(--ink-muted);
}
.remedy-note {
  color: var(--ink-muted);
  font-size: 0.92rem;
}
.remedy-note::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-inline-end: 8px;
  border-radius: 50%;
  background: var(--chandni);
  vertical-align: middle;
}
.remedy.is-hidden {
  background: transparent;
  outline: 1.5px dashed var(--line);
  outline-offset: -1.5px;
}
.remedy.is-hidden :is(.remedy-icon, .remedy-head) {
  opacity: 0.45;
}
.remedy.is-hidden .remedy-name {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}
.remedy-why {
  color: var(--anaar);
  font-size: 0.92rem;
  font-weight: 600;
}

/* ─── Kitchen colours ────────────────────────────────────────────────── */

.band {
  display: grid;
  margin-top: 44px;
}
.band > li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 24px 32px;
  border-top: 6px solid;
}
@media (min-width: 900px) {
  .band {
    grid-template-columns: repeat(4, 1fr);
  }
  .band > li:first-child {
    border-start-start-radius: var(--radius-lg);
    border-end-start-radius: var(--radius-lg);
  }
  .band > li:last-child {
    border-start-end-radius: var(--radius-lg);
    border-end-end-radius: var(--radius-lg);
  }
}
@media (max-width: 899px) {
  .band > li:first-child {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .band > li:last-child {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
}
.band h3 {
  font-size: 1.25rem;
  font-weight: 800;
}
.band p:not(.band-name) {
  color: var(--ink-muted);
}
.band-name {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
html[lang='ur'] .band-name {
  font-size: 1.1rem;
}
.band-anaar {
  border-color: var(--anaar) !important;
  background: var(--anaar-soft);
}
.band-anaar .band-name {
  color: var(--anaar);
}
.band-saunf {
  border-color: var(--saunf) !important;
  background: var(--saunf-soft);
}
.band-saunf .band-name {
  color: var(--saunf);
}
.band-chandni {
  border-color: var(--chandni) !important;
  background: var(--chandni-soft);
}
.band-chandni .band-name {
  color: var(--chandni-ink);
}
.band-plum {
  border-color: var(--plum) !important;
  background: var(--plum-soft);
}
.band-plum .band-name {
  color: var(--plum);
}

/* ─── Features ───────────────────────────────────────────────────────── */

.features {
  background: linear-gradient(180deg, var(--surface), var(--surface-sunken));
}
.grid {
  display: grid;
  gap: 16px;
  margin-top: 44px;
}
@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 980px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.card {
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  box-shadow: var(--shadow);
}
.card h3 {
  margin: 20px 0 8px;
  font-size: 1.2rem;
  font-weight: 800;
}
.card p {
  color: var(--ink-muted);
}

/* ─── Steps ──────────────────────────────────────────────────────────── */

.step-list {
  display: grid;
  gap: 36px;
  margin-top: 48px;
  counter-reset: step;
}
@media (min-width: 820px) {
  .step-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
  }
}
.step-list li {
  display: grid;
  gap: 10px;
  align-content: start;
}
.step-num {
  color: var(--plum);
  font: 800 3.4rem/1 var(--sans);
}
.step-list h3 {
  font-size: 1.3rem;
  font-weight: 800;
}
.step-list p {
  color: var(--ink-muted);
}

/* ─── Screens ────────────────────────────────────────────────────────── */

.screens {
  background: var(--surface-sunken);
}
/* The row starts at the edge so a narrow screen can scroll to every phone;
   centring an overflowing row would push the first one out of reach. */
.strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 280px);
  justify-content: start;
  gap: 28px;
  margin-top: 28px;
  padding-block: 16px 48px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
}
.strip li {
  scroll-snap-align: start;
}
@media (min-width: 760px) {
  .strip {
    justify-content: center;
  }
}
.strip p {
  margin-top: 14px;
  font-weight: 800;
  text-align: center;
}
.phone {
  overflow: hidden;
  aspect-ratio: 921 / 2048;
  border: 7px solid #1d1429;
  border-radius: 34px;
  background: var(--night);
  box-shadow: 0 16px 32px rgb(36 26 51 / 16%);
}
.phone > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── Privacy ────────────────────────────────────────────────────────── */

.privacy {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--night), var(--night-deep));
  color: var(--moonlight);
}
.privacy-moon {
  position: absolute;
  top: -60px;
  inset-inline-end: -80px;
  width: 420px;
  fill: var(--chandni-night);
  opacity: 0.07;
  pointer-events: none;
}
html[dir='rtl'] .privacy-moon {
  transform: scaleX(-1);
}
.points {
  position: relative;
  display: grid;
  gap: 28px 56px;
  margin-top: 48px;
}
@media (min-width: 760px) {
  .points {
    grid-template-columns: repeat(2, 1fr);
  }
}
.points li {
  padding-inline-start: 26px;
  border-inline-start: 2px solid rgb(166 221 182 / 45%);
}
.points h3 {
  margin-bottom: 6px;
  font-size: 1.2rem;
  font-weight: 800;
}
.points p {
  color: rgb(241 236 247 / 75%);
}

/* Discreet mode and the disguised icon, side by side under the privacy points. */
.discreet {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 240px));
  justify-content: center;
  gap: 24px 40px;
  margin-top: 56px;
}
.discreet .phone {
  border-color: #0f0a17;
  box-shadow: 0 24px 48px rgb(10 5 20 / 45%);
}
.discreet figcaption {
  margin-top: 14px;
  color: rgb(241 236 247 / 75%);
  font-size: 0.95rem;
  text-align: center;
}
html[lang='ur'] .discreet figcaption {
  font-size: 1.25rem;
}

/* ─── Good to know ───────────────────────────────────────────────────── */

.faq-list {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}
details {
  border-bottom: 1px solid var(--line);
}
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  font-size: 1.1rem;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: '';
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    linear-gradient(var(--plum), var(--plum)) center / 12px 2px no-repeat,
    linear-gradient(var(--plum), var(--plum)) center / 2px 12px no-repeat,
    var(--plum-soft);
  transition: transform 0.25s;
}
details[open] summary::after {
  transform: rotate(45deg);
}
details p {
  max-width: 44em;
  padding: 0 4px 24px;
  color: var(--ink-muted);
}

/* ─── Moon phases ────────────────────────────────────────────────────── */

.moon-dark {
  fill: rgb(240 194 94 / 10%);
  stroke: rgb(240 194 94 / 35%);
  stroke-width: 1;
}
.moon-lit {
  fill: var(--chandni-night);
}

/* A moon for each section down the side of the page, on wide screens only. */
.moon-rail {
  position: fixed;
  top: 50%;
  inset-inline-end: 18px;
  z-index: 9;
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 12px 8px;
  border: 1px solid rgb(241 236 247 / 12%);
  border-radius: 999px;
  background: rgb(34 22 58 / 72%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(-50%);
}
@media (min-width: 1240px) {
  .moon-rail {
    display: flex;
  }
}
.moon-rail a {
  position: relative;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.moon-rail svg {
  width: 20px;
  height: 20px;
  opacity: 0.75;
  transition:
    opacity 0.25s,
    transform 0.25s;
}
.moon-rail a:hover svg,
.moon-rail a:focus-visible svg,
.moon-rail a[aria-current] svg {
  opacity: 1;
  transform: scale(1.25);
}
.rail-label {
  position: absolute;
  inset-inline-end: calc(100% + 12px);
  top: 50%;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--night-deep);
  color: var(--moonlight);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 0.2s;
}
.moon-rail a:hover .rail-label,
.moon-rail a:focus-visible .rail-label {
  opacity: 1;
}

.moon-row {
  display: flex;
  gap: 12px;
  margin-bottom: 6px;
}
.moon-row svg {
  width: 28px;
  height: 28px;
}
.moon-row .moon-lit {
  opacity: 0.25;
  transition: opacity 0.5s;
}
.moon-row.is-lit .moon-lit {
  opacity: 1;
}
.moon-row.is-lit svg:nth-child(2) .moon-lit {
  transition-delay: 0.18s;
}
.moon-row.is-lit svg:nth-child(3) .moon-lit {
  transition-delay: 0.36s;
}
.moon-row.is-lit svg:nth-child(4) .moon-lit {
  transition-delay: 0.54s;
}
.moon-row.is-lit svg:nth-child(5) .moon-lit {
  transition-delay: 0.72s;
}

/* ─── Closing and footer ─────────────────────────────────────────────── */

.closing {
  padding-top: 0;
}
.closing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  padding: 64px 24px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(600px 300px at 50% 0%, rgb(183 154 232 / 25%), transparent 70%), var(--night);
  color: var(--moonlight);
  text-align: center;
}
.closing-card::before {
  content: '';
}
.closing-card > * {
  position: relative;
}
.closing-card h2 {
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem);
  font-weight: 800;
  text-wrap: balance;
}
.closing-card p {
  color: rgb(241 236 247 / 75%);
}
.button {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  margin-top: 10px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--chandni-night);
  color: var(--night-deep);
  font-weight: 800;
  text-decoration: none;
}
.button:hover {
  background: #f5d084;
}

.footer {
  padding-block: 48px 64px;
  color: var(--ink-muted);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  gap: 28px;
}
@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
  .footer-side {
    text-align: end;
  }
}
.footer-logo {
  width: 150px;
  margin-bottom: 14px;
}
.footer p {
  max-width: 34em;
}
.small {
  margin-top: 8px;
  font-size: 0.85rem;
}
@media (prefers-color-scheme: dark) {
  .footer-logo {
    content: url('assets/mahraaz-lockup-reverse.svg');
  }
}

@media (max-width: 479px) {
  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.05em;
  }
  .ring-card {
    padding: 20px 12px;
  }
  .part-buttons button {
    padding: 0 8px;
    font-size: 0.8rem;
  }
  .checker {
    padding: 16px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .remedy,
  summary::after,
  .moon-rail svg,
  .moon-row .moon-lit {
    transition: none;
  }
}
