/* صاغي — landing v2 (Claude Design import). Ivory / charcoal / turquoise / orange. RTL-first.
   Primary face: Thmanyah Serif Display (per Jundi's explicit request; served unmodified).
   Fallbacks: Amiri + Noto Naskh Arabic (SIL OFL) declared in fonts/fonts.css. */

@font-face {
  font-family: 'Thmanyah Display';
  src: url('fonts/thmanyah/ThmanyahSerifDisplay-Light.otf') format('opentype');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Thmanyah Display';
  src: url('fonts/thmanyah/ThmanyahSerifDisplay-Regular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Thmanyah Display';
  src: url('fonts/thmanyah/ThmanyahSerifDisplay-Medium.otf') format('opentype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Thmanyah Display';
  src: url('fonts/thmanyah/ThmanyahSerifDisplay-Bold.otf') format('opentype');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --ivory: #FAF7F2;
  --card: #FFFDF9;
  --tint: #F1EBDF;
  --ink: #22201D;
  --ink-2: #44403A;
  --ink-soft: #6B655C;
  --ink-faint: #8A8478;
  --ink-ghost: #9A9489;
  --line: rgba(34, 32, 29, .1);
  --line-2: rgba(34, 32, 29, .14);
  --teal: #0D7F8C;
  --teal-dark: #0A6873;
  --mint: #6FC0CA;
  --orange: #D97A2B;
  --err: #B4551D;
  --dark: #22201D;
  --dark-side: #211F1C;
  --display: 'Thmanyah Display', 'Amiri', 'Times New Roman', serif;
  --text: 'Thmanyah Display', 'Noto Naskh Arabic', 'Segoe UI', Tahoma, serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }
::selection { background: rgba(13, 127, 140, .2); }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; }

.container { max-width: 1200px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
.container-narrow { max-width: 800px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
.privacy-container { max-width: 760px; }
.privacy-heading { font-size: 1.2rem; }
.nowrap { white-space: nowrap; }
.muted { color: var(--ink-faint); font-size: .95rem; }
.mono { font-family: Consolas, 'Courier New', monospace; font-size: .88em; background: var(--tint); padding: .1em .4em; border-radius: 6px; word-break: break-all; }
.strong-ltr { font-weight: 500; }
.diamond { color: var(--orange); font-size: 12px; }
.diamond-sm { font-size: 10px; margin-bottom: 12px; }
.diamond-mint { color: var(--mint); font-size: 11px; margin-top: 9px; flex-shrink: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-align: center; text-decoration: none;
  font-family: var(--text); font-weight: 700; font-size: 16px;
  background: var(--teal); color: var(--ivory);
  border-radius: 999px; padding: 14px 30px;
  transition-property: transform, background-color, color, box-shadow;
  transition-duration: .18s;
  transition-timing-function: ease;
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(13, 127, 140, .55); color: var(--ivory); }
.btn-lg { padding: 16px 36px; font-size: 17px; box-shadow: 0 14px 30px -14px rgba(13, 127, 140, .55); }
.btn-sm { padding: 10px 22px; font-size: 14.5px; }
.btn-ghost { background: none; border: 1px solid rgba(34, 32, 29, .2); color: #55504A; font-weight: 400; font-size: 15px; padding: 13px 24px; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); transform: none; box-shadow: none; }
.btn-grow { flex: 1; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.link-under { color: var(--ink); font-size: 15.5px; border-bottom: 1px solid rgba(34, 32, 29, .3); padding-bottom: 2px; }
.link-under:hover { color: var(--teal); border-bottom-color: var(--teal); }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 247, 242, .9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 18px; padding-block: 12px; flex-wrap: wrap; }
.brand { font-family: var(--display); font-weight: 700; font-size: 27px; color: var(--ink); line-height: 1; }
.brand:hover { color: var(--ink); }
.brand-dot { color: var(--orange); }
.topnav { display: flex; gap: clamp(12px, 2.4vw, 26px); flex-wrap: wrap; font-size: 15px; margin-inline-start: auto; align-items: center; }
.topnav a { color: #55504A; }
.topnav a:hover { color: var(--teal); }
@media (max-width: 820px) { .topnav { display: none; } .topbar-inner { justify-content: space-between; } }

/* ---------- hero ---------- */
.hero { padding-block: clamp(48px, 7vw, 86px) clamp(56px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(36px, 5vw, 70px); align-items: center; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.badge { border: 1px solid rgba(34, 32, 29, .16); border-radius: 999px; padding: 5px 13px; font-size: 12.5px; color: var(--ink-soft); background: var(--card); }
.hero h1 { font-weight: 700; font-size: clamp(38px, 5.6vw, 68px); line-height: 1.35; margin-bottom: 18px; letter-spacing: -.01em; }
.lead { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.95; color: var(--ink-soft); margin: 0 0 30px; max-width: 520px; text-wrap: pretty; }
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13.5px; color: var(--ink-faint); }
.hero-tagline { margin-top: 34px; display: flex; align-items: center; gap: 12px; }
.tagline-text { font-family: var(--display); font-size: clamp(19px, 2vw, 23px); color: var(--ink-2); }

/* hero mockup */
.hero-visual { position: relative; }
.mock-tilt { perspective: 1200px; }
.mock {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden; display: flex; min-height: 380px;
  box-shadow: 0 34px 90px -22px rgba(34, 32, 29, .3), 0 8px 24px -12px rgba(34, 32, 29, .16);
  transition: transform .25s ease; will-change: transform;
}
.mock-side { background: var(--dark-side); color: #EDE8DF; width: 118px; flex-shrink: 0; padding: 18px 14px; display: flex; flex-direction: column; gap: 9px; }
.mock-logo { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.2; }
.mock-slogan { font-size: 10.5px; color: #8F897E; line-height: 1.7; }
.mock-space { height: 14px; }
.mock-nav-item { color: #8F897E; padding: 6px 12px; font-size: 12px; border-radius: 999px; }
.mock-nav-item.active { background: #F6F1E8; color: var(--ink); font-weight: 500; }
.mock-status { margin-top: auto; background: rgba(255, 255, 255, .08); border-radius: 999px; padding: 5px 11px; font-size: 10.5px; display: flex; align-items: center; gap: 6px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #38B2A3; flex-shrink: 0; }
.mock-main { flex: 1; background: var(--ivory); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mock-listen { display: flex; align-items: center; gap: 9px; }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); animation: pulse 1.6s ease-in-out infinite; flex-shrink: 0; }
.listen-label { font-size: 13px; color: var(--ink-soft); }
.mock-keys { margin-inline-start: auto; display: flex; gap: 4px; align-items: center; font-size: 11.5px; color: #55504A; }
.key { background: var(--card); border: 1px solid rgba(34, 32, 29, .18); border-bottom-width: 3px; border-radius: 7px; padding: 3px 9px; font-weight: 500; font-size: .88em; }
.key-plus { color: var(--ink-faint); }
.mock-wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 56px; background: var(--card); border: 1px solid rgba(34, 32, 29, .08); border-radius: 14px; padding: 0 16px; }
.mock-wave i { width: 4px; border-radius: 3px; background: var(--teal); transform-origin: center; flex-shrink: 0; animation: wv .8s ease-in-out infinite alternate; }
.mock-wave i:nth-child(1)  { height: 10px; animation-duration: .70s; animation-delay: 0s; }
.mock-wave i:nth-child(2)  { height: 18px; animation-duration: .79s; animation-delay: .06s; }
.mock-wave i:nth-child(3)  { height: 26px; animation-duration: .88s; animation-delay: .12s; }
.mock-wave i:nth-child(4)  { height: 38px; animation-duration: .97s; animation-delay: .18s; }
.mock-wave i:nth-child(5)  { height: 46px; animation-duration: 1.06s; animation-delay: .24s; }
.mock-wave i:nth-child(6)  { height: 32px; animation-duration: .70s; animation-delay: .30s; }
.mock-wave i:nth-child(7)  { height: 50px; animation-duration: .79s; animation-delay: .36s; }
.mock-wave i:nth-child(8)  { height: 42px; animation-duration: .88s; animation-delay: .42s; }
.mock-wave i:nth-child(9)  { height: 52px; animation-duration: .97s; animation-delay: .48s; }
.mock-wave i:nth-child(10) { height: 36px; animation-duration: 1.06s; animation-delay: .54s; }
.mock-wave i:nth-child(11) { height: 44px; animation-duration: .70s; animation-delay: .60s; }
.mock-wave i:nth-child(12) { height: 26px; animation-duration: .79s; animation-delay: .66s; }
.mock-wave i:nth-child(13) { height: 18px; animation-duration: .88s; animation-delay: .72s; }
.mock-wave i:nth-child(14) { height: 10px; animation-duration: .97s; animation-delay: .78s; }
.mock-output { background: var(--card); border: 1px solid rgba(34, 32, 29, .08); border-radius: 14px; padding: 13px 16px; flex: 1; }
.mock-output-label { font-size: 11px; color: var(--ink-ghost); margin-bottom: 6px; }
.mock-demo { font-size: 14.5px; line-height: 2; color: var(--ink); min-height: 64px; }
.mock-paste {
  align-self: flex-start; display: flex; align-items: center; gap: 7px;
  background: rgba(13, 127, 140, .1); color: var(--teal-dark);
  border: 1px solid rgba(13, 127, 140, .28); border-radius: 999px;
  padding: 6px 13px; font-size: 12px; font-weight: 500;
  opacity: 0; transform: translateY(6px);
  transition: opacity .4s ease, transform .4s ease;
}
.mock-paste.show { opacity: 1; transform: none; }
.float-chip {
  position: absolute; background: var(--card); border: 1px solid rgba(34, 32, 29, .12);
  border-radius: 999px; padding: 8px 15px; font-size: 12.5px; color: var(--ink-2);
  box-shadow: 0 14px 30px -14px rgba(34, 32, 29, .25);
  animation: floaty 5.5s ease-in-out infinite;
}
.chip-a { top: -16px; left: -8px; }
.chip-b { bottom: -14px; right: -6px; animation-duration: 6.5s; animation-delay: 1s; }
@media (max-width: 560px) { .chip-a { left: 4px; } .chip-b { right: 4px; } }

@keyframes wv { from { transform: scaleY(.18); } to { transform: scaleY(1); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.75); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- dividers / sections ---------- */
.divider { display: flex; align-items: center; gap: 14px; }
.divider .diamond { font-size: 11px; }
.divider-line { flex: 1; height: 1px; background: rgba(34, 32, 29, .12); }
.section { padding-block: clamp(64px, 8vw, 104px); scroll-margin-top: 70px; }
.section-tint { background: var(--tint); border-block: 1px solid rgba(34, 32, 29, .08); }
.section-head { text-align: center; margin-bottom: clamp(36px, 5vw, 54px); }
.kicker { color: var(--teal); font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.kicker-mint { color: var(--mint); }
.section-head h2, .h2-md { font-weight: 500; font-size: clamp(28px, 4vw, 42px); line-height: 1.45; }
.h2-md { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.5; margin-bottom: 22px; }
.section-sub { font-size: 15.5px; line-height: 1.95; color: var(--ink-soft); max-width: 720px; margin: 16px auto 0; text-wrap: pretty; }

/* reveal-on-scroll (site.js) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.no-motion .reveal { opacity: 1; transform: none; transition: none; }

/* ---------- how ---------- */
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.how-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.how-card:hover { transform: translateY(-4px); border-color: rgba(13, 127, 140, .45); box-shadow: 0 18px 44px -20px rgba(34, 32, 29, .28); }
.how-num { font-family: var(--display); font-weight: 700; font-size: 50px; line-height: 1; color: rgba(13, 127, 140, .25); margin-bottom: 14px; }
.how-card h3 { font-weight: 500; font-size: 20px; margin-bottom: 10px; line-height: 1.6; }
.how-card p { font-size: 15px; line-height: 1.9; color: var(--ink-soft); margin: 0; }

/* ---------- savings ---------- */
.save-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.save-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(24px, 3vw, 36px); }
.save-card-time { display: flex; flex-direction: column; }
.save-label { font-size: 13.5px; font-weight: 700; color: var(--orange); margin-bottom: 14px; }
.save-big { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 4.5vw, 56px); line-height: 1.15; color: var(--ink); }
.save-big-teal { color: var(--teal); }
.save-big-unit { font-size: 20px; font-weight: 300; color: var(--ink-faint); }
.save-p { font-size: 15.5px; line-height: 1.95; color: var(--ink-soft); margin: 16px 0 20px; }
.save-rows { display: flex; flex-direction: column; gap: 10px; }
.save-row { display: flex; justify-content: space-between; gap: 12px; border: 1px solid rgba(34, 32, 29, .12); border-radius: 12px; padding: 11px 16px; font-size: 14.5px; color: var(--ink-soft); }
.save-row-saghi { background: rgba(13, 127, 140, .08); border-color: rgba(13, 127, 140, .25); color: var(--teal-dark); }
.save-row-saghi span:first-child { font-weight: 700; }
.save-total { margin-top: 18px; font-family: var(--display); font-weight: 500; font-size: 21px; color: var(--teal-dark); }
.save-fine { margin-top: 10px; font-size: 12.5px; color: var(--ink-ghost); line-height: 1.8; }
.save-fine-bottom { margin-top: auto; padding-top: 16px; }
.save-sub { font-size: 15px; color: var(--ink-soft); }
.slider-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.slider-head label { font-size: 15.5px; font-weight: 500; }
.slider-value { background: rgba(13, 127, 140, .1); color: var(--teal-dark); border-radius: 999px; padding: 4px 14px; font-size: 14px; font-weight: 700; white-space: nowrap; }
#minutes-range { width: 100%; accent-color: var(--teal); cursor: pointer; margin: 6px 0 22px; }

/* ---------- features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; transition: border-color .22s ease, transform .22s ease; }
.feature:hover { border-color: rgba(13, 127, 140, .5); transform: translateY(-3px); }
.f-icon {
  width: 42px; height: 42px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(13, 127, 140, .08); border: 1px solid rgba(13, 127, 140, .18);
  border-radius: 12px; color: var(--teal);
}
.f-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature:hover .f-icon { background: rgba(13, 127, 140, .14); }
.feature h3 { font-weight: 500; font-size: 18.5px; margin-bottom: 8px; }
.feature p { font-size: 14.5px; line-height: 1.85; color: var(--ink-soft); margin: 0; }

/* ---------- dark sections ---------- */
.section-dark { background: var(--dark); color: #EFEAE1; scroll-margin-top: 70px; }
.h2-light { color: var(--ivory); font-weight: 500; font-size: clamp(28px, 4vw, 42px); line-height: 1.45; margin-bottom: 18px; }
.h2-big { font-weight: 700; font-size: clamp(32px, 5vw, 52px); line-height: 1.4; margin: 16px 0; }
.dark-p { font-size: 16px; line-height: 2; color: #B8B2A6; margin: 0 0 14px; }
.dark-fine { font-size: 13.5px; line-height: 1.9; color: #8F897E; margin-top: 16px; }
.model-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(36px, 5vw, 64px); align-items: center; padding-block: clamp(64px, 8vw, 104px); }
.model-chip { background: rgba(250, 247, 242, .08); border: 1px solid rgba(250, 247, 242, .14); border-radius: 8px; padding: 2px 9px; font-size: 13.5px; color: #EFEAE1; white-space: nowrap; }
.model-points { display: flex; flex-direction: column; gap: 14px; margin: 24px 0; }
.model-point { display: flex; gap: 12px; align-items: flex-start; }
.model-point p { margin: 0; font-size: 15.5px; line-height: 1.95; color: #D8D2C6; }
.model-point strong { color: var(--ivory); }
.model-shot img { border-radius: 16px; border: 1px solid rgba(250, 247, 242, .14); box-shadow: 0 34px 80px -28px rgba(0, 0, 0, .65); }
.model-shot figcaption { margin-top: 12px; font-size: 13px; color: #8F897E; text-align: center; }
.model-shot { margin: 0; }

/* ---------- comparison ---------- */
.table-wrap { overflow-x: auto; border: 1px solid rgba(34, 32, 29, .12); border-radius: 18px; background: var(--card); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 780px; font-size: 14px; line-height: 1.85; }
.compare-table th, .compare-table td { text-align: right; padding: 13px 18px; border-bottom: 1px solid rgba(34, 32, 29, .08); vertical-align: top; }
.compare-table thead th { padding: 16px 18px; border-bottom: 1px solid var(--line-2); font-family: var(--display); font-weight: 500; font-size: 16px; }
.compare-table thead .col-cat { font-size: 15px; color: var(--ink-faint); width: 19%; }
.compare-table thead .col-saghi { border-bottom: 2px solid var(--teal); background: rgba(13, 127, 140, .07); font-weight: 700; font-size: 18px; color: var(--teal-dark); width: 29%; }
.compare-table tbody th { font-weight: 500; color: var(--ink-2); }
.compare-table tbody td { color: var(--ink-soft); }
.compare-table tbody .col-saghi { background: rgba(13, 127, 140, .05); font-weight: 500; color: var(--ink); }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.fineprint { font-size: 12.5px; line-height: 1.9; color: var(--ink-ghost); }
.center-block { margin: 18px auto 0; max-width: 900px; text-align: center; }

/* ---------- requirements + install ---------- */
.setup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(28px, 4vw, 56px); align-items: start; }
.req-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.req-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.req-k { font-size: 13px; color: var(--ink-faint); margin-bottom: 5px; }
.req-v { font-size: 15px; font-weight: 500; line-height: 1.7; }
.install-steps { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.install-step { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.install-num { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--teal); line-height: 1.4; flex-shrink: 0; }
.install-step p { margin: 0; font-size: 15px; line-height: 1.9; }

/* ---------- faq ---------- */
.faq-list { border-top: 1px solid rgba(34, 32, 29, .12); }
.faq-list details { border-bottom: 1px solid rgba(34, 32, 29, .12); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  cursor: pointer; padding: 18px 4px; list-style: none;
  font-family: var(--display); font-weight: 500; font-size: 18.5px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-plus { color: var(--teal); font-size: 24px; line-height: 1; flex-shrink: 0; font-weight: 300; transition: transform .2s ease; }
.faq-list details[open] .faq-plus { transform: rotate(45deg); }
.faq-a { padding: 0 4px 20px; font-size: 15.5px; line-height: 2; color: #57524A; }

/* ---------- final cta / footer ---------- */
.cta-inner { text-align: center; padding-block: clamp(72px, 9vw, 110px); }
.cta-inner .dark-p { margin-bottom: 30px; font-size: 17px; }
.footer { padding-block: 26px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-faint); line-height: 1.9; }
.footer-links { display: flex; gap: 14px; align-items: center; white-space: nowrap; }

/* ---------- modal / wizard ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(26, 24, 21, .55); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.modal-card {
  position: relative; background: var(--ivory); border: 1px solid rgba(34, 32, 29, .08);
  border-radius: 22px; max-width: 540px; width: 100%; max-height: 92vh; overflow-y: auto;
  padding: clamp(22px, 4vw, 34px);
  box-shadow: 0 44px 100px -24px rgba(0, 0, 0, .5);
}
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.modal-head h3 { font-weight: 700; font-size: 25px; line-height: 1.4; }
.modal-close {
  background: none; border: 1px solid rgba(34, 32, 29, .15); border-radius: 50%;
  width: 34px; height: 34px; font-size: 17px; color: var(--ink-soft);
  cursor: pointer; flex-shrink: 0; line-height: 1;
  transition-property: background-color, color, transform;
  transition-duration: .15s;
  transition-timing-function: ease;
}
.modal-close:hover { border-color: var(--ink); color: var(--ink); }
.modal-sub { font-size: 14px; line-height: 1.9; color: var(--ink-soft); margin: 0 0 22px; }

.wizard-track { position: relative; display: flex; margin-bottom: 26px; }
.wizard-line { position: absolute; top: 15px; right: 16%; left: 16%; height: 2px; background: #E7E0D2; }
.wizard-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; position: relative; }
.ws-dot {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; z-index: 1;
  transition-property: background-color, color, box-shadow;
  transition-duration: .25s;
  transition-timing-function: ease;
  background: #EBE4D8; color: var(--ink-faint);
}
.ws-label { font-size: 12.5px; color: var(--ink-faint); }
.wizard-step.is-active .ws-dot { background: var(--ink); color: var(--ivory); box-shadow: 0 0 0 4px rgba(34, 32, 29, .1); }
.wizard-step.is-active .ws-label { color: var(--ink); font-weight: 700; }
.wizard-step.is-done .ws-dot { background: var(--teal); color: var(--ivory); }

.wstep { display: flex; flex-direction: column; gap: 18px; }
.wstep[hidden] { display: none; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select {
  width: 100%; box-sizing: border-box;
  background: var(--card); border: 1px solid rgba(34, 32, 29, .18); border-radius: 12px;
  padding: 13px 15px; font-family: var(--text); font-size: 16px; color: var(--ink);
  outline: none;
  transition-property: border-color, box-shadow, background-color;
  transition-duration: .15s;
  transition-timing-function: ease;
}
.field input:focus, .field select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13, 127, 140, .14); }
.field input[aria-invalid="true"] { border-color: var(--err); }
.field input[dir="ltr"] { text-align: left; }
.phone-row { display: flex; gap: 8px; max-width: 100%; }
.phone-row select { width: 128px; flex: 0 0 auto; min-width: 0; cursor: pointer; padding-inline: 10px; font-size: 15px; }
.phone-row input { flex: 1 1 0; min-width: 0; }
.pill-row { display: flex; gap: 10px; }
.pill-btn {
  padding: 11px 26px; border-radius: 999px; border: 1px solid rgba(34, 32, 29, .18);
  cursor: pointer; font-size: 15px; font-family: var(--text);
  background: var(--card); color: #55504A;
  transition-property: background-color, color, box-shadow, transform;
  transition-duration: .15s;
  transition-timing-function: ease;
}
.pill-btn.is-on { border-color: var(--teal); background: rgba(13, 127, 140, .1); color: var(--teal-dark); font-weight: 700; }
.consent-card {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 14px;
  padding: 15px 16px; cursor: pointer; transition: border-color .15s ease;
  font-size: 14px; line-height: 1.9;
}
.consent-card:hover { border-color: rgba(13, 127, 140, .5); }
.consent-card input { accent-color: var(--teal); width: 18px; height: 18px; margin-top: 4px; flex-shrink: 0; cursor: pointer; }
.consent-muted span { color: #57524A; }
.wstep[data-step="3"] { gap: 14px; }
.err { display: none; color: var(--err); font-size: 13px; margin-top: 7px; }
.err.show { display: block; }
.hp { position: absolute !important; opacity: 0; height: 0; overflow: hidden; pointer-events: none; }
.wizard-actions { display: flex; gap: 12px; margin-top: 26px; }
.req { color: var(--orange); }

#success-view { text-align: center; padding: 14px 0 6px; }
.success-icon {
  width: 66px; height: 66px; border-radius: 50%;
  background: rgba(13, 127, 140, .12); border: 1px solid rgba(13, 127, 140, .3);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; font-size: 28px; color: var(--teal);
}
#success-view h4 { font-weight: 500; font-size: 22px; margin-bottom: 12px; line-height: 1.6; }
.after-card {
  margin-top: 22px; text-align: right; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
  font-size: 13.5px; line-height: 2; color: #57524A;
}
.after-title { font-weight: 700; color: var(--ink); margin-bottom: 4px; }

body.modal-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
