/* CrossMail — product page. System fonts only (no third-party requests), no inline styles (CSP). */

:root {
  --bg: #f6f7fa;
  --surface: #ffffff;
  --ink: #121826;
  --muted: #586174;
  --line: #e1e5ec;
  --brand: #2f6feb;
  --brand-hover: #2459c7;
  --brand-soft: #e7eefd;
  --c1: #2f6feb;
  --c2: #1a7f37;
  --c3: #bf3989;
  --band: #0f1724;
  --band-ink: #e8edf5;
  --band-muted: #a3aec0;
  --band-line: #26334a;
  --shadow: 0 1px 2px rgba(18, 24, 38, 0.06), 0 24px 60px -20px rgba(18, 24, 38, 0.28);
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --surface: #151b24;
    --ink: #e8edf5;
    --muted: #98a3b5;
    --line: #273041;
    --brand: #5b93ff;
    --brand-hover: #7aa8ff;
    --brand-soft: #1a2740;
    --c1: #5b93ff;
    --c2: #3fb950;
    --c3: #e05aa8;
    --band: #090d14;
    --band-line: #1f2a3c;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 24px 60px -20px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); }

h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; }

p { margin: 0; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

[hidden] { display: none !important; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 16px; border-radius: 10px; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; white-space: nowrap; border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn-lg { padding: 13px 22px; font-size: 1rem; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--muted); }

/* ------------------------------------------------------------------ nav */

.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 12px var(--gutter);
  display: flex; align-items: center; gap: 20px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.logo.small { font-size: 0.95rem; gap: 8px; }
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button { border: 0; background: transparent; color: var(--muted); font: 600 0.75rem var(--font); padding: 5px 10px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand); }

/* ------------------------------------------------------------------ hero */

.hero {
  max-width: 1200px; margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(32px, 5vw, 64px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(28px, 4vw, 56px); align-items: center;
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.c1, .dots .d1 { --c: var(--c1); }
.c2, .dots .d2 { --c: var(--c2); }
.c3, .dots .d3 { --c: var(--c3); }
.dots i { background: var(--c); }
.hero h1 { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 800; letter-spacing: -0.028em; line-height: 1.04; }
.lead { margin-top: 20px; font-size: 1.12rem; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.fineprint { margin-top: 16px; font-size: 0.88rem; color: var(--muted); }

/* the interactive preview */
.showcase { margin: 0; display: grid; gap: 14px; }
.switch-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 10px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: 600 0.9rem var(--font); cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.tab i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); display: block; }
.tab b { font-size: 0.72rem; background: var(--c); color: #fff; border-radius: 999px; padding: 1px 7px; }
.tab[aria-selected="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, var(--surface)); }
.tab:hover { border-color: var(--c); }

.window {
  border-radius: var(--radius); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  border-top: 3px solid var(--c); transition: border-color 0.4s;
}
.window-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--bg); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.window-bar span { margin: 0 auto; font-size: 0.75rem; color: var(--muted); padding-right: 36px; }
.window-body { position: relative; aspect-ratio: 1600 / 975; max-width: 100%; }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.45s ease; }
.shot.is-active { opacity: 1; }
.showcase figcaption { font-size: 0.85rem; color: var(--muted); }

/* ------------------------------------------------------------------ providers */

.providers { max-width: 1200px; margin: 0 auto; padding: 8px var(--gutter) 24px; text-align: center; }
.providers-title { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.provider-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; font-size: 1.12rem; font-weight: 700; color: var(--ink); opacity: 0.85; }
.provider-list .any { font-weight: 500; color: var(--muted); }

/* ------------------------------------------------------------------ sections */

section { scroll-margin-top: 72px; }
.section-head { max-width: 46rem; display: grid; gap: 12px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.features { max-width: 1200px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter); display: grid; gap: 40px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.feature { display: grid; gap: 10px; align-content: start; }
.feature svg { width: 30px; height: 30px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--muted); font-size: 0.98rem; }

.gallery { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); grid-template-rows: auto auto; gap: 20px; align-items: start; }
.gallery figure { margin: 0; display: grid; gap: 10px; }
.gallery img { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.gallery figcaption { font-size: 0.88rem; color: var(--muted); }
.gallery-main { grid-column: 1; grid-row: 1; }
.gallery-phone { grid-column: 2; grid-row: 1 / span 2; }
.gallery-phone img { border-radius: 22px; }
.gallery-side { grid-column: 1; grid-row: 2; max-width: 560px; }

/* security band: dark in both themes, on purpose */
.security { background: var(--band); color: var(--band-ink); }
.security-inner { max-width: 1200px; margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter); display: grid; gap: 40px; }
.security .section-head p { color: var(--band-muted); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--band-line); }
.facts li { padding: 24px 28px 0 0; display: grid; gap: 10px; align-content: start; }
.facts li + li { padding-left: 28px; border-left: 1px solid var(--band-line); }
.facts h3 { font-size: 1.12rem; }
.facts p { color: var(--band-muted); font-size: 0.98rem; }
.security-more a { color: var(--band-ink); font-weight: 600; }

.how { max-width: 1200px; margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter) 24px; display: grid; gap: 32px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.steps li { counter-increment: step; display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 2px solid var(--line); }
.steps li::before { content: counter(step); font-weight: 800; font-size: 0.9rem; color: var(--brand); }
.steps h3 { font-size: 1.12rem; }
.steps p { color: var(--muted); font-size: 0.98rem; }

.final-cta { max-width: 1200px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gutter); text-align: center; display: grid; justify-items: center; gap: 10px; }
.final-cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; }
.final-cta p { color: var(--muted); }
.final-cta .hero-cta { justify-content: center; margin-top: 16px; }

/* ------------------------------------------------------------------ footer */

.footer { border-top: 1px solid var(--line); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 24px var(--gutter) 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.footer nav a:hover { color: var(--ink); text-decoration: underline; }
.footer-note { margin-left: auto; font-size: 0.82rem; color: var(--muted); }

/* ------------------------------------------------------------------ responsive */

@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-actions .btn-ghost { display: none; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-main, .gallery-phone, .gallery-side { grid-column: 1; grid-row: auto; }
  .gallery-phone { max-width: 320px; justify-self: center; }
  .facts, .steps, .feature-grid { grid-template-columns: 1fr; }
  .facts li, .facts li + li { padding: 20px 0 0; border-left: 0; }
  .facts li + li { border-top: 1px solid var(--band-line); margin-top: 20px; }
  .footer-note { margin-left: 0; }
  .window-bar span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shot, .window, .btn, .tab { transition: none; }
}
