:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-tint: #eef5f7;
  --card: #ffffff;
  --text: #112027;
  --muted: #57686f;
  --brand: #0d7d92;       /* teal — links/accent */
  --brand-ink: #0a6175;   /* darker teal for headings on light */
  --brand-2: #1f63b0;     /* blue */
  --border: #dfeaed;
  --nav-bg: rgba(255, 255, 255, 0.82);
  --chip-bg: #f1f7f8;
  --grad: linear-gradient(135deg, #12959c 0%, #1c5aa6 100%);
}
/* Dark palette — used when the system prefers dark and the visitor hasn't chosen
   a theme, or when "dark" is explicitly selected via the toggle. Forced "light"
   keeps the :root defaults (the media query is scoped out with :not([data-theme])). */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0b1418; --bg-tint: #0f1c22; --card: #14242b; --text: #e8f0f2;
    --muted: #9fb2b9; --brand: #43bccd; --brand-ink: #7fd6e2; --brand-2: #5b9be6;
    --border: #20363f; --nav-bg: rgba(11, 20, 24, 0.82); --chip-bg: #15272e;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1418; --bg-tint: #0f1c22; --card: #14242b; --text: #e8f0f2;
  --muted: #9fb2b9; --brand: #43bccd; --brand-ink: #7fd6e2; --brand-2: #5b9be6;
  --border: #20363f; --nav-bg: rgba(11, 20, 24, 0.82); --chip-bg: #15272e;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.62; -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Accessibility (site-wide): skip link, visible keyboard focus, reduced motion */
.skip-link { position: absolute; left: 8px; top: -52px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; transition: top 0.15s ease; }
.skip-link:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 5px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* Theme toggle (light/dark) — sits in the nav, visible on mobile too */
.theme-toggle { display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; margin-left:16px; padding:0; border:1px solid var(--border); border-radius:10px; background:var(--chip-bg); color:var(--text); cursor:pointer; font-size:16px; line-height:1; vertical-align:middle; }
.theme-toggle:hover { border-color:var(--brand); }
.theme-toggle .t-sun { display:none; }
.theme-toggle .t-moon { display:inline; }
:root[data-theme="dark"] .theme-toggle .t-sun { display:inline; }
:root[data-theme="dark"] .theme-toggle .t-moon { display:none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .t-sun { display:inline; }
  :root:not([data-theme]) .theme-toggle .t-moon { display:none; }
}

/* Umbrella logo mark (used in nav/footer of the studio pages) */
.brand .logomark, .brand-sm .logomark { width: 22px; height: 22px; vertical-align: middle; }

/* Cookie / privacy notice (injected by cookie.js) */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; max-width: 720px; margin: 0 auto; display: flex; gap: 12px 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: 16px; padding: 15px 18px; box-shadow: 0 18px 50px rgba(0,0,0,0.22); }
.cookie-bar .cookie-text { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); flex: 1 1 320px; }
.cookie-bar .cookie-text a { color: var(--brand); font-weight: 600; }
.cookie-bar .cookie-ok { flex: 0 0 auto; background: var(--grad); color: #fff; border: 0; border-radius: 11px; padding: 10px 22px; font-weight: 600; font-size: 14.5px; cursor: pointer; }
.cookie-bar .cookie-ok:hover { opacity: .94; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
section { padding: 64px 0; }
h2.sec { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -0.02em; margin: 0 0 8px; text-align: center; }
p.sec-sub { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 36px; font-size: 17px; }

/* Nav */
header.nav { position: sticky; top: 0; z-index: 20; background: var(--nav-bg); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; max-width: 1040px; }
.brand { font-weight: 700; font-size: 19px; color: var(--text); display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.15); }
.nav nav a { margin-left: 20px; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav nav a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 620px) { .nav nav a:not(.cta) { display: none; } }
.cta { display: inline-block; background: var(--grad); color: #fff !important; padding: 9px 16px; border-radius: 11px; font-weight: 600; }
.cta:hover { text-decoration: none; opacity: 0.94; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--bg-tint), var(--bg)); padding: 76px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; text-align: center; } }
.pill { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--brand-ink); background: var(--chip-bg); border: 1px solid var(--border); padding: 5px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.05; margin: 16px 0; letter-spacing: -0.025em; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 26px; }
.badge { display: inline-block; padding: 13px 24px; border-radius: 14px; background: var(--grad); color: #fff; font-weight: 600; }
.badge:hover { text-decoration: none; opacity: 0.94; }
.hero .shot { justify-self: center; }
.hero .shot img { width: 270px; max-width: 78vw; border-radius: 38px; box-shadow: 0 30px 60px rgba(12, 60, 80, 0.28); border: 1px solid var(--border); }
.subnote { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* Stat band */
.stats { background: var(--grad); color: #fff; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; padding: 36px 24px; }
@media (max-width: 720px) { .stats .wrap { grid-template-columns: repeat(2, 1fr); } }
.stat .num { font-size: clamp(26px, 4vw, 38px); font-weight: 700; letter-spacing: -0.02em; }
.stat .lbl { font-size: 14px; opacity: 0.9; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 24px; }
.card .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--chip-bg); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 14px; }
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Screenshot gallery */
.gallery { display: flex; gap: 20px; overflow-x: auto; padding: 8px 24px 18px; scroll-snap-type: x mandatory; justify-content: safe center; }
.gallery .g { flex: 0 0 auto; width: 230px; scroll-snap-align: center; text-align: center; }
.gallery img { width: 230px; border-radius: 30px; border: 1px solid var(--border); box-shadow: 0 18px 40px rgba(12, 60, 80, 0.18); }
.gallery .cap { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* Charts */
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 820px) { .charts { grid-template-columns: 1fr; } }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 24px; }
.panel h3 { margin: 0 0 4px; font-size: 17px; }
.panel .hint { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 34px; align-items: center; gap: 10px; margin: 9px 0; font-size: 14px; }
.bar-track { background: var(--chip-bg); border-radius: 999px; height: 12px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--grad); border-radius: 999px; }
.bar-row .v { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.donut-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.legend { font-size: 14px; }
.legend div { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.legend .sw { width: 12px; height: 12px; border-radius: 3px; }

/* Devices */
.devices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 36px; }
@media (max-width: 720px) { .devices-grid { grid-template-columns: 1fr; } }
.dcard { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 24px; text-align: center; }
.dcard .dic { font-size: 30px; }
.dcard h3 { margin: 10px 0 6px; font-size: 18px; }
.dcard p { margin: 0; color: var(--muted); font-size: 15px; }
.ipad-shot { text-align: center; }
.ipad-shot img { max-width: 100%; width: 720px; border-radius: 18px; border: 1px solid var(--border); box-shadow: 0 24px 50px rgba(12, 60, 80, 0.20); }

/* Coverage / countries */
.cov-region { margin-bottom: 22px; }
.cov-region h4 { font-size: 15px; margin: 0 0 10px; color: var(--brand-ink); }
.cov-region h4 span { color: var(--muted); font-weight: 500; }
.cov-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.country { display: inline-flex; align-items: center; gap: 7px; background: var(--chip-bg); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; }
.country .fl { font-size: 15px; }
.cov-note { text-align: center; color: var(--muted); font-size: 15px; margin-top: 26px; }

/* Pricing */
.compare2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 28px; }
@media (max-width: 720px) { .compare2 { grid-template-columns: 1fr; } }
.compare2 .col { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 26px; }
.compare2 .col.pro { border: 2px solid var(--brand); box-shadow: 0 12px 34px rgba(13, 125, 146, 0.14); }
.compare2 h3 { margin: 0 0 4px; font-size: 21px; }
.compare2 h3 .tag { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.price { font-size: 30px; font-weight: 700; margin: 6px 0 16px; }
.price span { font-size: 15px; font-weight: 500; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 26px; margin: 10px 0; font-size: 15px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 700; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 10px; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 24px 22px; text-align: center; position: relative; }
.plan.best { border: 2px solid var(--brand); }
.plan .ribbon { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: 11.5px; font-weight: 600; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.plan h4 { margin: 4px 0 8px; font-size: 16px; }
.plan .amt { font-size: 26px; font-weight: 700; margin: 0; }
.plan .amt span { font-size: 14px; font-weight: 500; color: var(--muted); }
.plan .pnote { color: var(--muted); font-size: 13.5px; margin: 8px 0 0; }

/* About */
.about { background: var(--bg-tint); }
.about .wrap { max-width: 760px; }
.about p { font-size: 17px; }
.about .sig { color: var(--muted); font-style: italic; }

/* Content pages (privacy/support) */
.content { padding: 48px 0 90px; }
.content h1 { font-size: 32px; letter-spacing: -0.01em; margin-bottom: 4px; }
.content h2 { margin-top: 34px; font-size: 22px; }
.content h3 { margin-top: 24px; font-size: 17px; }
.content ul { padding-left: 20px; } .content li { margin: 6px 0; }
.updated { color: var(--muted); font-size: 14px; margin-top: 0; }

footer { border-top: 1px solid var(--border); padding: 36px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: space-between; }
footer a { color: var(--muted); font-weight: 500; }
footer .brand-sm { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
footer .brand-sm img { width: 22px; height: 22px; border-radius: 6px; }
