/* ==========================================================================
   Simit Messenger — marketing site
   Plain CSS, no build step, no external fonts/CDNs.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --teal: #26ADA8;
  --teal-d: #1E938F;
  --teal-dd: #157873;          /* AA-safe teal for text on light backgrounds */
  --navy: #263A59;
  --soft: #5A6B82;
  --pink: #E86FA0;
  --violet: #8F6FE0;
  --blue: #4C8DEB;

  --bg: #FFFFFF;
  --bg-alt: #F5F9FA;
  --surface: #FFFFFF;
  --surface-2: #F1F6F7;
  --text: #17243A;
  --text-strong: var(--navy);
  --text-soft: var(--soft);
  --link: var(--teal-dd);
  --border: rgba(38, 58, 89, 0.10);
  --border-strong: rgba(38, 58, 89, 0.18);
  --tint: rgba(38, 173, 168, 0.10);
  --tint-2: rgba(38, 173, 168, 0.16);
  --warn-bg: #FFF7E8;
  --warn-border: #F2C46D;
  --warn-text: #6B4A08;
  --shadow-sm: 0 1px 2px rgba(23, 36, 58, 0.06), 0 2px 8px rgba(23, 36, 58, 0.04);
  --shadow-md: 0 8px 30px rgba(23, 36, 58, 0.08), 0 2px 6px rgba(23, 36, 58, 0.05);
  --shadow-lg: 0 30px 80px -20px rgba(23, 36, 58, 0.28), 0 12px 30px -12px rgba(23, 36, 58, 0.18);

  --btn-bg: linear-gradient(180deg, #1B8783 0%, #157873 100%);
  --btn-bg-hover: linear-gradient(180deg, #187F7B 0%, #126B67 100%);

  --radius: 20px;
  --radius-lg: 28px;
  --maxw: 1180px;
  --header-h: 68px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1220;
    --bg-alt: #0F1828;
    --surface: #131D30;
    --surface-2: #18243A;
    --text: #DCE4EF;
    --text-strong: #F3F6FA;
    --text-soft: #A9B6C8;
    --link: #5CD6D0;
    --border: rgba(220, 228, 239, 0.10);
    --border-strong: rgba(220, 228, 239, 0.18);
    --tint: rgba(38, 173, 168, 0.14);
    --tint-2: rgba(38, 173, 168, 0.22);
    --warn-bg: rgba(242, 196, 109, 0.10);
    --warn-border: rgba(242, 196, 109, 0.45);
    --warn-text: #F5D99B;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 12px 30px -12px rgba(0, 0, 0, 0.5);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { text-wrap: balance; color: var(--text-strong); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.022em; font-weight: 700; }
h1 { font-size: clamp(2.35rem, 5.4vw, 4.35rem); letter-spacing: -0.038em; font-weight: 750; line-height: 1.04; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); letter-spacing: -0.032em; }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
strong { color: var(--text-strong); font-weight: 650; }
::selection { background: rgba(38, 173, 168, 0.28); }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 8px; }
.btn:focus-visible, .store-badge:focus-visible { outline-offset: 4px; border-radius: 999px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (max-width: 420px) { .container { padding: 0 18px; } }

section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-tight { padding-top: clamp(32px, 4vw, 56px); }
.section-tight + section:not(.section-alt) { padding-top: clamp(24px, 3vw, 40px); }
.lead, .section-head p, .row-copy > p { text-wrap: pretty; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8125rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
  color: var(--link); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--text-soft); line-height: 1.6; max-width: 38em; }
.muted { color: var(--text-soft); }
.grad {
  background: linear-gradient(100deg, var(--teal-d) 0%, #3F8FD8 55%, #9A6BDB 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (prefers-color-scheme: dark) {
  .grad { background-image: linear-gradient(100deg, #4FD1CB 0%, #7FB1F2 55%, #C2A1F5 100%); }
}

.section-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.section-head p { color: var(--text-soft); font-size: 1.15rem; margin: 0 auto; max-width: 36em; }
.section-head.left { margin-left: 0; text-align: left; }

/* ---------- Buttons ---------- */
.btn {
  --_bg: var(--btn-bg);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 0;
  background: var(--_bg); color: #fff; font: inherit; font-size: 1rem; font-weight: 650; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 18px -6px rgba(21, 120, 115, .55);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { background: var(--btn-bg-hover); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 10px 24px -8px rgba(21, 120, 115, .6); }
.btn:active { transform: translateY(0); }
.btn.ghost {
  background: transparent; color: var(--text-strong); box-shadow: inset 0 0 0 1.5px var(--border-strong);
}
.btn.ghost:hover { background: var(--tint); box-shadow: inset 0 0 0 1.5px rgba(38,173,168,.45); }
.btn.sm { min-height: 40px; padding: 8px 16px; font-size: .9375rem; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.text-link { font-weight: 650; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.text-link:hover { text-decoration: underline; }
.text-link .arrow { transition: transform .2s ease; }
.text-link:hover .arrow { transform: translateX(3px); }

/* App Store badge (HTML/SVG, not hotlinked) */
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 8px 20px 8px 16px; border-radius: 14px;
  background: #000; color: #fff; text-decoration: none;
  box-shadow: inset 0 0 0 1px #A6A6A6;
  transition: transform .15s ease, box-shadow .2s ease;
}
.store-badge:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px #c9c9c9, 0 10px 24px -10px rgba(0,0,0,.5); }
.store-badge svg { width: 26px; height: 26px; flex: none; fill: #fff; margin-top: -2px; }
.store-badge .sb-text { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.store-badge .sb-small { font-size: .7rem; font-weight: 500; letter-spacing: .01em; }
.store-badge .sb-big { font-size: 1.45rem; font-weight: 600; letter-spacing: -0.02em; }
@media (prefers-color-scheme: dark) { .store-badge { box-shadow: inset 0 0 0 1px #6b6b6b; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
@supports not (background: color-mix(in srgb, red 50%, transparent)) { .site-header { background: var(--bg); } }
.site-header.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-strong); text-decoration: none; font-weight: 750; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) {
  color: var(--text-soft); text-decoration: none; font-size: .9688rem; font-weight: 550;
  padding: 8px 14px; border-radius: 999px; transition: color .15s ease, background .15s ease;
}
.nav-links a:not(.btn):hover { color: var(--text-strong); background: var(--tint); }
.nav-links a[aria-current="page"] { color: var(--text-strong); background: var(--tint-2); }
.nav-links .btn { margin-left: 10px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text-strong); cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle .bars { position: relative; width: 18px; height: 12px; }
.nav-toggle .bars span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s ease, opacity .2s ease, top .25s ease; }
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 5px; }
.nav-toggle .bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  /* Without JS the links simply wrap below the brand; with JS they collapse into a menu. */
  .nav { flex-wrap: wrap; padding: 10px 0; }
  .nav-links { flex-wrap: wrap; }
  .js .nav { flex-wrap: nowrap; padding: 0; }
  .js .nav-toggle { display: inline-flex; }
  .js .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 18px 22px; background: var(--bg);
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .js .nav-links.open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s ease, transform .2s ease; }
  .js .nav-links a:not(.btn) { padding: 14px 14px; font-size: 1.0625rem; border-radius: 12px; }
  .js .nav-links .btn { margin: 10px 0 0; }
}
@media (prefers-reduced-motion: reduce) { .js .nav-links { transition: none !important; transform: none !important; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 8vw, 110px); overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 120%; z-index: -1;
  background:
    radial-gradient(40% 50% at 78% 30%, rgba(38,173,168,.20), transparent 70%),
    radial-gradient(30% 40% at 95% 65%, rgba(143,111,224,.16), transparent 70%),
    radial-gradient(35% 35% at 62% 62%, rgba(232,111,160,.10), transparent 70%),
    radial-gradient(40% 50% at 5% 0%, rgba(76,141,235,.10), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy .lead { margin-bottom: 32px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; padding: 0; list-style: none; }
.trust li {
  display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 550; color: var(--text-soft);
  padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
}
.trust svg { width: 16px; height: 16px; color: var(--teal-d); flex: none; }
@media (prefers-color-scheme: dark) { .trust svg { color: var(--link); } }

.hero-visual { position: relative; display: flex; justify-content: flex-end; width: 100%; max-width: 500px; margin-left: auto; padding-right: 2%; }
.hero-visual .phone.front { --phone-w: clamp(240px, 24vw, 296px); z-index: 2; }
.hero-visual .phone.back {
  --phone-w: clamp(200px, 19vw, 244px);
  position: absolute; z-index: 1; top: 11%; left: 0;
  transform: rotate(-6deg); opacity: .97;
}
.hero-visual .glow {
  position: absolute; z-index: 0; width: 80%; aspect-ratio: 1; top: 10%; left: 10%;
  background: radial-gradient(circle, rgba(38,173,168,.35), transparent 65%); filter: blur(20px);
}
.hero-visual .float-card {
  position: absolute; z-index: 3; left: 2%; bottom: 9%;
  display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; max-width: 250px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-md);
  font-size: .875rem; line-height: 1.35; color: var(--text);
}
.float-card .fc-ico { width: 36px; height: 36px; border-radius: 11px; flex: none; display: grid; place-items: center; background: var(--tint-2); color: var(--teal-d); }
.float-card .fc-ico svg { width: 20px; height: 20px; }
.float-card b { display: block; color: var(--text-strong); font-weight: 650; }
@media (prefers-color-scheme: dark) { .float-card .fc-ico { color: var(--link); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .cta-row, .trust { justify-content: center; }
  .hero-visual { margin: 12px auto 0; padding-bottom: 8px; justify-content: center; max-width: 520px; padding-right: 0; }
  .hero-visual .phone.front { margin-left: 140px; }
  .hero-visual .float-card { left: 0; }
}
@media (max-width: 560px) {
  .hero-visual .phone.back { display: none; }
  .hero-visual .phone.front { margin-left: 0; }
  .hero-visual .float-card { left: 50%; transform: translateX(-50%); bottom: -4px; width: max-content; max-width: calc(100% - 24px); }
}

/* Page hero (inner pages) */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(36px, 5vw, 64px); overflow: hidden; isolation: isolate; text-align: center; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(45% 70% at 50% 0%, rgba(38,173,168,.16), transparent 70%),
    radial-gradient(30% 50% at 85% 20%, rgba(143,111,224,.10), transparent 70%),
    radial-gradient(30% 50% at 15% 30%, rgba(76,141,235,.08), transparent 70%);
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 16em; margin-left: auto; margin-right: auto; }
.page-hero .lead { margin: 0 auto; }
.page-hero .chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 28px; }
.chip {
  display: inline-flex; align-items: center; font-size: .875rem; font-weight: 600; text-decoration: none;
  padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text-strong);
}
a.chip:hover { border-color: rgba(38,173,168,.5); background: var(--tint); }

/* ---------- iPhone frame component ----------
   <figure class="phone"><div class="phone-body"><span class="phone-island"></span>
   <img src="assets/screens/x.png" width="1206" height="2622" alt="…" loading="lazy"></div></figure>
   Size it with --phone-w. */
.phone { --phone-w: 280px; width: var(--phone-w); max-width: 100%; margin: 0; flex: none; position: relative; }
.phone-body {
  position: relative; padding: calc(var(--phone-w) * 0.036);
  border-radius: calc(var(--phone-w) * 0.175);
  background: linear-gradient(145deg, #2B3242 0%, #0B0E14 40%, #1B202B 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,.16),
    inset 0 0 0 calc(var(--phone-w) * 0.012) #05070B,
    var(--shadow-lg);
}
.phone-body::before { /* side buttons */
  content: ""; position: absolute; right: -2px; top: 26%; width: 3px; height: 13%; border-radius: 0 3px 3px 0; background: #1A1F29;
}
.phone-body::after {
  content: ""; position: absolute; left: -2px; top: 20%; width: 3px; height: 7%; border-radius: 3px 0 0 3px; background: #1A1F29;
  box-shadow: 0 calc(var(--phone-w) * 0.16) 0 #1A1F29;
}
.phone-body img {
  display: block; width: 100%; height: auto; aspect-ratio: 1206 / 2622; object-fit: cover;
  border-radius: calc(var(--phone-w) * 0.14); background: #EEF3F5;
}
.phone-island {
  position: absolute; z-index: 2; left: 50%; transform: translateX(-50%);
  top: calc(var(--phone-w) * 0.066); width: 31%; height: calc(var(--phone-w) * 0.088);
  border-radius: 999px; background: #000;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.phone figcaption { text-align: center; font-size: .875rem; color: var(--text-soft); margin-top: 16px; font-weight: 550; }
.phone.sm { --phone-w: 220px; }
.phone.lg { --phone-w: clamp(250px, 28vw, 320px); }

/* ---------- Feature rows (alternating) ---------- */
.rows { display: grid; gap: clamp(64px, 8vw, 112px); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.row .row-media { display: flex; justify-content: center; position: relative; isolation: isolate; }
.row .row-media::before {
  content: ""; position: absolute; z-index: -1; width: min(420px, 100%); aspect-ratio: 1; border-radius: 50%;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--_glow, rgba(38,173,168,.22)), transparent 68%);
}
.row:nth-child(3n+2) .row-media { --_glow: rgba(143,111,224,.20); }
.row:nth-child(3n+3) .row-media { --_glow: rgba(76,141,235,.20); }
.row.flip .row-media { order: -1; }
.row-copy h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.row-copy > p { color: var(--text-soft); font-size: 1.125rem; }
.row-copy .kicker { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--link); margin-bottom: 12px; display: block; }
.ticks { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--tint-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E938F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.ticks li.no::before {
  background: rgba(90,107,130,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A6B82' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 12px no-repeat;
}
@media (max-width: 860px) {
  .row { grid-template-columns: 1fr; }
  .row .row-media, .row.flip .row-media { order: -1; }
  .row-copy { max-width: 600px; margin: 0 auto; }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative; padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-soft); margin: 0; font-size: 1rem; }
.card p + p { margin-top: .75em; }
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(38,173,168,.35); }
a.card .more { display: inline-flex; gap: 6px; margin-top: 16px; font-weight: 650; color: var(--link); font-size: .9375rem; }
.ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  color: var(--teal-d); background: linear-gradient(140deg, rgba(38,173,168,.18), rgba(76,141,235,.12));
  box-shadow: inset 0 0 0 1px rgba(38,173,168,.18);
}
.ico svg { width: 24px; height: 24px; }
.ico.violet { color: #6E4FD0; background: linear-gradient(140deg, rgba(143,111,224,.20), rgba(232,111,160,.10)); box-shadow: inset 0 0 0 1px rgba(143,111,224,.22); }
.ico.blue { color: #2F6FC9; background: linear-gradient(140deg, rgba(76,141,235,.20), rgba(38,173,168,.10)); box-shadow: inset 0 0 0 1px rgba(76,141,235,.22); }
.ico.pink { color: #C2457A; background: linear-gradient(140deg, rgba(232,111,160,.20), rgba(143,111,224,.10)); box-shadow: inset 0 0 0 1px rgba(232,111,160,.22); }
@media (prefers-color-scheme: dark) {
  .ico { color: #5CD6D0; } .ico.violet { color: #B9A3F5; } .ico.blue { color: #8DB8F5; } .ico.pink { color: #F29BC1; }
}

/* Honesty / notice callouts */
.notice {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  padding: 26px 28px; border-radius: var(--radius); background: var(--warn-bg); border: 1px solid var(--warn-border);
}
.notice .ico { margin: 0; color: #9A6A0C; background: rgba(242,196,109,.25); box-shadow: none; }
.notice h2, .notice h3 { margin: 0 0 6px; font-size: 1.25rem; letter-spacing: -0.015em; }
.notice p { margin: 0; color: var(--warn-text); }
.notice p + p { margin-top: .6em; }
@media (prefers-color-scheme: dark) { .notice .ico { color: #F5D99B; } }
@media (max-width: 520px) { .notice { grid-template-columns: 1fr; padding: 22px; } }

.panel {
  padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}

/* Principles strip */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.principles > div { padding: 30px 28px; }
.principles > div + div { border-left: 1px solid var(--border); }
.principles h3 { font-size: 1.0625rem; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.principles h3 svg { width: 20px; height: 20px; color: var(--teal-d); flex: none; }
.principles p { color: var(--text-soft); margin: 0; font-size: .975rem; }
@media (prefers-color-scheme: dark) { .principles h3 svg { color: var(--link); } }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } .principles > div + div { border-left: 0; border-top: 1px solid var(--border); } }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step-num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  font-weight: 750; font-size: .9375rem; color: #fff; background: var(--btn-bg); margin-bottom: 16px;
}

/* Match equation (how-it-works) */
.equation { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px; align-items: stretch; }
.equation .op { display: grid; place-items: center; font-size: 1.8rem; font-weight: 300; color: var(--text-soft); }
.equation .card { text-align: center; }
.equation .card .ico { margin-left: auto; margin-right: auto; }
.equation .card.result { background: linear-gradient(160deg, rgba(38,173,168,.14), rgba(76,141,235,.08)); border-color: rgba(38,173,168,.35); }
@media (max-width: 760px) { .equation { grid-template-columns: 1fr; } .equation .op { padding: 0; line-height: 1; } }

/* Status table */
.status-list { display: grid; gap: 14px; }
.status {
  display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: start;
  padding: 20px 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border);
}
.status .pill { justify-self: start; }
.status p { margin: 0; color: var(--text-soft); }
.status q { color: var(--text-strong); font-style: italic; quotes: "\201C" "\201D"; }
@media (max-width: 640px) { .status { grid-template-columns: 1fr; gap: 10px; } }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; letter-spacing: .01em; white-space: nowrap; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill.ok { color: #12726D; background: rgba(38,173,168,.14); }
.pill.wait { color: #8A5B00; background: rgba(242,196,109,.22); }
.pill.add { color: #2D63B3; background: rgba(76,141,235,.14); }
.pill.block { color: #A33A3A; background: rgba(214,92,92,.13); }
@media (prefers-color-scheme: dark) {
  .pill.ok { color: #6FE0DA; } .pill.wait { color: #F5D08A; } .pill.add { color: #9CC2F7; } .pill.block { color: #F2A3A3; }
}

/* ---------- Gallery ---------- */
.gallery-wrap { position: relative; }
.gallery {
  display: flex; gap: clamp(20px, 3vw, 36px); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: 24px;
  padding: 24px max(24px, calc((100vw - var(--maxw)) / 2 + 24px)) 40px;
  scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
  list-style: none; margin: 0;
}
.gallery:focus-visible { outline-offset: -3px; border-radius: 0; }
.gallery > li { scroll-snap-align: center; flex: none; }
.gallery .phone { --phone-w: clamp(190px, 18vw, 230px); }
.gallery::-webkit-scrollbar { height: 8px; }
.gallery::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; }
.gallery-controls { display: none; gap: 10px; justify-content: flex-end; }
.js .gallery-controls { display: flex; }
.gal-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text-strong); cursor: pointer; display: grid; place-items: center; transition: background .15s ease;
}
.gal-btn:hover { background: var(--tint); }
.gal-btn:disabled { opacity: .4; cursor: default; }
.gal-btn svg { width: 20px; height: 20px; }
.gallery-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 8px; }
.gallery-head .section-head { margin-bottom: 0; }
@media (max-width: 640px) { .gallery-head { flex-direction: column; align-items: stretch; } .gallery-controls { justify-content: flex-start; } }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding: clamp(48px, 7vw, 88px) 24px; border-radius: 32px; color: #fff;
  background: linear-gradient(135deg, #1D2E49 0%, #263A59 45%, #1A5B67 100%);
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(40% 70% at 15% 10%, rgba(38,173,168,.45), transparent 70%),
    radial-gradient(35% 60% at 90% 100%, rgba(143,111,224,.38), transparent 70%),
    radial-gradient(30% 50% at 70% 0%, rgba(232,111,160,.22), transparent 70%);
}
.cta img.cta-logo { width: 76px; height: 76px; border-radius: 20px; margin: 0 auto 22px; box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.cta h2 { color: #fff; margin-bottom: 12px; }
.cta p { color: rgba(255,255,255,.82); font-size: 1.15rem; max-width: 34em; margin: 0 auto 30px; }
.cta .cta-row { justify-content: center; }
.cta .store-badge { box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.cta .fine { font-size: .875rem; color: rgba(255,255,255,.75); margin: 22px auto 0; }
.cta a:not(.store-badge):not(.btn) { color: #fff; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq-group + .faq-group { margin-top: 44px; }
.faq-group > h2 { font-size: 1.4rem; margin-bottom: 16px; }
.faq details {
  border-radius: 16px; background: var(--surface); border: 1px solid var(--border);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details[open] { border-color: rgba(38,173,168,.35); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative;
  font-weight: 650; color: var(--text-strong); font-size: 1.0625rem; line-height: 1.4; border-radius: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--text-soft); border-bottom: 2px solid var(--text-soft); transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 22px 20px; color: var(--text-soft); }
.faq .answer p:last-child, .faq .answer ol:last-child, .faq .answer ul:last-child { margin-bottom: 0; }
.faq .answer ol, .faq .answer ul { padding-left: 1.3em; }
.faq .answer li { margin: 4px 0; }

.contact-cards .card { display: flex; flex-direction: column; }
.contact-cards .card a.mail { margin-top: auto; padding-top: 14px; font-weight: 650; word-break: break-word; }

/* Support layout */
.support-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.side-nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 2px; }
.side-nav h2 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-soft); margin: 0 0 10px 12px; font-weight: 700; }
.side-nav a { text-decoration: none; color: var(--text-soft); padding: 8px 12px; border-radius: 10px; font-size: .9375rem; font-weight: 550; line-height: 1.35; }
.side-nav a:hover { color: var(--text-strong); background: var(--tint); }
@media (max-width: 900px) { .support-layout { grid-template-columns: 1fr; } .side-nav { display: none; } }

/* ---------- Legal docs ---------- */
.doc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.doc-layout .doc-toc {
  position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 2px;
  max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto;
}
.doc-toc h4 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-soft); margin: 0 0 10px 12px; }
.doc-toc a { text-decoration: none; color: var(--text-soft); padding: 7px 12px; border-radius: 10px; font-size: .9063rem; line-height: 1.35; font-weight: 520; }
.doc-toc a:hover { color: var(--text-strong); background: var(--tint); }
.doc { max-width: 760px; }
.doc h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin-bottom: 10px; }
.doc .updated { color: var(--text-soft); margin-bottom: 36px; font-size: .9688rem; }
.doc h2 { font-size: 1.45rem; margin: 2.2em 0 .6em; padding-top: 4px; }
.doc h3 { font-size: 1.125rem; margin: 1.6em 0 .4em; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: .45em 0; }
.doc .back-link { display: none; }
.doc .callout {
  margin: 1.4em 0; padding: 18px 22px; border-radius: 16px; background: var(--tint); border: 1px solid rgba(38,173,168,.28); color: var(--text);
}
.doc-mobile-toc { display: none; margin: 0 0 28px; }
.doc-mobile-toc summary { cursor: pointer; font-weight: 650; color: var(--text-strong); padding: 14px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.doc-mobile-toc .doc-toc { position: static; max-height: none; padding: 10px 6px; }
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; }
  .doc-layout > .doc-toc { display: none; }
  .doc-mobile-toc { display: block; }
}

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: clamp(72px, 12vw, 160px) 0; }
.notfound .code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; letter-spacing: -0.06em; line-height: 1; margin-bottom: 12px; }
.notfound p { color: var(--text-soft); font-size: 1.15rem; }
.notfound .cta-row { justify-content: center; margin-top: 28px; }


/* ---------- Data table (safety: what we keep) ---------- */
.table-wrap { border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; font-size: .9875rem; }
.data-table thead th { text-align: left; font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-soft); font-weight: 700; padding: 16px 22px; background: var(--surface-2); }
.data-table th, .data-table td { padding: 18px 22px; vertical-align: top; border-top: 1px solid var(--border); }
.data-table thead th { border-top: 0; }
.data-table tbody th { text-align: left; color: var(--text-strong); font-weight: 650; width: 21%; }
.data-table tbody th .muted { font-weight: 500; font-size: .875rem; }
.data-table td { color: var(--text); }
.data-table td:last-child { width: 27%; color: var(--text-strong); font-weight: 550; }
.data-table tbody tr:first-child th, .data-table tbody tr:first-child td { background: var(--tint); }
@media (max-width: 760px) {
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table, .data-table tbody, .data-table tr, .data-table th, .data-table td { display: block; width: auto !important; }
  .data-table tr { padding: 18px 20px; border-top: 1px solid var(--border); }
  .data-table tbody tr:first-child { border-top: 0; background: var(--tint); }
  .data-table tbody tr:first-child th, .data-table tbody tr:first-child td { background: none; }
  .data-table th, .data-table td { padding: 0; border: 0; }
  .data-table tbody th { font-size: 1.0625rem; margin-bottom: 8px; }
  .data-table td { margin-top: 8px; }
  .data-table td::before { content: attr(data-label); display: block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 2px; }
}

/* ---------- Message flow (how-it-works) ---------- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; counter-reset: none; }
.flow-step { position: relative; padding: 24px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.flow-step h3 { font-size: 1.0625rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.flow-step p { margin: 0; color: var(--text-soft); font-size: .9375rem; line-height: 1.55; }
.flow-step .ico { margin-bottom: 14px; }
.flow-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--btn-bg); color: #fff; font-size: .75rem; font-weight: 750; flex: none; }
.flow-step:not(:last-child)::after {
  content: ""; position: absolute; top: 46px; right: -16px; width: 12px; height: 12px; z-index: 1;
  border-top: 2px solid var(--teal); border-right: 2px solid var(--teal); transform: rotate(45deg);
}
.flow-step:last-child { background: linear-gradient(160deg, rgba(232,111,160,.10), rgba(143,111,224,.08)), var(--surface); border-color: rgba(232,111,160,.3); }
@media (max-width: 1060px) {
  .flow { grid-template-columns: 1fr; gap: 26px; max-width: 560px; margin: 0 auto; }
  .flow-step { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; }
  .flow-step .ico { grid-row: span 2; margin: 0; }
  .flow-step:not(:last-child)::after { top: auto; bottom: -20px; right: auto; left: 42px; transform: rotate(135deg); }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 64px 0 36px; background: var(--bg-alt); }
.foot-grid { display: grid; grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot-brand p { color: var(--text-soft); font-size: .9688rem; margin: 14px 0 0; max-width: 22em; }
.foot-col h2 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-strong); margin: 6px 0 14px; font-weight: 700; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-col a { color: var(--text-soft); text-decoration: none; font-size: .9375rem; word-break: break-word; }
.foot-col a:hover { color: var(--text-strong); text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-soft); font-size: .875rem; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 380px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Scroll reveal (JS adds .reveal; content visible without JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--reveal-delay, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media print {
  .site-header, .site-footer, .nav-toggle, .gallery-controls, .cta { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.pricing-copy h3 { margin-top: 28px; }
.price-card {
  position: relative; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--surface);
  border: 1px solid rgba(38,173,168,.35); box-shadow: var(--shadow-md); isolation: isolate; overflow: hidden;
}
.price-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 50% at 100% 0%, rgba(38,173,168,.16), transparent 70%), radial-gradient(50% 50% at 0% 100%, rgba(143,111,224,.12), transparent 70%); }
.price-plan { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--link); margin: 0 0 10px; }
.price-main { display: flex; flex-direction: column; gap: 4px; margin: 0 0 6px; }
.price-free { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 750; letter-spacing: -0.035em; color: var(--text-strong); line-height: 1.1; }
.price-then { font-size: 1.25rem; color: var(--text-soft); }
.price-then strong { font-size: 1.5rem; letter-spacing: -0.02em; }
.price-ticks { margin: 20px 0 24px; }
.price-fine { font-size: .875rem; color: var(--text-soft); margin: 18px 0 0; }
.price-card .store-badge { margin-top: 4px; }
.pricing-why { margin-top: 28px; }
.price-note { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; margin-top: 24px; padding: 20px 24px; border-radius: var(--radius); background: var(--tint); border: 1px solid rgba(38,173,168,.28); }
.price-note .ico { margin: 0; }
.price-note p { margin: 0; }
.why-e2e { margin-top: 20px; }
.why-e2e h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin-bottom: 14px; }
.why-e2e .why-lead { font-size: 1.125rem; color: var(--text-strong); }
.why-e2e p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .price-note { grid-template-columns: 1fr; } }
