/* ==========================================================================
   Coach Mahmoud — landing page
   Layers: tokens → base → layout → components → sections → form → utilities
   Uses logical properties (inline-start/end) so RTL and LTR share one stylesheet.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #0d0c0b;
  --bg-alt: #141210;
  --surface: #1a1715;
  --surface-2: #221e1b;
  --line: #2f2925;
  --line-strong: #463d36;
  --text: #f5efe9;
  --text-muted: #b3a89e;
  --text-subtle: #8a7f75;
  --accent: #d9a066;
  --accent-strong: #e8b47c;
  --accent-ink: #1a1009;
  --accent-soft: rgb(217 160 102 / 0.12);
  --success: #7fcf9b;
  --success-soft: rgb(127 207 155 / 0.12);
  --danger: #ff8a7a;
  --whatsapp: #25d366;

  --font-body: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Cairo', var(--font-body);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 20px 50px -20px rgb(0 0 0 / 0.6);
  --ring: 0 0 0 3px rgb(217 160 102 / 0.45);
  --container: 1180px;
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[lang='en'] body { line-height: 1.6; }

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.25; margin: 0; letter-spacing: -0.01em; }
html[lang='en'] h1, html[lang='en'] h2 { letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { flex-shrink: 0; }
html[dir='rtl'] .icon-flip { transform: scaleX(-1); }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.container--narrow { --container: 820px; }

.section { padding-block: clamp(64px, 9vw, 112px); }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section__head { text-align: center; max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); }
.section__head h2 { font-size: clamp(1.75rem, 4vw, 2.6rem); font-weight: 800; }
.section__lead { margin-top: 12px; color: var(--text-muted); font-size: 1.1rem; }

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
html[lang='en'] .eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; }

.muted { color: var(--text-muted); }
.small { font-size: 0.875rem; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text);
  --btn-bd: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 22px;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
.btn--primary { --btn-bg: var(--accent); --btn-fg: var(--accent-ink); --btn-bd: var(--accent); box-shadow: 0 10px 30px -12px rgb(217 160 102 / 0.7); }
.btn--primary:hover { --btn-bg: var(--accent-strong); }
.btn--outline { --btn-bg: transparent; --btn-bd: var(--accent); --btn-fg: var(--accent); }
.btn--outline:hover { --btn-bg: var(--accent-soft); }
.btn--ghost { --btn-bg: transparent; }
.btn--ghost:hover { --btn-bg: var(--surface-2); }
.btn--whatsapp { --btn-bg: var(--whatsapp); --btn-bd: var(--whatsapp); --btn-fg: #06230f; }
.btn--sm { min-height: 40px; padding: 6px 16px; font-size: 0.925rem; }
.btn--lg { min-height: 56px; padding: 12px 28px; font-size: 1.075rem; }
.btn--block { width: 100%; }

.link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link--danger { color: var(--danger); }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.6;
}
.badge--solid { background: var(--accent); color: var(--accent-ink); }
.badge--success { background: var(--success-soft); color: var(--success); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgb(13 12 11 / 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgb(13 12 11 / 0.85); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; text-decoration: none; }
.brand__mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 900; }

.site-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.site-nav a { padding: 8px 14px; border-radius: 999px; color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: color 0.2s, background-color 0.2s; }
.site-nav a:hover { color: var(--text); background: var(--surface); }

.site-header__actions { display: flex; align-items: center; gap: 8px; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 6px 12px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: transparent; cursor: pointer; font-weight: 600; font-size: 0.9rem;
}
.lang-btn svg { width: 18px; height: 18px; }
.lang-btn:hover { background: var(--surface); }
.lang-btn [data-i18n='nav.lang'] { font-family: var(--font-body); }

.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 12px; background: transparent; cursor: pointer; place-items: center; }

@media (max-width: 900px) {
  .site-nav {
    position: absolute;
    inset-inline: 0;
    top: var(--header-h);
    flex-direction: column;
    padding: 12px 16px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    margin: 0;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .site-nav a { padding: 12px 14px; font-size: 1.05rem; }
  .menu-open .site-nav { opacity: 1; transform: none; visibility: visible; }
  .menu-btn { display: grid; }
  .site-header__actions { margin-inline-start: auto; }
}
@media (max-width: 520px) {
  .site-header__cta { display: none; }
  .lang-btn [data-i18n='nav.lang'] { font-size: 0.85rem; }
  .brand { font-size: 0.95rem; gap: 8px; }
  .brand__mark { width: 30px; height: 30px; }
  .site-header__inner { gap: 12px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(32px, 6vw, 80px) clamp(56px, 8vw, 96px); overflow: hidden; }
.hero::before {
  content: '';
  position: absolute;
  inset-inline-end: -10%;
  top: -20%;
  width: 70vmax;
  height: 70vmax;
  background: radial-gradient(closest-side, rgb(217 160 102 / 0.16), transparent 70%);
  pointer-events: none;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(2.6rem, 7vw, 4.8rem); font-weight: 900; line-height: 1.12; }
.hero__title span { display: block; }
.accent { color: var(--accent); }
.hero__subtitle { margin-top: 16px; font-family: var(--font-display); font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 700; }
.hero__body { margin-top: 16px; max-width: 56ch; color: var(--text-muted); font-size: 1.1rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.trust { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--text-muted); font-size: 0.95rem; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 20px; height: 20px; color: var(--accent); }

.hero__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgb(13 12 11 / 0.55), transparent 40%); }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; aspect-ratio: 5 / 4; max-height: 52vh; }
  .hero__ctas .btn { flex: 1 1 auto; }
}

/* ---------- Results ---------- */
.results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.result-card { margin: 0; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.3s var(--ease), border-color 0.3s; }
.result-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.result-card__media { position: relative; aspect-ratio: 3 / 4; background: #000; }
.result-card__media img { width: 100%; height: 100%; object-fit: cover; }
.result-card__badge { position: absolute; top: 12px; inset-inline-start: 12px; }
.result-card__body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.result-card blockquote { margin: 0; color: var(--text-muted); font-size: 0.975rem; }
.result-card cite { font-style: normal; font-weight: 700; font-family: var(--font-display); margin-top: auto; }

.inline-cta { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 24px; text-align: center; }
.inline-cta p { font-size: 1.15rem; font-weight: 600; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.feature__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.feature__title { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.feature__body { color: var(--text-muted); font-size: 0.975rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-family: var(--font-display); font-weight: 900; font-size: 1.15rem; }
.step__title { font-size: 1.15rem; font-weight: 800; margin-bottom: 4px; }
.step__body { color: var(--text-muted); font-size: 0.95rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .step { flex-direction: row; align-items: flex-start; padding: 18px; }
}

/* ---------- Pricing ---------- */
.pricing-toolbar { display: flex; justify-content: center; margin-bottom: 32px; }

.segmented { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.segmented__opt {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 44px; min-width: 88px; padding: 6px 18px;
  border: 0; border-radius: 999px; background: transparent; color: var(--text-muted);
  font-weight: 700; cursor: pointer; line-height: 1.3; transition: background-color 0.2s, color 0.2s;
}
.segmented__opt:hover:not(:disabled) { color: var(--text); }
.segmented__opt[aria-checked='true'] { background: var(--accent); color: var(--accent-ink); }
.segmented__opt:disabled { opacity: 0.4; cursor: not-allowed; }
.segmented__opt small { font-weight: 600; font-size: 0.75rem; }
.segmented__save { color: var(--success); }
.segmented__opt[aria-checked='true'] .segmented__save { color: inherit; opacity: 0.8; }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .plans { grid-template-columns: 1fr; } }

.plan-card { position: relative; display: flex; flex-direction: column; gap: 20px; padding: 28px 24px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.plan-card--featured { border-color: var(--accent); background: linear-gradient(180deg, rgb(217 160 102 / 0.1), var(--surface) 45%); box-shadow: 0 30px 60px -30px rgb(217 160 102 / 0.45); }
.plan-card__ribbon { position: absolute; top: -13px; inset-inline-start: 24px; padding: 3px 14px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 0.8rem; font-weight: 800; }
.plan-card__name { font-size: 1.5rem; font-weight: 900; }
.plan-card__tagline { color: var(--text-muted); font-size: 0.95rem; margin-top: 4px; }
.plan-card__price { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-block: 16px; border-block: 1px solid var(--line); min-height: 118px; }
.plan-card__amount { font-family: var(--font-display); font-size: 2.3rem; font-weight: 900; line-height: 1.1; }
.plan-card__amount small { font-size: 1rem; font-weight: 700; color: var(--text-muted); }
.plan-card__period { color: var(--text-muted); font-size: 0.9rem; }
.plan-card__unavailable { color: var(--text-subtle); font-size: 0.9rem; }
.plan-card__features { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; flex: 1; font-size: 0.95rem; }
.plan-card__features li { display: flex; gap: 10px; align-items: flex-start; }
.tick { display: grid; place-items: center; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.tick svg { width: 14px; height: 14px; stroke-width: 3; }

.pricing-note { text-align: center; margin-top: 24px; font-size: 0.95rem; }

/* Quiz */
.quiz { margin: 32px auto 0; max-width: 720px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.quiz__summary { display: flex; align-items: center; gap: 14px; padding: 18px 20px; cursor: pointer; list-style: none; }
.quiz__summary::-webkit-details-marker { display: none; }
.quiz__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.quiz__chev { margin-inline-start: auto; color: var(--text-muted); transition: transform 0.2s; }
.quiz[open] .quiz__chev { transform: rotate(45deg); }
.quiz__body { display: grid; gap: 20px; padding: 0 20px 20px; }
.quiz__q { border: 0; padding: 0; margin: 0; }
.quiz__q legend { font-weight: 700; margin-bottom: 10px; }
.quiz__result { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-strong); }

/* ---------- Chips & choice cards (shared by quiz + form) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 8px 18px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--bg); color: var(--text); font-weight: 600; cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed='true'],
.chip[aria-checked='true'] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.cards { display: grid; gap: 10px; }
.cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 520px) { .cards.cols-2 { grid-template-columns: 1fr; } }

.choice-card {
  display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 14px 16px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--bg); text-align: start; font-weight: 600; cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.choice-card:hover { border-color: var(--accent); }
.choice-card[aria-checked='true'] { border-color: var(--accent); background: var(--accent-soft); }
.choice-card__dot { position: relative; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); flex-shrink: 0; transition: border-color 0.2s; }
.choice-card[aria-checked='true'] .choice-card__dot { border-color: var(--accent); }
.choice-card[aria-checked='true'] .choice-card__dot::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); }
.choice-card--plan { align-items: flex-start; }
.choice-card--plan .choice-card__dot { margin-top: 4px; }
.choice-card__text { display: flex; flex-direction: column; gap: 2px; }
.choice-card__text strong { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 1.1rem; }
.choice-card__text small { font-weight: 500; color: var(--text-muted); font-size: 0.85rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.2s; }
.faq-item[open] { border-color: var(--line-strong); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; font-weight: 700; font-size: 1.05rem; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); color: var(--accent); transition: transform 0.25s var(--ease); }
.faq-item__icon svg { width: 18px; height: 18px; }
.faq-item[open] .faq-item__icon { transform: rotate(45deg); }
.faq-item__body { padding: 0 22px 22px; color: var(--text-muted); }

/* ---------- Final CTA & footer ---------- */
.final-cta { padding-block: clamp(72px, 10vw, 120px); background: radial-gradient(ellipse at center, rgb(217 160 102 / 0.18), transparent 65%), var(--bg); text-align: center; }
.final-cta__inner { max-width: 760px; }
.final-cta h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 900; }
.final-cta p { margin-top: 14px; color: var(--text-muted); font-size: 1.15rem; }
.final-cta .hero__ctas { justify-content: center; }

.site-footer { padding-block: 28px calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--text-subtle); font-size: 0.9rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }

.wa-float {
  position: fixed; z-index: 40;
  inset-inline-end: 20px; bottom: calc(20px + env(safe-area-inset-bottom));
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--whatsapp); color: #fff; box-shadow: 0 12px 30px -8px rgb(37 211 102 / 0.6);
  transition: transform 0.2s var(--ease);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.06); }

/* ==========================================================================
   Application wizard
   ========================================================================== */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.wizard-card { padding: clamp(20px, 4vw, 40px); }

.wizard__resume { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 20px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-strong); font-size: 0.925rem; }

.wizard__progress { margin-bottom: 28px; }
.wizard__progress-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; font-weight: 600; margin-bottom: 10px; }
.progress { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-strong)); border-radius: inherit; transition: inline-size 0.4s var(--ease); }
.wizard__dots { list-style: none; padding: 0; margin: 14px 0 0; display: flex; justify-content: space-between; gap: 4px; }
.wizard__dot {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--bg); color: var(--text-muted);
  font-size: 0.8rem; font-weight: 700; cursor: pointer; transition: all 0.2s;
}
.wizard__dot svg { width: 16px; height: 16px; stroke-width: 3; }
.wizard__dot:disabled { opacity: 0.45; cursor: not-allowed; }
.wizard__dot:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.wizard__dot[aria-current='step'] { background: var(--accent); color: var(--accent-ink); }

.wizard__head { margin-bottom: 24px; }
.wizard__title { font-size: clamp(1.35rem, 3vw, 1.7rem); font-weight: 800; margin-bottom: 4px; }
.wizard__title:focus { box-shadow: none; }

.fields { display: flex; flex-wrap: wrap; gap: 22px 16px; }
.field { flex: 1 1 100%; min-width: 0; margin: 0; padding: 0; border: 0; }
.field--half { flex: 1 1 calc(50% - 8px); }
.field--third { flex: 1 1 calc(33.333% - 11px); min-width: 84px; }
.field--half, .field--third { display: flex; flex-direction: column; }
.field--half > :is(.input, .input-affix, .segmented),
.field--third > :is(.input, .input-affix, .segmented) { margin-top: auto; }
.field--third .input-affix .input { padding-inline-end: 44px; }
.field--third .input-affix__text { inset-inline-end: 10px; font-size: 0.8rem; }
@media (max-width: 340px) { .field--half { flex-basis: 100%; } }
.field > .segmented { display: flex; width: 100%; }
.field > .segmented .segmented__opt { flex: 1 1 0; min-width: 0; padding-inline: 10px; }

.field__label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; padding: 0; font-weight: 700; font-size: 1rem; }
.field__hint { margin: -4px 0 10px; color: var(--text-subtle); font-size: 0.875rem; }
.field__error { margin-top: 6px; color: var(--danger); font-size: 0.875rem; font-weight: 600; min-height: 0; }
.field__error:empty { display: none; }

.tag { padding: 1px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.tag--optional { background: var(--surface-2); color: var(--text-muted); }
.tag--recommended { background: var(--accent-soft); color: var(--accent); }

.input {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text); font: inherit; font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder { color: var(--text-subtle); }
.input:hover { border-color: #5a4f46; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.has-error .input { border-color: var(--danger); }
.textarea { resize: vertical; min-height: 110px; line-height: 1.7; }
input[type='time'].input { color-scheme: dark; }
html[dir='rtl'] .input[dir='ltr'] { text-align: right; }

.input-affix { position: relative; }
.input-affix .input { padding-inline-end: 56px; }
.input-affix__text { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); color: var(--text-subtle); font-size: 0.9rem; pointer-events: none; }

.has-error .segmented, .has-error .chips, .has-error .cards { outline: 1px dashed var(--danger); outline-offset: 4px; border-radius: 14px; }

.check { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; min-height: 44px; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid var(--line-strong); border-radius: 7px; color: transparent; transition: all 0.15s; flex-shrink: 0; }
.check__box svg { width: 16px; height: 16px; stroke-width: 3; }
.check input:checked + .check__box { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.check input:focus-visible + .check__box { box-shadow: var(--ring); }
.has-error .check__box { border-color: var(--danger); }

.callout { display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line-strong); }
.callout__icon { color: var(--accent); margin-top: 2px; }
.callout strong { display: block; margin-bottom: 4px; }
.callout p { color: var(--text-muted); font-size: 0.95rem; }
.callout--accent { background: var(--accent-soft); border-color: rgb(217 160 102 / 0.35); text-align: start; }
.callout--accent .callout__icon { color: var(--whatsapp); }

.form-hint-block { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text-muted); font-size: 0.95rem; }
.form-hint-block svg { color: var(--accent); }

/* Payment panel */
.pay-panel { display: grid; gap: 12px; padding: 18px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line-strong); }
.pay-panel__plan { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.copy-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface); }
.copy-row__label { display: block; font-size: 0.82rem; color: var(--text-muted); }
.copy-row__value { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.02em; }
.copy-row .btn svg { width: 16px; height: 16px; }
.pay-panel__steps-title { font-weight: 700; margin-top: 4px; }
.pay-panel__steps { margin: 0; padding-inline-start: 22px; color: var(--text-muted); font-size: 0.95rem; display: grid; gap: 4px; }

/* Plan picker */
.plan-picker { display: grid; gap: 20px; }
.segmented--lg { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: var(--radius); width: 100%; }
.segmented--lg .segmented__opt { border-radius: 12px; min-height: 72px; padding: 8px; }

/* Files */
.dropzone__btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 104px; padding: 16px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius);
  background: var(--bg); color: var(--text-muted); font-weight: 600; font-size: 0.925rem; cursor: pointer; text-align: center;
  transition: border-color 0.2s, color 0.2s;
}
.dropzone__btn:hover, .dropzone input:focus-visible + .dropzone__btn { border-color: var(--accent); color: var(--accent); }
.file-preview { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); }
.file-preview img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
.file-preview__meta { display: grid; gap: 4px; min-width: 0; }
.file-preview__name { font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-preview__actions { display: flex; gap: 14px; font-size: 0.875rem; }

/* Review */
.review { display: grid; gap: 16px; }
.review__section { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.review__section header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.review__section h4 { font-size: 1.05rem; font-weight: 800; }
.review dl { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: 6px 16px; margin: 0; font-size: 0.925rem; }
.review dt { color: var(--text-muted); }
.review dd { margin: 0; white-space: pre-wrap; word-break: break-word; }
@media (max-width: 480px) { .review dl { grid-template-columns: 1fr; } .review dd { margin-bottom: 8px; } }

/* Nav */
.wizard__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.wizard__nav .btn--primary { min-width: 150px; }
.wizard__saved { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 16px; font-size: 0.82rem; }
.wizard__saved svg { width: 15px; height: 15px; }

/* Success */
.wizard--success { display: grid; justify-items: center; gap: 16px; text-align: center; padding-block: 12px; }
.success-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--success-soft); color: var(--success); }
.success-icon svg { width: 36px; height: 36px; stroke-width: 3; }
.success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- Utilities & motion ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.js-reveal .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

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