/* Shareq — Refer & Earn. Official palette: Burgundy Clay #713535, Deep Garnet #902428, Limestone Beige #DBCEBE, Dusty Stone Rose #BC897D, Amber Sand #FBAF56, Charcoal Black #060505. */
:root {
  --burg: #713535;
  --burg-700: #902428;
  --burg-900: #3d1c1c;
  --burg-50: #f6eeec;
  --sand: #DBCEBE;
  --sand-200: #ece4d9;
  --sand-50: #f8f4ef;
  --ink: #060505;
  --muted: #74686a;
  --line: #e7e1da;
  --gray: #f2f0ed;
  --ok: #2f6b4f;
  --ok-50: #eaf3ee;
  --warn: #9a6a12;
  --warn-50: #fbf3e2;
  --bad: #9b2c2c;
  --bad-50: #fbecec;
  --garnet: #902428;
  --rose: #BC897D;
  --amber: #FBAF56;
  --r: 18px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(58, 15, 23, .04), 0 8px 28px rgba(58, 15, 23, .07);
  --band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='60' viewBox='0 0 64 60'%3E%3Cpath fill='none' stroke='%23DBCEBE' stroke-width='3.6' stroke-linejoin='miter' d='M0 19L11 30L0 41L-11 30ZM32 19L43 30L32 41L21 30ZM64 19L75 30L64 41L53 30ZM16 2L27 13L16 24L5 13ZM16 36L27 47L16 58L5 47ZM48 2L59 13L48 24L37 13ZM48 36L59 47L48 58L37 47Z'/%3E%3C/svg%3E");
  --font: "IBM Plex Sans Arabic", "Noto Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.7; font-size: 16px; }
[dir="ltr"] body, body[dir="ltr"] { line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--burg); }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(640px, 100% - 40px); margin-inline: auto; }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; }
.center { text-align: center; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--burg); }
.brand img { height: 44px; width: auto; }
.brand .word { font-weight: 700; font-size: 22px; letter-spacing: 0; }
.brand .word small { display: block; font-size: 10.5px; letter-spacing: .22em; color: var(--muted); font-weight: 500; margin-top: -6px; }
.top nav { display: flex; align-items: center; gap: 6px; }
.chip-btn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 14px; cursor: pointer; text-decoration: none; color: var(--ink); white-space: nowrap; }
.chip-btn:hover { border-color: var(--burg); color: var(--burg); }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 14px; border: 0; background: var(--burg); color: #fff; font-weight: 600; font-size: 16.5px; cursor: pointer; text-decoration: none; transition: background .2s, transform .1s; }
.btn:hover { background: var(--burg-700); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--burg); box-shadow: inset 0 0 0 1.5px var(--burg); }
.btn.ghost:hover { background: var(--burg-50); }
.btn.sand { background: var(--sand); color: var(--burg-900); }
.btn.sand:hover { background: #e2d2b7; }
.btn.light { background: #fff; color: var(--burg); }
.btn.wa { background: #1f7a4f; }
.btn.wa:hover { background: #18663f; }
.btn.block { width: 100%; }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn .spin { width: 18px; height: 18px; border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-weight: 600; font-size: 14.5px; }
.input, select.input, textarea.input { width: 100%; min-height: 50px; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; background: #fff; transition: border-color .15s, box-shadow .15s; }
textarea.input { min-height: 90px; resize: vertical; }
.input:focus { outline: none; border-color: var(--burg); box-shadow: 0 0 0 4px rgba(106, 31, 43, .1); }
.input.err { border-color: var(--bad); }
.input[type="tel"], .ltr { direction: ltr; text-align: right; }
[dir="ltr"] .input[type="tel"], [dir="ltr"] .ltr { text-align: left; }
.hint { font-size: 13px; color: var(--muted); }
.err-text { font-size: 13.5px; color: var(--bad); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 50px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 500; padding: 6px 10px; line-height: 1.3; transition: all .15s; }
.seg label small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.seg input:checked + label { border-color: var(--burg); background: var(--burg-50); color: var(--burg); font-weight: 600; }
.seg input:focus-visible + label { box-shadow: 0 0 0 4px rgba(113,53,53,.15); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14.5px; line-height: 1.6; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--burg); flex: none; }

.alert { border-radius: 12px; padding: 12px 16px; font-size: 14.5px; margin-bottom: 14px; }
.alert.bad { background: var(--bad-50); color: var(--bad); }
.alert.ok { background: var(--ok-50); color: var(--ok); }
.alert.info { background: var(--sand-50); color: var(--burg-900); border: 1px solid var(--sand); }
.alert.warn { background: var(--warn-50); color: var(--warn); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 600; background: var(--gray); color: var(--ink); white-space: nowrap; }
.pill.burg { background: var(--burg-50); color: var(--burg); }
.pill.ok { background: var(--ok-50); color: var(--ok); }
.pill.warn { background: var(--warn-50); color: var(--warn); }
.pill.bad { background: var(--bad-50); color: var(--bad); }
.pill.sand { background: var(--sand-200); color: var(--burg-900); }

/* ---------- Pattern (official Shareq brand patterns) ---------- */
.pattern { background-color: var(--burg); background-image: url("../img/pattern.svg"); background-size: 260px auto; }
.pattern-sand { background-color: var(--sand-50); background-image: url("../img/pattern-sand.svg"); background-size: 170px auto; }

/* ---------- Public referral page ---------- */
.hero { color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 14px 0; height: 18px; background: var(--band) repeat-x center / auto 18px; opacity: .55; pointer-events: none; }
.hero .wrap { padding: 56px 0 64px; display: grid; gap: 28px; position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--sand); letter-spacing: .02em; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.hero h1 { font-size: clamp(30px, 6.4vw, 54px); line-height: 1.25; margin: 6px 0 12px; font-weight: 700; }
.hero h1 .amt { color: var(--sand); white-space: nowrap; }
.hero p.lead { font-size: clamp(16px, 2.4vw, 19px); opacity: .92; max-width: 620px; margin: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: -36px; position: relative; z-index: 2; }
.step { background: #fff; border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; gap: 14px; align-items: flex-start; }
.step .n { width: 38px; height: 38px; border-radius: 12px; background: var(--sand-200); color: var(--burg); display: grid; place-items: center; font-weight: 700; flex: none; }
.step h3 { margin: 0 0 2px; font-size: 16.5px; }
.step p { margin: 0; font-size: 14.5px; color: var(--muted); }

.section { padding: 56px 0; }
.section h2 { font-size: clamp(23px, 3.6vw, 32px); line-height: 1.35; margin: 0 0 8px; }
.section .sub { color: var(--muted); margin: 0 0 24px; max-width: 640px; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--gray); border-radius: 16px; padding: 5px; gap: 4px; margin-bottom: 20px; }
.tabs button { border: 0; background: transparent; border-radius: 12px; min-height: 52px; font-weight: 600; cursor: pointer; color: var(--muted); line-height: 1.3; padding: 6px; }
.tabs button small { display: block; font-weight: 400; font-size: 12.5px; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--burg); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.linkbox { display: flex; gap: 8px; align-items: stretch; background: var(--sand-50); border: 1.5px dashed var(--sand); border-radius: 14px; padding: 8px; }
.linkbox code { flex: 1; direction: ltr; text-align: left; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14.5px; padding: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--burg-900); align-self: center; }
.success-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-50); color: var(--ok); display: grid; place-items: center; margin: 0 auto 10px; }
.success-mark svg { width: 34px; height: 34px; }

.terms { background: var(--sand-50); border-radius: var(--r); padding: 22px 24px; border: 1px solid var(--sand-200); position: relative; overflow: hidden; }
.terms::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--burg), var(--garnet), var(--amber)); }
.terms ul { margin: 8px 0 0; padding-inline-start: 20px; }
.terms li { margin-bottom: 6px; font-size: 14.5px; }

/* Leaderboard */
.lb { display: grid; gap: 8px; }
.lb-row { display: grid; grid-template-columns: 44px 1fr auto auto; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.lb-row .rank { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; background: var(--gray); color: var(--muted); }
.lb-row.top1 .rank { background: var(--burg); color: #fff; }
.lb-row.top2 .rank { background: var(--sand); color: var(--burg-900); }
.lb-row.top3 .rank { background: var(--sand-200); color: var(--burg); }
.lb-row .name { font-weight: 600; }
.lb-row .stat { text-align: center; font-size: 13px; color: var(--muted); line-height: 1.3; min-width: 64px; }
.lb-row .stat b { display: block; font-size: 17px; color: var(--ink); }
.lb-switch { display: inline-flex; background: var(--gray); border-radius: 12px; padding: 4px; gap: 4px; }
.lb-switch button { border: 0; background: transparent; padding: 6px 14px; border-radius: 9px; cursor: pointer; font-size: 14px; color: var(--muted); }
.lb-switch button[aria-pressed="true"] { background: #fff; color: var(--burg); font-weight: 600; }
.empty { text-align: center; padding: 28px 16px; color: var(--muted); border: 1.5px dashed var(--line); border-radius: var(--r); }

footer.foot { position: relative; background: var(--burg-900) url("../img/pattern.svg") 0 0 / 260px auto; color: var(--sand); padding: 46px 0 40px; font-size: 14px; margin-top: 24px; }
footer.foot::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 18px; background: #fff var(--band) repeat-x center / auto 18px; }
footer.foot a { color: #fff; text-decoration-color: rgba(219,206,190,.5); }
footer.foot a:hover { color: var(--amber); }
footer.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }

/* ---------- Landing (referred customer) ---------- */
.l-hero { position: relative; min-height: min(86vh, 720px); color: #fff; display: flex; align-items: flex-end; overflow: hidden; }
.l-hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.l-hero .bg.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(42, 10, 17, .92) 0%, rgba(42, 10, 17, .55) 45%, rgba(42, 10, 17, .15) 100%); }
.l-hero .wrap { position: relative; z-index: 1; padding: 120px 0 54px; }
.l-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 18px; background: var(--burg-900) var(--band) repeat-x center / auto 18px; z-index: 1; }
.rec-badge { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(8px); border-radius: 999px; padding: 6px 16px 6px 8px; font-size: 14.5px; }
[dir="ltr"] .rec-badge { padding: 6px 8px 6px 16px; }
.rec-badge .av { width: 30px; height: 30px; border-radius: 50%; background: var(--sand); color: var(--burg-900); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.l-hero h1 { font-size: clamp(34px, 7.4vw, 64px); line-height: 1.2; margin: 18px 0 8px; font-weight: 700; }
.l-hero .tag { font-size: clamp(19px, 3vw, 26px); color: var(--sand); margin: 0 0 10px; font-weight: 500; }
.l-hero p { max-width: 560px; opacity: .92; margin: 0 0 22px; font-size: 17px; }
.note-card { background: var(--sand-50); border: 1px solid var(--sand); border-radius: var(--r); padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.note-card .ic { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: grid; place-items: center; color: var(--burg); flex: none; }

.proj-switch { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.proj-switch button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 18px; cursor: pointer; font-weight: 600; white-space: nowrap; }
.proj-switch button[aria-pressed="true"] { border-color: var(--burg); background: var(--burg); color: #fff; }

.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(78%, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.gallery figure { margin: 0; scroll-snap-align: start; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; background: var(--gray); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 760px) { .gallery { grid-auto-columns: minmax(40%, 1fr); } }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.fact { background: var(--sand-50); border-radius: 14px; padding: 14px 16px; }
.fact b { display: block; font-size: 16.5px; }
.fact span { font-size: 13.5px; color: var(--muted); }

.units { display: grid; gap: 10px; }
.unit { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.unit .code { font-weight: 700; font-size: 17px; }
.unit .meta { font-size: 14px; color: var(--muted); }
.unit .price { font-weight: 700; color: var(--burg); text-align: end; font-size: 17px; }
.unit .price small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }

.near { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.near div { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--gray); font-size: 14.5px; }
.near b { color: var(--burg); white-space: nowrap; }

.hl { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.hl div { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.hl svg { flex: none; width: 22px; height: 22px; color: var(--burg); margin-top: 3px; }

.placeholder-visual { position: absolute; inset: 0; display: grid; place-items: center; }

.sticky-cta { position: sticky; bottom: 0; z-index: 15; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); }
.sticky-cta .wrap { display: flex; gap: 8px; }
.sticky-cta .btn { flex: 1; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

.two-col { display: grid; gap: 28px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.25fr 1fr; align-items: start; } .two-col .side { position: sticky; top: 84px; } }

/* ---------- Visit / booking ---------- */
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.day { flex: none; width: 76px; border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 6px; text-align: center; cursor: pointer; background: #fff; line-height: 1.35; }
.day small { display: block; font-size: 12px; color: var(--muted); }
.day b { font-size: 20px; display: block; }
.day[aria-pressed="true"] { border-color: var(--burg); background: var(--burg); color: #fff; }
.day[aria-pressed="true"] small { color: var(--sand); }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 14px; }
.time { border: 1.5px solid var(--line); border-radius: 12px; min-height: 46px; background: #fff; cursor: pointer; font-weight: 600; }
.time[aria-pressed="true"] { border-color: var(--burg); background: var(--burg-50); color: var(--burg); }
.next-steps { counter-reset: s; display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.next-steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.next-steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 10px; background: var(--sand-200); color: var(--burg); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.option-grid { display: grid; gap: 10px; }
.option { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; text-align: start; width: 100%; text-decoration: none; color: inherit; }
.option:hover { border-color: var(--burg); }
.option .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--burg-50); color: var(--burg); display: grid; place-items: center; flex: none; }
.option .ic svg { width: 22px; height: 22px; }
.option b { display: block; }
.option span { font-size: 14px; color: var(--muted); }
.appt { border-radius: var(--r); padding: 20px; background: var(--burg); color: #fff; }
.appt .big { font-size: 22px; font-weight: 700; }

/* ---------- Referrer tracker ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.stat-card span { font-size: 13.5px; color: var(--muted); display: block; }
.stat-card b { font-size: 24px; display: block; line-height: 1.3; }
.stat-card.hero-stat { background: var(--burg); color: #fff; border-color: var(--burg); grid-column: span 2; }
.stat-card.hero-stat span { color: var(--sand); }
.stat-card.hero-stat b { font-size: 30px; }
.ref-card { border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 18px; display: grid; gap: 14px; }
.ref-card .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ref-card .who { font-weight: 700; font-size: 18px; }
.ref-card .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--muted); }

.track { display: grid; grid-template-columns: repeat(7, 1fr); position: relative; }
.track::before { content: ""; position: absolute; top: 14px; inset-inline: 7.14%; height: 3px; background: var(--line); border-radius: 3px; }
.track .bar { position: absolute; top: 14px; inset-inline-start: 7.14%; height: 3px; background: var(--burg); border-radius: 3px; transition: width .6s ease; }
.track .st { position: relative; text-align: center; font-size: 11px; color: var(--muted); line-height: 1.35; padding: 0 2px; }
.track .dot { width: 28px; height: 28px; border-radius: 50%; margin: 0 auto 6px; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); position: relative; z-index: 1; color: transparent; }
.track .dot svg { width: 15px; height: 15px; }
.track .st.done .dot { background: var(--burg); border-color: var(--burg); color: #fff; }
.track .st.done { color: var(--ink); }
.track .st.cur .dot { background: #fff; border: 3px solid var(--burg); box-shadow: 0 0 0 5px rgba(113,53,53,.12); }
.track .st.cur .dot::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--burg); }
.track .st.cur { color: var(--burg); font-weight: 700; }
.track.muted-track .bar { background: var(--muted); }

.notif { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.notif:last-child { border-bottom: 0; }
.notif .dotn { width: 9px; height: 9px; border-radius: 50%; background: var(--line); margin-top: 9px; flex: none; }
.notif.unread .dotn { background: var(--burg); }
.notif time { display: block; font-size: 12px; color: var(--muted); }

.otp { display: flex; gap: 8px; direction: ltr; justify-content: center; }
.otp input { width: 48px; height: 56px; text-align: center; font-size: 22px; font-weight: 700; border: 1.5px solid var(--line); border-radius: 12px; }
.otp input:focus { outline: none; border-color: var(--burg); box-shadow: 0 0 0 4px rgba(106,31,43,.1); }
.dev-banner { background: #fff7e0; border: 1px dashed #d6a72c; color: #6d5310; border-radius: 12px; padding: 10px 14px; font-size: 13.5px; }

/* ---------- Toast ---------- */
.toast { position: fixed; inset-inline: 0; bottom: 24px; display: flex; justify-content: center; z-index: 100; pointer-events: none; }
.toast div { background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; font-size: 14.5px; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); transition: all .25s; max-width: calc(100% - 40px); }
.toast div.show { opacity: 1; transform: none; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } * { scroll-behavior: auto !important; } }
.fade-in { animation: fadeIn .35s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

:focus-visible { outline: 3px solid rgba(106,31,43,.35); outline-offset: 2px; }
.seg.err label { border-color: var(--bad); }
.check input.err + span { color: var(--bad); }
.seg label { flex-direction: column; }
.l-hero.no-img { min-height: 0; }
.l-hero.no-img .wrap { padding-top: 56px; }

/* ---- v2 ---- */
.seg.grid2 { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label { display: inline-flex; flex-direction: column; align-items: center; min-height: 46px; justify-content: center; padding: 6px 16px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 500; line-height: 1.25; transition: all .15s; }
.chips label small { font-size: 11.5px; color: var(--muted); font-weight: 400; }
.chips input:checked + label { border-color: var(--burg); background: var(--burg-50); color: var(--burg); font-weight: 600; }
.chips input:checked + label::before { content: "✓ "; }
.chips input:focus-visible + label { box-shadow: 0 0 0 4px rgba(113,53,53,.15); }
.chips.err label { border-color: var(--bad); }
.opt { font-weight: 400; color: var(--muted); font-size: 12.5px; margin-inline-start: 6px; }
.hint { display: block; font-size: 12.5px; color: var(--muted); margin: -2px 0 8px; }
.benefit { display: flex; gap: 14px; align-items: flex-start; background: linear-gradient(135deg, var(--sand-50), #fff); border: 1px solid var(--sand-200); border-inline-start: 4px solid var(--amber); border-radius: var(--r); padding: 18px 20px; }
.benefit .ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--amber); color: var(--burg-900); display: grid; place-items: center; font-size: 22px; }
.benefit h3 { margin: 0 0 4px; color: var(--burg); font-size: 18px; }
.benefit p { margin: 0; font-size: 14.5px; }
.copyblock { white-space: pre-line; background: var(--gray); border: 1px dashed var(--line); padding: 12px 14px; border-radius: 12px; font-size: 14px; margin: 8px 0; }
.foot a.priv { color: inherit; }
