/* Tweelo - shared styles */
:root {
  --night: #1B2A3D;      /* text, primary buttons */
  --paper: #F4F6F9;      /* page background */
  --surface: #FFFFFF;    /* panels */
  --spark: #F2A61D;      /* the one accent: likes, highlights */
  --spark-soft: #FDF1D8;
  --canal: #2F6B5F;      /* success, matches */
  --canal-soft: #E3EFEC;
  --line: #DCE3EA;
  --muted: #5A6877;
  --danger: #B3261E;
  --radius-lg: 22px;
  --radius: 14px;
  --radius-sm: 10px;
  --head: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Figtree', system-ui, sans-serif;
  --wrap: 1120px;
  --gutter: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--night);
  font-family: var(--body); font-size: 17px; line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.9rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 650; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--spark); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- Logo ---------- */
.logo {
  display: inline-flex; align-items: baseline; gap: 2px; text-decoration: none;
  font-family: var(--head); font-weight: 750; font-size: 1.6rem; letter-spacing: -0.04em;
}
.logo .spark-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--spark);
  box-shadow: 0 0 0 3px var(--spark-soft); transform: translateY(-1px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, background-color .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--night); color: #fff; }
.btn-primary:hover { background: #24384F; }
.btn-spark { background: var(--spark); color: var(--night); }
.btn-spark:hover { background: #E89A0E; }
.btn-ghost { background: transparent; color: var(--night); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--night); }
.btn-danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1.5px #E7C2BF; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; color: var(--night); }

/* ---------- Site header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(244,246,249,.92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a.nav-link { text-decoration: none; font-weight: 500; color: var(--muted); }
.site-nav a.nav-link:hover, .site-nav a.nav-link[aria-current="page"] { color: var(--night); }
.lang-switch { display: inline-flex; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); padding: 3px; }
.lang-switch button { border: 0; background: none; padding: 4px 10px; border-radius: 999px; font-size: .85rem; font-weight: 600; cursor: pointer; color: var(--muted); }
.lang-switch button[aria-pressed="true"] { background: var(--night); color: #fff; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--night); margin: 5px 0; border-radius: 2px; }

@media (max-width: 1260px) {
  .menu-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 68px 0 auto 0; max-height: calc(100dvh - 68px); overflow-y: auto; background: var(--paper); flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s;
  }
  .site-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .site-nav a.nav-link { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; color: var(--night); }
  .site-nav .lang-switch { align-self: flex-start; margin: 16px 0; }
  .site-nav .btn { width: 100%; margin-top: 8px; }
}

/* ---------- Hero ---------- */
.hero { padding: 56px 0 72px; }
.hero-title { font-size: clamp(2.3rem, 5.2vw, 3.7rem); }
@media (min-width: 680px) { .hero-title { white-space: nowrap; } }
.hero-grid { display: grid; gap: 44px; align-items: start; margin-top: 28px; }
@media (min-width: 900px) { .hero { padding: 80px 0 72px; } .hero-grid { grid-template-columns: 1fr 400px; gap: 72px; margin-top: 36px; } }
.hero-sub { font-size: 1.2rem; color: var(--muted); max-width: 32em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 16px; font-size: .92rem; color: var(--muted); }

/* Demo profile card: the one memorable element */
.demo { position: relative; max-width: 400px; justify-self: center; width: 100%; }
.demo-card { background: var(--surface); border-radius: var(--radius-lg); padding: 26px 24px 22px; box-shadow: 0 1px 0 var(--line), 0 24px 48px -28px rgba(27,42,61,.35); }
.demo-meta { font-size: .9rem; color: var(--muted); font-weight: 500; }
.demo-prompt { margin-top: 18px; font-size: .95rem; font-weight: 600; color: var(--muted); }
.demo-answer { margin-top: 8px; font-family: var(--head); font-size: 1.5rem; line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; }
.demo-actions { position: relative; display: flex; justify-content: flex-end; margin-top: 18px; }
.heart-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--spark-soft); display: grid; place-items: center; transition: background-color .15s, transform .12s;
}
.heart-btn:hover { background: var(--spark); }
.heart-btn:active { transform: scale(.94); }
.heart-btn svg { width: 24px; height: 24px; }
.demo-compose { margin-top: 14px; display: grid; gap: 10px; }
.demo-compose input { width: 100%; border: 1.5px solid var(--line); border-radius: 999px; padding: 12px 18px; background: var(--paper); }
.demo-done { margin-top: 14px; padding: 12px 16px; background: var(--canal-soft); color: var(--canal); border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem; }
.spark-burst { position: absolute; inset: 0; pointer-events: none; }
.spark-burst i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--spark); opacity: 0; }
.spark-burst.go i { animation: burst .7s ease-out forwards; }
@keyframes burst { 0% { opacity: 1; transform: translate(0,0) scale(1); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.4); } }
@media (prefers-reduced-motion: reduce) { .spark-burst { display: none; } .btn, .heart-btn { transition: none; } }

/* ---------- Content sections ---------- */
.section { padding: 72px 0; }
.section + .section { padding-top: 0; }
.section-head { max-width: 40em; margin-bottom: 40px; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 1.1rem; }
.points { display: grid; gap: 36px 56px; }
@media (min-width: 760px) { .points { grid-template-columns: 1fr 1fr; } }
.point { padding-top: 18px; border-top: 2px solid var(--night); }
.point h3 { margin-bottom: 8px; }
.point p { color: var(--muted); max-width: 32em; }

.steps { display: grid; gap: 28px; counter-reset: step; max-width: 760px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.step::before {
  counter-increment: step; content: counter(step);
  width: 44px; height: 44px; border-radius: 50%; background: var(--spark); color: var(--night);
  display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 1.2rem;
}
.step h3 { margin: 8px 0 6px; }
.step p { color: var(--muted); }

.cta-band { background: var(--night); color: #fff; border-radius: var(--radius-lg); padding: 48px 28px; display: grid; gap: 24px; align-items: center; }
@media (min-width: 820px) { .cta-band { grid-template-columns: 1fr auto; padding: 56px 56px; } }
.cta-band h2 { color: #fff; max-width: 18em; }

.page-head { padding: 56px 0 32px; }
.page-head p { margin-top: 14px; color: var(--muted); font-size: 1.15rem; max-width: 36em; }
.prose { max-width: 720px; padding-bottom: 80px; }
.prose h2 { font-size: 1.4rem; margin: 40px 0 10px; }
.prose p, .prose li { color: #33424F; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 1.2em; margin: 10px 0 0; }
.prose li + li { margin-top: 6px; }
.notice { margin-top: 28px; padding: 18px 20px; background: var(--spark-soft); border-radius: var(--radius); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; margin-top: 40px; font-size: .95rem; color: var(--muted); }
.site-footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: var(--night); text-decoration: underline; }
.site-footer .legal { margin-top: 20px; font-size: .85rem; }

/* =====================================================================
   App
   ===================================================================== */
.app-body { min-height: 100vh; min-height: 100dvh; }
.app-top { position: sticky; top: 0; z-index: 20; background: rgba(244,246,249,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.app-top .bar { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.app-main { max-width: 620px; margin: 0 auto; padding: 20px var(--gutter) 170px; }
.app-wide { max-width: 760px; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--surface);
  border-top: 1px solid var(--line); display: flex; justify-content: center;
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar .inner { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; max-width: 620px; }
.tabbar a { position: relative; display: grid; justify-items: center; gap: 2px; padding: 10px 4px 9px; text-decoration: none; font-size: .78rem; font-weight: 600; color: var(--muted); }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a[aria-current="page"] { color: var(--night); }
.tabbar a[aria-current="page"] svg { color: var(--night); }
.tabbar .badge { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--spark); color: var(--night); font-size: .72rem; display: grid; place-items: center; }

/* Forms */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .field .label { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--surface); outline: none;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--night); }
.textarea { min-height: 96px; resize: vertical; }
.row { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
.error { color: var(--danger); font-size: .92rem; font-weight: 500; margin: 8px 0 0; }
.ok { color: var(--canal); font-size: .95rem; font-weight: 600; margin: 8px 0 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--night); flex: none; }

.choice-list { display: grid; gap: 10px; }
.choice {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1.5px solid var(--line); cursor: pointer; font-weight: 500;
}
.choice input { width: 20px; height: 20px; accent-color: var(--night); flex: none; margin: 0; }
.choice:has(input:checked) { border-color: var(--night); box-shadow: inset 0 0 0 1px var(--night); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 500; font-size: .95rem;
}
.chip[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: #fff; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--paper); font-size: .9rem; font-weight: 500; }
.tag.shared { background: var(--spark-soft); }

/* Auth & onboarding */
.auth-wrap { max-width: 420px; margin: 0 auto; padding: 40px var(--gutter) 60px; }
.auth-wrap h1 { font-size: 2rem; margin-bottom: 24px; }
.auth-switch { margin-top: 20px; text-align: center; font-size: .95rem; }
.ob-progress { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; margin-bottom: 28px; }
.ob-progress span { display: block; height: 100%; background: var(--spark); transition: width .25s; }
.ob-step-label { font-size: .88rem; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.ob h1 { font-size: 1.9rem; }
.ob .lead { margin: 8px 0 24px; color: var(--muted); }
.ob-actions { display: flex; gap: 12px; margin-top: 28px; }
.ob-actions .btn-primary { flex: 1; }

/* Photos grid */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.photo-slot {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1.5px dashed var(--line); display: grid; place-items: center;
}
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot .add { width: 100%; height: 100%; display: grid; place-items: center; cursor: pointer; color: var(--muted); font-weight: 600; font-size: .9rem; text-align: center; padding: 8px; }
.photo-slot .add svg { width: 28px; height: 28px; margin: 0 auto 6px; }
.photo-slot.filled { border: 0; }
.photo-slot .main-tag { position: absolute; left: 8px; top: 8px; background: var(--spark); color: var(--night); font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.photo-slot .ph-actions { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 5px; padding: 28px 8px 8px; background: linear-gradient(transparent, rgba(27,42,61,.7)); }
.photo-slot .ph-actions button { flex: 1; border: 0; border-radius: 999px; padding: 6px 4px; font-size: .74rem; font-weight: 600; background: rgba(255,255,255,.92); cursor: pointer; }

/* Prompts editor */
.prompt-edit { background: var(--surface); border-radius: var(--radius); padding: 14px; border: 1.5px solid var(--line); margin-bottom: 12px; display: grid; gap: 10px; }

/* Profile view (discover, likes, preview) */
.profile { display: grid; gap: 14px; }
.p-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.p-name { font-family: var(--head); font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; }
.p-sub { color: var(--muted); font-weight: 500; }
.p-active { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--canal); font-weight: 600; }
.p-active::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--canal); }
.p-block { position: relative; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; }
.p-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--line); }
.p-prompt { padding: 24px 22px 26px; }
.p-prompt .q { font-weight: 600; color: var(--muted); font-size: .95rem; }
.p-prompt .a { margin-top: 8px; font-family: var(--head); font-size: 1.45rem; line-height: 1.28; font-weight: 600; letter-spacing: -0.012em; padding-right: 56px; overflow-wrap: anywhere; }
.p-facts { padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.p-bio { padding: 22px; }
.p-block .heart-btn { position: absolute; right: 14px; bottom: 14px; box-shadow: 0 6px 16px -6px rgba(27,42,61,.4); background: var(--surface); }
.p-block .heart-btn:hover { background: var(--spark); }
.p-shared { padding: 16px 20px; }
.p-shared .label { font-size: .9rem; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.like-comment { padding: 14px 18px; background: var(--spark-soft); border-radius: var(--radius); }
.like-comment .label { font-size: .85rem; font-weight: 600; color: var(--muted); }

.decide {
  position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 22;
  display: flex; justify-content: center; gap: 14px; pointer-events: none; padding: 0 var(--gutter) 14px;
}
.decide .btn { pointer-events: auto; min-width: 140px; box-shadow: 0 10px 24px -10px rgba(27,42,61,.5); }

/* Lists */
.list { display: grid; gap: 2px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); text-decoration: none; cursor: pointer; border: 0; width: 100%; text-align: left; }
.list-item:hover { background: #FAFBFC; }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--line); flex: none; }
.avatar.lg { width: 72px; height: 72px; }
.list-item .grow { flex: 1; min-width: 0; overflow: hidden; }
.list-item .title { font-weight: 650; }
.list-item .sub { color: var(--muted); font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unread-dot { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--spark); font-size: .78rem; font-weight: 700; display: grid; place-items: center; }
.new-matches { display: flex; gap: 14px; overflow-x: auto; padding: 6px 6px 8px; margin: -6px -6px 22px; }
.new-matches button { background: none; border: 0; padding: 0; cursor: pointer; display: grid; gap: 6px; justify-items: center; font-weight: 600; font-size: .9rem; }
.new-matches .avatar { width: 72px; height: 72px; box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--spark); }
.likes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.like-tile { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 0; padding: 0; cursor: pointer; text-align: left; }
.like-tile img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--line); }
.like-tile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 12px; color: #fff; background: linear-gradient(transparent, rgba(27,42,61,.82)); }
.like-tile .cap strong { display: block; font-size: 1.05rem; }
.like-tile .cap span { font-size: .85rem; opacity: .92; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.section-title { font-size: 1rem; font-family: var(--body); font-weight: 700; color: var(--muted); margin: 0 0 12px; }
.page-title { font-size: 1.7rem; margin-bottom: 6px; }
.page-sub { color: var(--muted); margin-bottom: 22px; }

/* Empty states */
.empty { text-align: center; padding: 56px 12px; display: grid; gap: 12px; justify-items: center; }
.empty h2 { font-size: 1.4rem; }
.empty p { color: var(--muted); max-width: 26em; }
.empty .btn { margin-top: 8px; }

/* Chat */
.chat { display: flex; flex-direction: column; height: 100vh; height: 100dvh; max-width: 620px; margin: 0 auto; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 10px var(--gutter); border-bottom: 1px solid var(--line); background: var(--surface); }
.chat-head .grow { flex: 1; min-width: 0; font-weight: 650; background: none; border: 0; text-align: left; cursor: pointer; padding: 0; }
.chat-head .avatar { width: 40px; height: 40px; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 0; background: none; cursor: pointer; }
.icon-btn:hover { background: var(--paper); }
.icon-btn svg { width: 22px; height: 22px; }
.chat-log { flex: 1; overflow-y: auto; padding: 18px var(--gutter); display: flex; flex-direction: column; gap: 6px; }
.chat-start { text-align: center; color: var(--muted); font-size: .9rem; margin: 8px auto 18px; max-width: 24em; }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 18px; overflow-wrap: anywhere; white-space: pre-wrap; }
.msg.me { align-self: flex-end; background: var(--night); color: #fff; border-bottom-right-radius: 6px; }
.msg.them { align-self: flex-start; background: var(--surface); border-bottom-left-radius: 6px; }
.msg-time { font-size: .74rem; color: var(--muted); margin: 0 6px 8px; }
.msg-time.me { align-self: flex-end; }
.chat-form { display: flex; gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.chat-form textarea { flex: 1; min-height: 46px; max-height: 140px; resize: none; border-radius: 23px; padding: 11px 16px; border: 1.5px solid var(--line); outline: none; background: var(--paper); }
.chat-form textarea:focus { border-color: var(--night); }
.chat-form .btn { min-height: 46px; padding: 0 18px; }

/* Menus & dialogs */
.menu { position: absolute; right: var(--gutter); top: 56px; background: var(--surface); border-radius: var(--radius); box-shadow: 0 16px 40px -12px rgba(27,42,61,.35); padding: 6px; z-index: 40; min-width: 200px; }
.menu button { display: block; width: 100%; text-align: left; padding: 12px 14px; border: 0; background: none; border-radius: var(--radius-sm); cursor: pointer; font-weight: 500; }
.menu button:hover { background: var(--paper); }
.menu button.danger { color: var(--danger); }
dialog { border: 0; border-radius: var(--radius-lg); padding: 0; width: min(440px, calc(100vw - 32px)); background: var(--surface); color: var(--night); }
dialog::backdrop { background: rgba(27,42,61,.55); }
.dlg { padding: 26px 24px 22px; display: grid; gap: 14px; }
.dlg h2 { font-size: 1.45rem; }
.dlg p { color: var(--muted); }
.dlg-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 4px; }
.match-dlg { text-align: center; }
.match-dlg .pair { display: flex; justify-content: center; margin: 4px 0 6px; }
.match-dlg .pair img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--surface); background: var(--line); }
.match-dlg .pair img + img { margin-left: -18px; }
.match-dlg h2 { font-size: 2rem; }
.match-dlg .dlg-actions { flex-direction: column; }
.match-dlg .dlg-actions .btn { width: 100%; }

/* Settings */
.panel { background: var(--surface); border-radius: var(--radius-lg); padding: 22px 20px; margin-bottom: 16px; }
.panel h2 { font-size: 1.2rem; margin-bottom: 14px; }
.panel p.hint { color: var(--muted); font-size: .92rem; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.switch { position: relative; width: 52px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; position: absolute; z-index: 1; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 15px; transition: background-color .15s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--canal); }
.switch input:checked + span::after { transform: translateX(22px); }
.switch input:focus-visible + span { outline: 3px solid var(--spark); outline-offset: 2px; }
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row input[type=range] { flex: 1; accent-color: var(--night); }
.range-val { min-width: 64px; text-align: right; font-weight: 600; }
.segmented { display: flex; gap: 6px; background: var(--paper); padding: 4px; border-radius: 999px; margin-bottom: 18px; }
.segmented button { flex: 1; border: 0; background: none; padding: 9px 10px; border-radius: 999px; font-weight: 600; cursor: pointer; color: var(--muted); }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--night); box-shadow: 0 1px 3px rgba(27,42,61,.12); }
.banner { background: var(--spark-soft); border-radius: var(--radius); padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; font-weight: 500; }
.toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--night); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 500; z-index: 60; max-width: calc(100vw - 32px); text-align: center; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--night); border-radius: 50%; animation: spin .8s linear infinite; margin: 60px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }

.sticky-save { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 5; box-shadow: 0 10px 24px -10px rgba(27,42,61,.5); }

/* Premium */
.prem-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; margin-bottom: 22px; border-radius: var(--radius-lg); background: var(--night); color: #fff; text-decoration: none; }
.prem-card strong { display: block; font-family: var(--head); font-size: 1.15rem; }
.prem-card span span { display: block; font-size: .92rem; opacity: .85; margin-top: 2px; }
.prem-card .prem-go { font-size: 1.8rem; line-height: 1; color: var(--spark); }
.prem-feats { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 14px; }
.prem-feats li { display: grid; gap: 2px; padding-left: 26px; position: relative; }
.prem-feats li::before { content: ''; position: absolute; left: 4px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--spark); box-shadow: 0 0 0 3px var(--spark-soft); }
.prem-feats span { color: var(--muted); }
.choice.plan { gap: 12px; }
.choice.plan .grow { flex: 1; min-width: 0; }
.choice.plan .grow strong { display: block; }
.choice.plan .per { display: block; font-size: .86rem; color: var(--muted); font-weight: 500; }
.choice.plan .price { font-family: var(--head); font-size: 1.15rem; white-space: nowrap; }
.decide .btn.icon-round { min-width: 0; width: 48px; padding: 0; background: var(--surface); }
.decide .btn.icon-round svg { width: 20px; height: 20px; }
.choice.plan .grow strong { white-space: nowrap; }
.choice.plan .per { white-space: nowrap; }
.choice.plan .tag.save { padding: 2px 9px; font-size: .8rem; margin-left: 6px; vertical-align: 1px; }

/* Photo slider (home) */
.slider { position: relative; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; border-radius: var(--radius-lg); scrollbar-width: none; outline: none; }
.slides::-webkit-scrollbar { display: none; }
.slides:focus-visible { outline: 3px solid var(--spark); outline-offset: 3px; }
.slide { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: start; aspect-ratio: 4 / 5; background: var(--night); overflow: hidden; }
@media (min-width: 700px) { .slide { aspect-ratio: 16 / 9; } }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 64px 24px 26px; color: #fff; background: linear-gradient(to top, rgba(27,42,61,.88), rgba(27,42,61,.55) 55%, transparent); }
@media (min-width: 700px) { .slide figcaption { padding: 96px 44px 40px; } }
.slide h3 { font-family: var(--head); font-size: clamp(1.4rem, 3.2vw, 2.2rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; max-width: 20em; }
.slide p { margin-top: 10px; font-size: 1.05rem; opacity: .92; max-width: 36em; }
.slider-ui { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 18px; }
.slider-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); display: grid; place-items: center; cursor: pointer; color: var(--night); }
.slider-btn:hover { box-shadow: inset 0 0 0 1.5px var(--night); }
.slider-btn svg { width: 20px; height: 20px; }
.slider-dots { display: flex; gap: 8px; }
.slider-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; transition: width .2s, background-color .2s; }
.slider-dots button[aria-selected="true"] { width: 26px; border-radius: 5px; background: var(--spark); }
@media (prefers-reduced-motion: reduce) { .slides { scroll-behavior: auto; } .slider-dots button { transition: none; } }

/* Features page */
.feat-group { padding-bottom: 56px; }
.feat-group h2 { margin-bottom: 6px; }
.feat-group-sub { color: var(--muted); margin-bottom: 26px; }


/* ===== Homepage v2 ===== */
.demo { max-width: 460px; }
.hero-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 30% 40%; border-radius: var(--radius-lg); display: block; }
.demo .demo-card { position: relative; margin: -120px 16px 0 auto; max-width: 340px; }
@media (max-width: 899px) { .hero-photo { aspect-ratio: 4 / 3; } .demo .demo-card { margin: -80px 12px 0 12px; max-width: none; } }
.demo-answer { font-size: 1.3rem; }

.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.trust ul { list-style: none; margin: 0; padding: 18px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 20px; }
@media (min-width: 900px) { .trust ul { grid-template-columns: repeat(4, 1fr); padding: 22px 0; } }
.trust li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .98rem; }
.trust svg, .checklist svg, .cmp .yes svg { width: 20px; height: 20px; flex: none; color: var(--canal); }
.section:first-of-type { padding-top: 72px; }
.trust + .section { padding-top: 80px; }

.steps-row { list-style: none; padding: 0; margin: 0; max-width: none; }
@media (min-width: 900px) { .steps-row { grid-template-columns: repeat(3, 1fr); gap: 40px; } .steps-row .step { grid-template-columns: 1fr; gap: 14px; } }

.cmp-wrap { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; }
.cmp { width: 100%; border-collapse: collapse; }
.cmp th, .cmp td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp thead th { font-size: .95rem; color: var(--muted); font-weight: 600; }
.cmp tbody th { font-weight: 600; width: 38%; }
.cmp td.us { background: var(--spark-soft); font-weight: 600; }
.cmp thead th.us { background: var(--spark-soft); color: var(--night); }
.cmp td.us span + span { margin-left: 8px; }
.cmp .yes { display: inline-flex; vertical-align: -4px; }
.cmp td.them { color: var(--muted); }
.logo-sm { font-family: var(--head); font-weight: 750; font-size: 1.15rem; letter-spacing: -0.04em; display: inline-flex; align-items: baseline; gap: 2px; }
.logo-sm .spark-dot { width: 7px; height: 7px; }
@media (max-width: 640px) {
  .cmp th, .cmp td { padding: 12px 10px; font-size: .9rem; }
  .cmp tbody th { width: 34%; }
  .cmp td.us .yes { display: none; }
  .cmp td.us span + span { margin-left: 0; }
}

.ideas { display: grid; gap: 14px; }
@media (min-width: 700px) { .ideas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ideas { grid-template-columns: repeat(4, 1fr); } .feat-group .ideas { grid-template-columns: repeat(2, 1fr); } }
.idea { background: var(--surface); border-radius: var(--radius); padding: 20px 20px 22px; border-top: 4px solid var(--spark); }
.idea h3 { margin-bottom: 6px; }
.idea p { color: var(--muted); }

.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 5fr 6fr; gap: 64px; } }
.split-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius-lg); }
@media (min-width: 900px) { .split-photo { aspect-ratio: 4 / 5; } }
.split-sub { color: var(--muted); font-size: 1.1rem; margin: 10px 0 20px; }
.checklist { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.checklist svg { margin-top: 2px; }

.faq-list { display: grid; gap: 10px; max-width: 820px; }
.faq { background: var(--surface); border-radius: var(--radius); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 650; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--night); border-bottom: 2px solid var(--night); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq p { padding: 0 20px 20px; color: var(--muted); max-width: 60em; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* App install panel */
.install-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.slide img.s2 { object-position: 50% 30%; } .slide img.s3 { object-position: 50% 40%; }
.slide img.s4 { object-position: 100% 40%; } .slide img.s5 { object-position: 45% 40%; }
@media (min-width: 700px) { .slide img.s4 { object-position: 70% 45%; } }
.hero-photo, .split-photo { height: auto; }
.site-nav a.nav-link { white-space: nowrap; }
@media (min-width: 1101px) { .site-nav { gap: 20px; } }
.safe-band { background: var(--night); color: #fff; border-radius: var(--radius-lg); padding: 40px 28px; display: grid; gap: 28px; }
@media (min-width: 900px) { .safe-band { grid-template-columns: 1fr 1fr; padding: 56px; gap: 56px; align-items: center; } }
.safe-band h2 { color: #fff; }
.safe-band .split-sub { color: rgba(255,255,255,.8); }
.safe-band .checklist { margin: 0; }
.safe-band .checklist svg { color: var(--spark); }
.safe-band .checklist li { font-size: 1.05rem; }

/* ===== Layout density pass ===== */
@media (min-width: 900px) {
  .hero { padding: 64px 0 80px; }
  .hero-grid { align-items: center; grid-template-columns: 1fr 440px; margin-top: 40px; }
  .hero-photo { aspect-ratio: 1 / 1; }
  .hero-sub { font-size: 1.25rem; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
}
.hero-points { list-style: none; padding: 26px 0 0; margin: 28px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.hero-points li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.hero-points svg { width: 20px; height: 20px; flex: none; color: var(--canal); }
@media (max-width: 420px) { .hero-points { grid-template-columns: 1fr; } }

/* Typography polish */
h1, h2, h3 { text-wrap: balance; }
p, li, summary { text-wrap: pretty; }
.section-head { max-width: 44em; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.02em; }
.section-head p { font-size: 1.1rem; }
.steps-row .step h3 { font-size: 1.25rem; margin: 4px 0 8px; }
.steps-row .step p { font-size: 1rem; }
.idea h3 { font-size: 1.25rem; }
.idea p { font-size: .98rem; }
.hero-sub { max-width: 30em; }
.demo-answer { font-size: 1.25rem; line-height: 1.3; }
.cmp thead th:last-child { font-size: .9rem; }
@media (min-width: 900px) {
  .hero-grid { align-items: start; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .hero-sub { margin-top: 4px; }
}
@media (max-width: 899px) {
  .hero { padding: 40px 0 40px; }
  .section { padding: 48px 0; }
}
.steps-row .step { align-items: start; }
@media (min-width: 900px) { .hero { padding-bottom: 24px; } .hero + .section { padding-top: 56px; } }
/* Centered section headings (homepage) */
.section-head { margin-left: auto; margin-right: auto; text-align: center; }
.section > .wrap > p:last-child { text-align: center; }

/* Attention: headings and comparison animate in when scrolled into view */
.section-head h2 { position: relative; display: inline-block; padding-bottom: 14px; }
.section-head h2::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 64px; height: 4px; border-radius: 2px; background: var(--spark); transform: translateX(-50%) scaleX(0); transform-origin: center; transition: transform .6s cubic-bezier(.2,.8,.2,1) .15s; }
.js-reveal .section-head { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.js-reveal .section-head.in { opacity: 1; transform: none; }
.section-head.in h2::after { transform: translateX(-50%) scaleX(1); }
.js-reveal .cmp tbody tr { opacity: 0; transform: translateX(-12px); transition: opacity .4s ease, transform .4s ease; }
.js-reveal .cmp.in tbody tr { opacity: 1; transform: none; }
.cmp.in tbody tr:nth-child(1) { transition-delay: .05s; } .cmp.in tbody tr:nth-child(2) { transition-delay: .12s; }
.cmp.in tbody tr:nth-child(3) { transition-delay: .19s; } .cmp.in tbody tr:nth-child(4) { transition-delay: .26s; }
.cmp.in tbody tr:nth-child(5) { transition-delay: .33s; } .cmp.in tbody tr:nth-child(6) { transition-delay: .40s; }
.cmp .yes { transform: scale(0); transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.cmp.in .yes { transform: scale(1); }
.cmp.in tbody tr:nth-child(n) .yes { transition-delay: inherit; }
.cmp-wrap { box-shadow: 0 24px 48px -32px rgba(27,42,61,.35); }
.cmp thead th.us { position: relative; }
.cmp-badge { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: var(--spark); color: var(--night); font-size: .72rem; font-weight: 700; vertical-align: 2px; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .section-head, .js-reveal .cmp tbody tr { opacity: 1; transform: none; transition: none; }
  .section-head h2::after, .cmp .yes { transition: none; transform: translateX(-50%) scaleX(1); }
  .cmp .yes { transform: none; }
}

/* Featured heading: comparison */
.head-big h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.03em; }
.head-big .hl { position: relative; z-index: 0; color: var(--night); padding: 0 .12em; }
.head-big .hl::before { content: ''; position: absolute; z-index: -1; left: 0; right: 0; bottom: .08em; height: .42em; border-radius: 6px; background: var(--spark); transform: scaleX(0); transform-origin: left; transition: transform .7s cubic-bezier(.2,.8,.2,1) .25s; }
.head-big.in .hl::before { transform: scaleX(1); }
.head-big h2::after { display: none; }
.head-big p { font-size: 1.2rem; }
.cmp.in .cmp-badge { animation: badge-flash 1.6s ease-in-out .6s 3; }
@keyframes badge-flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(242,166,29,.0); transform: scale(1); } 50% { box-shadow: 0 0 0 8px rgba(242,166,29,.28); transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .head-big .hl::before { transform: none; transition: none; } .cmp.in .cmp-badge { animation: none; } }

/* Same look on every page: centred headings and centred content blocks */
.page-head { text-align: center; max-width: 46em; margin: 0 auto; }
.page-head p { margin-left: auto; margin-right: auto; }
.feat-group > h2, .feat-group > .feat-group-sub { text-align: center; }
.faq-list { margin-left: auto; margin-right: auto; }
.prose { margin-left: auto; margin-right: auto; }
.steps:not(.steps-row) { margin-left: auto; margin-right: auto; }
.feat-group .checklist { max-width: 640px; margin-left: auto; margin-right: auto; }
.page-head { max-width: none; padding-bottom: 48px; }
.page-head p { max-width: 40em; }
@media (min-width: 900px) { .page-head h1 { white-space: nowrap; } }

/* CTA band v2: centred, tidy, glowing button */
.cta-band { position: relative; overflow: hidden; text-align: center; justify-items: center; gap: 0; padding: 56px 24px; }
@media (min-width: 820px) { .cta-band { grid-template-columns: 1fr; padding: 64px 56px; } }
.cta-band::before, .cta-band::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.cta-band::before { width: 420px; height: 420px; left: -140px; top: -220px; background: radial-gradient(closest-side, rgba(242,166,29,.22), transparent); }
.cta-band::after { width: 360px; height: 360px; right: -120px; bottom: -200px; background: radial-gradient(closest-side, rgba(47,107,95,.35), transparent); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { max-width: none; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.cta-band h2 span { display: block; }
.cta-band .cta-hl { color: var(--spark); }
.cta-sub { margin: 14px auto 0; max-width: 34em; color: rgba(255,255,255,.75); font-size: 1.08rem; text-wrap: balance; }
.cta-band .btn { margin-top: 28px; gap: 10px; font-size: 1.05rem; padding: 16px 30px; }
.cta-band .btn svg { width: 20px; height: 20px; transition: transform .25s; }
.cta-band .btn:hover svg { transform: translateX(4px); }
.cta-note { margin-top: 14px; font-size: .9rem; color: rgba(255,255,255,.55); letter-spacing: .02em; }
.btn-pulse { position: relative; overflow: hidden; animation: cta-pulse 2.4s ease-in-out infinite; }
.btn-pulse::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); animation: cta-shine 2.4s ease-in-out infinite; }
@keyframes cta-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(242,166,29,.55); transform: scale(1); } 50% { box-shadow: 0 0 0 14px rgba(242,166,29,0); transform: scale(1.04); } }
@keyframes cta-shine { 0%, 55% { left: -60%; } 85%, 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .btn-pulse, .btn-pulse::after { animation: none; } }

/* Comparison v3: green Tweelo column with a bold FREE badge */
.cmp thead th.us { background: var(--canal); color: #fff; padding-top: 20px; padding-bottom: 20px; white-space: nowrap; }
.cmp thead th.us .logo-sm { color: #fff; font-family: var(--head); font-size: 1.5rem; font-weight: 750; letter-spacing: -0.04em; vertical-align: middle; }
.cmp thead th.us .logo-sm .spark-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--spark); }
.cmp-badge { margin-left: 12px; padding: 5px 14px; font-size: .95rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--spark); color: var(--night); vertical-align: middle; box-shadow: 0 6px 16px -6px rgba(0,0,0,.35); }
.cmp td.us { background: var(--canal-soft); font-weight: 700; color: var(--night); }
.cmp tbody tr:last-child td.us { box-shadow: inset 0 -4px 0 var(--canal); }
@keyframes badge-flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(242,166,29,0); transform: scale(1); } 50% { box-shadow: 0 0 0 8px rgba(242,166,29,.35); transform: scale(1.1); } }
@media (max-width: 640px) {
  .cmp thead th.us { white-space: normal; padding: 14px 10px; }
  .cmp thead th.us .logo-sm { display: flex; font-size: 1.25rem; }
  .cmp-badge { margin: 8px 0 0; font-size: .8rem; padding: 4px 11px; }
}

/* Logo (heart of two halves) */
.logo { align-items: center; }
.logo img { display: block; height: 30px; width: auto; }
.site-header .logo { flex: none; }
@media (min-width: 1261px) { :root { --wrap: 1280px; } .site-nav { gap: 18px; } }
.site-footer .logo img { height: 28px; }
.app-top .logo img { height: 26px; }
.cmp thead th.us .logo-sm-img { display: inline-block; height: 26px; width: auto; vertical-align: middle; }
@media (max-width: 640px) { .cmp thead th.us .logo-sm-img { display: block; height: 20px; } }

/* ---------- Hero v3: full photo + quick start (Tinder look, Lexa form) ---------- */
.hero.hero-full { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: 0; min-height: min(86vh, 760px); display: flex; align-items: flex-end; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 35%; z-index: -2; }
.hero.hero-full::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(17,27,40,.92) 0%, rgba(17,27,40,.72) 42%, rgba(17,27,40,.15) 75%, rgba(17,27,40,0) 100%),
              linear-gradient(0deg, rgba(17,27,40,.75) 0%, rgba(17,27,40,0) 45%); }
.hero-inner { width: 100%; padding-top: 96px; padding-bottom: 56px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; color: var(--spark); }
.hero-kicker::before { content: ''; width: 22px; height: 3px; border-radius: 2px; background: var(--spark); }
.hero-full .hero-title { color: #fff; margin-top: 14px; font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: 1.04; letter-spacing: -0.03em; }
.hero-full .hero-sub { color: rgba(255,255,255,.86); margin-top: 18px; font-size: 1.2rem; max-width: 30em; text-wrap: balance; }
.quick { margin-top: 30px; display: grid; gap: 10px; background: rgba(255,255,255,.97); color: var(--night); border-radius: 22px; padding: 10px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.55); max-width: 860px; }
@media (min-width: 900px) { .quick { grid-template-columns: 1fr 1fr 1.15fr auto; align-items: stretch; padding: 8px; border-radius: 999px; } }
.q-field { display: flex; flex-direction: column; justify-content: center; padding: 8px 18px; border-radius: 16px; background: var(--paper); min-width: 0; }
@media (min-width: 900px) { .q-field { background: transparent; border-radius: 999px; } .q-field + .q-field { border-left: 1px solid var(--line); border-radius: 0; } }
.q-field span { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.q-field select { appearance: none; -webkit-appearance: none; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%231B2A3D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right center / 18px; padding: 2px 26px 2px 0; font: 700 1.08rem var(--body); color: var(--night); cursor: pointer; width: 100%; }
.q-field select:focus { outline: none; }
.q-field:focus-within { box-shadow: 0 0 0 2px var(--spark) inset; }
.q-go { min-height: 58px; font-size: 1.08rem; padding: 0 30px; gap: 10px; }
.q-go svg { width: 20px; height: 20px; }
.hero-chips { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-chips li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .98rem; color: #fff; }
.hero-chips svg { width: 18px; height: 18px; color: var(--spark); }
@media (max-width: 899px) {
  .hero.hero-full { min-height: 0; }
  .hero-bg { object-position: 68% 30%; }
  .hero.hero-full::before { background: linear-gradient(180deg, rgba(17,27,40,.35) 0%, rgba(17,27,40,.7) 40%, rgba(17,27,40,.95) 75%); }
  .hero-inner { padding-top: 220px; padding-bottom: 36px; }
  .hero-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
  .hero-chips li { font-size: .92rem; }
}
.hero-full + .section { padding-top: 72px; }

/* ---------- Pain points ---------- */
.pains { display: grid; gap: 16px; }
@media (min-width: 700px) { .pains { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .pains { grid-template-columns: repeat(4, 1fr); } }
.pain { background: var(--surface); border-radius: var(--radius-lg); padding: 24px 22px 26px; box-shadow: 0 1px 0 var(--line), 0 20px 40px -32px rgba(27,42,61,.4); display: flex; flex-direction: column; }
.pain-bad { display: flex; gap: 8px; align-items: flex-start; color: #B4383D; font-weight: 600; font-size: .95rem; text-decoration: line-through; text-decoration-color: rgba(180,56,61,.45); padding-bottom: 16px; border-bottom: 1px dashed var(--line); }
.pain-bad svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.pain-good { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 1.22rem; line-height: 1.25; letter-spacing: -0.01em; }
.pain-good svg { width: 24px; height: 24px; flex: none; color: #fff; background: var(--canal); border-radius: 50%; padding: 4px; }
.pain-how { margin-top: 10px; color: var(--muted); font-size: .98rem; }
/* hero v3 refinements */
@media (min-width: 900px) {
  .hero.hero-full { background: #111B28; }
  .hero-bg { left: auto; right: 0; width: 64%; object-position: 50% 35%; }
  .hero.hero-full::before { background: linear-gradient(90deg, #111B28 0%, #111B28 36%, rgba(17,27,40,.78) 48%, rgba(17,27,40,.2) 70%, rgba(17,27,40,0) 100%), linear-gradient(0deg, rgba(17,27,40,.6) 0%, rgba(17,27,40,0) 40%); }
}
@media (max-width: 899px) {
  .hero-bg { object-position: 45% 25%; }
  .hero-kicker::before { display: none; }
}
.pain-bad { text-decoration: none; }
.pain-good { font-size: 1.15rem; text-wrap: pretty; }

/* Expat page */
.eyebrow { display: inline-block; font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--spark-ink, #B97300); background: var(--spark-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.ex-photo { margin: 8px 0 0; }
.ex-photo img { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius-lg); display: block; }
@media (max-width: 699px) { .ex-photo img { aspect-ratio: 4 / 3; } }
.ex-tips { list-style: none; counter-reset: tip; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 700px) { .ex-tips { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .ex-tips { grid-template-columns: repeat(3, 1fr); } }
.ex-tips li { counter-increment: tip; background: var(--surface); border-radius: var(--radius-lg); padding: 22px 22px 24px; box-shadow: 0 1px 0 var(--line); }
.ex-tips li::before { content: counter(tip); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--night); color: #fff; font-weight: 700; margin-bottom: 12px; }
.ex-tips h3 { font-size: 1.12rem; }
.ex-tips p { margin-top: 6px; color: var(--muted); }
.steps .step { align-content: start; }
.cta-note { text-wrap: balance; max-width: 22em; margin-left: auto; margin-right: auto; }

/* Install page */
.inst-grid { display: grid; gap: 20px; margin-top: 8px; }
@media (min-width: 820px) { .inst-grid { grid-template-columns: 1fr 1fr; } }
.inst-card { background: var(--surface); border-radius: var(--radius-lg); padding: 26px; box-shadow: 0 1px 0 var(--line), 0 20px 40px -32px rgba(27,42,61,.4); }
.inst-card h2 { font-size: 1.5rem; text-align: center; }
.inst-frame { margin: 18px auto 0; max-width: 300px; }
.inst-video { width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 22px; background: #111B28; display: block; }
.inst-steps { margin: 22px auto 0; max-width: 30em; padding-left: 1.3em; display: grid; gap: 10px; }
.inst-steps li { padding-left: 4px; }
.inst-steps li::marker { font-weight: 800; color: var(--canal); }
.inst-done { margin-top: 16px; display: inline-block; padding: 10px 16px; background: var(--canal-soft); color: var(--canal); border-radius: 12px; font-weight: 600; }

/* ---------- Page polish v2 ---------- */
.cta-note { max-width: none; text-wrap: wrap; }
.feat-group > h2 { position: relative; display: block; padding-bottom: 14px; margin-bottom: 12px; }
.feat-group > h2::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 64px; height: 4px; border-radius: 2px; background: var(--spark); transform: translateX(-50%); }
.page-photo { margin: 0 0 56px; }
.page-head + .page-photo { margin-top: 8px; }
/* price cards */
.pcards { display: grid; gap: 16px; max-width: 620px; margin: 36px auto 0; }
@media (min-width: 560px) { .pcards { grid-template-columns: 1fr 1fr; } }
.pcard { position: relative; background: var(--surface); border-radius: var(--radius-lg); padding: 26px 24px; text-align: center; box-shadow: 0 1px 0 var(--line), 0 20px 40px -32px rgba(27,42,61,.4); border: 2px solid transparent; }
.pcard.best { border-color: var(--spark); }
.pcard-tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--spark); color: var(--night); font-weight: 800; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.pcard-n { font-weight: 700; color: var(--muted); }
.pcard-a { font-family: var(--head); font-size: 2.4rem; font-weight: 750; letter-spacing: -0.03em; margin-top: 6px; color: var(--night); }
.pcard-per { color: var(--muted); font-size: .95rem; margin-top: 2px; }
.pcard-note { text-align: center; color: var(--muted); font-size: .95rem; margin: 18px auto 0; max-width: 34em; text-wrap: balance; }
/* scam warning */
.scam { margin-top: 64px; }
.scam-list { list-style: none; padding: 0; margin: 0 auto; max-width: 760px; display: grid; gap: 12px; }
.scam-list li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border-radius: 16px; padding: 16px 18px; box-shadow: 0 1px 0 var(--line); font-weight: 600; }
.scam-list svg { width: 22px; height: 22px; flex: none; color: #fff; background: #D64545; border-radius: 50%; padding: 4px; margin-top: 1px; }
.scam-do { max-width: 760px; margin: 18px auto 0; text-align: center; color: var(--muted); }

/* Trust */
.trust-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }
.trust-tile { background: var(--surface); border-radius: var(--radius-lg); padding: 24px 22px; box-shadow: 0 1px 0 var(--line), 0 20px 40px -32px rgba(27,42,61,.4); }
.trust-ic { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--canal-soft); color: var(--canal); margin-bottom: 14px; }
.trust-ic svg { width: 26px; height: 26px; }
.trust-tile h3 { font-size: 1.15rem; }
.trust-tile p { margin-top: 6px; color: var(--muted); }
.never-list svg { background: var(--canal); }
.co-card { max-width: 760px; margin: 0 auto; background: var(--surface); border-radius: var(--radius-lg); padding: 10px 26px 22px; box-shadow: 0 1px 0 var(--line); }
.co-card dl { margin: 0; }
.co-card dl > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 600px) { .co-card dl > div { grid-template-columns: 240px 1fr; } }
.co-card dt { color: var(--muted); font-weight: 600; }
.co-card dd { margin: 0; font-weight: 600; }
.co-links { margin-top: 16px; text-align: center; }

/* Launch offer */
.promo-bar { background: linear-gradient(90deg, #E5484D, #FF8FA3); color: #fff; }
.promo-in { display: flex; align-items: center; gap: 14px 18px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; justify-content: center; text-align: center; }
.promo-in p { margin: 0; font-size: .98rem; }
.promo-in strong { font-weight: 800; }
.promo-badge { display: inline-block; background: #fff; color: #C2333A; font-weight: 800; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.promo-go { min-height: 38px; padding: 0 18px; font-size: .92rem; background: #fff; color: var(--night); }
.promo-go:hover { background: var(--paper); }
@media (max-width: 899px) { .promo-d { display: block; margin-top: 4px; font-size: .9rem; opacity: .92; } .promo-go { display: none; } }
.promo-card { max-width: 760px; margin: 0 auto 56px; text-align: center; background: linear-gradient(135deg, #E5484D, #FF8FA3); color: #fff; border-radius: var(--radius-lg); padding: 34px 26px; box-shadow: 0 24px 48px -28px rgba(229,72,77,.6); }
.promo-card h2 { color: #fff; margin-top: 14px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.promo-card p { margin: 10px auto 0; max-width: 32em; opacity: .95; text-wrap: balance; }
.promo-card .btn { margin-top: 20px; background: #fff; color: var(--night); }
.promo-note { margin: 0 0 16px; padding: 14px 16px; border-radius: 14px; background: #FFE8EC; color: #9B2C33; font-weight: 600; }
[data-promo][hidden] { display: none !important; }
@media (min-width: 900px) { .promo-in { flex-wrap: nowrap; } .promo-in p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
@media (min-width: 900px) and (max-width: 1439px) { .promo-d { display: none; } }

/* Invite friends */
.invite { border: 2px solid #FFC9D2; }
.inv-steps { display: flex; gap: 8px; align-items: center; }
.inv-dot { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--paper); color: var(--muted); border: 2px solid var(--line); }
.inv-dot.goal { border-color: #FF8FA3; }
.inv-dot.on { background: #E5484D; border-color: #E5484D; color: #fff; }
.inv-prog { margin-top: 10px; font-weight: 600; font-size: .95rem; }
.inv-link { display: flex; gap: 8px; margin-top: 14px; }
.inv-link input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; background: var(--paper); color: var(--night); }
.inv-btns { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.inv-btns .btn { flex: 1; }
.inv-tiers { display: grid; gap: 14px; max-width: 860px; margin: 0 auto; }
@media (min-width: 700px) { .inv-tiers { grid-template-columns: repeat(3, 1fr); } }
.inv-tier { background: var(--surface); border-radius: var(--radius-lg); padding: 24px 20px; text-align: center; box-shadow: 0 1px 0 var(--line), 0 20px 40px -32px rgba(27,42,61,.4); border: 2px solid transparent; }
.inv-tier.best { border-color: #FF8FA3; }
.inv-n { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #E5484D; color: #fff; font-family: var(--head); font-weight: 750; font-size: 1.4rem; }
.inv-tier p { margin-top: 12px; font-weight: 600; text-wrap: balance; }

.inst-vid{max-width:380px;margin:0 auto 40px;border-radius:var(--radius-lg);overflow:hidden;background:#141C29;box-shadow:0 18px 48px rgba(27,42,61,.18);aspect-ratio:9/16}
.inst-vid video{display:block;width:100%;height:100%}
