/* ============================================================
   Maajee.pk — mobile-first design system
   Tokens taken from public/assets/css/newui.css + main.css
   Written mobile-first: base = 390px phone, media queries scale up.
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  --emerald:       #0F6B50;
  --emerald-dark:  #0A4F3B;
  --emerald-deep:  #103528;
  --emerald-light: #E8F2EE;
  --gold:          #C9A227;
  --gold-soft:     #F6EFD8;
  --gold-line:     #EBDCA8;
  --gold-ink:      #8C6D1B;
  --ivory:         #FAF9F7;
  --card:          #FFFFFF;
  --charcoal:      #2D2D2D;
  --muted-green:   #3F7A5C;
  --border:        #E6E6E6;
  --field-border:  #E5DDD5;
  --text-muted:    #6B6B6B;

  --radius:    14px;
  --radius-sm: 10px;
  --radius-pill: 50rem;

  --shadow-soft:  0 6px 24px rgba(15, 107, 80, .08);
  --shadow-card:  0 2px 10px rgba(15, 107, 80, .06);
  --shadow-raise: 0 12px 28px rgba(15, 107, 80, .16);
  --transition:   all .25s cubic-bezier(.25, .8, .25, 1);

  --font: "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;

  /* mobile-first spacing */
  --gutter: 16px;
  --tap: 44px;
}

/* ---------- 2. RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 700; color: var(--charcoal); line-height: 1.25; }

/* class-based display rules below would otherwise beat the UA [hidden] rule */
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: var(--emerald); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

/* screen shell — phone width by default, widens on larger screens.
   No min-height: the site footer gives the page its length. */
.screen {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: var(--card);
  display: flex;
  flex-direction: column;
}
.screen--wide { max-width: 480px; }

/* ---------- 3. STEP BAR (flow chrome; sits under the site header) ---------- */
.stepbar {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 56px;
  padding: 0 8px 0 4px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.stepbar__back {
  width: var(--tap);
  height: var(--tap);
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--emerald);
  flex: none;
}
.stepbar__back:active { background: var(--emerald-light); }
.stepbar__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--charcoal);
}
.stepbar__logo { height: 26px; width: auto; margin-left: auto; margin-right: 6px; opacity: .9; }

/* ---------- 4. PROGRESS ---------- */
.progress { padding: 14px var(--gutter) 0; background: var(--card); }
.progress__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-green);
  margin-bottom: 8px;
}
.progress__track {
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--emerald-light);
  overflow: hidden;
}
.progress__fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  transition: width .4s ease;
}

/* ---------- 5. PAGE BODY ---------- */
.body {
  flex: 1;
  padding: 20px var(--gutter) 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.page-title { font-size: 1.45rem; font-weight: 700; letter-spacing: -.01em; }
.page-sub { font-size: 14.5px; color: var(--text-muted); }

/* ---------- 6. FIELDS ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-size: 13px; font-weight: 600; color: var(--charcoal); }
.label--group {
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}
.input, .select, .textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 11px 14px;
  border: 1.5px solid var(--field-border);
  border-radius: 8px;
  background: #fff;
  font-size: 15px; /* >=16px-ish avoids iOS zoom; 15 reads fine with -adjust off */
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(15, 107, 80, .10);
}
.input::placeholder, .textarea::placeholder { color: #AFAFAF; }
.textarea { resize: vertical; min-height: 88px; line-height: 1.55; }

/* faux select (wireframe shows a dropdown row) */
.select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  color: var(--charcoal);
}
.select[data-placeholder] { color: #AFAFAF; }
.select::after {
  content: "";
  width: 8px; height: 8px;
  border-right: 2px solid var(--muted-green);
  border-bottom: 2px solid var(--muted-green);
  transform: rotate(45deg) translate(-2px, -2px);
  flex: none;
}

.hint { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }
.hint--lock::before { content: "🔒 "; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-inline { display: flex; align-items: center; gap: 10px; }
.row-inline .input { text-align: center; }
.row-inline__sep { font-size: 13px; color: var(--text-muted); flex: none; }

/* phone input with country prefix */
.phone { display: flex; gap: 8px; }
.phone__cc {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  min-height: var(--tap);
  border: 1.5px solid var(--field-border);
  border-radius: 8px;
  background: var(--ivory);
  font-size: 14px;
  font-weight: 600;
  color: var(--emerald);
  flex: none;
}
.phone .input { flex: 1; }

/* OTP */
.otp {
  letter-spacing: .5em;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  padding-left: .5em;
}

/* ---------- 7. CHIPS (single / multi choice) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: var(--tap);
  padding: 10px 16px;
  border: 1.5px solid var(--field-border);
  border-radius: var(--radius-pill);
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--charcoal);
  cursor: pointer;
  transition: var(--transition);
}
.chip:hover { border-color: var(--muted-green); }
.chip[aria-pressed="true"], .chip.is-on {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(15, 107, 80, .22);
}
.chips--grow .chip { flex: 1 1 auto; text-align: center; }
.chips--2 { display: grid; grid-template-columns: 1fr 1fr; }
.chips--2 .chip { width: 100%; }

/* ---------- 8. CHECKBOXES ---------- */
.check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 14px;
  border: 1.5px solid var(--field-border);
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  transition: var(--transition);
}
.check:has(input:checked) {
  border-color: var(--emerald);
  background: var(--emerald-light);
}
.check input[type="checkbox"] {
  width: 20px; height: 20px;
  margin-top: 1px;
  flex: none;
  accent-color: var(--emerald);
  cursor: pointer;
}
.check--plain {
  border: none;
  background: none;
  padding: 2px 0;
}
.check--plain:has(input:checked) { background: none; }

/* inline "Must-have" toggle used on the requirements step */
.musthave {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1.5px solid var(--gold-line);
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-ink);
  cursor: pointer;
  white-space: nowrap;
  flex: none;
}
.musthave input { width: 15px; height: 15px; accent-color: var(--gold-ink); cursor: pointer; }

/* ---------- 9. CARDS / CALLOUTS ---------- */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
}
.callout {
  border: 1px solid rgba(15, 107, 80, .14);
  border-left: 3px solid var(--emerald);
  border-radius: var(--radius);
  background: var(--emerald-light);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.callout__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--emerald);
}
.callout p { font-size: 13.5px; line-height: 1.55; }
.callout--gold {
  border-color: var(--gold-line);
  border-left-color: var(--gold);
  background: var(--gold-soft);
}
.callout--gold .callout__title { color: var(--gold-ink); }

.note {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-muted);
  background: var(--ivory);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.disclaimer {
  font-size: 11.5px;
  line-height: 1.55;
  color: #8A8A8A;
}

/* conditional block (shown when a prior answer requires it) */
.conditional {
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background: #FFFDF6;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.conditional__flag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

/* grouped block with a heading */
.group { display: flex; flex-direction: column; gap: 10px; }
.group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.group__title { font-size: 14px; font-weight: 600; }

/* ---------- 10. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 13px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}
.btn--primary {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 107, 80, .25);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-raise); }
.btn--gold {
  background: linear-gradient(135deg, #D9B33B, var(--gold));
  color: #3D3106;
  box-shadow: 0 8px 20px rgba(201, 162, 39, .3);
}
.btn--gold:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(201, 162, 39, .42); }
.btn--outline {
  background: transparent;
  border: 1.5px solid var(--emerald);
  color: var(--emerald);
}
.btn--outline:hover { background: var(--emerald); color: #fff; }
.btn--ghost-light {
  background: rgba(255,255,255,.14);
  border: 1.5px solid rgba(255,255,255,.6);
  color: #fff;
}
.btn--ghost-light:hover { background: #fff; color: var(--emerald-deep); }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 9px 16px; font-size: 14px; border-radius: 8px; }

/* sticky action footer for each signup step */
.actions {
  position: sticky;
  bottom: 0;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.actions__note { font-size: 12.5px; color: var(--text-muted); text-align: center; }

/* ---------- 11. BADGES ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}
.badge--verified { background: var(--emerald-light); color: var(--emerald); border: 1px solid #A9CFBE; }
.badge--gold { background: var(--gold-soft); color: var(--gold-ink); border: 1px solid var(--gold-line); }
.badge--abroad { background: #EFF6FF; color: #1D4ED8; border: 1px solid #93C5FD; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--emerald);
  background: var(--emerald-light);
  border: 1px solid rgba(15, 107, 80, .12);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}
.eyebrow--light {
  color: var(--gold);
  background: rgba(201, 162, 39, .14);
  border-color: rgba(201, 162, 39, .34);
}

/* ============================================================
   12. HOME PAGE
   ============================================================ */
.home { background: var(--ivory); }

.hero {
  position: relative;
  padding: 24px var(--gutter) 28px;
  background: linear-gradient(170deg, var(--emerald-deep) 0%, var(--emerald) 62%, var(--emerald-dark) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}
.hero::after { /* soft gold glow, mirrors the logo's palette */
  content: "";
  position: absolute;
  top: -70px; right: -70px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,.30), transparent 68%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

.hero__visual { position: relative; }
.hero__photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 16px 40px rgba(0,0,0,.28);
  aspect-ratio: 4 / 3;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

/* caption bar over the photo */
.hero__caption {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 4;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 24px);
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  color: #fff;
  background: rgba(10, 79, 59, .62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.35;
}
.hero__caption svg { flex: none; color: var(--gold); }

/* trust cards: a 2x2 grid under the photo on phones, floated at >=1024 */
.float-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.float-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(230,230,230,.9);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(45,45,45,.14);
  padding: 9px 11px;
  font-size: 12px;
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.25;
}
.fc-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
}
.fc-1 .fc-icon { background: var(--emerald); }
.fc-2 .fc-icon { background: var(--gold); }
.fc-3 .fc-icon { background: var(--muted-green); }
.fc-4 .fc-icon { background: var(--emerald-dark); }

.hero h1 {
  font-size: clamp(1.75rem, 7.5vw, 2.2rem);
  line-height: 1.18;
  letter-spacing: -.02em;
  color: #fff;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero__lead { font-size: 15px; line-height: 1.62; color: rgba(255,255,255,.88); }
.hero__cta { display: flex; flex-direction: column; gap: 10px; }

/* trust strip */
.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 14px var(--gutter);
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.trust__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.trust__icon {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--emerald-light);
  color: var(--emerald);
  flex: none;
}
.trust__label { font-size: 11.5px; font-weight: 600; line-height: 1.3; }

/* generic home section */
.section { padding: 32px var(--gutter); scroll-margin-top: 72px; }
.section--alt { background: var(--card); }
.section__head { margin-bottom: 18px; }
.section__title { font-size: 1.3rem; letter-spacing: -.01em; }
.section__lead { margin-top: 8px; font-size: 14.5px; color: var(--text-muted); }
.section__headrow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.link-more { font-size: 13.5px; font-weight: 600; color: var(--emerald); white-space: nowrap; }

/* process steps */
.steps { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.steps li { display: flex; gap: 14px; padding: 12px 0; }
.steps__n {
  width: 36px; height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--emerald);
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
}
.steps__t { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.steps__d { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }

/* featured profile cards — 2 per row on mobile, inside the section
   gutters (no edge-to-edge bleed), with a compact card body */
.profiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.profile {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.profile__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--emerald-light);
}
.profile__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(8px) saturate(.92);
  transform: scale(1.16); /* hides the soft blurred edge */
}
.profile__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,53,40,.10), rgba(16,53,40,.42));
}

/* badges pinned over the photo */
.profile__badges {
  position: absolute;
  top: 6px; left: 6px; right: 6px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
}
.flag {
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.12);
  flex: none;
}
.badge--onphoto {
  padding: 2px 7px;
  font-size: 9.5px;
  gap: 3px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.profile__id {
  position: absolute;
  left: 6px; bottom: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  color: #fff;
  background: rgba(16,53,40,.62);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 6px;
  padding: 2px 6px;
}
/* at 2-up there is no room for the caption, so the chip is the lock alone */
.profile__lock {
  position: absolute;
  right: 6px; bottom: 6px;
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  color: #fff;
  background: rgba(16,53,40,.62);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 6px;
}
.profile__lock svg { flex: none; }
.profile__lock span { display: none; }

.profile__body {
  padding: 9px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
.profile__name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.25;
}
.profile__meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.3;
}
.profile__meta svg { flex: none; color: var(--muted-green); width: 12px; height: 12px; }

/* one attribute per line, tight */
.profile__attrs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 1px;
}
.profile__attrs li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  line-height: 1.3;
  color: var(--charcoal);
  min-width: 0;
}
.profile__attrs li span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile__attrs svg { flex: none; color: var(--emerald); width: 13px; height: 13px; }

.profile__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 7px;
}
.profile__actions .btn {
  flex: 1;
  min-width: 0;
  min-height: 34px;
  padding: 7px 8px;
  font-size: 11.5px;
}
.like-btn svg { width: 17px; height: 17px; }
.like-btn {
  width: 34px; height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--field-border);
  border-radius: 8px;
  background: #fff;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.like-btn:hover { border-color: #E89B9B; color: #D14D4D; background: #FEF5F5; }
.like-btn[aria-pressed="true"] {
  border-color: #D14D4D;
  background: #FEF2F2;
  color: #D14D4D;
}
.like-btn[aria-pressed="true"] .heart-o { display: none; }
.like-btn .heart-f { display: none; }
.like-btn[aria-pressed="true"] .heart-f { display: block; }

/* why-we-review block */
.why {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}
.why__img { aspect-ratio: 16 / 10; }
.why__img img { width: 100%; height: 100%; object-fit: cover; }
.why__body { padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.why__body p { font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.why__body p strong { color: var(--charcoal); font-weight: 600; }

/* story / testimonial */
.story {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.story__clip {
  position: relative;
  aspect-ratio: 9 / 13;
  background: linear-gradient(160deg, var(--emerald-deep), var(--emerald));
  display: grid;
  place-items: center;
}
.story__clip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.story__play {
  position: relative;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.story__play::after {
  content: "";
  width: 0; height: 0;
  margin-left: 4px;
  border-left: 17px solid var(--emerald);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}
.story__cap { padding: 13px 15px; font-size: 13px; color: var(--text-muted); }
.story__cap strong { display: block; color: var(--charcoal); font-size: 14px; margin-bottom: 3px; }

/* closing CTA */
.closing {
  padding: 34px var(--gutter);
  background: linear-gradient(165deg, var(--emerald-deep), var(--emerald-dark));
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  align-items: center;
}
.closing h2 { color: #fff; font-size: 1.35rem; }
.closing .btn { width: 100%; }
.closing .disclaimer { color: rgba(255,255,255,.62); text-align: left; }

/* ============================================================
   13. TABLET  (>= 768px)
   ============================================================ */
@media (min-width: 768px) {
  :root { --gutter: 32px; }

  body { font-size: 16px; }

  .screen { max-width: 620px; box-shadow: var(--shadow-soft); min-height: auto; margin: 32px auto; border-radius: var(--radius); overflow: hidden; }
  .home.screen { max-width: 100%; margin: 0; border-radius: 0; box-shadow: none; }

  .body { padding: 28px var(--gutter) 36px; gap: 24px; }
  .page-title { font-size: 1.75rem; }

  .row2 { gap: 16px; }
  .chips--2 { grid-template-columns: repeat(3, 1fr); }

  .actions { flex-direction: row-reverse; align-items: center; justify-content: flex-start; padding: 16px var(--gutter); }
  .actions .btn, .actions .btn--block { width: auto; min-width: 240px; }
  .actions__note { text-align: left; margin-right: auto; }

  /* home */
  .hero {
    padding: 48px var(--gutter);
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* the 1fr spacer rows top and bottom absorb the photo's extra height,
       so the text rows stay their natural size instead of stretching */
    grid-template-areas:
      ".       photo"
      "eyebrow photo"
      "title   photo"
      "lead    photo"
      "cta     photo"
      ".       photo";
    grid-template-rows: 1fr auto auto auto auto 1fr;
    column-gap: 36px;
    row-gap: 14px;
  }
  .hero .eyebrow { grid-area: eyebrow; justify-self: start; }
  .hero h1 { grid-area: title; font-size: clamp(2.1rem, 4.4vw, 2.9rem); }
  .hero__lead { grid-area: lead; font-size: 16.5px; max-width: 46ch; }
  .hero__cta {
    grid-area: cta;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .hero__cta .btn { flex: 0 1 auto; }
  .hero__visual { grid-area: photo; align-self: center; }
  .hero__photo { aspect-ratio: 4 / 4.4; }

  .trust { gap: 20px; padding: 20px var(--gutter); }
  .trust__item { flex-direction: row; text-align: left; justify-content: center; }
  .trust__label { font-size: 14px; }

  .section { padding: 56px var(--gutter); }
  .section__title { font-size: 1.7rem; }

  .steps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }

  /* room again, so the card body goes back to full size */
  .profiles { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .profile__badges { top: 8px; left: 8px; right: 8px; gap: 6px; }
  .badge--onphoto { padding: 3px 10px; font-size: 11px; gap: 4px; }
  .profile__id { left: 8px; bottom: 8px; font-size: 11px; padding: 3px 8px; border-radius: 8px; }
  .profile__lock {
    right: 8px; bottom: 8px;
    width: auto; height: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 8px;
    font-size: 10.5px;
    font-weight: 600;
    max-width: calc(100% - 110px);
  }
  .profile__lock span { display: inline; }

  .profile__body { padding: 12px 13px 13px; gap: 7px; }
  .profile__name { font-size: 15.5px; }
  .profile__meta { font-size: 12.5px; gap: 6px; }
  .profile__meta svg { width: 14px; height: 14px; }
  .profile__attrs { gap: 5px; }
  .profile__attrs li { font-size: 12.5px; gap: 8px; }
  .profile__attrs svg { width: 15px; height: 15px; }
  .profile__actions { gap: 8px; padding-top: 8px; }
  .profile__actions .btn { min-height: 40px; padding: 9px 12px; font-size: 13px; }
  .like-btn { width: 40px; height: 40px; }
  .like-btn svg { width: 19px; height: 19px; }

  .why { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
  .why__img { aspect-ratio: auto; }
  .why__body { padding: 28px; justify-content: center; }

  .story { display: grid; grid-template-columns: 300px 1fr; align-items: center; }
  .story__clip { aspect-ratio: 9 / 12; height: 100%; }
  .story__cap { padding: 24px; font-size: 14.5px; }

  .closing { padding: 56px var(--gutter); }
  .closing h2 { font-size: 1.9rem; }
  .closing .btn { width: auto; min-width: 280px; }
  .closing .disclaimer { max-width: 70ch; text-align: center; }
}

/* ============================================================
   14. DESKTOP  (>= 1024px)
   ============================================================ */
@media (min-width: 1024px) {
  :root { --gutter: 40px; }

  /* signup screens get a centred two-column reading width */
  .screen { max-width: 720px; margin: 48px auto; }

  .body { padding: 36px 48px 44px; }
  .page-title { font-size: 1.95rem; }
  .stepbar { padding-left: 8px; padding-right: 20px; }
  .progress { padding-left: 48px; padding-right: 48px; }
  .actions { padding: 18px 48px; }

  /* home gets a real max-width container */
  .hero,
  .trust,
  .section,
  .closing { padding-left: max(var(--gutter), calc((100% - 1160px) / 2)); padding-right: max(var(--gutter), calc((100% - 1160px) / 2)); }

  .hero { padding-top: 72px; padding-bottom: 72px; column-gap: 64px; }
  .hero h1 { font-size: 3.1rem; }
  .hero__photo { aspect-ratio: 4 / 4.2; }

  .section { padding-top: 76px; padding-bottom: 76px; }
  .section__title { font-size: 2rem; }

  .steps { grid-template-columns: repeat(4, 1fr); gap: 0 24px; }
  .steps--5 { grid-template-columns: repeat(5, 1fr); gap: 0 20px; }
  .steps li { flex-direction: column; gap: 10px; }

  /* 6 cards = two tidy rows of three */
  .profiles { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .profile:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); transition: var(--transition); }

  /* trust cards lift off the grid and float over the photo */
  .float-cards {
    display: block;
    margin-top: 0;
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  .float-card {
    position: absolute;
    width: max-content;
    max-width: 15rem;
    white-space: nowrap;
    font-size: 13px;
    padding: 10px 14px;
    pointer-events: auto;
    animation: floatY 5.5s ease-in-out infinite;
  }
  .fc-icon { width: 32px; height: 32px; }
  .fc-1 { top: 6%;    left: -7%;  animation-delay: 0s; }
  .fc-2 { top: 28%;   right: -8%; animation-delay: 1.3s; }
  .fc-3 { bottom: 26%; left: -9%; animation-delay: 2.4s; }
  .fc-4 { bottom: 10%; right: -6%; animation-delay: 3.2s; }
  @keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
  }
  .hero__caption { font-size: 13px; bottom: 18px; }

  .why__body { padding: 40px; }
  .story { grid-template-columns: 340px 1fr; }

  .closing { padding-top: 80px; padding-bottom: 80px; }
}

/* ============================================================
   15. SITE HEADER
   Mirrors .navbar-main from app/views/home.php
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 247, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px var(--gutter);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--charcoal);
  text-decoration: none;
}
/* The transparent logo carries the wordmark and "Dua say Nikah Tak" itself,
   so it is shown whole, with no white tile and no separate text beside it. */
.brand__logo {
  height: 46px;
  width: auto;
  display: block;
  flex: none;
}
@media (min-width: 768px) { .brand__logo { height: 56px; } }

.brand__mark {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(15, 107, 80, .12);
  flex: none;
}
.brand__mark img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.55); /* crop the logo file's white padding */
}
.brand__dot { color: var(--gold); }

/* right-hand cluster in the bar: Login stays visible on phones,
   everything else lives behind the toggle */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.header-login {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 10px 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--emerald);
  white-space: nowrap;
}
.header-login:hover { color: var(--emerald-dark); }

.nav-toggle {
  width: var(--tap);
  height: var(--tap);
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--emerald);
  cursor: pointer;
  flex: none;
}
.nav-toggle__x { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__x { display: block; }
.nav-toggle[aria-expanded="true"] .nav-toggle__burger { display: none; }

/* mobile: the menu is a panel under the bar */
.site-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px var(--gutter) 16px;
  border-top: 1px solid var(--border);
  background: var(--ivory);
}
.site-nav.is-open { display: flex; }
/* direct children only — the CTA links keep their own .btn colours */
.site-nav > a {
  padding: 12px 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--charcoal);
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.site-nav > a:hover, .site-nav > a.is-active { color: var(--emerald); }
.site-nav__cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.site-nav__cta .btn { width: 100%; }
/* Login already sits in the bar on phones, so don't repeat it in the panel */
.site-nav__cta .btn--outline { display: none; }

/* ============================================================
   16. SITE FOOTER
   Mirrors .footer from public/assets/css/newui.css
   ============================================================ */
.site-footer {
  background: var(--emerald-deep);
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  line-height: 1.7;
}
.site-footer__wrap { padding: 26px var(--gutter) 0; }
.site-footer__grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.site-footer h4 {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.site-footer a { color: rgba(255,255,255,.72); transition: color .25s ease; }
.site-footer a:hover { color: var(--gold); }

/* links run side by side and wrap, instead of one per row */
.site-footer ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  font-size: 13px;
}
.site-footer ul li { margin: 0; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 14px;
}
/* big enough here for "Dua say Nikah Tak" to actually read; the footer is
   dark, so the logo's black wordmark sits on a white plate */
.footer-brand__logo {
  width: 150px;
  max-width: 100%;
  height: auto;
  display: block;
}
.footer-brand .brand__mark {
  width: 34px; height: 34px;
  box-shadow: none;
  border-color: transparent;
}
.footer-tagline {
  color: var(--gold);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.footer-about { font-size: 12.5px; line-height: 1.55; }

.social-icons { display: flex; gap: 8px; margin-top: 12px; }
.social-icons a {
  width: 38px; height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.18);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.8);
  transition: var(--transition);
}
.social-icons a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--emerald-deep);
  transform: translateY(-3px);
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 7px;
}
.footer-contact svg { color: var(--gold); flex: none; width: 14px; height: 14px; }

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 22px;
  padding: 13px var(--gutter);
  font-size: 11.5px;
  color: rgba(255,255,255,.55);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 14px;
  text-align: center;
}

/* ---------- header / footer at tablet and up ---------- */
@media (min-width: 768px) {
  .site-footer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px 32px;
  }
  .site-footer__grid > :first-child { grid-column: 1 / -1; max-width: 46ch; }
  .site-footer__wrap { padding-top: 40px; }
  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  /* the header itself becomes the row: brand, inline links, CTAs.
     .site-nav is a SIBLING of .site-header__bar, so the flex context
     has to live on .site-header for them to share a line. */
  .site-header {
    display: flex;
    align-items: center;
    padding-left: max(var(--gutter), calc((100% - 1160px) / 2));
    padding-right: max(var(--gutter), calc((100% - 1160px) / 2));
  }
  .site-header__bar { flex: none; padding: 12px 0; }
  .nav-toggle { display: none; }
  /* the full CTA pair takes over from the bar's bare Login link */
  .header-login { display: none; }
  .site-nav__cta .btn--outline { display: inline-flex; }

  .site-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    flex: 1;
    padding: 0;
    border: none;
    background: none;
    margin-left: 28px;
  }
  .site-nav > a {
    padding: 8px 12px;
    font-size: 14.5px;
    border: none;
    position: relative;
    white-space: nowrap;
  }
  .site-nav > a::after {
    content: "";
    position: absolute;
    left: 12px; right: 12px; bottom: 2px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform .25s ease;
  }
  .site-nav > a:hover::after, .site-nav > a.is-active::after { transform: scaleX(1); }

  .site-nav__cta {
    flex-direction: row;
    gap: 10px;
    margin: 0 0 0 auto;
  }
  .site-nav__cta .btn { width: auto; min-height: 42px; padding: 9px 20px; font-size: 14.5px; }

  .site-footer__wrap {
    padding-left: max(var(--gutter), calc((100% - 1160px) / 2));
    padding-right: max(var(--gutter), calc((100% - 1160px) / 2));
    padding-top: 48px;
  }
  .site-footer__grid {
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 40px;
  }
  .site-footer__grid > :first-child { grid-column: auto; }
  .site-footer__bottom {
    padding-left: max(var(--gutter), calc((100% - 1160px) / 2));
    padding-right: max(var(--gutter), calc((100% - 1160px) / 2));
  }
}

/* ---------- 17. MOTION / A11Y ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 18. HOME: centred section heads, 5-step timeline, 6 reason cards (4 Nov 2026) ---------- */
.section__head--center { text-align: center; max-width: 720px; margin: 0 auto 26px; }
.section__head--center .section__lead { max-width: 62ch; margin-left: auto; margin-right: auto; line-height: 1.6; }

/* timeline: 2 per row on phones, 3 on tablets, all 5 on one line with a growing track on desktop */
.tl { position: relative; }
.tl__track { display: none; }
.tl__list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; row-gap: 26px; }
.tl__item { flex: 0 0 50%; padding: 0 8px; text-align: center; position: relative; z-index: 1; }
.tl__badge {
  width: 64px; height: 64px;
  margin: 0 auto 12px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--border);
  color: var(--emerald);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}
.tl__badge svg { width: 26px; height: 26px; }
.tl__t { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.tl__d { font-size: 13px; color: var(--text-muted); line-height: 1.55; max-width: 220px; margin: 0 auto; }
@media (hover: hover) {
  .tl__item:hover .tl__badge { border-color: var(--gold); transform: translateY(-4px) scale(1.04); box-shadow: var(--shadow-raise); }
}

/* reason cards: 1 per row on phones, 2 on tablets, 3 on desktop */
.features { display: grid; gap: 16px; }
.feature {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.feature::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px; z-index: 2;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s ease;
}
.feature__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--emerald-light); }
.feature__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.feature__body { padding: 16px 18px 20px; }
.feature h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.feature p { font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.section--alt .feature { background: var(--ivory); }
@media (hover: hover) {
  .feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-raise); border-color: rgba(15, 107, 80, .2); }
  .feature:hover::before { transform: scaleX(1); }
  .feature:hover .feature__img img { transform: scale(1.06); }
}

@media (min-width: 768px) {
  .section__head--center { margin-bottom: 36px; }
  .tl__item { flex-basis: 33.333%; }
  .tl__badge { width: 76px; height: 76px; }
  .tl__badge svg { width: 30px; height: 30px; }
  .features { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 1024px) {
  .tl__item { flex-basis: 20%; }
  .tl__badge { width: 88px; height: 88px; margin-bottom: 18px; }
  .tl__d { font-size: 13.5px; }
  .tl__track {
    display: block;
    position: absolute; top: 44px; left: 10%; right: 10%;
    height: 3px; border-radius: 3px; overflow: hidden;
    background: var(--border);
  }
  .tl__fill { display: block; height: 100%; width: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--emerald), var(--gold)); transition: width 1.8s cubic-bezier(.4, 0, .2, 1); }
  .tl--anim .tl__fill { width: 0; }              /* maajee.js grows it when the timeline scrolls into view */
  .tl--anim.in-view .tl__fill { width: 100%; }
  .features { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .feature__img { aspect-ratio: auto; height: 200px; }
  .feature__body { padding: 22px 24px 26px; }
  .feature h3 { font-size: 1.12rem; }
}
