/* ==========================================================================
   Kinda Close — shared stylesheet
   Mobile-first. Light + dark (prefers-color-scheme). Respects reduced motion.
   ========================================================================== */

:root {
  --rose: #FF7A99;
  --rose-2: #E0507A;
  --deep: #C2457A;
  --plum: #6B2E8C;
  --grad: linear-gradient(135deg, #FF7A99 0%, #C2457A 55%, #6B2E8C 100%);
  --grad-soft: linear-gradient(135deg, rgba(255,122,153,.16) 0%, rgba(194,69,122,.12) 55%, rgba(107,46,140,.14) 100%);

  --bg: #FFF8F3;
  --bg-2: #FFEFE8;
  --surface: #FFFFFF;
  --surface-2: #FFF2EE;
  --text: #2A1630;
  --text-2: #5E4A63;
  --muted: #7F6C84;
  --border: rgba(107, 46, 140, .12);
  --border-strong: rgba(107, 46, 140, .22);
  --accent: #D9446F;          /* AA on light bg for text */
  --accent-strong: #C2457A;
  --on-accent: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(42,22,48,.06), 0 2px 8px rgba(42,22,48,.05);
  --shadow: 0 10px 30px -10px rgba(107,46,140,.25), 0 4px 12px rgba(42,22,48,.06);
  --shadow-lg: 0 40px 80px -30px rgba(107,46,140,.45), 0 18px 36px -18px rgba(194,69,122,.35);
  --nav-bg: rgba(255, 248, 243, .78);
  --focus: 0 0 0 3px rgba(224, 80, 122, .45);

  --font-display: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --wrap: 1160px;
  --gutter: 20px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14101A;
    --bg-2: #1A1422;
    --surface: #221B2A;
    --surface-2: #2A2233;
    --text: #F7EEF4;
    --text-2: #D6C6D6;
    --muted: #AE9DB2;
    --border: rgba(255, 255, 255, .09);
    --border-strong: rgba(255, 255, 255, .16);
    --accent: #FF8FAB;
    --accent-strong: #FF7A99;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow: 0 10px 30px -10px rgba(0,0,0,.6), 0 4px 12px rgba(0,0,0,.3);
    --shadow-lg: 0 40px 80px -30px rgba(0,0,0,.8), 0 18px 40px -18px rgba(194,69,122,.35);
    --nav-bg: rgba(20, 16, 26, .74);
    --grad-soft: linear-gradient(135deg, rgba(255,122,153,.14) 0%, rgba(194,69,122,.10) 55%, rgba(107,46,140,.20) 100%);
  }
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; font-weight: 900; }
h1 { font-size: clamp(2.4rem, 8.5vw, 4.4rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.9rem, 5.6vw, 3rem); letter-spacing: -.02em; }
h3 { font-size: clamp(1.2rem, 3vw, 1.45rem); font-weight: 800; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
::selection { background: rgba(255,122,153,.35); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--surface); color: var(--text); padding: 10px 16px; border-radius: 12px; box-shadow: var(--shadow); transition: top .2s; }
.skip-link:focus { top: 12px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
@media (prefers-color-scheme: dark) {
  .grad-text { background: linear-gradient(135deg, #FF9AB2 0%, #FF7A99 40%, #C77DE0 100%); -webkit-background-clip: text; background-clip: text; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 800; font-size: .82rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--grad); }
.lead { font-size: clamp(1.06rem, 2.4vw, 1.25rem); color: var(--text-2); line-height: 1.6; }
.muted { color: var(--muted); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--font-display); font-weight: 900; font-size: 1.18rem; letter-spacing: -.01em; }
.logo:hover { color: var(--text); }
.logo-mark {
  width: 36px; height: 36px; border-radius: 11px; background: var(--grad);
  display: grid; place-items: center; font-size: 19px; line-height: 1;
  box-shadow: 0 6px 14px -6px rgba(194,69,122,.7), inset 0 1px 0 rgba(255,255,255,.35);
  flex: none;
}

/* ---------- Buttons ---------- */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px; border-radius: 999px; border: 0;
  font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; letter-spacing: .005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, box-shadow .2s ease, background-color .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 12px 26px -12px rgba(194,69,122,.9), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(194,69,122,.95), inset 0 1px 0 rgba(255,255,255,.28); }
.btn-ghost { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.btn-ghost:hover { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn-sm { --h: 40px; padding: 0 18px; font-size: .95rem; }
.btn-lg { --h: 58px; padding: 0 30px; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* "Coming soon" App Store style badge (own design, not Apple's artwork) */
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 18px 0 14px; border-radius: 14px;
  background: #0F0B12; color: #fff; text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
  font-family: var(--font-body);
}
.store-badge:hover { color: #fff; }
.store-badge svg { width: 24px; height: 24px; flex: none; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge small { font-size: .66rem; letter-spacing: .04em; opacity: .78; text-transform: uppercase; font-weight: 600; }
.store-badge b { font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; }
@media (prefers-color-scheme: dark) {
  .store-badge { background: #fff; color: #0F0B12; box-shadow: none; }
  .store-badge:hover { color: #0F0B12; }
}

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.nav.scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px -18px rgba(42,22,48,.4); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.nav-links { display: none; gap: 4px; align-items: center; }
.nav-links a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 10px; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
@media (min-width: 880px) { .nav-links { display: flex; } }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 76px 0; }
.section-tight { padding: 56px 0; }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head .lead { margin: 0; }
@media (min-width: 768px) { .section { padding: 112px 0; } .section-head { margin-bottom: 64px; } }

/* ---------- Hero ---------- */
.hero { padding: 36px 0 64px; overflow: hidden; isolation: isolate; }
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none;
}
.hero::before { width: 520px; height: 520px; background: radial-gradient(circle, rgba(255,122,153,.55), transparent 65%); top: -140px; right: -160px; }
.hero::after { width: 460px; height: 460px; background: radial-gradient(circle, rgba(107,46,140,.35), transparent 65%); bottom: -160px; left: -180px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero-copy { text-align: center; }
.hero-copy .lead { max-width: 540px; margin: 18px auto 30px; }
.hero-copy .cta-row { justify-content: center; }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note span::before { content: "✓"; color: var(--accent); font-weight: 800; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; margin-bottom: 22px;
  border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--border);
  font-size: .88rem; font-weight: 600; color: var(--text-2);
}
.pill b { background: var(--grad); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: .74rem; padding: 3px 9px; border-radius: 999px; letter-spacing: .03em; }
.hero-visual { position: relative; display: flex; justify-content: center; }
@media (min-width: 960px) {
  .hero { padding: 56px 0 100px; }
  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 40px; }
  .hero-copy { text-align: left; }
  .hero-copy .lead { margin-left: 0; }
  .hero-copy .cta-row, .hero-note { justify-content: flex-start; }
}

/* floating hearts */
.hearts { position: absolute; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.hearts span {
  position: absolute; bottom: -40px; font-size: var(--s, 22px); opacity: 0;
  animation: floatUp var(--d, 12s) linear var(--delay, 0s) infinite;
  filter: saturate(1.1);
}
@keyframes floatUp {
  0% { transform: translate3d(0, 0, 0) rotate(-8deg) scale(.8); opacity: 0; }
  10% { opacity: .75; }
  50% { transform: translate3d(var(--x, 20px), -50vh, 0) rotate(8deg) scale(1); }
  90% { opacity: .5; }
  100% { transform: translate3d(calc(var(--x, 20px) * -1), -100vh, 0) rotate(-6deg) scale(1.05); opacity: 0; }
}

/* ---------- Phone mockup (pure CSS) ---------- */
.phone {
  --w: 280px;
  position: relative; width: var(--w); aspect-ratio: 1290 / 2796;
  border-radius: calc(var(--w) * .165);
  padding: calc(var(--w) * .035);
  background: linear-gradient(145deg, #3A3140, #19141D 40%, #2B2330);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255,255,255,.12), inset 0 0 0 4px #0C090E;
  flex: none;
}
.phone::before { /* side buttons */
  content: ""; position: absolute; right: -2px; top: 26%; width: 3px; height: 13%; border-radius: 0 3px 3px 0; background: #2B2330;
}
.phone::after {
  content: ""; position: absolute; left: -2px; top: 20%; width: 3px; height: 7%; border-radius: 3px 0 0 3px; background: #2B2330;
  box-shadow: 0 calc(var(--w) * .16) 0 #2B2330;
}
.screen {
  --g: var(--grad);
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: calc(var(--w) * .13);
  background: var(--g);
  isolation: isolate;
}
.screen .island { position: absolute; z-index: 3; top: 2.4%; left: 50%; transform: translateX(-50%); width: 31%; height: 3.6%; border-radius: 999px; background: #000; }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; background: transparent; }
.screen img[hidden] { display: none; }
/* Fallback artwork (shown until the real screenshot exists) */
.screen .fb {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6%;
  padding: 18% 9% 12%; color: #fff; text-align: center;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255,255,255,.28), transparent 60%),
    radial-gradient(80% 50% at 100% 100%, rgba(107,46,140,.45), transparent 70%);
}
.screen .fb-emoji {
  font-size: calc(var(--w) * .2); line-height: 1;
  width: calc(var(--w) * .36); height: calc(var(--w) * .36); display: grid; place-items: center;
  border-radius: 50%; background: rgba(255,255,255,.2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 0 20px 40px -20px rgba(0,0,0,.4);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.screen .fb-label { font-family: var(--font-display); font-weight: 900; font-size: calc(var(--w) * .074); line-height: 1.15; text-shadow: 0 2px 12px rgba(0,0,0,.18); }
.screen .fb-sub { font-size: calc(var(--w) * .046); opacity: .9; line-height: 1.35; margin-top: -3%; }
.screen .fb-cards { width: 100%; display: grid; gap: calc(var(--w) * .03); margin-top: 2%; }
.screen .fb-cards i {
  display: block; height: calc(var(--w) * .1); border-radius: calc(var(--w) * .045);
  background: rgba(255,255,255,.2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.screen .fb-cards i:nth-child(2) { width: 82%; justify-self: center; opacity: .8; }
.screen .fb-cards i:nth-child(3) { width: 64%; justify-self: center; opacity: .6; }
.screen .fb-status { position: absolute; top: 2.6%; left: 9%; right: 9%; display: flex; justify-content: space-between; font-size: calc(var(--w) * .043); font-weight: 700; opacity: .95; }

/* Fallback colour moods per screen */
.screen[data-screen="question"] { --g: linear-gradient(160deg, #FF8FAB 0%, #E0507A 50%, #8B3A9E 100%); }
.screen[data-screen="duel"] { --g: linear-gradient(160deg, #FFB199 0%, #FF7A99 45%, #C2457A 100%); }
.screen[data-screen="today"] { --g: linear-gradient(160deg, #FF9DB5 0%, #C2457A 55%, #4E2468 100%); }
.screen[data-screen="plant"] { --g: linear-gradient(160deg, #9EDB9A 0%, #4FAE8A 45%, #2F6E73 100%); }
.screen[data-screen="together"] { --g: linear-gradient(160deg, #A98BFF 0%, #8C4FB8 45%, #6B2E8C 100%); }
.screen[data-screen="us"] { --g: var(--grad); }
.screen[data-screen="connected"] { --g: linear-gradient(160deg, #FF7A99 0%, #E0507A 40%, #6B2E8C 100%); }
.screen[data-screen="widget-home"] { --g: linear-gradient(170deg, #FBD3C5 0%, #F59AB4 45%, #9D5BC2 100%); }
.screen[data-screen="widget-lock"] { --g: linear-gradient(180deg, #2B1B3A 0%, #4A2464 50%, #8C3A78 100%); }

.phone-sm { --w: 230px; }
.phone-lg { --w: 290px; }
@media (min-width: 400px) { .phone-lg { --w: 300px; } }
@media (min-width: 960px) { .phone-lg { --w: 320px; } }

/* hero phone composition */
.hero-stage { position: relative; padding: 10px 30px 20px; }
.hero-stage .phone { animation: bob 7s ease-in-out infinite; }
.float-card {
  position: absolute; z-index: 4;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); color: var(--text);
  padding: 10px 14px; border-radius: 18px;
  box-shadow: var(--shadow), inset 0 0 0 1px var(--border);
  font-size: .86rem; font-weight: 600; line-height: 1.25; white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.float-card .fc-ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-soft); font-size: 18px; flex: none; }
.float-card small { display: block; color: var(--muted); font-weight: 500; font-size: .76rem; }
.fc-1 { top: 16%; left: -6px; animation-delay: -2s; }
.fc-2 { bottom: 18%; right: -6px; animation-delay: -4s; }
@media (max-width: 380px) { .fc-1 { left: -14px; } .fc-2 { right: -14px; } .float-card { font-size: .8rem; padding: 8px 11px; } }
@media (min-width: 960px) { .fc-1 { left: -40px; } .fc-2 { right: -30px; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Trust strip ---------- */
.strip { padding: 22px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--grad-soft); }
.strip-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 0; padding: 0; list-style: none; font-weight: 600; color: var(--text-2); font-size: .95rem; }
.strip-list li { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Feature rows ---------- */
.feature { display: grid; gap: 40px; align-items: center; }
.feature + .feature { margin-top: 88px; }
.feature-copy { max-width: 540px; }
.feature-visual { display: flex; justify-content: center; position: relative; }
.feature-visual::before {
  content: ""; position: absolute; z-index: -1; width: min(420px, 92%); aspect-ratio: 1; border-radius: 50%;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,122,153,.30), rgba(107,46,140,.12) 55%, transparent 70%);
}
.feature-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.feature-list li > span:first-child {
  flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  background: var(--grad-soft); box-shadow: inset 0 0 0 1px var(--border); font-size: 15px; margin-top: 1px;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); font-weight: 600; font-size: .9rem; color: var(--text-2); }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature + .feature { margin-top: 128px; }
  .feature.reverse .feature-visual { order: -1; }
  .feature-copy { justify-self: start; }
  .feature.reverse .feature-copy { justify-self: end; }
}

/* ---------- Mini feature grid ---------- */
.grid-cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid-cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid-cards { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.card {
  background: var(--surface); border-radius: var(--radius-lg); padding: 26px;
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--border);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow), inset 0 0 0 1px var(--border); }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--text-2); margin: 0; font-size: .97rem; }
.card-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: var(--grad-soft); box-shadow: inset 0 0 0 1px var(--border); margin-bottom: 18px; }
.nudge-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.nudge-row span { font-size: .82rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }

/* ---------- How it works ---------- */
.steps { display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.step { position: relative; padding: 30px 26px 26px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--border); }
.step-num {
  width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-family: var(--font-display); font-weight: 900; font-size: 1.35rem;
  box-shadow: 0 10px 20px -10px rgba(194,69,122,.9); margin-bottom: 18px;
}
.step p { color: var(--text-2); margin: 0; }
.code-demo { display: flex; gap: 6px; margin-top: 16px; }
.code-demo span {
  width: 34px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-strong);
  font-family: var(--font-display); font-weight: 900; font-size: 1.1rem; color: var(--accent);
}
.how-wrap { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1080px) { .how-wrap { grid-template-columns: 1fr auto; gap: 56px; } .how-wrap .steps { grid-template-columns: 1fr; } }

/* ---------- Widgets ---------- */
.widgets-phones { display: flex; justify-content: center; }
.widgets { background: var(--bg-2); overflow: hidden; }
.widget-types { display: grid; gap: 12px; margin-top: 56px; }
@media (min-width: 700px) { .widget-types { grid-template-columns: repeat(3, 1fr); } }
.widget-type { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.widget-type .card-ico { margin: 0; width: 44px; height: 44px; font-size: 22px; border-radius: 14px; flex: none; }
.widget-type b { font-family: var(--font-display); font-weight: 800; display: block; }
.widget-type span { color: var(--muted); font-size: .9rem; }

/* ---------- Pricing ---------- */
.billing-toggle {
  display: inline-flex; padding: 5px; border-radius: 999px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border); margin: 0 auto 34px; position: relative;
}
.billing-toggle button {
  position: relative; z-index: 1; border: 0; background: transparent; color: var(--text-2);
  font: 800 .95rem var(--font-display); padding: 10px 18px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.billing-toggle button[aria-pressed="true"] { background: var(--grad); color: #fff; box-shadow: 0 8px 18px -10px rgba(194,69,122,.9); }
.billing-toggle .save { font-size: .7rem; padding: 2px 7px; border-radius: 999px; background: rgba(255,122,153,.18); color: var(--accent); }
.billing-toggle button[aria-pressed="true"] .save { background: rgba(255,255,255,.25); color: #fff; }
.pricing { display: grid; gap: 20px; max-width: 900px; margin: 0 auto; }
@media (min-width: 820px) { .pricing { grid-template-columns: 1fr 1.08fr; align-items: stretch; } }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 26px 28px; border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--border); }
.plan h3 { font-size: 1.4rem; margin-bottom: 4px; }
.plan-desc { color: var(--muted); margin: 0 0 18px; font-size: .95rem; }
.price { display: flex; align-items: baseline; gap: 6px; font-family: var(--font-display); margin-bottom: 4px; }
.price b { font-size: 2.8rem; font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.price span { color: var(--muted); font-weight: 700; }
.price-note { color: var(--muted); font-size: .88rem; min-height: 1.5em; margin: 0 0 22px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 11px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: .97rem; }
.plan li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: var(--grad-soft) center/12px no-repeat; box-shadow: inset 0 0 0 1px var(--border-strong);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3l2.2 2.2 4.8-5' fill='none' stroke='%23E0507A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), var(--grad-soft);
}
.plan-premium {
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box;
  border: 2px solid transparent; box-shadow: var(--shadow-lg);
}
.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff; font: 800 .8rem var(--font-display); letter-spacing: .03em;
  padding: 6px 14px; border-radius: 999px; white-space: nowrap; box-shadow: 0 10px 20px -10px rgba(194,69,122,.9);
}
.both-callout {
  display: flex; gap: 12px; align-items: center; padding: 14px 16px; margin: 0 0 20px; border-radius: 18px;
  background: var(--grad-soft); box-shadow: inset 0 0 0 1px var(--border);
}
.both-callout .avatars { display: flex; flex: none; }
.both-callout .avatars i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 17px; background: var(--surface); box-shadow: 0 0 0 2px var(--surface), inset 0 0 0 1px var(--border); }
.both-callout .avatars i + i { margin-left: -10px; }
.both-callout p { margin: 0; font-size: .92rem; color: var(--text-2); line-height: 1.4; }
.both-callout b { color: var(--text); }
.pricing-foot { text-align: center; color: var(--muted); font-size: .88rem; margin: 26px auto 0; max-width: 640px; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; gap: 18px; }
@media (min-width: 760px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { margin: 0; padding: 26px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--border); display: flex; flex-direction: column; gap: 18px; }
.quote blockquote { margin: 0; font-size: 1.04rem; line-height: 1.55; color: var(--text); }
.quote .stars { color: #F5A524; letter-spacing: 2px; font-size: .95rem; }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-size: 19px; flex: none; }
.quote figcaption b { display: block; font-family: var(--font-display); font-weight: 800; }
.quote figcaption span { color: var(--muted); font-size: .88rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-sm), inset 0 0 0 1.5px var(--border-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative;
  font-family: var(--font-display); font-weight: 800; font-size: 1.06rem; line-height: 1.35;
  border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%;
  background: var(--surface-2) center/12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1.5v9M1.5 6h9' stroke='%23E0507A' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 20px; color: var(--text-2); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Final CTA ---------- */
.final-cta { padding: 40px 0 96px; }
.final-card {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-xl); padding: 56px 24px; text-align: center; color: #fff;
  background: var(--grad); box-shadow: var(--shadow-lg);
}
.final-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 80% at 15% 0%, rgba(255,255,255,.28), transparent 60%), radial-gradient(50% 70% at 100% 100%, rgba(40,10,60,.35), transparent 70%);
}
.final-card h2 { color: #fff; margin-bottom: 12px; }
.final-card p { color: rgba(255,255,255,.9); max-width: 520px; margin: 0 auto 28px; font-size: 1.1rem; }
.final-card .cta-row { justify-content: center; }
.final-card .btn-primary { background: #fff; color: #A8305F; box-shadow: 0 16px 30px -14px rgba(0,0,0,.45); }
.final-card .btn-primary:hover { color: #8C2550; }
.final-card .store-badge { background: rgba(0,0,0,.28); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.final-logo { width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 24px; display: grid; place-items: center; font-size: 40px; background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
@media (min-width: 768px) { .final-card { padding: 80px 40px; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 48px 0 40px; font-size: .95rem; color: var(--muted); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text); margin-bottom: 12px; font-weight: 800; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: var(--text-2); text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer-tag { margin: 12px 0 0; max-width: 300px; }
.footer-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: .88rem; }

/* ---------- Document pages (legal / support) ---------- */
.doc-hero { padding: 48px 0 28px; text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.doc-hero::before { content: ""; position: absolute; z-index: -1; inset: -40% -10% auto; height: 140%; background: radial-gradient(50% 50% at 50% 30%, rgba(255,122,153,.22), transparent 70%); }
.doc-hero h1 { font-size: clamp(2.1rem, 7vw, 3.4rem); }
.doc-hero .lead { max-width: 620px; margin: 0 auto; }
.doc-meta { display: inline-block; margin-top: 16px; font-size: .88rem; color: var(--muted); background: var(--surface); padding: 6px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--border); }
.doc-layout { display: grid; gap: 32px; padding-bottom: 88px; }
@media (min-width: 1000px) { .doc-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; } }
.toc { display: none; }
@media (min-width: 1000px) {
  .toc { display: block; position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; padding: 18px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); font-size: .9rem; }
  .toc b { display: block; font-family: var(--font-display); margin-bottom: 8px; }
  .toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--muted); }
  .toc a { color: var(--text-2); text-decoration: none; }
  .toc a:hover { color: var(--accent); }
}
.prose { max-width: 760px; font-size: 1.02rem; color: var(--text-2); min-width: 0; }
.prose h2 { font-size: clamp(1.35rem, 3.6vw, 1.7rem); color: var(--text); margin: 2.2em 0 .6em; padding-top: .2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.12rem; color: var(--text); margin: 1.6em 0 .5em; }
.prose strong { color: var(--text); }
.prose li { margin-bottom: .45em; }
.prose .box { padding: 18px 20px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); margin: 0 0 1.2em; }
.prose .box p:last-child { margin-bottom: 0; }
.prose .callout { padding: 18px 20px; border-radius: var(--radius); background: var(--grad-soft); box-shadow: inset 0 0 0 1px var(--border); margin: 0 0 1.4em; color: var(--text); }
.prose .callout p:last-child, .prose .callout ul:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--border); background: var(--surface); -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 560px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; vertical-align: top; border-bottom: 1px solid var(--border); }
.prose th { color: var(--text); font-family: var(--font-display); font-weight: 800; background: var(--surface-2); }
.prose tr:last-child td { border-bottom: 0; }
.placeholder { background: rgba(255, 196, 0, .2); color: var(--text); padding: 0 4px; border-radius: 4px; font-family: ui-monospace, Menlo, monospace; font-size: .92em; }

/* ---------- Support page ---------- */
.support-cards { display: grid; gap: 16px; margin-bottom: 56px; }
@media (min-width: 720px) { .support-cards { grid-template-columns: repeat(3, 1fr); } }
.support-cards .card { text-decoration: none; color: inherit; display: block; }
.support-cards .card h3 { color: var(--text); }
.contact-card { display: grid; gap: 18px; align-items: center; padding: 30px; border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--border); margin-top: 48px; }
@media (min-width: 720px) { .contact-card { grid-template-columns: 1fr auto; } }
.contact-card h3 { margin-bottom: 4px; }
.contact-card p { margin: 0; color: var(--text-2); }
.steps-list { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 10px; margin: 0 0 1.2em; }
.steps-list li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.steps-list li::before { content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; background: var(--grad); color: #fff; font: 900 .85rem var(--font-display); margin-top: 1px; }
kbd, .path { font-family: var(--font-display); font-weight: 800; font-size: .92em; padding: 2px 8px; border-radius: 8px; background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); white-space: nowrap; }

/* ---------- Join + 404 ---------- */
.center-page { min-height: calc(100vh - 68px); min-height: calc(100svh - 68px); display: flex; align-items: center; padding: 40px 0 72px; position: relative; overflow: hidden; isolation: isolate; }
.center-page::before { content: ""; position: absolute; z-index: -1; width: 700px; height: 700px; left: 50%; top: 40%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255,122,153,.28), rgba(107,46,140,.12) 50%, transparent 70%); }
.join-card { width: 100%; max-width: 520px; margin: 0 auto; text-align: center; padding: 40px 22px 32px; border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--border); }
@media (min-width: 480px) { .join-card { padding: 48px 40px 36px; } }
.join-card h1 { font-size: clamp(1.8rem, 6.5vw, 2.5rem); margin-bottom: 10px; }
.join-card .lead { font-size: 1.04rem; margin-bottom: 26px; }
.big-logo { width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 26px; background: var(--grad); display: grid; place-items: center; font-size: 44px; box-shadow: 0 20px 40px -18px rgba(194,69,122,.9), inset 0 1px 0 rgba(255,255,255,.35); animation: beat 2.4s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.07); } 24% { transform: scale(1); } 36% { transform: scale(1.05); } 48% { transform: scale(1); } }
.code-boxes { display: flex; justify-content: center; gap: 6px; margin: 0 0 14px; }
@media (min-width: 400px) { .code-boxes { gap: 8px; } }
.code-boxes span {
  width: 44px; height: 58px; display: grid; place-items: center; border-radius: 14px;
  background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--border-strong);
  font-family: var(--font-display); font-weight: 900; font-size: 1.7rem; color: var(--text);
}
@media (max-width: 370px) { .code-boxes span { width: 38px; height: 52px; font-size: 1.45rem; } }
@media (min-width: 480px) { .code-boxes span { width: 54px; height: 66px; font-size: 2rem; } }
.code-boxes span:nth-child(odd) { color: var(--accent); }
.copy-btn { margin-bottom: 26px; }
.copy-btn.copied { box-shadow: inset 0 0 0 1.5px #3BAA7A; color: #2E9468; }
@media (prefers-color-scheme: dark) { .copy-btn.copied { color: #6FD6A6; box-shadow: inset 0 0 0 1.5px #6FD6A6; } }
.join-actions { display: grid; gap: 12px; }
.join-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 22px 0 18px; }
.join-divider::before, .join-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.join-help { margin: 22px 0 0; font-size: .9rem; color: var(--muted); }
.code-form { display: flex; gap: 8px; margin: 0 0 8px; }
.code-form input {
  flex: 1; min-width: 0; height: 52px; padding: 0 16px; border-radius: 16px; border: 0; outline: 0;
  background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--border-strong);
  font: 900 1.25rem var(--font-display); letter-spacing: .3em; text-transform: uppercase; text-align: center;
}
.code-form input::placeholder { color: var(--muted); letter-spacing: .3em; opacity: .7; }
.code-form input:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.form-error { color: var(--accent); font-size: .88rem; min-height: 1.4em; margin: 0 0 8px; }
.err-code { font-family: var(--font-display); font-weight: 900; font-size: clamp(5rem, 24vw, 9rem); line-height: 1; margin-bottom: 8px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: #241A2B; color: #fff; padding: 12px 18px; border-radius: 16px; font-weight: 600; font-size: .95rem;
  box-shadow: 0 20px 40px -16px rgba(0,0,0,.5); transition: opacity .25s, transform .25s; max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-color-scheme: dark) { .toast { background: #fff; color: #241A2B; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--rd, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hearts { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Additions ---------- */
.feature-copy h3 { font-size: clamp(1.6rem, 4.4vw, 2.3rem); font-weight: 900; letter-spacing: -.015em; }
.store-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hero-copy .store-badges { justify-content: center; }
.final-card .store-badges, .join-card .store-badges, .center-page .store-badges { justify-content: center; }
@media (min-width: 960px) { .hero-copy .store-badges { justify-content: flex-start; } }
.screen img { color: transparent; font-size: 0; }
.steps-plain { list-style: none; padding: 0; margin: 0; }

/* ---------- Mobile sizing for mockups ---------- */
.feature-visual .phone { --w: 230px; }
.hero-stage .phone-lg { --w: 260px; }
@media (min-width: 400px) { .hero-stage .phone-lg { --w: 280px; } }
@media (min-width: 600px) { .feature-visual .phone { --w: 260px; } }
@media (min-width: 960px) { .feature-visual .phone { --w: 290px; } .hero-stage .phone-lg { --w: 320px; } }
.how-wrap .phone-sm { --w: 210px; }
@media (max-width: 699px) { .how-wrap > .feature-visual { display: none; } }
.widgets-phones { flex-wrap: nowrap; gap: 14px; }
.widgets-phones .phone { --w: min(150px, calc(50vw - 32px)); }
.widgets-phones .phone:nth-child(2) { transform: translateY(24px); }
@media (min-width: 560px) { .widgets-phones .phone { --w: 210px; } .widgets-phones { gap: 28px; } }
@media (min-width: 900px) { .widgets-phones .phone { --w: 250px; } }
@media (max-width: 559px) { .widgets-phones .screen .fb-label { font-size: 13px; } .widgets-phones .screen .fb-sub { font-size: 9.5px; } }
.store-badges .store-badge { flex: 0 1 172px; justify-content: flex-start; padding: 0 14px 0 12px; }
@media (max-width: 380px) { .store-badges .store-badge { flex-basis: 150px; gap: 8px; } .store-badge b { font-size: .95rem; } }
@media (min-width: 1080px) {
  .how-wrap { grid-template-columns: minmax(0, 1fr) auto; gap: 80px; max-width: 980px; margin: 0 auto; }
  .how-wrap .step { display: grid; grid-template-columns: 48px 1fr; column-gap: 22px; padding: 26px 28px; }
  .how-wrap .step-num { grid-row: 1 / span 3; margin: 0; }
  .how-wrap .step h3 { margin-top: 10px; }
  .how-wrap .phone-sm { --w: 260px; }
}
