:root {
  --ink: #1d2433;
  --ink-soft: #5c6475;
  --line: #e9e6e1;
  --paper: #ffffff;
  --cream: #f8f4f0;
  --sky-top: #4f8fe8;
  --sky-mid: #7fb2f3;
  --sky-low: #cfe3fb;
  --blue: #0a84ff;
  --green: #34c759;
  --bubble-in: #e9e9eb;
  --card: #ffffff;
  --btn-bg: #1d2433;
  --btn-fg: #ffffff;
  --cloud: #ffffff;
  --accent: #2f6fe0;
  --accent-soft: #e5efff;
  --nav-bg: rgba(255, 255, 255, .88);
  --radius: 28px;
  --font: 'Figtree', ui-rounded, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .4s ease, color .4s ease;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.03em; line-height: 1.05; }
a { color: inherit; }
.muted { color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 30px; border: 0; border-radius: 999px;
  font: 600 17px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, button:focus-visible {
  outline: 3px solid #ffd27f; outline-offset: 3px;
}
.btn-dark { background: var(--btn-bg); color: var(--btn-fg); box-shadow: 0 10px 30px -10px rgba(29, 36, 51, .6); }
.btn-light { background: #fff; color: #1d2433; }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 10px 30px -12px rgba(10, 132, 255, .8); }
.btn-sm { padding: 11px 20px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px max(20px, calc((100vw - 1120px) / 2));
  color: #fff; transition: background .25s, color .25s, box-shadow .25s, padding .25s;
}
.nav.scrolled {
  background: var(--nav-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: var(--ink); box-shadow: 0 1px 0 var(--line); padding-top: 12px; padding-bottom: 12px;
}
.nav.scrolled .btn-light { background: var(--btn-bg); color: var(--btn-fg); }
.logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 26px; letter-spacing: -0.04em; text-decoration: none;
}
.logo-dot {
  width: 30px; height: 23px; border-radius: 12px 12px 12px 3px;
  background:
    radial-gradient(circle at 27% 50%, #fff 0 2.2px, transparent 2.7px),
    radial-gradient(circle at 50% 50%, #fff 0 2.2px, transparent 2.7px),
    radial-gradient(circle at 73% 50%, #fff 0 2.2px, transparent 2.7px),
    linear-gradient(140deg, #ff9fd0, #8fb8ff 55%, #a995ff);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7), 0 2px 8px rgba(80, 110, 200, .35);
}
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; font-weight: 500; opacity: .9; }
.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }


/* ---------- Sky ---------- */
.sky {
  position: absolute; inset: 0; overflow: hidden; z-index: 0;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 45%, var(--sky-low) 80%, var(--paper) 100%);
}
.cloud {
  position: absolute; border-radius: 50%; background: var(--cloud); filter: blur(38px); opacity: .9;
  animation: drift 26s ease-in-out infinite alternate;
}
.c1 { width: 620px; height: 240px; left: -140px; bottom: 40px; }
.c2 { width: 520px; height: 220px; right: -120px; bottom: 90px; animation-duration: 32s; }
.c3 { width: 900px; height: 260px; left: 20%; bottom: -110px; opacity: 1; }
.c4 { width: 300px; height: 90px; left: 8%; top: 22%; opacity: .45; filter: blur(30px); animation-duration: 40s; }
.c5 { width: 360px; height: 100px; right: 10%; top: 16%; opacity: .4; filter: blur(32px); animation-duration: 36s; }
.c6 { width: 420px; height: 180px; left: 38%; bottom: 120px; opacity: .6; }
@keyframes drift { to { transform: translateX(40px); } }

.bub {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 30% 26%, rgba(255, 255, 255, .95) 0 7%, transparent 8%),
              radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .06) 55%, rgba(255, 255, 255, .5) 100%);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, .55), inset 6px -6px 18px rgba(255, 170, 220, .35), inset -6px 6px 18px rgba(150, 220, 255, .4);
  animation: float 9s ease-in-out infinite;
}
.b1 { width: 84px; height: 84px; left: 9%; top: 34%; }
.b2 { width: 46px; height: 46px; left: 20%; top: 62%; animation-delay: -3s; }
.b3 { width: 64px; height: 64px; right: 12%; top: 30%; animation-delay: -5s; }
.b4 { width: 34px; height: 34px; right: 22%; top: 58%; animation-delay: -1.500s; }
@keyframes float { 50% { transform: translateY(-22px) rotate(8deg); } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center;
  padding: 150px 20px 0; text-align: center; color: #fff;
}
.hero-copy { position: relative; z-index: 2; max-width: 900px; display: flex; flex-direction: column; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px;
  border-radius: 999px; background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-weight: 600; font-size: 14px;
}
.pill-dots { display: inline-flex; gap: 3px; padding: 6px 8px; border-radius: 999px; background: rgba(255, 255, 255, .9); }
.pill-dots i { width: 5px; height: 5px; border-radius: 50%; background: #8a93a6; animation: blink 1.200s infinite; }
.pill-dots i:nth-child(2) { animation-delay: .2s; } .pill-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .35; } 30% { opacity: 1; } }

h1 { margin-top: 22px; font-size: clamp(40px, 7.5vw, 80px); text-wrap: wrap; font-weight: 700; text-shadow: 0 2px 30px rgba(40, 80, 160, .25); }
h1 em { display: block; white-space: nowrap; font-style: italic; font-weight: 600; transition: opacity .35s, transform .35s; }
h1 em.swap { opacity: 0; transform: translateY(10px); }
.lede { margin-top: 20px; max-width: 520px; font-size: clamp(17px, 2.200vw, 20px); font-weight: 500; opacity: .96; }
.hero .btn { margin-top: 30px; }
.platforms { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; opacity: .95; }
.dot { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
.dot.blue { background: var(--blue); } .dot.green { background: var(--green); }
.sep { width: 1px; height: 14px; background: rgba(255, 255, 255, .6); margin: 0 6px; }

.hero-chat { position: relative; z-index: 2; margin: 48px 0 40px; display: flex; justify-content: center; flex: none; }
.glass {
  display: flex; flex-direction: column; gap: 8px; padding: 20px; width: min(340px, calc(100vw - 48px));
  border-radius: 28px; background: rgba(255, 255, 255, .28); border: 1px solid rgba(255, 255, 255, .55);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px -30px rgba(40, 80, 160, .55);
  animation: float 10s ease-in-out infinite;
}

/* ---------- Message bubbles ---------- */
.msg {
  max-width: 85%; padding: 9px 14px; border-radius: 20px; font-size: 16px; line-height: 1.3;
  text-align: left; width: fit-content; word-break: break-word;
}
.msg.in { background: var(--bubble-in); color: #111; align-self: flex-start; border-bottom-left-radius: 6px; }
.msg.out { background: var(--blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }
.msg.out.sms { background: var(--green); }
.receipt { align-self: flex-end; font-size: 11px; font-weight: 600; color: #6d7890; margin-top: -4px; }
.msg.typing { display: inline-flex; gap: 4px; padding: 13px 14px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: #8e8e93; animation: blink 1.200s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .2s; } .msg.typing i:nth-child(3) { animation-delay: .4s; }

/* ---------- Sections ---------- */
.section { max-width: 1120px; margin: 0 auto; padding: 110px 20px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2, .how h2, .cta h2 { font-size: clamp(34px, 5.500vw, 54px); font-weight: 700; }
.section-head p { margin-top: 16px; color: var(--ink-soft); font-size: 18px; }
.eyebrow { display: inline-block; margin-bottom: 14px; color: var(--accent); font-weight: 700; font-size: 15px; }

/* ---------- Companion cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 24px; border-radius: var(--radius); border: 2px solid var(--line); background: var(--card);
  text-align: left; font: inherit; color: inherit; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-5px); border-color: transparent; box-shadow: 0 24px 50px -24px var(--glow, rgba(29, 36, 51, .35)), 0 0 0 2px var(--glow, var(--line)); }
.avatar {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font-size: 30px; flex: none;
  background: linear-gradient(140deg, var(--a, #ff9ec4), var(--b, #ffc8a8));
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .55), inset -6px -8px 16px rgba(255, 255, 255, .35);
}
.avatar.lg { width: 84px; height: 84px; font-size: 40px; margin: 0 auto; }
.card h3 { font-size: 24px; font-weight: 700; margin-top: 6px; }
.card .tagline { font-weight: 600; color: var(--ink); }
.card .blurb { color: var(--ink-soft); font-size: 15.500px; min-height: 3em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { padding: 4px 10px; border-radius: 999px; background: var(--cream); font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.card .go {
  margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px;
  border-radius: 999px; background: var(--btn-bg); color: var(--btn-fg); font-weight: 600; font-size: 15px;
}
.card .go::after { content: '→'; transition: transform .2s; }
.card:hover .go::after { transform: translateX(3px); }

/* ---------- How it works ---------- */
.how { display: grid; grid-template-columns: 1fr auto; gap: 64px; align-items: center; }
.orb {
  display: block; width: 72px; height: 72px; margin-bottom: 26px; border-radius: 50% 50% 50% 14px;
  background: radial-gradient(circle at 30% 28%, #fff 0 9%, transparent 10%), linear-gradient(140deg, #ffc4e1, #a9c8ff 55%, #c2b0ff);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6), 0 14px 30px -12px rgba(120, 130, 230, .7);
}
.how .muted { margin-top: 16px; font-size: 18px; max-width: 440px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; max-width: 460px; }
.chip {
  padding: 9px 15px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 14.500px/1 var(--font); color: var(--ink); background: var(--tint, var(--cream));
  transition: transform .15s, background .15s, color .15s;
}
.chip:hover { transform: translateY(-1px); }
.chip[aria-selected='true'] { background: var(--btn-bg); color: var(--btn-fg); }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 18px; max-width: 440px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps b { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 14px; }
.steps strong { display: block; }
.steps span { color: var(--ink-soft); font-size: 15.500px; }

.phone {
  width: 340px; height: 640px; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 46px; background: #fff; border: 1px solid #ececec;
  box-shadow: 0 0 0 10px #fafafa, 0 0 0 11px #e6e6e6, 0 50px 90px -40px rgba(29, 36, 51, .45);
}
.phone-status { display: flex; justify-content: space-between; align-items: center; padding: 16px 28px 0; font-weight: 700; font-size: 15px; }
.phone-icons { display: inline-flex; gap: 4px; align-items: flex-end; }
.phone-icons i { width: 4px; background: var(--ink); border-radius: 1px; }
.phone-icons i:nth-child(1) { height: 6px; } .phone-icons i:nth-child(2) { height: 9px; } .phone-icons i:nth-child(3) { height: 12px; }
.phone-head { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0 12px; border-bottom: 1px solid #f0f0f0; }
.phone-head .avatar { width: 50px; height: 50px; font-size: 24px; }
.phone-name { font-size: 13px; font-weight: 600; }
.thread { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 14px; overflow: hidden; }
.thread .msg { font-size: 15.500px; animation: pop .28s cubic-bezier(.2, .9, .3, 1.300) both; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.94); } }
.composer {
  display: flex; align-items: center; justify-content: space-between; margin: 0 14px 18px; padding: 7px 7px 7px 16px;
  border: 1px solid #dcdcdc; border-radius: 999px; color: #b5b5ba; font-size: 15px;
}
.composer b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 15px; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feature { padding: 30px; border-radius: var(--radius); background: var(--cream); }
.feature h3 { font-size: 26px; font-weight: 700; margin-top: 22px; }
.feature p { margin-top: 10px; color: var(--ink-soft); font-size: 16.500px; max-width: 420px; }
.feature-art { height: 110px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.feature-art.big { font-size: 72px; line-height: 1; justify-content: center; }
.feature-art .msg { align-self: flex-start; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .3); }
.feature-art .msg.sms { margin-left: 40px; }
.kbd { align-self: flex-start; padding: 12px 20px; border-radius: 14px; background: #fff; font-weight: 800; letter-spacing: .08em; box-shadow: 0 3px 0 #e3ded8, 0 10px 20px -12px rgba(0, 0, 0, .3); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; }
.faq-list { display: grid; gap: 12px; }
details { border-radius: 22px; background: var(--cream); padding: 0 24px; }
summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 26px; font-weight: 500; line-height: 1; color: var(--ink-soft); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 22px; color: var(--ink-soft); font-size: 16.500px; max-width: 620px; }

/* ---------- CTA + footer ---------- */
.cta { position: relative; margin: 0 20px; padding: 120px 20px 150px; border-radius: 40px; overflow: hidden; text-align: center; color: #fff; }
.cta > *:not(.sky) { position: relative; z-index: 1; }
.cta .btn { margin-top: 28px; }
.cta .sky { background: linear-gradient(180deg, var(--sky-top), var(--sky-mid) 60%, var(--sky-low)); }

.footer { max-width: 1120px; margin: 0 auto; padding: 60px 20px 40px; display: grid; grid-template-columns: 1fr auto; gap: 30px; }
.footer p { margin-top: 10px; color: var(--ink-soft); max-width: 300px; }
.footer nav { display: grid; grid-template-columns: repeat(3, auto); gap: 10px 36px; align-content: start; }
.footer nav a { text-decoration: none; color: var(--ink-soft); font-weight: 500; }
.footer nav a:hover { color: var(--ink); }
.footer .fine { grid-column: 1 / -1; max-width: none; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }

/* ---------- Start sheet ---------- */
.sheet {
  width: min(440px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto;
  padding: 34px 28px 28px; border: 0; border-radius: 32px; text-align: center; color: var(--ink); background: var(--card);
  box-shadow: 0 40px 100px -30px rgba(20, 40, 90, .6);
}
.sheet::backdrop { background: rgba(60, 110, 200, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet[open] { animation: pop .25s ease both; }
.sheet h3 { margin-top: 14px; font-size: 28px; font-weight: 700; }
.sheet > .muted { margin-top: 6px; }
.sheet-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--cream); font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink-soft); }
#sheet-direct { margin-top: 22px; }
.qr { display: none; flex-direction: column; align-items: center; gap: 10px; }
.qr img { border-radius: 16px; border: 1px solid var(--line); padding: 8px; background: #fff; }
.qr p { font-size: 14.500px; color: var(--ink-soft); max-width: 280px; }
.or { display: flex; align-items: center; gap: 12px; margin: 22px 0 4px; color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
#sheet-form { margin-top: 16px; display: grid; gap: 14px; text-align: left; }
.field span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input { width: 100%; padding: 15px 18px; border: 2px solid var(--line); border-radius: 16px; font: 500 17px var(--font); color: var(--ink); background: var(--card); }
.field input:focus { border-color: var(--blue); outline: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 12.500px; line-height: 1.45; color: var(--ink-soft); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--blue); }
.form-msg { min-height: 0; font-size: 14px; font-weight: 600; color: #d43c4f; }
.form-msg:empty { display: none; }
.sent { padding: 20px 0 6px; }
.sent-icon { font-size: 56px; animation: float 4s ease-in-out infinite; }
[hidden] { display: none !important; }

/* Desktop shows the QR code; phones show the "Open Messages" button. */
@media (hover: hover) and (pointer: fine) {
  .qr { display: flex; }
  #sheet-open { display: none; }
}

/* ---------- Legal pages ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 120px 20px 80px; }
.legal h1 { font-size: 44px; text-shadow: none; margin: 0 0 8px; }
.legal h2 { font-size: 22px; margin: 34px 0 8px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--ink-soft); margin-top: 10px; }
.legal .note { padding: 14px 18px; border-radius: 16px; background: #fff6e0; color: var(--ink); font-weight: 500; }
.nav.solid { position: sticky; top: 0; background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.nav.solid .btn-light { background: var(--btn-bg); color: var(--btn-fg); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .how { grid-template-columns: 1fr; gap: 48px; justify-items: center; }
  .how-copy { width: 100%; }
  .section { padding: 80px 20px; }
}
@media (max-width: 620px) {
  .hero { padding-top: 120px; }
  .grid, .features { grid-template-columns: 1fr; }
  .card .blurb { min-height: 0; }
  .phone { width: min(340px, 100%); height: 600px; }
  .cta { margin: 0 12px; padding: 90px 20px 120px; border-radius: 32px; }
  .footer { grid-template-columns: 1fr; }
  .footer nav { grid-template-columns: repeat(2, auto); justify-content: start; }
  .b1, .b3 { opacity: .7; transform: scale(.7); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
