/* UNIFY landing — plain CSS, no build step. Mobile-first (360px → 1440px). */
:root {
  --blue: #2563eb;
  --blue-600: #1d4ed8;
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --cyan: #06b6d4;
  --navy: #0b1b3f;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --card: #ffffff;
  --green: #15803d;
  --green-50: #ecfdf5;
  --amber-50: #fffbeb;
  --amber: #b45309;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 24px 60px rgba(11, 27, 63, .18);
  --wrap: 1180px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-600); }
h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; text-wrap: balance; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ic { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn .ic { width: 20px; height: 20px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(37, 99, 235, .3); }
.btn-primary:hover { background: #1d4ed8; color: #fff; transform: translateY(-1px); }
.btn-ghost { background: var(--card); color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .95rem; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 900; font-size: 1.35rem; letter-spacing: .06em; }
.brand img { width: 36px; height: 36px; }
.brand:hover { color: var(--navy); }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 4px; }
.nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--navy); background: var(--bg-soft); }
.header-cta { margin-left: 8px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--navy); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .ic { width: 22px; height: 22px; }
.nav-toggle .ic-close { display: none; }
.nav-toggle[aria-expanded="true"] .ic-open { display: none; }
.nav-toggle[aria-expanded="true"] .ic-close { display: block; }

@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px 16px 16px;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 2px; }
  .nav a { padding: 12px; font-size: 1.05rem; }
  .nav .nav-cta { display: block; margin-top: 8px; }
}
@media (min-width: 1024px) { .nav .nav-cta { display: none; } }

/* ---------- Sections ---------- */
section { padding: 64px 0; scroll-margin-top: 64px; }
@media (min-width: 900px) { section { padding: 96px 0; } }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.075rem; margin: 0; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 40px 0 56px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(37, 99, 235, .16), rgba(6, 182, 212, .08) 55%, transparent 75%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; gap: 40px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--green-50); color: var(--green); font-weight: 700; font-size: .875rem; margin-bottom: 18px; }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 20%, transparent); }
.hero h1 .accent { background: linear-gradient(90deg, var(--blue), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .95rem; font-weight: 600; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points .ic { width: 18px; height: 18px; color: var(--green); }
@media (max-width: 479px) { .hero-actions .btn { flex: 1 1 100%; } }
@media (min-width: 960px) {
  .hero { padding: 72px 0 96px; }
  .hero .wrap { grid-template-columns: 1.05fr .95fr; gap: 56px; }
}

/* Phone mockups */
.phones { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 300px; }
.phone {
  position: relative; width: 240px;
  border-radius: 34px; padding: 9px; background: #0b1220;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #273249;
}
.phone img { width: 100%; border-radius: 26px; background: #f1f5f9; }
.hero .phones { padding: 0 0 8px; }
.hero .phone-back { position: absolute; width: 210px; transform: translateX(-62%) rotate(-6deg); bottom: 18px; opacity: .97; }
.hero .phone-front { transform: translateX(26%) rotate(3deg); }
.float-card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px;
  box-shadow: var(--shadow); font-size: .85rem; font-weight: 700; color: var(--navy); white-space: nowrap;
}
.float-card small { display: block; font-weight: 600; color: var(--muted); font-size: .75rem; }
.float-card .ic-wrap { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--green-50); color: var(--green); }
.float-card .ic-wrap.blue { background: var(--blue-50); color: var(--blue); }
.float-card .ic { width: 18px; height: 18px; }
.float-a { left: 0; top: 18%; }
.float-b { right: 0; bottom: 14%; }
@media (max-width: 479px) {
  .phone { width: 200px; border-radius: 28px; padding: 7px; }
  .phone img { border-radius: 22px; }
  .hero .phone-back { width: 172px; transform: translateX(-50%) rotate(-6deg); }
  .hero .phone-front { transform: translateX(22%) rotate(3deg); }
  .float-card { font-size: .78rem; padding: 8px 10px; }
  .float-a { top: 6%; }
  .float-b { bottom: 8%; }
}
@media (min-width: 960px) {
  .hero .phone { width: 270px; }
  .hero .phone-back { width: 236px; }
  .float-a { left: -4%; }
}

/* Trust strip */
.strip { border-block: 1px solid var(--line); background: var(--bg); padding: 18px 0; }
.strip ul { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 16px; }
.strip li { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); font-size: .95rem; }
.strip .ic { color: var(--blue); }
@media (min-width: 900px) { .strip ul { grid-template-columns: repeat(4, 1fr); } .strip li { justify-content: center; } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2, .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .grid-5 { grid-template-columns: repeat(5, 1fr); } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card p { color: var(--muted); }

.type-card { display: flex; flex-direction: column; position: relative; transition: transform .2s, border-color .2s; }
.type-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--blue) 40%, var(--line)); }
.type-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; color: #fff; background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.type-icon .ic { width: 26px; height: 26px; }
.type-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.type-card .sub { font-size: .9rem; color: var(--muted); margin-bottom: 16px; }
.checks { list-style: none; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; line-height: 1.45; }
.checks .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--green); }
.type-card.soon { background: linear-gradient(var(--card), var(--card)) padding-box, repeating-linear-gradient(45deg, var(--line) 0 8px, transparent 8px 14px) border-box; border: 1px dashed var(--line); box-shadow: none; }
.type-card.soon .type-icon { background: linear-gradient(135deg, #64748b, #94a3b8); }
.tag { position: absolute; top: 20px; right: 20px; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--amber-50); color: var(--amber); }

.feature { padding: 22px; }
.feature .f-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); margin-bottom: 14px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { font-size: .93rem; margin: 0; line-height: 1.5; }

/* ---------- Mobile app ---------- */
.mobile-grid { display: flex; flex-wrap: wrap; gap: 28px 64px; align-items: center; justify-content: center; margin-top: 40px; }
.mobile-copy .checks { margin: 20px 0 28px; }
.mobile-copy .checks li { font-size: 1rem; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.play-badge {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 18px 8px 14px; border-radius: 12px;
  background: var(--navy); color: var(--bg); border: 1px solid var(--navy);
}
.play-badge .ic { width: 26px; height: 26px; }
.play-badge small { display: block; font-size: .7rem; font-weight: 600; opacity: .8; line-height: 1.2; }
.play-badge strong { display: block; font-size: 1rem; line-height: 1.2; }
.gallery {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 4px 24px;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.gallery figure { margin: 0; flex: 0 0 auto; scroll-snap-align: center; text-align: center; }
.gallery .phone { width: 210px; }
.gallery figcaption { margin-top: 14px; font-size: .9rem; font-weight: 700; color: var(--navy); }
.gallery figcaption small { display: block; color: var(--muted); font-weight: 600; }
@media (min-width: 1200px) { .gallery { overflow: visible; justify-content: center; } .gallery .phone { width: 170px; border-radius: 28px; padding: 7px; } .gallery .phone img { border-radius: 22px; } }
.swipe-hint { text-align: center; color: var(--muted); font-size: .85rem; margin: 0; }
@media (min-width: 1200px) { .swipe-hint { display: none; } }

/* ---------- Downloads ---------- */
.dl-card { display: flex; flex-direction: column; gap: 16px; padding: 28px; }
.dl-head { display: flex; gap: 14px; align-items: center; }
.dl-head .type-icon { margin: 0; }
.dl-head h3 { margin: 0; font-size: 1.25rem; }
.dl-head p { margin: 0; font-size: .9rem; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; }
.meta span { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--muted); font-weight: 600; }
.meta b { color: var(--navy); }
.dl-card h4 { margin: 4px 0 6px; font-size: .95rem; color: var(--navy); }
.dl-card ul, .dl-card ol { margin: 0; padding-left: 20px; color: var(--muted); font-size: .93rem; }
.dl-card li { margin: 3px 0; }
.note { display: flex; gap: 10px; background: var(--amber-50); color: var(--text); border-radius: 12px; padding: 12px 14px; font-size: .9rem; line-height: 1.5; }
.note .ic { color: var(--amber); width: 20px; height: 20px; margin-top: 1px; }
.note p { margin: 0; }
kbd { font-family: inherit; font-size: .85em; font-weight: 700; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--card); white-space: nowrap; }
.dl-card .btn { margin-top: auto; }

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: s; display: grid; gap: 16px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.steps li { counter-increment: s; position: relative; padding: 28px 24px 24px; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: 14px;
  box-shadow: 0 0 0 6px var(--blue-50);
}
.steps p { margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.faq details[open] { border-color: color-mix(in srgb, var(--blue) 40%, var(--line)); box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; position: relative;
  font-weight: 700; color: var(--navy); font-size: 1.02rem; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .ans { padding: 0 20px 18px; color: var(--muted); }
.faq .ans p:last-child { margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 24px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .85fr 1.15fr; gap: 40px; } }
.contact-list { list-style: none; display: grid; gap: 12px; margin-top: 24px; }
.contact-item { display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-decoration: none; color: var(--navy); }
.contact-item:hover { border-color: var(--blue); color: var(--navy); }
.contact-item .f-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); margin: 0; }
.contact-item small { display: block; color: var(--muted); font-weight: 600; font-size: .8rem; }
.contact-item strong { font-size: 1.05rem; }

.form { display: grid; gap: 16px; padding: 24px; }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; padding: 32px; } .form .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 700; font-size: .9rem; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid #cbd5e1; border-radius: 10px; padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 25%, transparent); }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-status:empty { display: none; }
.form-hint { margin: 0; font-size: .8rem; line-height: 1.5; color: var(--muted); }
.form-status { white-space: pre-line; min-height: 1.5em; font-size: .92rem; font-weight: 600; color: var(--green); margin: 0; }
.form-status.err { color: #dc2626; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1b3f; color: #cbd5e1; padding: 48px 0 28px; font-size: .95rem; }
.site-footer a { color: #e2e8f0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .brand { color: #fff; }
.site-footer h3 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: #94a3b8; font-size: .875rem; }

/* ---------- Legal page ---------- */
.legal { padding: 40px 0 72px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal h3 { margin-top: 1.4em; }
.legal ul { padding-left: 22px; margin-bottom: 1em; }
.legal li { margin: 4px 0; }
.legal .updated { color: var(--muted); }
.legal .lang-switch { display: flex; gap: 8px; margin: 16px 0 8px; }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 56px 0 24px; }
.legal .box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
