/* Barbero marketing site.
   Tokens mirror barbero-app/src/theme/index.ts — change them there first, then here. */
:root {
  --primary: #1E8A76;
  --primary-pressed: #14685A;
  --primary-tint: #DCEFEA;
  --secondary: #E07856;
  --secondary-tint: #FBE7DE;
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --surface-alt: #F4F0E9;
  --border: #E8E2D8;
  --divider: #F1ECE3;
  --ink: #1F1B16;
  --ink-2: #6B6259;
  --ink-3: #9A9187;
  --night: #1C1815;           /* the emblem's own ground */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 28px; --r-pill: 999px;
  --shadow: 0 1px 2px rgba(31,27,22,.04), 0 8px 24px rgba(31,27,22,.06);
  --shadow-lg: 0 30px 60px -20px rgba(31,27,22,.28);
  --font: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
  --wrap: 1160px;
}
:lang(en), :lang(de) { --font: "Inter", "IBM Plex Sans Arabic", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-pressed); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 16px; top: 16px; z-index: 99; background: var(--surface); padding: 8px 14px; border-radius: var(--r-sm); }

/* ---------- header ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--ink); }
.brand img { width: 38px; height: 38px; }
.nav-links { display: flex; gap: 26px; margin-inline-start: auto; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.lang { font-weight: 600; font-size: 14px; color: var(--ink); border: 1px solid var(--border); padding: 6px 12px; border-radius: var(--r-pill); background: var(--surface); }
@media (max-width: 860px) { .nav-links { display: none; } .lang { margin-inline-start: auto; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font: inherit; font-weight: 600; font-size: 16px; border-radius: var(--r-pill);
  padding: 14px 24px; border: 0; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px -10px rgba(30,138,118,.7); }
.btn-primary:hover { background: var(--primary-pressed); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-3); }
.btn-play { background: var(--ink); color: #fff; padding: 10px 22px 10px 20px; border-radius: var(--r-md); text-align: start; }
.btn-play:hover { background: #000; color: #fff; }
.btn-play small { display: block; font-size: 11px; font-weight: 500; opacity: .75; line-height: 1.2; }
.btn-play b { display: block; font-size: 17px; line-height: 1.25; }
.btn-play svg { width: 26px; height: 26px; flex: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, var(--primary-tint), transparent 70%); z-index: -1;
}
.hero::after {
  content: ""; position: absolute; inset: auto auto -20% -10%; width: 520px; height: 520px;
  background: radial-gradient(closest-side, var(--secondary-tint), transparent 70%); z-index: -1;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: var(--primary-pressed); background: var(--primary-tint); padding: 6px 14px; border-radius: var(--r-pill); margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px rgba(30,138,118,.18); }
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--primary); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; inset-inline: 0; bottom: .06em; height: .22em;
  background: var(--secondary-tint); z-index: -1; border-radius: 4px;
}
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 34em; margin-bottom: 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; color: var(--ink-2); font-size: 14px; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 18px; height: 18px; color: var(--primary); }

/* phone mockups */
.phones { position: relative; height: 600px; }
.phone {
  position: absolute; width: 270px; aspect-ratio: 589 / 1206; border-radius: 40px; padding: 10px;
  background: var(--night); box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.08);
}
.phone::before { /* camera pill */
  content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 76px; height: 20px; border-radius: 12px; background: var(--night); z-index: 2;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 31px; background: var(--bg); }
.phones .p1 { inset-inline-start: 4%; top: 0; z-index: 2; animation: float 7s ease-in-out infinite; }
.phones .p2 { inset-inline-end: 4%; top: 70px; transform: rotate(-4deg); animation: float2 8s ease-in-out infinite; }
[dir="rtl"] .phones .p2 { transform: rotate(4deg); }
@keyframes float { 50% { translate: 0 -10px; } }
@keyframes float2 { 50% { translate: 0 8px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto !important; } }
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phones { height: 520px; max-width: 480px; margin-inline: auto; width: 100%; }
  .phone { width: 230px; }
}
@media (max-width: 520px) {
  .phones { height: 440px; }
  .phone { width: 190px; border-radius: 30px; padding: 7px; }
  .phone img { border-radius: 24px; }
  .phone::before { top: 13px; width: 56px; height: 15px; }
}

/* ---------- sections ---------- */
section { padding: 88px 0; }
.sec-head { max-width: 640px; margin-bottom: 44px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--secondary); margin-bottom: 10px; display: block; }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.sec-head p { color: var(--ink-2); font-size: 18px; }

/* features */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } section { padding: 64px 0; } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(31,27,22,.04), 0 18px 40px rgba(31,27,22,.09); }
.card h3 { font-size: 19px; margin-top: 16px; }
.card p { color: var(--ink-2); margin: 0; font-size: 15.5px; }
.ico {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--primary-tint); color: var(--primary-pressed);
}
.ico.warm { background: var(--secondary-tint); color: #B4553A; }
.ico svg { width: 24px; height: 24px; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 28px; border-radius: var(--r-lg); background: var(--surface-alt); }
.step::before {
  counter-increment: s; content: counter(s);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700; margin-bottom: 16px;
}
.step h3 { font-size: 19px; }
.step p { color: var(--ink-2); margin: 0; }

/* showcase */
.showcase { background: var(--night); color: #F4F0E9; border-radius: 36px; margin-inline: 16px; }
.showcase .sec-head p { color: #BDB4A8; }
.showcase .kicker { color: #7FD1BF; }
.rail {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 28px;
  scrollbar-width: thin; scrollbar-color: #4a423a transparent;
}
.shot { flex: none; width: 240px; scroll-snap-align: center; margin: 0; }
.shot .phone { position: relative; width: 100%; background: #0e0c0a; }
.shot figcaption { text-align: center; margin-top: 14px; font-weight: 600; color: #E8E2D8; font-size: 15px; }

/* status strip — the app's 8 booking status pairs */
.statuses { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 4px 11px; border-radius: var(--r-pill); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
.b-pending { background: #FBF1DA; color: #8A6410; }
.b-confirmed { background: #E4F4EC; color: #157347; }
.b-arrived { background: #E7F0F8; color: #2C5F8F; }
.b-progress { background: #E1F0EC; color: #0F5C4E; }
.b-completed { background: #EEF1F5; color: #475569; }
.b-cancelled { background: #FBE9E6; color: #A23B31; }

/* split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: var(--primary-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314685A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/13px no-repeat;
}
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 28px; box-shadow: var(--shadow); }
.receipt-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--border); color: var(--ink-2); }
.receipt-row b { color: var(--ink); font-weight: 600; }
.receipt-row.total { border: 0; padding-top: 16px; font-size: 18px; color: var(--ink); font-weight: 700; }
.receipt-row.fee { color: var(--primary-pressed); }
.pay-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pay-opts span { font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface-alt); }
.pay-opts span.on { background: var(--primary-tint); border-color: #b9ddd4; color: var(--primary-pressed); }

/* markets */
.markets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 760px) { .markets { grid-template-columns: 1fr; } }
.market { display: flex; align-items: center; gap: 16px; }
.market .flag { width: 48px; height: 32px; flex: none; border-radius: 6px; box-shadow: 0 0 0 1px rgba(31,27,22,.08); }
.market b { display: block; font-size: 18px; }
.market span { color: var(--ink-2); font-size: 14.5px; }

/* business band */
.band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-pressed) 100%); color: #fff;
  border-radius: var(--r-xl); padding: 48px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
  position: relative; overflow: hidden;
}
.band::after { content: ""; position: absolute; inset-inline-end: -80px; bottom: -120px; width: 340px; height: 340px; border-radius: 50%; border: 40px solid rgba(255,255,255,.06); }
.band h2 { font-size: clamp(26px, 3vw, 36px); }
.band p { color: #D6EEE8; font-size: 17px; margin: 0; }
.band .btn { background: #fff; color: var(--primary-pressed); justify-self: end; position: relative; z-index: 1; }
.band .btn:hover { background: var(--primary-tint); }
@media (max-width: 760px) { .band { grid-template-columns: 1fr; padding: 32px 24px; } .band .btn { justify-self: start; } }

/* faq */
.faq { max-width: 780px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--primary); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 18px; margin: 0; }

/* final cta */
.final { text-align: center; }
.final img { width: 96px; height: 96px; margin: 0 auto 20px; }
.final h2 { font-size: clamp(30px, 4vw, 46px); }
.final p { color: var(--ink-2); font-size: 18px; margin-bottom: 28px; }
.final .cta-row { justify-content: center; }

/* footer */
footer { border-top: 1px solid var(--border); padding: 48px 0 32px; margin-top: 40px; color: var(--ink-2); font-size: 15px; }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot > :first-child { grid-column: 1 / -1; } }
.foot h4 { color: var(--ink); font-size: 15px; margin: 0 0 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { color: var(--ink-2); }
.foot a:hover { color: var(--primary); }
.copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--divider); font-size: 13.5px; color: var(--ink-3); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- legal pages ---------- */
.legal { padding: 48px 0 24px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); }
.legal .meta { color: var(--ink-3); font-size: 14px; margin-bottom: 32px; }
.legal h2 { font-size: 22px; margin-top: 40px; }
.legal h3 { font-size: 18px; margin-top: 24px; }
.legal p, .legal li { color: #3d3630; }
.legal ul { padding-inline-start: 22px; }
.legal li { margin-bottom: 6px; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 15px; background: var(--surface); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border); }
.legal th, .legal td { text-align: start; padding: 12px 14px; border-bottom: 1px solid var(--divider); vertical-align: top; }
.legal th { background: var(--surface-alt); font-weight: 600; }
.legal .toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px 24px; margin-bottom: 8px; }
.legal .toc ol { margin: 8px 0 0; padding-inline-start: 20px; columns: 2; column-gap: 32px; }
@media (max-width: 620px) { .legal .toc ol { columns: 1; } .legal table { font-size: 14px; } .legal th, .legal td { padding: 10px; } }
.note { background: var(--primary-tint); border-radius: var(--r-md); padding: 16px 20px; color: var(--primary-pressed); margin: 20px 0; }
.note.warm { background: var(--secondary-tint); color: #8E3F27; }
.steps-list { counter-reset: d; list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.steps-list li { counter-increment: d; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px 18px 16px 18px; display: flex; gap: 14px; align-items: flex-start; }
.steps-list li::before { content: counter(d); flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.mail-btn { margin: 8px 0 16px; }
