/* civique.benbasha.com (Civium). Tokens from docs/specs/DESIGN-BRIEF.md §3 (light/dark), type §4 (system fonts,
   like the app; nothing is downloaded from a third party). Icons are inline SVG (24 grid, 1.75 stroke, §9). */

:root {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --surface2: #F3EEE5;
  --ink: #14213D;
  --ink2: #4B5563;
  --primary: #C62F26;
  --on-primary: #FFFFFF;
  --brand: #E23B2E;
  --success: #1B7340;
  --accent-soft: #FBE7E4;
  --info-soft: #E8EEF9;
  --control-border: #7C8594;
  --line: #D9D2C5;
  --bezel: #14213D;
  --shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 10px 30px rgba(20, 33, 61, .08);
  --radius: 20px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Arabic", "Geeza Pro", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1420;
    --surface: #172033;
    --surface2: #131B2B;
    --ink: #F3F0EA;
    --ink2: #A9B2C3;
    --primary: #FF7A6E;
    --on-primary: #1A0907;
    --success: #5BD08A;
    --accent-soft: #3A1D1C;
    --info-soft: #1B2A45;
    --control-border: #6B7A96;
    --line: #3A4766;
    --bezel: #2B3650;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .3);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
@media (min-width: 720px) { .wrap { padding-inline: 32px; } }
.num { font-variant-numeric: tabular-nums; }
.nw { white-space: nowrap; }
.skip { position: absolute; inset-inline-start: -9999px; }
.skip:focus { inset-inline-start: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.ic { width: 24px; height: 24px; flex: none; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand span { font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; font-size: 16px; font-weight: 500; }
.nav a { text-decoration: none; padding: 6px 0; }
.nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; }
.lang { border: 1px solid var(--control-border); border-radius: 999px; padding: 4px 12px !important; color: var(--ink); }
@media (max-width: 560px) { .nav .opt { display: none; } }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 56px; padding: 28px 0 40px; color: var(--ink2); font-size: 15px; }
.site-footer .wrap { display: grid; gap: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer p { margin: 0; max-width: 60em; }

/* hero */
.hero { padding: 40px 0 24px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; } .hero { padding: 72px 0 40px; } }
.kicker { display: inline-block; font-size: 15px; font-weight: 700; color: var(--primary); background: var(--accent-soft); border-radius: 999px; padding: 5px 14px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(36px, 6.2vw, 60px); letter-spacing: -.03em; margin-bottom: 18px; }
.lead { font-size: 20px; color: var(--ink2); max-width: 32em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 10px; font-size: 15px; font-weight: 500; }
.chips .ic { width: 18px; height: 18px; color: var(--success); }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.store { position: relative; display: inline-block; line-height: 0; border-radius: 9px; }
.store img { height: 48px; width: auto; display: block; }
.store.soon { cursor: default; }
.store.soon img { opacity: .5; filter: grayscale(1); }
.store .tag { position: absolute; top: -15px; inset-inline-end: -6px; line-height: 1; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--on-primary); background: var(--primary); border-radius: 999px; padding: 4px 8px; }
.store:not(.soon) .tag { display: none; }
.stores-note { font-size: 15px; color: var(--ink2); margin: 12px 0 0; }

/* hero visual: one phone + the 32/40 ring card */
.hero-art { position: relative; justify-self: center; width: min(320px, 82vw); }
.phone { margin: 0; aspect-ratio: 500 / 1088; border: 9px solid var(--bezel); border-radius: 44px; background: var(--bezel); box-shadow: var(--shadow); overflow: hidden; }
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 35px; }
.ring-card { position: absolute; inset-inline-start: -56px; bottom: 56px; display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 12px 16px 12px 12px; }
.ring-card svg { width: 58px; height: 58px; flex: none; }
.ring-card strong { display: block; font-size: 22px; line-height: 1.1; letter-spacing: -.02em; }
.ring-card span { display: block; font-size: 14px; color: var(--ink2); line-height: 1.3; }
@media (max-width: 520px) { .ring-card { inset-inline-start: -14px; bottom: 28px; } }
.ring-track { stroke: var(--line); }
.ring-fill { stroke: var(--primary); }
.ring-notch { stroke: var(--ink); }

/* stat strip */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stats li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.stats strong { display: block; font-size: 30px; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stats span { display: block; font-size: 15px; color: var(--ink2); line-height: 1.4; }

section.band { padding: 40px 0; }
@media (min-width: 900px) { section.band { padding: 52px 0; } }
.section-head { max-width: 42em; margin: 0 0 28px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.02em; margin-bottom: 10px; }
.section-head p { color: var(--ink2); margin: 0; }

/* screenshots */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 62vw); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; margin: 0 -4px; list-style: none; }
@media (min-width: 860px) { .shots { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; } }
.shots li { scroll-snap-align: start; margin: 0; }
.shots .phone { border-width: 7px; border-radius: 32px; box-shadow: none; }
.shots .phone img { border-radius: 25px; }
.shots p { font-size: 16px; font-weight: 600; line-height: 1.35; margin: 12px 2px 0; }

/* features */
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature .badge { width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 14px; }
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { color: var(--ink2); margin: 0; font-size: 17px; }
.feature .langs { color: var(--ink); }

/* levels */
.levels { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .levels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.levels li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.levels strong { display: block; font-size: 19px; line-height: 1.3; }
.levels abbr { text-decoration: none; display: inline-block; font-size: 13px; font-weight: 700; color: var(--primary); background: var(--accent-soft); border-radius: 6px; padding: 1px 7px; margin-bottom: 8px; }
.levels span { display: block; color: var(--ink2); font-size: 16px; margin-top: 4px; }

/* offer */
.offer { display: grid; gap: 16px; }
@media (min-width: 860px) { .offer { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.plan.full { border: 2px solid var(--primary); }
.plan h3 { font-size: 22px; margin-bottom: 4px; }
.plan .price { font-size: 17px; color: var(--ink2); margin-bottom: 16px; }
.plan .price strong { font-size: 30px; color: var(--ink); letter-spacing: -.02em; margin-inline-end: 6px; font-variant-numeric: tabular-nums; }
.plan ul { list-style: none; margin: 0; padding: 0; }
.plan li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--line); font-size: 17px; }
.plan li .ic { width: 20px; height: 20px; margin-top: 4px; color: var(--success); }
.plan .fine { font-size: 15px; color: var(--ink2); margin: 14px 0 0; }

/* disclaimer */
.notice { background: var(--info-soft); border-radius: var(--radius); padding: 22px 24px; display: grid; gap: 6px; }
.notice h2 { font-size: 22px; margin-bottom: 4px; }
.notice p { margin: 0 0 .6em; }
.notice p:last-child { margin: 0; }

/* documents: privacy, terms, sources */
.doc { max-width: 780px; padding-top: 36px; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); letter-spacing: -.02em; margin-bottom: 8px; }
.doc .meta { color: var(--ink2); font-size: 16px; margin-bottom: 24px; }
.doc h2 { font-size: 24px; margin: 36px 0 10px; scroll-margin-top: 16px; }
.doc h3 { font-size: 19px; margin: 22px 0 6px; }
.doc ul, .doc ol { padding-inline-start: 1.3em; margin: 0 0 1em; }
.doc li { margin-bottom: 6px; }
.doc .summary { background: var(--info-soft); border-radius: 16px; padding: 18px 22px; margin-bottom: 8px; }
.doc .summary ul { margin: 0; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 56px 0; }
.doc .links { list-style: none; padding: 0; }
.doc .links li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 10px; }
.doc .links strong { display: block; }
.doc .links small { display: block; color: var(--ink2); font-size: 15px; }
.doc .url { overflow-wrap: anywhere; font-size: 15px; }
.doc blockquote { margin: 0 0 1em; background: var(--info-soft); border-radius: 14px; padding: 16px 20px; }
.doc blockquote p:last-child { margin: 0; }

.notfound { text-align: center; padding: 80px 20px; }
.notfound h1 { font-size: 40px; margin-bottom: 12px; }
.plan h3 .sub { font-size: 17px; font-weight: 500; color: var(--ink2); }
