/* Foam Road website — shared base. Each version adds its own theme file after this one.
   Brand guide: Soft Royal Blue #427CBF, Sky Blue #56C9EE, Cool Gray #6C757D, Dark Gray #3A3A3A, white;
   Tajawal for Arabic, Exo 2 for Latin. Themes change the tokens below, not the components. */
:root {
  --royal: #427CBF; --royal-deep: #2F5F9A; --sky: #56C9EE; --gray: #6C757D; --ink: #3A3A3A; --white: #FFFFFF;
  --mist: #F2F8FD; --navy: #12294A;
  --bg: #FFFFFF; --bg-alt: var(--mist); --fg: var(--ink); --muted: var(--gray); --heading: var(--royal-deep);
  --card: #FFFFFF; --line: #DCE8F4; --accent: var(--royal); --accent-2: var(--sky);
  --header-bg: rgba(255,255,255,.92); --header-fg: var(--ink);
  --btn-bg: var(--royal); --btn-fg: #FFFFFF; --btn2-bg: transparent; --btn2-fg: var(--royal-deep); --btn2-line: var(--royal);
  --radius: 22px; --radius-sm: 14px; --shadow: 0 16px 40px rgba(47,95,154,.14);
  --font: "Tajawal", system-ui, "Segoe UI", Tahoma, sans-serif;
  --font-latin: "Exo 2", "Tajawal", system-ui, sans-serif;
  --wrap: 1160px; --gutter: 20px; --header-h: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-weight: 500; font-size: 17px; line-height: 1.7; overflow-x: hidden; overflow-x: clip; }
img, video, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { color: var(--heading); line-height: 1.25; text-wrap: balance; font-weight: 900; }
.num, .latin { font-family: var(--font-latin); font-weight: 800; direction: ltr; unicode-bidi: isolate; display: inline-block; }
.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.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; background: var(--btn-bg); color: var(--btn-fg); padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 26px; border-radius: 99px; border: 2px solid transparent;
  font: inherit; font-weight: 900; font-size: 1.05rem; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-main { background: var(--btn-bg); color: var(--btn-fg); box-shadow: 0 12px 26px rgba(47,95,154,.28); }
.btn-ghost { background: var(--btn2-bg); color: var(--btn2-fg); border-color: var(--btn2-line); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.98); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); color: var(--header-fg); backdrop-filter: saturate(1.4) blur(10px); transition: background .3s ease, box-shadow .3s ease; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(18,41,74,.12); }
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 40px; width: auto; }
.logo-w { display: none; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a { text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 10px; opacity: .88; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.nav a[aria-current="page"] { color: var(--accent); }
.site-header .btn { min-height: 44px; padding: 8px 18px; font-size: .95rem; }
.burger { display: none; margin-inline-start: auto; width: 46px; height: 46px; border-radius: 12px; border: 0; background: color-mix(in srgb, var(--accent) 12%, transparent); color: inherit; cursor: pointer; }
.burger svg { width: 24px; height: 24px; margin: auto; }
@media (max-width: 980px) {
  .burger { display: grid; }
  .site-header .head-cta { display: none; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px var(--gutter) 20px;
    background: var(--bg); color: var(--fg); box-shadow: 0 20px 40px rgba(18,41,74,.18); transform: translateY(-110%); visibility: hidden; transition: transform .3s ease, visibility .3s; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .nav.open { transform: none; visibility: visible; }
  .nav a { padding: 14px 10px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.08rem; }
  .nav .btn { margin-top: 14px; border-bottom: 0; }
}
@media (min-width: 981px) { .nav .nav-cta { display: none; } }

/* ---------- sections ---------- */
section { padding-block: clamp(56px, 8vw, 104px); position: relative; }
.alt { background: var(--bg-alt); }
.sec-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-block; font-weight: 800; font-size: .92rem; letter-spacing: .02em; color: var(--accent); margin-bottom: 10px; }
.sec-head h2 { font-size: clamp(1.8rem, 4.6vw, 2.9rem); }
.sec-head p { margin-top: 12px; color: var(--muted); font-size: 1.08rem; }
.more { margin-top: 26px; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); min-width: 0; }
.ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(140deg, var(--royal), var(--sky)); color: #fff; margin-bottom: 14px; }
.ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.card p { color: var(--muted); }

/* ---------- page banner (inner pages) ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 90px) clamp(36px, 5vw, 60px); background: var(--bg-alt); }
.page-hero h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
.page-hero p { margin-top: 12px; color: var(--muted); font-size: 1.12rem; max-width: 640px; }
.crumbs { display: flex; gap: 8px; font-size: .92rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { text-decoration: none; color: var(--accent); }

/* ---------- steps ---------- */
.steps { display: grid; gap: 16px; counter-reset: s; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.step .n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 1.1rem; }
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); font-size: 1rem; }
.shot-steps { display: grid; gap: clamp(36px, 6vw, 72px); }
.shot-step { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .shot-step { grid-template-columns: 1fr 1fr; } .shot-step:nth-child(even) > :last-child { order: -1; } }
.shot-step .txt { max-width: 520px; }
.shot-step .n { font-size: 3.4rem; line-height: 1; color: var(--accent-2); }
.shot-step h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-top: 6px; }
.shot-step p { margin-top: 8px; color: var(--muted); font-size: 1.1rem; }

/* phone frame */
.phone { position: relative; width: min(72vw, 300px); aspect-ratio: 941 / 1672; margin-inline: auto; border: 10px solid #1C2836; border-radius: 40px; overflow: hidden; background: #F4F7FB; box-shadow: 0 34px 70px rgba(18,41,74,.3); box-sizing: content-box; }
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: top; }
.phone .cyc { opacity: 0; transition: opacity .6s ease; }
.phone .cyc.on { opacity: 1; }

/* ---------- prices ---------- */
.prices { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.price-card { position: relative; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 26px 22px; display: grid; gap: 6px; text-align: center; min-width: 0; }
.price-card h3 { font-size: 1.3rem; }
.price-card .sub { color: var(--muted); font-weight: 700; font-size: .98rem; }
.price-card .amt { margin-top: 8px; font-weight: 800; color: var(--fg); }
.price-card .amt .num { font-size: 2.8rem; line-height: 1; color: var(--accent); }
.price-card.best { border-color: var(--accent); box-shadow: var(--shadow); }
.tag { position: absolute; top: -14px; inset-inline-start: 18px; background: var(--accent); color: #fff; font-weight: 900; font-size: .82rem; padding: 3px 14px; border-radius: 99px; }
.deal { margin-top: 10px; font-size: .95rem; font-weight: 700; color: var(--heading); background: color-mix(in srgb, var(--accent-2) 16%, transparent); border-radius: 12px; padding: 8px 12px; }
.packs { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.sub-title { font-size: 1.4rem; margin: 42px 0 18px; }
.sub-title:first-child { margin-top: 0; }

/* extras */
.extras { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 170px), 1fr)); }
.extra { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; text-align: center; display: grid; gap: 4px; justify-items: center; min-width: 0; }
.extra img { width: 100%; max-width: 150px; aspect-ratio: 1; object-fit: contain; border-radius: 12px; background: #fff; }
.extra b { font-weight: 800; line-height: 1.35; }
.extra .amt { color: var(--muted); font-weight: 700; }
.extra .amt .num { color: var(--accent); font-size: 1.3rem; }

/* payment */
.pay { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.pay span { display: grid; place-items: center; height: 56px; min-width: 104px; padding: 10px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.pay img, .pay svg { height: 28px; width: auto; }

/* ---------- offer band ---------- */
.offer { border-radius: calc(var(--radius) + 6px); padding: clamp(26px, 5vw, 48px); background: linear-gradient(140deg, var(--royal-deep), var(--royal) 60%, var(--sky)); color: #fff; display: grid; gap: 18px; align-items: center; overflow: hidden; position: relative; }
@media (min-width: 860px) { .offer { grid-template-columns: 1.4fr 1fr; } }
.offer h2 { color: #fff; font-size: clamp(1.6rem, 4.4vw, 2.5rem); }
.offer p { opacity: .95; margin-top: 8px; }
.code { display: inline-flex; align-items: center; gap: 14px; background: #fff; color: var(--ink); border: 3px dashed var(--sky); border-radius: 18px; padding: 10px 18px; font: inherit; cursor: pointer; justify-self: start; }
.code .num { font-size: 2rem; color: var(--royal-deep); letter-spacing: .06em; }
.code small { font-weight: 700; color: var(--gray); }
.code .copied { display: none; }
.code.done .copy-t { display: none; } .code.done .copied { display: inline; color: var(--royal); }

/* ---------- download band / badges ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.stores a { display: block; line-height: 0; border-radius: 10px; }
.stores img { height: 50px; width: auto; }

/* ---------- photo + text ---------- */
.split { display: grid; gap: clamp(26px, 5vw, 60px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.flip > :first-child { order: 2; } }
.split .media { border-radius: calc(var(--radius) + 8px); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.split .media img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-size: clamp(1.8rem, 4.6vw, 2.8rem); }
.split p { margin-top: 12px; color: var(--muted); font-size: 1.1rem; }
.facts { display: grid; gap: 12px; margin-top: 22px; }
.fact { display: flex; gap: 12px; align-items: center; font-weight: 700; }
.fact svg { width: 26px; height: 26px; flex: none; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq.center { margin-inline: auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 800; font-size: 1.08rem; color: var(--heading); display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.7rem; line-height: 1; color: var(--accent-2); transition: transform .25s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

/* ---------- contact ---------- */
.contact-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.contact-card { display: grid; gap: 6px; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: transform .2s ease; min-width: 0; }
.contact-card:hover { transform: translateY(-3px); }
.contact-card .ico { margin-bottom: 8px; }
.contact-card b { font-size: 1.15rem; color: var(--heading); }
.contact-card .val { font-family: var(--font-latin); font-weight: 800; font-size: 1.25rem; color: var(--accent); direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; text-align: start; }
.contact-card small { color: var(--muted); font-weight: 700; }
.socials { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.social { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); text-decoration: none; font-weight: 800; min-width: 0; transition: transform .2s ease; }
.social:hover { transform: translateY(-2px); }
.social svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.social span { display: grid; line-height: 1.3; }
.social small { font-family: var(--font-latin); font-weight: 700; color: var(--muted); direction: ltr; text-align: end; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #DCE8F4; padding-block: 56px 26px; }
.site-footer a { text-decoration: none; }
.foot-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.site-footer .brand img { height: 44px; }
.site-footer p { color: #B9CDE4; margin-top: 12px; font-size: .98rem; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 12px; }
.foot-links { display: grid; gap: 8px; }
.foot-links a:hover { color: #fff; }
.foot-icons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.foot-icons a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); transition: background .2s ease, transform .2s ease; }
.foot-icons a:hover { background: var(--royal); transform: translateY(-2px); }
.foot-icons svg { width: 20px; height: 20px; fill: #fff; }
.site-footer .stores img { height: 44px; }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .92rem; color: #9DB0C4; }
.site-footer .pay span { height: 44px; min-width: 80px; padding: 8px 12px; }
.site-footer .pay img, .site-footer .pay svg { height: 20px; }

/* ---------- reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }

/* marquee (used by some versions) */
.marquee { overflow: hidden; white-space: nowrap; padding-block: 18px; }
.marquee .track { display: inline-flex; gap: 46px; animation: marquee 32s linear infinite; padding-inline-end: 46px; }
.marquee span { font-weight: 900; font-size: clamp(1.2rem, 3vw, 1.7rem); display: inline-flex; align-items: center; gap: 46px; }
.marquee span::after { content: "✦"; color: var(--accent-2); }
@keyframes marquee { to { transform: translateX(50%); } }

/* sticky mobile CTA */
.mob-cta { position: fixed; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; display: none; }
.mob-cta .btn { width: 100%; box-shadow: 0 14px 30px rgba(18,41,74,.35); }
@media (max-width: 700px) { .mob-cta { display: block; transform: translateY(150%); transition: transform .3s ease; } .mob-cta.show { transform: none; } body { padding-bottom: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- shared bits the themes restyle ---------- */
h1 em, h2 em, blockquote em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(1.08rem, 2.4vw, 1.28rem); color: var(--muted); margin-top: 16px; max-width: 620px; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); line-height: 1.15; margin-top: 6px; }
.hero .btns { margin-top: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 10%, transparent); font-weight: 700; font-size: .95rem; }
.chips svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.muted-p { color: var(--muted); margin: -6px 0 22px; }
.offer .btn-main { background: #fff; color: var(--royal-deep); box-shadow: none; }
.dl { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .dl { grid-template-columns: 1.5fr .5fr; } }
.dl h2 { font-size: clamp(1.8rem, 4.6vw, 2.8rem); }
.dl p { margin: 10px 0 20px; color: var(--muted); }
.dl-mark img { width: min(50vw, 240px); margin-inline: auto; filter: drop-shadow(0 20px 40px rgba(47,95,154,.25)); }
.promise blockquote { margin: 0; text-align: center; font-weight: 900; font-size: clamp(1.9rem, 6vw, 3.8rem); line-height: 1.35; color: var(--heading); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.about-pic { border-radius: calc(var(--radius) + 8px); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); }

/* ---------- branches ---------- */
.branches { max-width: 960px; margin-inline: auto; }
.branch { display: grid; gap: 8px; align-content: start; justify-items: start; }
.branch .ico { margin-bottom: 4px; }
.branch p { color: var(--muted); }
.branch .b-hours { display: flex; gap: 8px; align-items: center; font-weight: 700; color: var(--fg); }
.branch .b-hours svg, .branch .btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.branch .btn { margin-top: 8px; min-height: 44px; padding: 8px 18px; font-size: .98rem; }
.foot-links.small span { font-size: .9rem; line-height: 1.6; }
.foot-bottom a { color: #DCE8F4; } .foot-bottom a:hover { color: #fff; }

/* ---------- legal pages ---------- */
.legal-dates { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); margin-bottom: 26px; }
.legal-grid { display: grid; gap: 30px; align-items: start; }
@media (min-width: 980px) { .legal-grid { grid-template-columns: 260px 1fr; } .legal-toc { position: sticky; top: calc(var(--header-h) + 20px); } }
.legal-toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; font-size: .95rem; }
.legal-toc b { display: block; margin-bottom: 8px; color: var(--heading); }
.legal-toc ol { display: grid; gap: 4px; }
.legal-toc a { text-decoration: none; color: var(--muted); } .legal-toc a:hover { color: var(--accent); }
.legal-body { min-width: 0; max-width: 820px; }
.legal-summary { background: color-mix(in srgb, var(--accent-2) 12%, var(--card)); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 30px; }
.legal-summary b { display: block; font-size: 1.1rem; color: var(--heading); margin-bottom: 8px; }
.legal-summary ul, .legal-sec ul, .legal-sec ol { list-style: disc; padding-inline-start: 22px; display: grid; gap: 8px; }
.legal-sec ol { list-style: decimal; }
.legal-sec { padding-block: 22px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.legal-sec .legal-n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 8px; }
.legal-sec h2 { font-size: clamp(1.3rem, 3vw, 1.6rem); margin-bottom: 10px; }
.legal-sec h3 { font-size: 1.1rem; margin: 16px 0 8px; }
.legal-sec p { margin-bottom: 10px; }
.legal-sec a, .legal-summary a { color: var(--accent); }
.table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: 14px; }
.table-wrap table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .95rem; }
.table-wrap th, .table-wrap td { text-align: start; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap th { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--heading); }
.page-hero p { max-width: 760px; }

/* ===== Version 6 — "Mix": v4's app layout (blobs, cycling phone, floating chips) on a clean white hero (the page colour in dark mode),
   v3's hero type (big headline, underline that draws itself, line before the eyebrow), v5's contour lines,
   and light / dark / system modes. Dark rules live between @dark and @enddark; the build writes them twice
   (system preference, and the visitor's own pick). ===== */
:root { color-scheme: light; --radius: 24px; --bg: #F7FAFE; --bg-alt: #EAF4FC; --header-bg: rgba(255,255,255,.9); --hero: #FFFFFF; }

/* ---------- hero ---------- */
.hero { background: var(--hero); color: var(--fg); overflow: hidden; padding-block: clamp(22px, 3vw, 34px) clamp(44px, 6vw, 84px); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); animation: drift 14s ease-in-out infinite alternate; }
.b1 { width: 540px; height: 540px; background: #56C9EE; opacity: .16; top: -180px; inset-inline-start: -160px; }
.b2 { width: 480px; height: 480px; background: #427CBF; opacity: .12; bottom: -220px; inset-inline-end: -120px; animation-duration: 18s; }
@keyframes drift { to { transform: translate(70px, 50px) scale(1.12); } }
.hero .blob { display: none; }   /* light: plain white hero; the blobs only show in dark mode */
.contours { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #427CBF; stroke-opacity: .16; stroke-width: 1.4; }
.contours path { stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw 4s ease-out forwards; }
.contours path:nth-child(2) { animation-delay: .12s; } .contours path:nth-child(3) { animation-delay: .24s; } .contours path:nth-child(4) { animation-delay: .36s; }
.contours path:nth-child(5) { animation-delay: .48s; } .contours path:nth-child(6) { animation-delay: .6s; } .contours path:nth-child(7) { animation-delay: .72s; }
.contours path:nth-child(8) { animation-delay: .84s; } .contours path:nth-child(9) { animation-delay: .96s; } .contours path:nth-child(10) { animation-delay: 1.08s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }

/* hero type, from v3 */
.hero .eyebrow { color: var(--accent); }
.hero .eyebrow::before { content: ""; display: inline-block; width: 28px; height: 3px; background: #56C9EE; margin-inline-end: 10px; vertical-align: middle; border-radius: 3px; }
.hero h1 { font-size: clamp(2.6rem, 9vw, 5.2rem); line-height: 1.14; letter-spacing: -.01em; color: var(--heading); }
.hero h1 em { position: relative; z-index: 0; color: var(--royal); white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; inset-inline: 0; bottom: .05em; height: .16em; background: #56C9EE; border-radius: 99px; z-index: -1; transform-origin: right; animation: swash .9s .5s both cubic-bezier(.2,.7,.2,1); opacity: .7; }
@keyframes swash { from { transform: scaleX(0); } }
.hero .stores { margin-top: 22px; }
.hero .stores img { height: 46px; }

/* phone + floating chips, from v4 */
.hero-phone { position: relative; justify-self: center; padding-inline: 40px; }
.hero-phone .phone { width: min(64vw, 290px); }
.float { position: absolute; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #1F3D66; border-radius: 16px; padding: 10px 14px; font-weight: 800; font-size: .9rem; box-shadow: 0 16px 34px rgba(18,41,74,.18); white-space: nowrap; animation: float 5s ease-in-out infinite; z-index: 2; }
.float svg { width: 18px; height: 18px; stroke: var(--royal); fill: none; stroke-width: 2; stroke-linecap: round; }
.f1 { top: 14%; inset-inline-end: 0; }
.f2 { top: 52%; inset-inline-start: 0; color: #177A4C; animation-delay: -1.6s; }
.f3 { bottom: 10%; inset-inline-end: 6px; animation-delay: -3.2s; }
@keyframes float { 50% { transform: translateY(-12px); } }
@media (max-width: 520px) { .hero-phone { padding-inline: 0; } .float { font-size: .78rem; padding: 8px 10px; } .f1 { inset-inline-end: -6px; } .f2 { inset-inline-start: -6px; } }

/* ---------- light / dark / system switch ---------- */
.mode-row { display: flex; justify-content: flex-end; margin-bottom: clamp(14px, 2.4vw, 26px); }
.mode-switch { display: inline-flex; gap: 2px; padding: 4px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(47,95,154,.08); }
.mode-switch button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border: 0; border-radius: 99px; background: transparent; color: var(--fg); font: inherit; font-weight: 800; font-size: .86rem; line-height: 1; cursor: pointer; transition: background .2s ease, color .2s ease; }
.mode-switch button:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.mode-switch button[aria-checked="true"] { background: var(--accent); color: var(--bg); }
.mode-switch svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ph-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ph-top .crumbs { margin-bottom: 0; }

/* ---------- Apple + Google Play marks inside the download buttons ---------- */
.os-icons { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.btn .os-icons svg { width: 18px; height: 18px; fill: currentColor; }
.os-ios .os-icons .i-play, .os-android .os-icons .i-apple { display: none; }

/* ---------- "in short" block (answer-first summary for people, search and AI) ---------- */
.definition { max-width: 680px; margin-inline: auto; color: var(--fg) !important; font-size: 1.15rem !important; }
.kv { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); margin: 0; }
.kv-i { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; align-content: center; background: var(--card); border-radius: var(--radius); padding: 18px 20px; box-shadow: 0 10px 30px rgba(47,95,154,.1); min-width: 0; }
.kv-i .ico { grid-row: span 2; width: 48px; height: 48px; margin: 0; border-radius: 16px; }
.kv-i .ico svg { width: 24px; height: 24px; }
.kv-i dt { font-weight: 800; font-size: .9rem; color: var(--muted); }
.kv-i dd { margin: 0; font-weight: 800; color: var(--heading); line-height: 1.5; }

/* ---------- rest of the page, from v4 ---------- */
.card { border: 0; box-shadow: 0 10px 30px rgba(47,95,154,.1); }
.ico { border-radius: 18px; }
.how .phone { width: min(64vw, 280px); }
.price-card { border: 0; box-shadow: 0 10px 30px rgba(47,95,154,.1); }
.price-card.best { outline: 3px solid var(--royal); }
.page-hero { background: linear-gradient(135deg, #EAF4FC, #D8ECFA); }
.offer { background: linear-gradient(120deg, #427CBF, #56C9EE); }
.shot-step .n { color: var(--sky); }
.shot-step .phone { width: min(64vw, 280px); }
.site-header .logo-c, .site-header .logo-w { transition: opacity .2s ease; }

/* dark: follows the system unless the visitor picked light */
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) { color-scheme: dark; --bg: #0D1828; --bg-alt: #112036; --mist: #15263D; --fg: #D9E5F2; --muted: #A3B5C9; --heading: #FFFFFF; --card: #15263D; --line: rgba(255,255,255,.1);
  --accent: #56C9EE; --accent-2: #56C9EE; --header-bg: rgba(13,24,40,.86); --header-fg: #FFFFFF; --btn-bg: #427CBF; --btn-fg: #FFFFFF;
  --btn2-fg: #FFFFFF; --btn2-line: rgba(255,255,255,.4); --shadow: 0 16px 40px rgba(0,0,0,.35); }
:root:not([data-theme="light"]) { --hero: var(--bg); }
:root:not([data-theme="light"]) .contours { stroke: #56C9EE; stroke-opacity: .14; }
:root:not([data-theme="light"]) .hero .blob { display: block; }
:root:not([data-theme="light"]) .b1 { opacity: .12; } D .b2 { opacity: .22; }
:root:not([data-theme="light"]) .mode-switch { box-shadow: none; }
:root:not([data-theme="light"]) .hero h1 em { color: #56C9EE; }
:root:not([data-theme="light"]) .hero h1 em::after { background: #427CBF; opacity: .9; }
:root:not([data-theme="light"]) .site-header .logo-c { display: none; }
:root:not([data-theme="light"]) .site-header .logo-w { display: block; }
:root:not([data-theme="light"]) .site-header { border-bottom: 1px solid rgba(255,255,255,.06); }
:root:not([data-theme="light"]) .card, :root:not([data-theme="light"]) .price-card, :root:not([data-theme="light"]) .kv-i, :root:not([data-theme="light"]) .contact-card { box-shadow: 0 10px 30px rgba(0,0,0,.28); }
:root:not([data-theme="light"]) .price-card.best { outline-color: #56C9EE; }
:root:not([data-theme="light"]) .page-hero { background: linear-gradient(135deg, #112036, #17325A); }
:root:not([data-theme="light"]) .step .n, :root:not([data-theme="light"]) .tag, :root:not([data-theme="light"]) .legal-sec .legal-n { color: #0D1828; }
:root:not([data-theme="light"]) .site-footer { background: #081323; }
:root:not([data-theme="light"]) .dl-mark img { content: url("mark-white.webp"); filter: drop-shadow(0 0 40px rgba(86,201,238,.3)); }
:root:not([data-theme="light"]) .phone { border-color: #000; }
:root:not([data-theme="light"]) .hero-phone .phone { border-color: #000; box-shadow: 0 34px 70px rgba(0,0,0,.5); }
:root:not([data-theme="light"]) .faq details, :root:not([data-theme="light"]) .extra, :root:not([data-theme="light"]) .social, :root:not([data-theme="light"]) .legal-toc { border-color: rgba(255,255,255,.1); }
:root:not([data-theme="light"]) .code { color: #3A3A3A; }
}
/* dark: picked by the visitor */
:root[data-theme="dark"] { color-scheme: dark; --bg: #0D1828; --bg-alt: #112036; --mist: #15263D; --fg: #D9E5F2; --muted: #A3B5C9; --heading: #FFFFFF; --card: #15263D; --line: rgba(255,255,255,.1);
  --accent: #56C9EE; --accent-2: #56C9EE; --header-bg: rgba(13,24,40,.86); --header-fg: #FFFFFF; --btn-bg: #427CBF; --btn-fg: #FFFFFF;
  --btn2-fg: #FFFFFF; --btn2-line: rgba(255,255,255,.4); --shadow: 0 16px 40px rgba(0,0,0,.35); }
:root[data-theme="dark"] { --hero: var(--bg); }
:root[data-theme="dark"] .contours { stroke: #56C9EE; stroke-opacity: .14; }
:root[data-theme="dark"] .hero .blob { display: block; }
:root[data-theme="dark"] .b1 { opacity: .12; } D .b2 { opacity: .22; }
:root[data-theme="dark"] .mode-switch { box-shadow: none; }
:root[data-theme="dark"] .hero h1 em { color: #56C9EE; }
:root[data-theme="dark"] .hero h1 em::after { background: #427CBF; opacity: .9; }
:root[data-theme="dark"] .site-header .logo-c { display: none; }
:root[data-theme="dark"] .site-header .logo-w { display: block; }
:root[data-theme="dark"] .site-header { border-bottom: 1px solid rgba(255,255,255,.06); }
:root[data-theme="dark"] .card, :root[data-theme="dark"] .price-card, :root[data-theme="dark"] .kv-i, :root[data-theme="dark"] .contact-card { box-shadow: 0 10px 30px rgba(0,0,0,.28); }
:root[data-theme="dark"] .price-card.best { outline-color: #56C9EE; }
:root[data-theme="dark"] .page-hero { background: linear-gradient(135deg, #112036, #17325A); }
:root[data-theme="dark"] .step .n, :root[data-theme="dark"] .tag, :root[data-theme="dark"] .legal-sec .legal-n { color: #0D1828; }
:root[data-theme="dark"] .site-footer { background: #081323; }
:root[data-theme="dark"] .dl-mark img { content: url("mark-white.webp"); filter: drop-shadow(0 0 40px rgba(86,201,238,.3)); }
:root[data-theme="dark"] .phone { border-color: #000; }
:root[data-theme="dark"] .hero-phone .phone { border-color: #000; box-shadow: 0 34px 70px rgba(0,0,0,.5); }
:root[data-theme="dark"] .faq details, :root[data-theme="dark"] .extra, :root[data-theme="dark"] .social, :root[data-theme="dark"] .legal-toc { border-color: rgba(255,255,255,.1); }
:root[data-theme="dark"] .code { color: #3A3A3A; }

