/* Lawha — design system
   Colour: warm neutrals + one brand red + one dark surface.
   Type: Bricolage Grotesque (display) / Manrope (text); Readex Pro for Arabic. */
:root {
  /* neutrals */
  --bg: #FAF8F5;
  --surface: #FFFFFF;
  --tint: #F3EEE7;
  --line: #E5DED4;
  --ink: #181411;
  --ink-2: #5B544C;
  --ink-3: #6E665D;
  /* brand */
  --brand: #B3122A;
  --brand-600: #960E22;
  --brand-50: #FBEBED;
  --on-brand: #FFFFFF;
  /* dark surface */
  --dark: #181411;
  --dark-2: #241E1A;
  --dark-line: #3A322C;
  --on-dark: #F8F4EE;
  --on-dark-2: #BDB4A9;
  --ok: #1E7A4C;
  --err: #B3122A;

  --display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --text: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --fs-h3: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  --fs-h2: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  --fs-h1: clamp(2.625rem, 1.4rem + 5vw, 4.75rem);

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(24, 20, 17, .06);
  --shadow: 0 1px 2px rgba(24, 20, 17, .05), 0 12px 32px rgba(24, 20, 17, .08);
  --shadow-lg: 0 2px 4px rgba(24, 20, 17, .06), 0 24px 56px rgba(24, 20, 17, .16);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --section: clamp(72px, 9vw, 128px);
}
[dir="rtl"] {
  --display: "Readex Pro", system-ui, sans-serif;
  --text: "Readex Pro", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--fs-base)/1.6 var(--text); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, figure, ol, ul, dl, dd, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible { outline-color: #fff; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.ic { width: 20px; height: 20px; flex: none; }
[dir="rtl"] .ic.flip, [dir="rtl"] .btn .ic use[href="#i-arrow"], [dir="rtl"] .link .ic { transform: scaleX(-1); }
[dir="rtl"] .btn .ic:has(use[href="#i-arrow"]) { transform: scaleX(-1); }

h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.04; text-wrap: balance; }
[dir="rtl"] :is(h1, h2) { letter-spacing: 0; line-height: 1.3; font-weight: 600; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
[dir="rtl"] h3 { letter-spacing: 0; font-weight: 600; }
.lead { font-size: var(--fs-lg); color: var(--ink-2); max-width: 56ch; line-height: 1.55; }
.eyebrow { font-size: var(--fs-sm); font-weight: 700; color: var(--brand); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.note { font-size: var(--fs-xs); color: var(--ink-3); }

/* sections */
.section { padding-block: var(--section); }
.tint { background: var(--tint); }
.dark { background: var(--dark); color: var(--on-dark); }
.dark .lead { color: var(--on-dark-2); }
.dark .eyebrow { color: #FF8A99; }
.head { display: grid; gap: 14px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 720px; }
.head .eyebrow { margin-bottom: 0; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 20px; border-radius: var(--r-sm); border: 1.5px solid transparent;
  font-weight: 700; font-size: var(--fs-sm); line-height: 1; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn-lg { min-height: 54px; padding: 0 26px; font-size: var(--fs-base); }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 18px rgba(179, 18, 42, .22); }
.btn-primary:hover { background: var(--brand-600); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(179, 18, 42, .28); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .ic { transition: transform .2s var(--ease); }
.btn:hover .ic:has(use[href="#i-arrow"]) { transform: translateX(3px); }
[dir="rtl"] .btn:hover .ic:has(use[href="#i-arrow"]) { transform: scaleX(-1) translateX(3px); }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--brand); margin-top: auto; }
.link .ic { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link:hover .ic { transform: translateX(4px); }
[dir="rtl"] .link:hover .ic { transform: scaleX(-1) translateX(4px); }

/* progress + nav */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--brand); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .progress span { transform-origin: right; }
.nav { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 245, .92); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
@supports (backdrop-filter: blur(8px)) { .nav { backdrop-filter: saturate(1.4) blur(12px); } }
.nav.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 1.375rem/1 var(--display); letter-spacing: -0.02em; }
.logo-mark { width: 34px; height: 26px; border-radius: 6px; background: var(--brand); display: grid; place-items: center; position: relative; }
.logo-mark span { width: 18px; height: 3px; border-radius: 2px; background: #fff; box-shadow: 0 6px 0 rgba(255,255,255,.55); transform: translateY(-3px); }
.logo-ar { font: 600 1.125rem/1 "Readex Pro", sans-serif; color: var(--ink-3); }
.links { display: flex; gap: 6px; }
.links a { padding: 10px 14px; border-radius: 8px; font-weight: 600; font-size: var(--fs-sm); color: var(--ink-2); transition: color .2s, background-color .2s; }
.links a:hover { color: var(--ink); background: var(--tint); }
.links a.active { color: var(--brand); }
.nav-end { display: flex; align-items: center; gap: 10px; }
.lang { background: none; border: 1.5px solid var(--line); border-radius: var(--r-sm); min-height: 46px; padding: 0 14px; font: 600 var(--fs-sm)/1 "Readex Pro", var(--text); transition: border-color .2s; }
.lang:hover { border-color: var(--ink); }
.burger { display: none; width: 46px; height: 46px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--surface); place-items: center; }

/* hero */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 6vw, 88px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-text { display: grid; gap: 24px; justify-items: start; }
.tag { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(30, 122, 76, .16); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: grid; grid-template-columns: repeat(3, auto); gap: clamp(20px, 3vw, 40px); margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--line); width: 100%; }
.facts li { display: grid; gap: 2px; }
.facts b { font: 700 var(--fs-h3)/1.2 var(--display); }
[dir="rtl"] .facts b { font-weight: 600; }
.facts span { font-size: var(--fs-sm); color: var(--ink-2); }

.hero-visual { position: relative; padding-bottom: 28px; }
.front { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--tint); }
.front img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; object-position: 50% 22%; }
.sign {
  position: absolute; left: 19.5%; top: 19.6%; width: 63%; height: 16.2%;
  display: grid; place-items: center; text-align: center; overflow: hidden; white-space: nowrap;
  font: 700 clamp(1.1rem, 3.1vw, 2.6rem)/1 var(--display); letter-spacing: -0.01em;
  color: #8a1322; mix-blend-mode: multiply; opacity: .92; transform: rotate(-.3deg);
}
.sign span { display: inline-block; }
.signer {
  position: relative; margin: -34px 20px 0; padding: 16px 18px 18px; border-radius: var(--r);
  background: var(--surface); box-shadow: var(--shadow); display: grid; gap: 8px; border: 1px solid var(--line);
}
.signer label { font-weight: 700; font-size: var(--fs-sm); }
.float-card {
  position: absolute; top: 22px; inset-inline-end: -14px; display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; box-shadow: var(--shadow);
}
.float-card .ic { width: 28px; height: 28px; color: var(--brand); }
.float-card b { display: block; font-size: var(--fs-sm); line-height: 1.3; }
.float-card span { font-size: var(--fs-xs); color: var(--ink-2); }

.made-for { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: clamp(40px, 5vw, 72px); }
.made-for li { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.made-for .made-label { border: 0; background: none; padding-inline-start: 0; color: var(--ink-3); }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.trio figure { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--tint); }
.trio img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .7s var(--ease); }
.trio figure:hover img { transform: scale(1.05); }
.trio figcaption { position: absolute; inset-inline-start: 14px; bottom: 14px; padding: 8px 14px; border-radius: 999px; background: var(--surface); font-size: var(--fs-sm); font-weight: 700; box-shadow: var(--shadow-sm); }

/* inputs */
input[type="text"], textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--r-sm); transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 96px; }
input[type="text"]:hover, textarea:hover { border-color: var(--ink-3); }
input[type="text"]:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(179, 18, 42, .14); }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
.field { display: grid; gap: 8px; }
.field label, .field legend, .field-label { font-weight: 700; font-size: var(--fs-sm); }
.field legend { margin-bottom: 8px; }
.opt-tag { font-weight: 500; color: var(--ink-3); font-size: var(--fs-xs); }
.err { color: var(--err); font-size: var(--fs-xs); font-weight: 600; }
.field.bad input { border-color: var(--err); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-img { overflow: hidden; aspect-ratio: 16 / 8.4; background: var(--tint); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.card-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.card-top h3 { margin-inline-end: auto; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: none; }
.icon .ic { width: 22px; height: 22px; }
.price-chip { padding: 6px 12px; border-radius: 999px; background: var(--tint); font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; }
.card-body > p { color: var(--ink-2); }
.ticks { display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); }
.ticks .ic { width: 18px; height: 18px; color: var(--ok); margin-top: 3px; }

/* demo */
.try-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.try-text { display: grid; gap: 24px; }
.try-text .head { margin-bottom: 4px; }
.dark input[type="text"] { background: var(--dark-2); border-color: var(--dark-line); color: var(--on-dark); }
.dark input[type="text"]:hover { border-color: var(--on-dark-2); }
.dark input[type="text"]:focus { border-color: #FF8A99; box-shadow: 0 0 0 4px rgba(255, 138, 153, .2); }
.dark input::placeholder { color: #8f867c; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--dark-line); background: transparent; color: var(--on-dark-2); font-weight: 600; font-size: var(--fs-sm); transition: all .2s; }
.tabs button:hover { color: var(--on-dark); border-color: var(--on-dark-2); }
.tabs button[aria-pressed="true"] { background: var(--on-dark); color: var(--dark); border-color: var(--on-dark); }
.qr-card { display: flex; gap: 18px; align-items: center; padding: 16px; border-radius: var(--r); background: var(--dark-2); border: 1px solid var(--dark-line); }
.qr { width: 96px; height: 96px; flex: none; background: #fff; padding: 8px; border-radius: 10px; }
.qr svg { width: 100%; height: 100%; display: block; }
.qr-card p { font-size: var(--fs-sm); color: var(--on-dark-2); max-width: 36ch; }
.phone-stage { display: grid; justify-items: center; gap: 16px; position: relative; }
.phone-stage::before { content: ""; position: absolute; inset: 8% 6% 12%; border-radius: 50%; background: var(--brand); opacity: .22; filter: blur(70px); }
.phone { position: relative; width: min(340px, 100%); background: #0c0a09; border-radius: 44px; padding: 11px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5), inset 0 0 0 1.5px #3a322c; }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 84px; height: 22px; border-radius: 999px; background: #0c0a09; transform: translateX(-50%); z-index: 2; }
/* phone demo: one design per trade */
.phone-screen {
  --p-bg: #FAF8F5; --p-ink: #181411; --p-muted: #6E665D; --p-card: #FFFFFF; --p-accent: #B3122A; --p-on-accent: #FFFFFF;
  --p-head: #B3122A; --p-on-head: #FFFFFF; --p-radius: 14px;
  background: var(--p-bg); color: var(--p-ink); border-radius: 34px; overflow: hidden; height: 600px;
  display: flex; flex-direction: column; font-family: var(--text); font-size: 0.875rem; line-height: 1.35; transition: background-color .3s;
}
.t-cafe { --p-bg: #F6EFE6; --p-ink: #2B1B12; --p-muted: #7A6455; --p-accent: #3B2416; --p-radius: 12px; }
.t-furn { --p-bg: #FBF1D9; --p-ink: #4A2609; --p-muted: #8A6238; --p-accent: #92400E; --p-head: #92400E; --p-radius: 18px; }
.t-barber { --p-bg: #121212; --p-ink: #F2EEE6; --p-muted: #A39C90; --p-card: #1F1F1F; --p-accent: #C8A24A; --p-on-accent: #121212; --p-head: #121212; --p-on-head: #C8A24A; --p-radius: 6px; }
.t-salon { --p-bg: #FDF2F8; --p-ink: #5E1740; --p-muted: #9B5F80; --p-accent: #BE185D; --p-radius: 20px; }
.t-boutique { --p-bg: #FAFAF7; --p-ink: #111111; --p-muted: #6B6B6B; --p-accent: #111111; --p-head: #FAFAF7; --p-on-head: #111111; --p-radius: 4px; }
.t-clinic { --p-bg: #F0F9FF; --p-ink: #0C4A6E; --p-muted: #4F7C99; --p-accent: #0369A1; --p-head: #0369A1; --p-radius: 14px; }

.phone-screen small { display: block; font-size: 0.75rem; color: var(--p-muted); font-weight: 500; }
.phone-screen em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--p-accent); }
.phone-screen button { font: inherit; color: inherit; cursor: pointer; }
.d-name { display: block; font: 700 1.375rem/1.15 var(--display); overflow-wrap: anywhere; }
[dir="rtl"] .d-name { font-weight: 600; }
.d-sub { display: block; font-size: 0.75rem; opacity: .85; margin-top: 4px; }

.d-head { background: var(--p-head); color: var(--p-on-head); padding: 58px 18px 18px; text-align: center; }
.d-head-row { display: flex; align-items: center; gap: 12px; text-align: start; padding: 52px 16px 16px; }
.d-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.7); flex: none; }
.d-head-min { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; text-align: start; padding: 54px 16px 12px; border-bottom: 1px solid #E4E4DE; }
.d-head-min .d-name { font-size: 1.125rem; letter-spacing: .02em; text-transform: uppercase; }
[dir="rtl"] .d-head-min .d-name { letter-spacing: 0; }
.d-bag { font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.d-bag b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--p-accent); color: var(--p-on-accent); }
.d-cover { min-height: 150px; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background-size: cover; background-position: center; position: relative; isolation: isolate; }
.d-cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,12,8,.82), rgba(20,12,8,.1) 70%); z-index: -1; }
.d-cover-soft { min-height: 132px; }
.d-cover-soft::before { background: linear-gradient(to top, rgba(94,23,64,.85), rgba(94,23,64,.08) 75%); }

.d-kind { padding: 12px 16px 6px; font-weight: 700; font-size: 0.6875rem; color: var(--p-muted); text-transform: uppercase; letter-spacing: .08em; }
[dir="rtl"] .d-kind { letter-spacing: 0; font-size: 0.8125rem; }
.d-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px; }
.d-tabs { padding-top: 12px; padding-bottom: 4px; }
.d-chip { min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--p-ink) 22%, transparent); background: transparent; font-weight: 600; font-size: 0.8125rem; transition: background-color .2s, color .2s, border-color .2s; }
.d-chip[aria-pressed="true"], .d-day[aria-pressed="true"] { background: var(--p-accent); border-color: var(--p-accent); color: var(--p-on-accent); }
.d-chip[aria-pressed="true"] small, .d-day[aria-pressed="true"] small { color: inherit; }
.t-barber .d-chip { border-radius: var(--p-radius); }
.d-slots .d-chip { flex: 1 0 28%; }
.d-days { flex-wrap: nowrap; }
.d-day { flex: 1; min-width: 0; padding: 6px 2px; border-radius: 12px; border: 1.5px solid color-mix(in srgb, var(--p-ink) 18%, transparent); background: var(--p-card); text-align: center; line-height: 1.2; transition: background-color .2s, color .2s; }
.d-day b { font-size: 0.9375rem; }

.d-list { padding: 6px 12px 0; flex: 1; display: grid; gap: 6px; align-content: start; }
.d-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; background: var(--p-card); border-radius: var(--p-radius); }
.d-list b { font-weight: 700; }
.d-stepper { display: inline-flex; align-items: center; gap: 2px; background: var(--p-bg); border-radius: 999px; padding: 2px; }
.d-stepper button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--p-accent); color: var(--p-on-accent); font-weight: 700; line-height: 1; }
.d-stepper output { min-width: 22px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.d-col { display: grid; gap: 6px; padding: 0 12px; }
.d-option { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; text-align: start; background: var(--p-card); border: 1.5px solid transparent; border-radius: var(--p-radius); transition: border-color .2s; }
.d-option[aria-pressed="true"], .d-card[aria-pressed="true"] { border-color: var(--p-accent); }
.d-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 12px; flex: 1; align-content: start; }
.d-card { display: grid; gap: 2px; padding: 12px; text-align: start; background: var(--p-card); border: 1.5px solid transparent; border-radius: var(--p-radius); transition: border-color .2s; }
.d-card em { margin-top: 4px; }
.d-product { display: grid; gap: 4px; }
.d-swatch { display: block; aspect-ratio: 1 / 0.82; border-radius: var(--p-radius); }
.d-product b { font-size: 0.8125rem; }
.d-buy { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.d-buy button { padding: 4px 10px; border: 1.5px solid var(--p-ink); background: transparent; border-radius: var(--p-radius); font-size: 0.75rem; font-weight: 700; transition: background-color .2s, color .2s; }
.d-buy button:hover, .d-buy button.added { background: var(--p-ink); color: var(--p-bg); }
.d-cta { margin: auto 12px 16px; padding: 14px; text-align: center; background: var(--p-accent); color: var(--p-on-accent); font-weight: 700; border-radius: var(--p-radius); }
.d-cta b { color: inherit; }
.d-grid + .d-cta, .d-list + .d-cta, .d-row + .d-cta { margin-top: 12px; }
.phone-screen > .d-cta { margin-top: auto; }
.sample-note { font-size: var(--fs-xs); color: var(--on-dark-2); position: relative; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 23px; inset-inline: 24px; height: 2px; background: var(--line); }
.steps li { position: relative; display: grid; gap: 12px; align-content: start; justify-items: start; }
.step-n { width: 48px; height: 48px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink); display: grid; place-items: center; font: 700 1.125rem/1 var(--display); position: relative; z-index: 1; }
.steps li:last-child .step-n { background: var(--brand); border-color: var(--brand); color: #fff; }
.badge { padding: 5px 12px; border-radius: 999px; background: var(--tint); font-size: var(--fs-xs); font-weight: 700; margin-top: 8px; }
.badge-brand { background: var(--brand-50); color: var(--brand); }
.steps p { color: var(--ink-2); font-size: var(--fs-sm); }

/* calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); gap: 24px; align-items: start; }
.calc-list { display: grid; gap: 12px; }
.opt { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 20px 22px; border-radius: var(--r); background: var(--surface); border: 1.5px solid var(--line); cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.opt:hover { border-color: var(--ink-3); transform: translateY(-2px); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt-box { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--ink-3); display: grid; place-items: center; color: transparent; transition: all .2s; }
.opt-box .ic { width: 16px; height: 16px; }
.opt:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(179, 18, 42, .1); }
.opt:has(input:checked) .opt-box { background: var(--brand); border-color: var(--brand); color: #fff; }
.opt:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 3px; }
.opt-main { display: grid; gap: 2px; }
.opt-main b { font-size: var(--fs-h3); font-family: var(--display); letter-spacing: -0.01em; }
[dir="rtl"] .opt-main b { letter-spacing: 0; font-weight: 600; }
.opt-main span { font-size: var(--fs-sm); color: var(--ink-2); }
.opt-price { text-align: end; display: grid; gap: 2px; white-space: nowrap; }
.opt-price b { font-size: var(--fs-lg); font-variant-numeric: tabular-nums; }
.opt-price span { font-size: var(--fs-xs); color: var(--ink-2); }
.summary { position: sticky; top: 96px; background: var(--dark); color: var(--on-dark); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 20px; box-shadow: var(--shadow-lg); }
.summary dl { display: grid; gap: 4px; }
.summary dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--dark-line); }
.summary dt { color: var(--on-dark-2); font-size: var(--fs-sm); }
.summary dd { font-size: var(--fs-sm); color: var(--on-dark-2); }
.summary dd b { font: 700 2.25rem/1 var(--display); color: var(--on-dark); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.summary .ticks .ic { color: #7ED9A8; }
.summary .note { color: var(--on-dark-2); }

/* why */
.why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.why-photo { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.why-photo img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; transition: transform .8s var(--ease); }
.why-photo:hover img { transform: scale(1.04); }
.why-grid .head { margin-bottom: 32px; }
.reasons { display: grid; gap: 26px; }
.reasons li { display: flex; gap: 18px; align-items: flex-start; }
.reasons h3 { margin-bottom: 6px; }
.reasons p { color: var(--ink-2); }

/* faq */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-grid .head { margin-bottom: 0; justify-items: start; position: sticky; top: 104px; }
.faq-grid .head .btn { margin-top: 10px; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: box-shadow .2s, border-color .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 700; font-size: var(--fs-h3); cursor: pointer; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .25s var(--ease); color: var(--ink-3); }
.faq details[open] summary .ic { transform: rotate(180deg); color: var(--brand); }
.faq details p { padding: 0 22px 22px; color: var(--ink-2); max-width: 62ch; }

/* contact */
.start-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.start-text .head { margin-bottom: 32px; }
.reach { display: grid; gap: 12px; }
.reach-item { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.reach-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; }
.reach-item b { display: block; line-height: 1.3; }
.reach-item span span { font-size: var(--fs-sm); color: var(--ink-2); }
.brief { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); display: grid; gap: 22px; box-shadow: var(--shadow); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: var(--fs-sm); cursor: pointer; transition: all .2s; }
.chip span:hover { border-color: var(--ink-3); }
.chip input:checked + span { background: var(--brand-50); border-color: var(--brand); color: var(--brand); }
.chip input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 3px; }
.brief-send { display: grid; gap: 10px; }

/* footer */
.foot { background: var(--dark); color: var(--on-dark); padding-block: 64px 28px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--dark-line); }
.foot-brand { display: grid; gap: 16px; justify-items: start; }
.foot p { color: var(--on-dark-2); font-size: var(--fs-sm); max-width: 38ch; }
.foot .logo-ar { color: var(--on-dark-2); }
.foot h3 { font-size: var(--fs-sm); color: var(--on-dark-2); font-weight: 600; margin-bottom: 14px; }
.foot nav a, .foot-grid > div:last-child a { display: block; padding: 6px 0; font-weight: 600; transition: color .2s; }
.foot nav a:hover, .foot-grid > div:last-child a:hover { color: #FF8A99; }
.foot-grid > div:last-child p { margin-top: 12px; }
.foot-meta { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 24px; }
.foot-meta p { font-size: var(--fs-xs); max-width: none; }

/* floating */
.to-top { position: fixed; inset-inline-end: 20px; bottom: 20px; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease), background-color .2s; z-index: 40; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--brand); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 14px 20px; border-radius: var(--r-sm); font-weight: 600; font-size: var(--fs-sm); box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); z-index: 70; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* motion */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js .reveal.in { opacity: 1; transform: none; }
  .float-card { animation: bob 5s ease-in-out infinite; }
  @keyframes bob { 50% { transform: translateY(-8px); } }
  .sign span.pop { animation: paint .45s var(--ease); }
  @keyframes paint { from { opacity: .2; transform: translateY(10%) scale(.96); } }
  #demo.swap > * { animation: swap .35s var(--ease) both; }
  #demo.swap > *:nth-child(2) { animation-delay: 40ms; } #demo.swap > *:nth-child(3) { animation-delay: 80ms; } #demo.swap > *:nth-child(4) { animation-delay: 120ms; } #demo.swap > *:nth-child(n+5) { animation-delay: 160ms; }
  @keyframes swap { from { opacity: 0; transform: translateY(10px); } }
  .summary dd b.bump { animation: bump .3s var(--ease); }
  @keyframes bump { 40% { transform: scale(1.08); } }
  .summary dd b { display: inline-block; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* responsive */
@media (max-width: 1024px) {
  .links { display: none; position: absolute; top: 72px; inset-inline: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 24px 20px; flex-direction: column; gap: 2px; box-shadow: var(--shadow); }
  .links.open { display: flex; }
  .links a { padding: 14px 12px; font-size: var(--fs-base); }
  .burger { display: grid; }
  .hero-grid, .try-grid, .why-grid, .faq-grid, .start-grid, .calc { grid-template-columns: 1fr; }
  .faq-grid .head, .summary { position: static; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps::before { display: none; }
  .float-card { inset-inline-end: 12px; }
  .why-photo img { aspect-ratio: 16 / 10; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .wrap { width: min(1200px, 100% - 32px); }
  .nav-in { height: 64px; }
  .links { top: 64px; padding-inline: 16px; }
  .nav-cta { display: none; }
  .logo-ar { display: none; }
  .actions .btn { width: 100%; }
  .facts { grid-template-columns: 1fr; gap: 14px; }
  .facts li { grid-template-columns: auto 1fr; gap: 10px; align-items: baseline; }
  .cards { grid-template-columns: 1fr; }
  .trio { grid-template-columns: 1fr; gap: 14px; }
  .trio img { aspect-ratio: 16 / 10; }
  .card-body { padding: 22px; }
  .steps { grid-template-columns: 1fr; }
  .opt { grid-template-columns: auto 1fr; padding: 18px; }
  .opt-price { grid-column: 2; text-align: start; display: flex; gap: 8px; align-items: baseline; }
  .signer { margin-inline: 12px; }
  .float-card { display: none; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .to-top { bottom: 16px; inset-inline-end: 16px; }
}
