/* Clarevia website — single stylesheet. Dark by default, light via prefers-color-scheme or [data-theme]. */
:root {
  --bg: #0D1015; --bg-2: #0F1217; --bg-3: #0B0D11;
  --surface: #161A21; --surface-2: #1E232C; --line: #2A303A; --line-2: #1F242C;
  --text: #ECEEF1; --text-2: #C9CFD7; --muted: #A3ABB6; --faint: #8D96A2;
  --gold: #E2B65C; --gold-ink: #14110A; --gold-soft: #3A3220; --gold-line: #4A3F22; --gold-text: #F0CB7E; --gold-bg: #2B2615;
  --wm-text: #F3EEE4; --wm-gold: #F2B84B; --accent: #E2B65C; --ok: #34C48E; --err: #FF8E80; --link: #E2B65C; --link-h: #F0CB7E;
  --header-bg: rgba(13, 16, 21, 0.86); --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius: 20px; --max: 1180px;
  --font: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-latin: "Manrope", "IBM Plex Sans Arabic", system-ui, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F6F4EF; --bg-2: #EFECE4; --bg-3: #EAE6DC;
    --surface: #FFFFFF; --surface-2: #F3F1EC; --line: #E2DDD2; --line-2: #E2DDD2;
    --text: #1A1D22; --text-2: #3A414C; --muted: #5B636E; --faint: #646C77;
    --gold: #E0AE4E; --gold-ink: #1A1D22; --gold-soft: #F5EBD3; --gold-line: #E3CC93; --gold-text: #6B4E0E; --gold-bg: #FBF3E0;
    --wm-text: #14171D; --wm-gold: #D9951C; --accent: #A87A12; --ok: #0E7A52; --err: #B42318; --link: #8A6514; --link-h: #6B4E0E;
    --header-bg: rgba(246, 244, 239, 0.88); --shadow: 0 30px 70px rgba(60, 50, 30, 0.16);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F6F4EF; --bg-2: #EFECE4; --bg-3: #EAE6DC;
  --surface: #FFFFFF; --surface-2: #F3F1EC; --line: #E2DDD2; --line-2: #E2DDD2;
  --text: #1A1D22; --text-2: #3A414C; --muted: #5B636E; --faint: #646C77;
  --gold: #E0AE4E; --gold-ink: #1A1D22; --gold-soft: #F5EBD3; --gold-line: #E3CC93; --gold-text: #6B4E0E; --gold-bg: #FBF3E0;
  --wm-text: #14171D; --wm-gold: #D9951C; --accent: #A87A12; --ok: #0E7A52; --err: #B42318; --link: #8A6514; --link-h: #6B4E0E;
  --header-bg: rgba(246, 244, 239, 0.88); --shadow: 0 30px 70px rgba(60, 50, 30, 0.16);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; text-rendering: optimizeLegibility; }
html[lang="en"] body, html[lang="de"] body { font-family: var(--font-latin); }
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-h); }
.join-note a, .legal a { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 10px; background: var(--gold); color: var(--gold-ink); font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* wordmark */
.wm { display: inline-block; direction: ltr; font-family: "Nunito", var(--font-latin); font-weight: 900; line-height: 1; white-space: nowrap; color: var(--wm-text); letter-spacing: -0.027em; }
.wm svg { display: inline-block; vertical-align: baseline; }
.brand { display: flex; align-items: center; min-height: 44px; }
.wm .wm-gold { stroke: var(--wm-gold); }
.wm .wm-gold-fill { fill: var(--wm-gold); }
.wm .wm-ink { stroke: var(--wm-text); }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--header-bg); border-bottom: 1px solid var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.site-header .wrap { display: flex; align-items: center; gap: 12px 24px; min-height: 68px; }
.nav { display: flex; gap: 2px; flex: 1 1 auto; }
.nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--text-2); font-size: 15px; }
.nav a:hover { color: var(--text); background: var(--surface); }
.head-tools { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.lang { display: flex; direction: ltr; font-family: var(--font-latin); font-size: 12px; font-weight: 700; }
.lang a { display: flex; align-items: center; justify-content: center; min-width: 36px; min-height: 40px; color: var(--faint); }
.lang a[aria-current="true"] { color: var(--text); box-shadow: inset 0 -1px 0 var(--gold); }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.menu-btn { display: none; }
@media (max-width: 820px) {
  .nav { display: none; position: absolute; inset-inline: 0; top: 68px; flex-direction: column; padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line-2); }
  .nav.open { display: flex; }
  .menu-btn { display: inline-flex; }
  .site-header .head-cta { display: none; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 25px; border: 0; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { color: var(--gold-ink); filter: brightness(1.06); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; }

/* hero */
.hero { padding: 72px 0 48px; overflow: hidden; }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 14px; border-radius: 16px; border: 1px solid var(--gold-line); background: var(--gold-bg); color: var(--gold-text); font-size: 13px; font-weight: 600; }
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
h1 { margin: 0; font-size: clamp(44px, 7vw, 76px); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
h1 em { font-style: normal; color: var(--accent); }
.lead { margin: 0; max-width: 560px; font-size: clamp(17px, 2vw, 20px); font-weight: 300; line-height: 1.8; color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-size: 13px; }
.hero-shots { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; align-items: flex-end; gap: 18px; }
.phone { flex-shrink: 0; aspect-ratio: 390 / 844; border-radius: 34px; border: 7px solid #262C36; background: #0D1015; overflow: hidden; box-shadow: var(--shadow); }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone.lg { width: 260px; }
.phone.md { width: 210px; margin-bottom: 40px; }
@media (max-width: 760px) { .phone.md { display: none; } .hero { padding-top: 48px; } }

/* waitlist form */
.join { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; max-width: 540px; }
.join input[type="email"] { flex: 1 1 240px; min-width: 0; min-height: 52px; padding: 0 18px; border-radius: 26px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 16px; direction: ltr; text-align: start; }
html[dir="rtl"] .join input[type="email"] { text-align: right; }
.join input::placeholder { color: var(--faint); }
.join { position: relative; }
.join .hp { position: absolute; top: 0; inset-inline-start: 0; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }
.join-note { font-size: 13px; color: var(--faint); min-height: 1.6em; }
.join-note.ok { color: var(--ok); }
.join-note.err { color: var(--err); }

/* sections */
section { scroll-margin-top: 80px; }
.sec { padding: 96px 0; }
.sec.alt { background: var(--bg-2); }
.sec .wrap { display: flex; flex-direction: column; gap: 40px; }
.sec-head { display: flex; flex-direction: column; gap: 12px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.03em; color: var(--accent); }
h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); font-weight: 700; line-height: 1.3; }
h3 { margin: 0; font-size: clamp(22px, 3vw, 32px); font-weight: 700; line-height: 1.35; }
.sub { margin: 0; max-width: 660px; font-size: 17px; line-height: 1.8; color: var(--muted); }
.grid { display: flex; flex-wrap: wrap; gap: 16px; }
.card { flex: 1 1 300px; display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-text); display: flex; align-items: center; justify-content: center; }
.card b { font-size: 19px; font-weight: 600; }
.card p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--muted); }
.show { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.show.flip { flex-direction: row-reverse; }
.show-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.show-text p { margin: 0; font-size: 16px; line-height: 1.85; color: var(--muted); }
.show-img { flex: 1 1 300px; display: flex; justify-content: center; }
.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.7; color: var(--text-2); }
.ticks svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }
.step { flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); }
.step .n { font-family: var(--font-latin); font-size: 34px; font-weight: 800; color: var(--accent); line-height: 1; }
.step b { font-size: 18px; }
.step p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--muted); }

/* record */
.table { flex: 2 1 520px; min-width: 0; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.table .row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 8px; padding: 14px 20px; font-size: 15px; border-bottom: 1px solid var(--line-2); }
.table .row.h { font-size: 13px; color: var(--faint); }
.table .row span.dash { color: var(--faint); }
html[dir="rtl"] .table [dir="ltr"] { text-align: right; }
.table .foot { padding: 14px 20px; font-size: 13px; color: var(--faint); }
.note { flex: 1 1 300px; display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--gold-line); background: var(--gold-bg); }
.note b { color: var(--gold-text); font-size: 17px; }
.note p { margin: 0; font-size: 14px; line-height: 1.85; color: var(--text-2); }

/* plans */
.plan { flex: 1 1 280px; display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.plan.hi { border-color: var(--gold-line); }
.plan .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan .name { font-size: 20px; font-weight: 700; }
.plan .tag { padding: 3px 10px; border-radius: 8px; background: var(--gold-soft); color: var(--gold-text); font-size: 12px; font-weight: 600; }
.plan .for { font-size: 14px; color: var(--muted); }
.plan .price { font-size: 26px; font-weight: 700; }
.plan .price-soon { font-size: 17px; font-weight: 600; color: var(--gold-text); }
.plan .ticks li { font-size: 14px; }

/* faq */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
.faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.faq summary { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px; font-size: 16px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0; padding: 0 20px 18px; font-size: 15px; line-height: 1.85; color: var(--muted); }

/* cta + footer */
.cta { padding: 96px 0; }
.cta .wrap { max-width: 860px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.cta .sub { margin: 0 auto; }
.site-footer { padding: 40px 0; border-top: 1px solid var(--line-2); background: var(--bg-3); }
.site-footer .wrap { display: flex; flex-direction: column; gap: 22px; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot-links a { min-height: 44px; display: flex; align-items: center; color: var(--muted); font-size: 14px; }
.disclaimer { margin: 0; font-size: 13px; line-height: 1.85; color: var(--faint); }
.copy { font-size: 13px; color: var(--faint); direction: ltr; text-align: start; }
html[dir="rtl"] .copy { text-align: right; }

/* legal pages */
.legal { padding: 56px 0 96px; }
.legal .wrap { max-width: 860px; display: flex; flex-direction: column; gap: 18px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); }
.legal h2 { font-size: 22px; margin-top: 18px; }
.legal p { margin: 0; }
.legal p, .legal li { font-size: 16px; line-height: 1.9; color: var(--text-2); }
.legal .ph { color: var(--gold-text); background: var(--gold-bg); padding: 0 6px; border-radius: 6px; }
