/* OmuBumu landing — colours and shapes follow the app (omubumu/lib/theme.dart). */

:root {
  --bg: #07071A;
  --surface: #12122A;
  --surface-2: #1B1B3D;
  --border: #33335C;
  --border-soft: rgba(185, 182, 232, .12);
  --indigo: #4F5FEE;
  --violet: #8B4FEA;
  --lavender: #B9B6E8;
  --muted: #8D89B8;
  --text: #FFFFFF;
  --danger: #FF4B77;
  --success: #3DDC97;
  --gradient: linear-gradient(90deg, var(--indigo), var(--violet));
  --gradient-diag: linear-gradient(135deg, var(--indigo), var(--violet));

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-glow: 0 10px 40px rgba(139, 79, 234, .35);
  --container: 1180px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }
button { font: inherit; color: inherit; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--indigo);
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 820px; }

.gradient-text {
  background: linear-gradient(90deg, #7D8CFF, #B47BFF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lavender);
}

.lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--lavender);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 15px;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--gradient);
  box-shadow: 0 8px 24px rgba(79, 95, 238, .35);
}
.btn-primary:hover { box-shadow: var(--shadow-glow); }
.btn-ghost {
  background: rgba(255, 255, 255, .04);
  border: 1.5px solid var(--violet);
}
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; border-radius: 12px; }
.btn-block { width: 100%; }

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.store-buttons.center { justify-content: center; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 186px;
  padding: 10px 20px 10px 16px;
  border-radius: 14px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, .22);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.store-btn svg { width: 28px; height: 28px; flex: none; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn small { font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, .78); }
.store-btn b { font-size: 19px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
a.store-btn:hover {
  transform: translateY(-2px);
  border-color: var(--lavender);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}
.store-btn.is-soon { opacity: .55; cursor: default; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(7, 7, 26, .6);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.is-scrolled {
  background: rgba(7, 7, 26, .85);
  border-bottom-color: var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}
.brand img { width: 84px; height: auto; }

.main-nav {
  display: flex;
  gap: 4px;
  margin-right: auto;
}
.main-nav a {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--lavender);
  transition: color .2s, background .2s;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .05); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: flex;
  padding: 3px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--border-soft);
}
.lang-switch a {
  padding: 5px 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  transition: color .2s, background .2s;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="true"] { color: var(--text); background: var(--gradient); }

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  cursor: pointer;
}
.menu-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 72px 0 112px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 900px;
  pointer-events: none;
  background:
    radial-gradient(40% 45% at 22% 30%, rgba(139, 79, 234, .30), transparent 70%),
    radial-gradient(35% 40% at 78% 40%, rgba(79, 95, 238, .28), transparent 70%);
  filter: blur(10px);
  /* Fade out instead of ending in a hard edge where its section clips it. */
  -webkit-mask-image: linear-gradient(180deg, #000 35%, transparent 75%);
          mask-image: linear-gradient(180deg, #000 35%, transparent 75%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 56px;
}
.hero h1 {
  display: flex;
  flex-direction: column;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -.035em;
  margin-bottom: 22px;
}
.hero .lead { max-width: 540px; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--lavender);
}
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gradient-diag) center / 100%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.4 14.2L6.4 12l1.4-1.4 2.8 2.8 5.6-5.6L17.6 9z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.4 14.2L6.4 12l1.4-1.4 2.8 2.8 5.6-5.6L17.6 9z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Phone mock-up: the app's feed card with the VS split. */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 20px 0;
}
.phone {
  position: relative;
  width: min(330px, 78vw);
  aspect-ratio: 9 / 19;
  padding: 11px;
  border-radius: 48px;
  background: linear-gradient(160deg, #2A2A52, #121230);
  box-shadow:
    0 0 0 1px rgba(185, 182, 232, .18),
    0 40px 80px rgba(0, 0, 0, .55),
    0 0 120px rgba(139, 79, 234, .25);
}
.phone::before {
  /* Dynamic island */
  content: "";
  position: absolute;
  z-index: 3;
  top: 22px;
  left: 50%;
  width: 92px;
  height: 26px;
  border-radius: 20px;
  background: #000;
  transform: translateX(-50%);
}
.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 38px;
  background: var(--surface);
}

.vs-split {
  --split: 50%;
  position: absolute;
  inset: 0;
}
.vs-pane {
  position: absolute;
  top: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
}
.vs-left {
  left: 0;
  width: var(--split);
  background-color: #3B2A7A;
  background-image: linear-gradient(160deg, #5B3FB8, #2B1F66);
}
.vs-right {
  left: var(--split);
  right: 0;
  background-color: #23307A;
  background-image: linear-gradient(200deg, #3E52D6, #1C2566);
}
.vs-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 2px;
  transform: translateX(-50%);
  background: var(--lavender);
  box-shadow: 0 0 12px 2px var(--violet);
}
.vs-badge {
  position: absolute;
  top: 50%;
  left: var(--split);
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  font-size: 17px;
  font-weight: 800;
  background: var(--bg);
  box-shadow: 0 0 0 2px var(--violet), 0 0 22px rgba(139, 79, 234, .75);
}
.vs-split.is-animated { animation: vs-swing 7s var(--ease) infinite; }
@keyframes vs-swing {
  0%, 18%, 100% { --split: 50%; }
  32%, 40% { --split: 68%; }
  58%, 66% { --split: 32%; }
  82% { --split: 50%; }
}
@property --split {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 50%;
}

.phone-top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  padding: 58px 18px 40px;
  text-align: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .45) 60%, transparent);
}
.phone-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 12px;
  font-weight: 600;
  color: #D4D4DA;
}
.phone-tabs .active {
  position: relative;
  font-weight: 800;
  color: #fff;
}
.phone-tabs .active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
}
.phone-question {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .7);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.phone-bottom {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 50px 14px 22px;
  background: linear-gradient(0deg, rgba(0, 0, 0, .8), transparent);
}
.vote-pill {
  display: flex;
  align-items: center;
  height: 46px;
  border-radius: 23px;
  border: 1.5px solid var(--violet);
  background: rgba(7, 7, 26, .55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 18px rgba(139, 79, 234, .45);
  font-size: 13px;
  font-weight: 800;
}
.vote-pill span { flex: 1; text-align: center; }
.vote-pill i { width: 1px; height: 22px; background: rgba(255, 255, 255, .25); }

.float-card {
  position: absolute;
  z-index: 4;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(18, 18, 42, .85);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
  animation: float 6s ease-in-out infinite;
}
.float-result { right: max(0px, calc(50% - 280px)); top: 22%; width: 190px; }
.float-hint {
  left: max(0px, calc(50% - 290px));
  bottom: 18%;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  animation-delay: -3s;
}
.float-hint svg { width: 22px; height: 22px; color: var(--lavender); }
.float-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.mini-bar { height: 8px; border-radius: 6px; background: rgba(79, 95, 238, .35); overflow: hidden; }
.mini-bar b { display: block; width: 62%; height: 100%; border-radius: 6px; background: var(--gradient); }
.mini-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Sections ---------- */

.section { position: relative; padding: 112px 0; }
.section-alt {
  background: linear-gradient(180deg, transparent, rgba(18, 18, 42, .7) 12%, rgba(18, 18, 42, .7) 88%, transparent);
}
.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 800;
  margin-bottom: 14px;
}
.section-head p:not(.eyebrow) { font-size: 17px; color: var(--lavender); }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border-soft);
}
.step-num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: var(--gradient-diag);
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(79, 95, 238, .35);
}
.step h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.step p { color: var(--lavender); }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  padding: 30px 28px;
  border-radius: var(--radius);
  background: rgba(27, 27, 61, .55);
  border: 1px solid var(--border-soft);
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 79, 234, .45);
  background: rgba(27, 27, 61, .85);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 16px;
  color: #C9B8FF;
  background: linear-gradient(135deg, rgba(79, 95, 238, .22), rgba(139, 79, 234, .22));
  border: 1px solid rgba(139, 79, 234, .35);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.feature p { color: var(--lavender); font-size: 15.5px; }

/* Live polls */
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 0 rgba(255, 75, 119, .6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(255, 75, 119, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 75, 119, 0); }
}
.polls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.poll-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
a.poll-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 79, 234, .5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
}
.poll-media {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  aspect-ratio: 4 / 3.4;
  background: var(--surface-2);
}
.poll-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--surface-2);
}
.poll-media .vs-badge {
  left: 50%;
  width: 44px;
  height: 44px;
  font-size: 14px;
}
.poll-media::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: var(--lavender);
  box-shadow: 0 0 10px 1px var(--violet);
}
.poll-media .vs-badge { z-index: 1; }
.poll-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  padding: 20px 22px 22px;
}
.poll-category {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--lavender);
  background: rgba(139, 79, 234, .16);
}
.poll-question {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.poll-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  font-size: 14px;
  color: var(--muted);
}
.poll-open { font-weight: 700; color: #A99CFF; }
.poll-card.skeleton {
  min-height: 380px;
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%) 0 0 / 300% 100%;
  animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer { to { background-position: -150% 0; } }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details {
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  transition: border-color .25s;
}
.faq details[open] { border-color: rgba(139, 79, 234, .45); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--lavender);
  border-bottom: 2px solid var(--lavender);
  transform: translateY(-3px) rotate(45deg);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq details p { padding: 0 24px 22px; color: var(--lavender); }

/* CTA */
.cta { padding-top: 40px; }
.cta-card {
  position: relative;
  overflow: hidden;
  padding: 72px 32px;
  border-radius: 36px;
  text-align: center;
  background:
    radial-gradient(60% 80% at 15% 0%, rgba(139, 79, 234, .45), transparent 70%),
    radial-gradient(60% 80% at 85% 100%, rgba(79, 95, 238, .45), transparent 70%),
    var(--surface);
  border: 1px solid rgba(139, 79, 234, .35);
}
.cta-logo { width: 150px; height: auto; margin: 0 auto 28px; }
.cta-card h2 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 900; margin-bottom: 14px; }
.cta-card p { max-width: 520px; margin: 0 auto; font-size: 18px; color: var(--lavender); }

/* Footer */
.site-footer {
  margin-top: 40px;
  padding: 56px 0 32px;
  border-top: 1px solid var(--border-soft);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.footer-brand p { margin-top: 12px; color: var(--muted); font-size: 15px; }
.footer-brand img { width: 84px; height: auto; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--lavender);
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Contact page ---------- */

.contact-section { overflow: hidden; padding-top: 80px; }
.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.contact-intro h1 {
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 900;
  margin-bottom: 18px;
}
.contact-facts {
  display: grid;
  gap: 14px;
  margin: 40px 0 0;
}
.contact-facts div {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border-soft);
}
.contact-facts dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-facts dd { margin: 4px 0 0; font-size: 17px; font-weight: 700; }
.contact-facts a { color: #A99CFF; }

.contact-card {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: rgba(18, 18, 42, .85);
  border: 1px solid rgba(139, 79, 234, .3);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.contact-form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field > label { font-size: 14px; font-weight: 700; color: var(--lavender); }
.field input[type="text"],
.field input[type="email"],
.field textarea,
.field select {
  width: 100%;
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(18, 18, 42, .78);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field ::placeholder { color: var(--muted); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(139, 79, 234, .25);
}
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--lavender);
  border-bottom: 2px solid var(--lavender);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field-check label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  font-weight: 500;
  color: var(--lavender);
  cursor: pointer;
}
.field-check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--violet);
}
.has-error input,
.has-error textarea { border-color: var(--danger); }
.field-error { font-size: 13px; font-weight: 600; color: var(--danger); }
.form-alert {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: #FFD1DC;
  background: rgba(255, 75, 119, .12);
  border: 1px solid rgba(255, 75, 119, .4);
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form button[disabled] { opacity: .7; cursor: progress; }

.contact-success { padding: 24px 8px; text-align: center; }
.success-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  color: #fff;
  background: var(--gradient-diag);
  box-shadow: var(--shadow-glow);
}
.success-icon svg { width: 34px; height: 34px; }
.contact-success h2 { font-size: 26px; font-weight: 800; margin-bottom: 10px; }
.contact-success p { color: var(--lavender); margin-bottom: 28px; }

/* ---------- Text pages (about, privacy, terms) ---------- */

.doc-hero {
  position: relative;
  padding: 72px 0 48px;
  text-align: center;
}
.doc-hero-inner { position: relative; max-width: 820px; }
.doc-hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 900;
  margin-bottom: 18px;
}
.doc-hero .lead { max-width: 680px; margin: 0 auto; }
.doc-hero .lead a, .doc-section a { color: #A99CFF; text-decoration: underline; text-underline-offset: 3px; }

.doc-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding-bottom: 96px;
}
.doc-layout.no-toc { grid-template-columns: minmax(0, 1fr); max-width: 860px; }

.doc-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.doc-toc details {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border-soft);
}
.doc-toc summary {
  padding: 18px 20px 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  list-style: none;
  pointer-events: none;
}
.doc-toc summary::-webkit-details-marker { display: none; }
.doc-toc ol {
  margin: 0;
  padding: 6px 10px 14px;
  list-style: none;
  counter-reset: toc;
}
.doc-toc li { counter-increment: toc; }
.doc-toc a {
  display: flex;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--lavender);
  transition: background .2s, color .2s;
}
.doc-toc a::before {
  content: counter(toc);
  flex: none;
  min-width: 18px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.doc-toc a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.doc-toc a.is-active { color: var(--text); background: rgba(139, 79, 234, .18); }
.doc-toc a.is-active::before { color: #C9B8FF; }

.doc-body {
  padding: 8px 48px 40px;
  border-radius: var(--radius-lg);
  background: rgba(18, 18, 42, .7);
  border: 1px solid var(--border-soft);
}
.doc-section { padding-top: 36px; }
.doc-section + .doc-section { border-top: 1px solid var(--border-soft); margin-top: 4px; }
.doc-section h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 23px;
  font-weight: 800;
}
.doc-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  background: var(--gradient-diag);
}
.doc-section p,
.doc-section li {
  font-size: 16.5px;
  line-height: 1.75;
  color: #D6D4F2;
}
.doc-section p + p { margin-top: 14px; }
.doc-section ul {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
}
.doc-section li {
  position: relative;
  padding-left: 28px;
}
.doc-section li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .72em;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--gradient-diag);
  transform: rotate(45deg);
}
.doc-section strong { color: var(--text); }
.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
}
.doc-actions svg { display: inline-block; }

@media (max-width: 1024px) {
  .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .doc-toc { position: static; }
  .doc-toc summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    pointer-events: auto;
    cursor: pointer;
  }
  .doc-toc summary::after {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--lavender);
    border-bottom: 2px solid var(--lavender);
    transform: translateY(-3px) rotate(45deg);
    transition: transform .25s var(--ease);
  }
  .doc-toc details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
  .doc-toc ol { padding-top: 0; }
}

@media (max-width: 640px) {
  .doc-hero { padding: 48px 0 32px; }
  .doc-body { padding: 0 20px 28px; border-radius: var(--radius); }
  .doc-section { padding-top: 28px; }
  .doc-section h2 { font-size: 20px; gap: 12px; }
  .doc-num { width: 30px; height: 30px; font-size: 14px; }
  .doc-section p, .doc-section li { font-size: 16px; }
  .doc-layout { padding-bottom: 64px; }
}

@media print {
  :root { --bg: #fff; }
  body { background: #fff; color: #111; }
  .site-header, .site-footer, .doc-toc, .doc-actions, .hero-glow, .skip-link, .cta { display: none !important; }
  .doc-hero { padding: 0 0 16px; text-align: left; }
  .doc-hero .lead, .doc-section p, .doc-section li { color: #222; }
  .eyebrow { color: #555; }
  .doc-layout { display: block; padding: 0; }
  .doc-body { padding: 0; background: none; border: 0; }
  .doc-section { break-inside: avoid; }
  .doc-section + .doc-section { border-color: #ddd; }
  .doc-num { color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  a { color: #111 !important; }
}

/* ---------- Shared poll (/q/...) ---------- */

.share-section {
  position: relative;
  padding: 56px 0 96px;
  text-align: center;
}
.share-inner { position: relative; max-width: 620px; }
.share-section h1 {
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 900;
  margin-bottom: 28px;
  overflow-wrap: anywhere;
}
.share-vs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  aspect-ratio: 4 / 3.3;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px var(--border-soft);
}
.share-vs img { width: 100%; height: 100%; object-fit: cover; }
.share-vs::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: var(--lavender);
  box-shadow: 0 0 12px 2px var(--violet);
}
.share-vs .vs-badge { z-index: 1; left: 50%; }
.share-letter {
  position: absolute;
  top: 14px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
  background: rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .5);
}
.share-letter.left { left: 14px; }
.share-letter.right { right: 14px; }
.share-votes { font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.share-message { font-size: 17px; color: var(--lavender); max-width: 460px; margin: 0 auto; }
.share-open { width: 100%; max-width: 420px; min-height: 58px; margin-top: 28px; font-size: 17px; }
.share-stores { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border-soft); }
.share-stores p { font-size: 15px; font-weight: 600; color: var(--muted); }
.share-stores .store-buttons { margin-top: 16px; }

@media (max-width: 640px) {
  .share-section { padding: 32px 0 64px; }
  .share-vs { border-radius: var(--radius); }
}

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero .lead { margin: 0 auto; }
  .hero h1 { align-items: center; }
  .store-buttons { justify-content: center; }
  .hero-points { justify-content: center; }
  .features, .polls { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    gap: 2px;
    padding: 12px 16px 20px;
    background: rgba(7, 7, 26, .97);
    border-bottom: 1px solid var(--border-soft);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, transform .2s var(--ease), visibility .2s;
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: 14px 12px; font-size: 17px; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  /* The nav became a fixed drop-down, so nothing pushes these right anymore. */
  .header-actions { margin-left: auto; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .container { padding: 0 16px; }
  .header-inner { gap: 12px; }
  .brand img { width: 70px; }
  .lang-switch a { padding: 5px 8px; }
  .hero { padding: 40px 0 72px; }
  .lead { font-size: 17px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .features, .polls { grid-template-columns: 1fr; }
  .store-btn { min-width: 0; flex: 1 1 150px; justify-content: center; padding: 10px 14px; }
  .store-btn b { font-size: 17px; }
  /* No room beside the phone — it would cover the question. */
  .float-result { display: none; }
  .float-hint { left: 0; bottom: 12%; }
  .cta-card { padding: 52px 20px; border-radius: 28px; }
  .contact-card { padding: 24px 18px; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .vs-split.is-animated { animation: none; }
}
