/* Kira Labs — one stylesheet, no frameworks, no web fonts. */

:root {
  color-scheme: light;
  --bg: #fbfbfd;
  --bg-2: #f2f2f8;
  --surface: #ffffff;
  --surface-2: #f6f6fb;
  --text: #0c0c14;
  --text-2: #50506a;
  --text-3: #6f6f86;
  --line: rgba(12, 12, 40, 0.08);
  --line-2: rgba(12, 12, 40, 0.14);
  --accent: #4f46e5;
  --accent-2: #8b5cf6;
  --accent-3: #0ea5e9;
  --accent-soft: rgba(79, 70, 229, 0.09);
  --ok: #0f7a40;
  --ok-soft: rgba(15, 122, 64, 0.1);
  --brand: linear-gradient(135deg, #8b5cf6, #4f46e5 50%, #0ea5e9);
  --shadow-1: 0 0 0 1px rgba(12, 12, 40, 0.05), 0 1px 2px rgba(12, 12, 40, 0.04), 0 4px 12px -2px rgba(12, 12, 40, 0.05);
  --shadow-2: 0 0 0 1px rgba(12, 12, 40, 0.05), 0 2px 4px rgba(12, 12, 40, 0.04), 0 16px 36px -8px rgba(30, 24, 90, 0.16);
  --shadow-3: 0 0 0 1px rgba(12, 12, 40, 0.06), 0 28px 70px -14px rgba(40, 30, 120, 0.3);
  --header-bg: rgba(251, 251, 253, 0.78);
  --glow-1: rgba(124, 92, 255, 0.2);
  --glow-2: rgba(14, 165, 233, 0.13);

  --r-xl: 32px;
  --r-l: 24px;
  --r-m: 18px;
  --r-s: 12px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-sheet: cubic-bezier(0.32, 0.72, 0, 1);

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --gap: 16px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Dark theme: set by boot.js from the visitor's choice or their system setting. */
@media all {
  :root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #08080c;
    --bg-2: #0d0d14;
    --surface: #13131b;
    --surface-2: #191922;
    --text: #f4f4f8;
    --text-2: #adadbd;
    --text-3: #8b8b9c;
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.15);
    --accent: #a5a0ff;
    --accent-2: #c4a6ff;
    --accent-3: #5cc8f5;
    --accent-soft: rgba(165, 160, 255, 0.13);
    --ok: #50d890;
    --ok-soft: rgba(80, 216, 144, 0.12);
    --shadow-1: 0 0 0 1px rgba(255, 255, 255, 0.07);
    --shadow-2: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 16px 40px -10px rgba(0, 0, 0, 0.6);
    --shadow-3: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 80px -10px rgba(0, 0, 0, 0.7);
    --header-bg: rgba(8, 8, 12, 0.74);
    --glow-1: rgba(124, 100, 255, 0.28);
    --glow-2: rgba(14, 165, 233, 0.15);
  }
}

/* ---------- Base ---------- */

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

html { scrollbar-gutter: stable; scrollbar-color: var(--line-2) transparent; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--accent);
  accent-color: var(--accent);
}

::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); color: var(--text); }

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); color: var(--text); text-wrap: balance; }
dl, dd { margin: 0; }

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

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.nw { white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

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

.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.header[data-scrolled] { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 680; font-size: 17px; letter-spacing: -0.025em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a { color: var(--text-2); font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: color 150ms ease, background-color 150ms ease; }
.nav a:hover { color: var(--text); text-decoration: none; background: var(--line); }
.nav .nav-cta { color: var(--bg); background: var(--text); font-weight: 600; margin-left: 8px; padding-inline: 16px; }
.nav .nav-cta:hover { background: var(--text); color: var(--bg); opacity: 0.86; }
@media (max-width: 720px) { .nav a:not(.nav-cta) { display: none; } }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font: 600 16px/1 var(--font); letter-spacing: -0.01em;
  border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 16px; height: 16px; transition: transform 200ms var(--ease-out); }
.btn-primary { background: var(--text); color: var(--bg); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 8px 20px -8px rgba(12, 12, 40, 0.4); }
.btn-secondary { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.btn-light { background: #fff; color: #0c0b1d; }
.btn-ghost { background: rgba(255, 255, 255, 0.1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover svg { transform: translateX(3px); }
  .btn-secondary:hover { box-shadow: var(--shadow-2); }
  .btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }
}

/* Dips immediately on touch, springs back on release. */
.press { transition: transform 240ms var(--ease-out), opacity 150ms ease, box-shadow 200ms ease, background-color 150ms ease; }
.press:active { transform: scale(0.97); transition-duration: 90ms; }

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

.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 9vw, 104px) clamp(40px, 6vw, 72px); }

.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::after {
  content: ""; position: absolute; left: 50%; top: -10%; width: 1100px; height: 700px; transform: translateX(-50%);
  background: radial-gradient(closest-side at 35% 45%, var(--glow-1), transparent), radial-gradient(closest-side at 70% 55%, var(--glow-2), transparent);
  filter: blur(20px);
}

.hero-copy { text-align: center; max-width: 860px; margin-inline: auto; }
.hero h1 { font-size: clamp(2.45rem, 7.6vw, 5.25rem); line-height: 1; letter-spacing: -0.04em; font-weight: 780; }
.gradient-text { background: linear-gradient(100deg, var(--accent-2), var(--accent) 50%, var(--accent-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin: 24px auto 0; font-size: clamp(1.08rem, 2vw, 1.26rem); line-height: 1.5; color: var(--text-2); max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; justify-content: center; }

.pillars { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 28px 0 0; padding: 0; list-style: none; }
.pillars li { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--text-2); }
.pillars li strong { color: var(--text); font-weight: 650; }
.pillars i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.pillars i svg { width: 14px; height: 14px; }

/* The one authored entrance: copy settles, then the phones fan out. */
.js .enter { animation: enter 760ms var(--ease-out) both; }
.js .enter-2 { animation-delay: 80ms; }
.js .enter-3 { animation-delay: 150ms; }
@keyframes enter { from { opacity: 0; transform: translateY(16px); filter: blur(4px); } }

/* ---------- Hero phones (illustration) ---------- */

.phones { position: relative; height: clamp(500px, 58vw, 620px); margin: clamp(56px, 7vw, 80px) auto 0; max-width: 980px; }
.phone {
  position: absolute; left: 50%; top: 0; width: clamp(220px, 25vw, 268px); aspect-ratio: 9 / 19;
  margin-left: calc(clamp(220px, 25vw, 268px) / -2);
  border-radius: 46px; padding: 9px; background: var(--surface);
  box-shadow: var(--shadow-3); border: 1px solid var(--line-2);
}
.phone-center { z-index: 3; }
.phone-left { z-index: 2; transform: translateX(-78%) translateY(46px) rotate(-6deg) scale(0.9); }
.phone-right { z-index: 2; transform: translateX(78%) translateY(46px) rotate(6deg) scale(0.9); }
.js .phone-center { animation: phone-rise 1000ms var(--ease-out) 260ms both; }
.js .phone-left { animation: fan-left 1100ms var(--ease-out) 520ms both; }
.js .phone-right { animation: fan-right 1100ms var(--ease-out) 560ms both; }
@keyframes phone-rise { from { opacity: 0; transform: translateY(40px) scale(0.96); } }
@keyframes fan-left { from { opacity: 0; transform: translateX(-12%) translateY(70px) rotate(-2deg) scale(0.86); } }
@keyframes fan-right { from { opacity: 0; transform: translateX(12%) translateY(70px) rotate(2deg) scale(0.86); } }

.phone-tag {
  position: absolute; z-index: 5; top: -18px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 7px 14px 7px 8px; border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow-2);
  font-size: 13px; font-weight: 700; letter-spacing: -0.01em; color: var(--text);
}
.phone-tag i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--brand); }
.phone-tag i svg { width: 12px; height: 12px; }

.screen { height: 100%; border-radius: 38px; overflow: hidden; background: var(--bg-2); padding: 34px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.scr-sub { font-size: 11px; font-weight: 600; color: var(--text-3); }
.scr-title { font: 760 24px/1.05 var(--font-display); letter-spacing: -0.035em; color: var(--text); margin-top: -4px; }
.scr-hero { border-radius: 20px; padding: 16px; color: #fff; background: var(--brand); min-height: 112px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
.scr-hero strong { font-size: 16px; letter-spacing: -0.02em; }
.scr-hero span { font-size: 11.5px; opacity: 0.88; }
.scr-hero .glyph { width: 28px; height: 28px; border-radius: 9px; background: rgba(255, 255, 255, 0.22); display: grid; place-items: center; margin-bottom: auto; }
.scr-hero .glyph svg { width: 15px; height: 15px; }
.scr-list { background: var(--surface); border-radius: 16px; padding: 4px 12px; box-shadow: var(--shadow-1); }
.scr-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 12px; border-top: 1px solid var(--line); color: var(--text); }
.scr-row:first-child { border-top: 0; }
.scr-row i { width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.scr-row i svg { width: 14px; height: 14px; }
.scr-row b { font-weight: 600; flex: 1; }
.scr-row em { font-style: normal; color: var(--text-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.scr-row .on { color: var(--ok); font-weight: 600; }
.scr-tabs { margin-top: auto; display: flex; justify-content: space-around; padding: 10px 6px 4px; }
.scr-tabs span { width: 22px; height: 22px; border-radius: 7px; background: var(--line); }
.scr-tabs span:first-child { background: var(--accent); }
.scr-chart { background: var(--surface); border-radius: 16px; padding: 12px; box-shadow: var(--shadow-1); }
.scr-chart svg { width: 100%; height: 90px; }
.scr-chart .area { fill: url(#chartFill); }
.scr-chart .line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.js .scr-chart .line { stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 1800ms var(--ease-in-out) 1200ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.bubble { max-width: 88%; padding: 10px 12px; border-radius: 16px; font-size: 12px; line-height: 1.35; }
.bubble-me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.bubble-ai { align-self: flex-start; background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); border-bottom-left-radius: 6px; }
.bubble-ai .who { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.bubble-ai .who svg { width: 11px; height: 11px; }
[data-theme="dark"] .bubble-me { color: #0b0b14; }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-row span { font-size: 11px; font-weight: 600; padding: 6px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 10px 12px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-1); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.js .typing i { animation: blink 1.2s ease-in-out infinite; }
.js .typing i:nth-child(2) { animation-delay: 0.15s; }
.js .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.3; } 40% { opacity: 1; } }

.float {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px; white-space: nowrap;
  padding: 12px 16px 12px 12px; border-radius: var(--r-m);
  background: var(--surface); box-shadow: var(--shadow-3);
  line-height: 1.3;
}
.float strong { display: block; font-size: 14px; letter-spacing: -0.01em; }
.float span { color: var(--text-2); font-size: 12.5px; }
.float .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.float .ico svg { width: 18px; height: 18px; }
.float-a { left: 2%; top: 58%; }
.float-a .ico { background: var(--ok-soft); color: var(--ok); }
.float-b { right: 2%; top: 22%; }
.float-b .ico { background: var(--accent-soft); color: var(--accent); }
.js .float-a { animation: pop 700ms var(--ease-out) 1400ms both, hover 6s ease-in-out 2100ms infinite alternate; }
.js .float-b { animation: pop 700ms var(--ease-out) 1600ms both, hover 7s ease-in-out 2300ms infinite alternate-reverse; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.94); } }
@keyframes hover { to { transform: translateY(-8px); } }

@media (max-width: 860px) {
  .float-b { display: none; }
  .float-a { left: 50%; top: auto; bottom: 0; transform: translateX(-50%); }
  .js .float-a { animation: pop-c 700ms var(--ease-out) 1400ms both; }
  @keyframes pop-c { from { opacity: 0; transform: translateX(-50%) translateY(10px) scale(0.94); } }
}
@media (max-width: 560px) {
  .phones { height: 520px; }
  .phone-left, .phone-right { display: none; }
}

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

.section { padding-block: clamp(80px, 11vw, 136px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(2.05rem, 4.8vw, 3.4rem); line-height: 1.04; letter-spacing: -0.04em; font-weight: 760; }
.section-head p { margin: 18px 0 0; color: var(--text-2); font-size: 1.14rem; max-width: 62ch; }

/* A tinted band gives the page a change of pace. */
.band { margin-top: clamp(80px, 11vw, 136px); padding-block: clamp(72px, 9vw, 112px); background: var(--bg-2); border-block: 1px solid var(--line); }

/* Service cards: each opens a sheet */
.bento-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 960px) { .bento-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .bento-3 { grid-template-columns: 1fr; } }

.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  min-height: 320px; border-radius: var(--r-l);
  background: var(--surface); box-shadow: var(--shadow-1);
  color: var(--text); text-decoration: none; text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.card:hover { text-decoration: none; }
.card:focus-visible { border-radius: var(--r-l); }
@media (hover: hover) and (pointer: fine) { .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); } }
.card:active { transform: scale(0.975); transition-duration: 120ms; }

.card-art { position: relative; height: 168px; overflow: hidden; border-bottom: 1px solid var(--line); }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font: 720 1.32rem/1.2 var(--font-display); letter-spacing: -0.025em; }
.card-text { color: var(--text-2); font-size: 15.5px; margin: 0; }
.card-more { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--accent); }
.card-more svg { width: 14px; height: 14px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .card:hover .card-more svg { transform: translateX(3px); } }

/* Card art: simple shapes drawn in SVG */
.art-design { background: radial-gradient(120% 120% at 0% 0%, #eceeff 0%, #f7f3ff 50%, #fff 100%); }
.art-grow { background: radial-gradient(120% 140% at 100% 0%, #e3f5ff 0%, #f0faff 45%, #fff 100%); }
.art-auto { background: radial-gradient(120% 140% at 50% 100%, #efe9ff 0%, #f8f5ff 50%, #fff 100%); }
[data-theme="dark"] .art-design { background: radial-gradient(120% 120% at 0% 0%, #22204a 0%, #17162a 60%, #13131b 100%); }
[data-theme="dark"] .art-grow { background: radial-gradient(120% 140% at 100% 0%, #0f2a3a 0%, #121b24 50%, #13131b 100%); }
[data-theme="dark"] .art-auto { background: radial-gradient(120% 140% at 50% 100%, #261d4d 0%, #18152b 55%, #13131b 100%); }

.art-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.art .stroke { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.art .thick { stroke-width: 3; stroke-linecap: round; }
.art .fill { fill: var(--accent); }
.art .soft { fill: var(--accent-soft); }
.art .paper { fill: var(--surface); stroke: var(--line-2); }
.art .green { fill: #16a05c; }
.art .link { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 2 6; opacity: 0.7; }
.js .art .link { animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -16; } }

/* Apps */
.apps { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--gap); }
.apps .app-feature { grid-row: span 2; }
@media (max-width: 860px) { .apps { grid-template-columns: 1fr; } .apps .app-feature { grid-row: auto; } }
.app-card { position: relative; overflow: hidden; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-1); padding: clamp(24px, 3.4vw, 34px); display: flex; flex-direction: column; gap: 10px; }
.app-card h3 { font-size: 1.32rem; letter-spacing: -0.03em; font-weight: 740; }
.app-card p { color: var(--text-2); margin: 0; font-size: 15.5px; max-width: 52ch; }
.app-feature { min-height: 400px; background: radial-gradient(110% 80% at 100% 0%, var(--accent-soft), transparent 62%), var(--surface); }
.app-feature h3 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-top: 10px; }
.app-big-glyph { position: absolute; right: -36px; top: -36px; width: 250px; height: 250px; color: var(--accent); opacity: 0.09; pointer-events: none; }
.status { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--ok); background: var(--ok-soft); padding: 6px 12px; border-radius: 999px; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.js .status i { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.store-row { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.store-icon { width: 64px; height: 64px; border-radius: 15px; flex: none; display: grid; place-items: center; color: #fff; background: var(--brand); box-shadow: 0 10px 22px -8px rgba(79, 70, 229, 0.55); }
.store-icon svg { width: 34px; height: 34px; }
.store-meta { flex: 1; min-width: 0; }
.store-meta strong { display: block; font-size: 16px; letter-spacing: -0.015em; }
.store-meta span { color: var(--text-2); font-size: 13.5px; }
.pill { flex: none; display: inline-flex; align-items: center; height: 32px; padding: 0 16px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--accent-soft); color: var(--accent); }
.app-mini { display: flex; align-items: center; gap: 12px; }
.icon-tile { width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.icon-tile svg { width: 20px; height: 20px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; margin-top: auto; padding-top: 8px; }
.link-arrow svg { width: 14px; height: 14px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover svg { transform: translateX(3px); } }

/* AI approach */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } }
.tier { border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-1); padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.tier-level { display: flex; gap: 5px; margin-bottom: 10px; }
.tier-level i { width: 28px; height: 6px; border-radius: 999px; background: var(--line-2); }
.tier-level i.on { background: var(--accent); }
.tier h3 { font-size: 1.22rem; letter-spacing: -0.025em; font-weight: 720; }
.tier p { color: var(--text-2); font-size: 15.5px; margin: 0; }
.tier .eg { margin-top: auto; padding-top: 16px; font-size: 13.5px; color: var(--text-3); }

/* Process: the order matters, so the steps are numbered. */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 clamp(20px, 3vw, 36px); counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 22px; border-top: 1px solid var(--line-2); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 700 14px/1 var(--font); font-variant-numeric: tabular-nums; }
.step::after { content: ""; position: absolute; top: -1px; left: 0; width: 44px; height: 1px; background: var(--accent); }
.step h3 { font-size: 1.16rem; letter-spacing: -0.02em; font-weight: 720; margin-top: 16px; }
.step p { color: var(--text-2); font-size: 15.5px; margin: 6px 0 0; }

/* Values: a plain two-column list */
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 6vw, 80px); }
@media (max-width: 720px) { .values { grid-template-columns: 1fr; } }
.value { padding: 24px 0; border-top: 1px solid var(--line-2); }
.value dt { font: 720 1.2rem/1.25 var(--font-display); letter-spacing: -0.025em; }
.value dd { color: var(--text-2); margin-top: 6px; max-width: 46ch; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border-radius: var(--r-m); box-shadow: var(--shadow-1); interpolate-size: allow-keywords; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-weight: 650; font-size: 17px; letter-spacing: -0.015em; border-radius: var(--r-m); -webkit-tap-highlight-color: transparent; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--bg-2); color: var(--text-2); transition: transform 260ms var(--ease-out), background-color 150ms ease; }
.faq summary .plus svg { width: 12px; height: 12px; }
@media (hover: hover) and (pointer: fine) { .faq summary:hover .plus { background: var(--accent-soft); color: var(--accent); } }
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq .answer { padding: 0 24px 22px; color: var(--text-2); font-size: 16px; max-width: 68ch; }
.faq .answer p { margin: 0; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 320ms var(--ease-out), content-visibility 320ms allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

/* Contact */
.cta {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  padding: clamp(44px, 8vw, 96px) clamp(24px, 6vw, 72px);
  background: #0c0b1d; color: #fff; text-align: center; isolation: isolate;
}
.cta::before {
  content: ""; position: absolute; inset: -40%; z-index: -1;
  background: radial-gradient(closest-side at 30% 40%, rgba(124, 92, 255, 0.55), transparent), radial-gradient(closest-side at 72% 60%, rgba(14, 165, 233, 0.34), transparent);
  filter: blur(30px);
}
.cta h2 { color: #fff; font-size: clamp(2.2rem, 5.4vw, 3.8rem); line-height: 1.02; letter-spacing: -0.04em; font-weight: 770; }
.cta p { color: rgba(255, 255, 255, 0.82); font-size: 1.15rem; max-width: 56ch; margin: 18px auto 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; justify-content: center; }
.email-line { margin-top: 20px; font-size: 14.5px; color: rgba(255, 255, 255, 0.72); }
.cta ::selection { background: rgba(255, 255, 255, 0.28); color: #fff; }

.copy-label { display: inline-grid; }
.copy-label > span { grid-area: 1 / 1; transition: opacity 200ms ease, filter 200ms ease, transform 220ms var(--ease-out); }
.copy-label .copied { opacity: 0; filter: blur(4px); transform: translateY(5px); }
.is-copied .copy-label .copy { opacity: 0; filter: blur(4px); transform: translateY(-5px); }
.is-copied .copy-label .copied { opacity: 1; filter: none; transform: none; }

/* ---------- Footer ---------- */

.footer { padding-block: 44px 56px; color: var(--text-3); font-size: 13.5px; border-top: 1px solid var(--line); margin-top: clamp(80px, 11vw, 136px); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { color: var(--text-2); }
.footer small { display: block; margin-top: 18px; line-height: 1.6; max-width: 780px; font-size: 12.5px; }

/* ---------- Reveal on scroll (card groups only) ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal].r1 { transition-delay: 60ms; }
.js [data-reveal].r2 { transition-delay: 110ms; }
.js [data-reveal].r3 { transition-delay: 150ms; }

/* ---------- Sheets (dialogs) ---------- */

.sheet {
  width: min(720px, calc(100% - 32px));
  max-width: none; max-height: calc(100dvh - 48px);
  margin: auto; padding: 0; border: 0;
  border-radius: var(--r-xl);
  background: var(--surface); color: var(--text);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.sheet::backdrop { background: rgba(8, 8, 20, 0.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sheet-scroll { max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 640px) {
  .sheet { width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .sheet-scroll { max-height: 100dvh; height: 100%; }
}

.sheet-art { position: relative; height: 230px; overflow: hidden; border-bottom: 1px solid var(--line); }
.sheet-close {
  position: absolute; z-index: 5; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-1);
}
.sheet-close svg { width: 14px; height: 14px; }
.sheet-close::after { content: ""; position: absolute; inset: -6px; }

.sheet-body { padding: clamp(24px, 4vw, 40px); }
.sheet-body h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -0.04em; line-height: 1.05; font-weight: 760; }
.sheet-body > p { color: var(--text-2); font-size: 1.06rem; margin-top: 14px; }
.sheet-body h3 { font-size: 1.1rem; letter-spacing: -0.02em; font-weight: 700; margin: 30px 0 12px; }
.list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 640px) { .list { grid-template-columns: 1fr; } }
.list li { background: var(--surface-2); border-radius: var(--r-s); padding: 14px 16px; }
.list strong { display: block; font-size: 15px; letter-spacing: -0.01em; }
.list span { color: var(--text-2); font-size: 14.5px; }

/* Fallback open animation (browsers without view transitions) */
.sheet[open] { animation: sheet-in 400ms var(--ease-sheet); }
.sheet[open]::backdrop { animation: fade-in 300ms ease; }
.vt-active .sheet[open], .vt-active .sheet[open]::backdrop { animation: none; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(28px) scale(0.97); } }
@keyframes fade-in { from { opacity: 0; } }

html.sheet-open { overflow: hidden; }

/* View transition: the card grows into the sheet. */
::view-transition-group(*) { animation-duration: 540ms; animation-timing-function: var(--ease-sheet); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 320ms; }
.vt-closing::view-transition-group(*) { animation-duration: 440ms; }
::view-transition-old(app-card), ::view-transition-new(app-card),
::view-transition-old(app-art), ::view-transition-new(app-art) { height: 100%; width: 100%; object-fit: cover; object-position: top; }

/* ---------- Legal pages ---------- */

.doc { max-width: 760px; padding-block: clamp(44px, 7vw, 84px) 0; }
.doc h1 { font-size: clamp(2.3rem, 5vw, 3.3rem); letter-spacing: -0.04em; line-height: 1.04; font-weight: 760; }
.doc .updated { color: var(--text-3); font-size: 14px; margin-top: 12px; }
.doc .summary { background: var(--surface); border-radius: var(--r-m); box-shadow: var(--shadow-1); padding: 22px 24px; margin-top: 28px; }
.doc .summary p { margin: 0; color: var(--text); font-weight: 600; }
.doc .summary ul { margin: 10px 0 0; padding-left: 20px; }
.doc .summary li { margin: 4px 0; }
.doc h2 { font-size: 1.35rem; letter-spacing: -0.025em; margin: 44px 0 10px; font-weight: 720; }
.doc p, .doc li { color: var(--text-2); }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 15.5px; }
.doc th, .doc td { text-align: left; padding: 13px 0; border-top: 1px solid var(--line); vertical-align: top; }
.doc th { width: 38%; color: var(--text); font-weight: 600; padding-right: 16px; }
.doc td { color: var(--text-2); }

.notfound { min-height: 62vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 14px; padding-block: 80px; }
.notfound h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); letter-spacing: -0.04em; }
.notfound p { color: var(--text-2); }

/* ---------- Reduced motion: keep fades, drop movement ---------- */

@media (prefers-reduced-motion: reduce) {
  .js .enter, .js .phone-center, .js .phone-left, .js .phone-right, .js .float-a, .js .float-b { animation: fade-in 400ms ease both; }
  .js [data-reveal] { transform: none; transition: opacity 400ms ease; }
  .js .scr-chart .line { animation: none; stroke-dashoffset: 0; }
  .js .status i, .js .typing i, .js .art .link { animation: none; }
  .press:active, .card:active, .card:hover { transform: none; }
  .btn:hover svg, .card:hover .card-more svg, .link-arrow:hover svg { transform: none; }
  .faq details::details-content { transition: none; }
  .sheet[open] { animation: fade-in 200ms ease; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- Theme switch ---------- */

.theme-toggle { width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: transparent; color: var(--text-2); margin-left: 4px; }
.theme-toggle:hover { background: var(--line); color: var(--text); }
.theme-toggle svg { grid-area: 1 / 1; width: 19px; height: 19px; transition: opacity 200ms ease, transform 300ms var(--ease-out); }
.theme-toggle .t-sun { opacity: 0; transform: rotate(-60deg) scale(0.7); }
[data-theme="dark"] .theme-toggle .t-sun { opacity: 1; transform: none; }
[data-theme="dark"] .theme-toggle .t-moon { opacity: 0; transform: rotate(60deg) scale(0.7); }
html:not(.js) .theme-toggle { display: none; }

/* ---------- Hero phones, refined ---------- */

.phone { padding: 7px; border: 0; border-radius: 48px; background: linear-gradient(145deg, #2c2c36, #0c0c12 40%, #1c1c26); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset, 0 0 0 1px rgba(0, 0, 0, 0.5), var(--shadow-3), 0 50px 80px -30px rgba(40, 30, 120, 0.35); }
.screen { position: relative; border-radius: 41px; padding: 12px 14px 12px; gap: 9px; background: radial-gradient(120% 50% at 100% 0%, var(--accent-soft), transparent 70%), radial-gradient(90% 40% at 0% 100%, color-mix(in srgb, var(--accent-3) 10%, transparent), transparent 70%), var(--bg-2); }
.screen::before { content: ""; position: absolute; top: 10px; left: 50%; width: 30%; height: 20px; transform: translateX(-50%); border-radius: 999px; background: #05050a; }
.sb { display: flex; justify-content: space-between; align-items: center; height: 20px; padding: 0 8px 0 10px; margin-bottom: 10px; font-size: 11.5px; color: var(--text); }
.sb b { font-weight: 650; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.sb-i svg { width: 42px; height: 11px; }
.scr-title { margin-top: 0; font-size: 25px; }
.scr-sub + .scr-title { margin-top: -6px; }
.scr-cap { font-size: 10.5px; font-weight: 650; color: var(--text-3); }
.seg { display: flex; padding: 3px; border-radius: 11px; background: var(--line); font-size: 11px; font-weight: 600; color: var(--text-2); }
.seg span { flex: 1; text-align: center; padding: 5px 0; border-radius: 8px; }
.seg .on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.week { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 650; color: var(--text-3); }
.week span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; }
.week .on { background: var(--text); color: var(--bg); }
.scr-hero { position: relative; overflow: hidden; min-height: 118px; box-shadow: 0 12px 24px -12px rgba(79, 70, 229, 0.6); }
.scr-hero::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.35), transparent); }
.meter { width: 56px; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.meter u { display: block; height: 100%; border-radius: inherit; background: var(--accent); transform-origin: left; }
.m1 { width: 86%; } .m2 { width: 64%; } .m3 { width: 42%; }
.js .meter u { animation: grow 1200ms var(--ease-out) 1300ms both; }
@keyframes grow { from { transform: scaleX(0.05); } }
.scr-row i.ok { background: var(--ok-soft); color: var(--ok); }
.scr-tabs { margin: auto 2px 0; padding: 7px 10px; justify-content: space-between; border-radius: 999px; background: color-mix(in srgb, var(--surface) 82%, transparent); box-shadow: var(--shadow-1); }
.scr-tabs span, .scr-tabs span:first-child { width: 34px; height: 28px; border-radius: 999px; background: none; display: grid; place-items: center; color: var(--text-3); }
.scr-tabs span svg { width: 15px; height: 15px; }
.scr-tabs span.on { background: var(--accent-soft); color: var(--accent); }
.composer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 6px 14px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-1); font-size: 12px; color: var(--text-3); }
.composer i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; transform: rotate(-90deg); }
.composer i svg { width: 13px; height: 13px; }
[data-theme="dark"] .composer i { color: #0b0b14; }
@media (prefers-reduced-motion: reduce) { .js .meter u { animation: none; } }

/* ---------- ClearDuck showcase ---------- */

.apps { grid-template-columns: 1.55fr 1fr; }
.app-feature { display: grid; grid-template-columns: 1fr auto; gap: clamp(20px, 3vw, 40px); align-items: stretch; padding-bottom: 0; min-height: 0; }
.app-copy { display: flex; flex-direction: column; gap: 10px; padding-bottom: clamp(24px, 3.4vw, 34px); min-width: 0; }
.app-feature h3 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); letter-spacing: -0.04em; margin-top: 12px; }
.app-tag { font: 650 1.1rem/1.3 var(--font-display); letter-spacing: -0.02em; color: var(--text) !important; }
img.store-icon { background: none; box-shadow: 0 0 0 1px var(--line), 0 10px 22px -8px rgba(0, 120, 200, 0.5); }
.shot { align-self: end; width: clamp(200px, 22vw, 250px); padding: 7px 7px 0; border-radius: 40px 40px 0 0; background: linear-gradient(145deg, #2c2c36, #0c0c12 40%, #1c1c26); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset, var(--shadow-3); max-height: 440px; overflow: hidden; }
.shot img { width: 100%; height: auto; border-radius: 33px 33px 0 0; }
.shot-dark { display: none; }
[data-theme="dark"] .shot-dark { display: block; }
[data-theme="dark"] .shot-light { display: none; }
@media (max-width: 1000px) { .apps { grid-template-columns: 1fr; } .apps .app-feature { grid-row: auto; } }
@media (max-width: 620px) {
  .app-feature { grid-template-columns: 1fr; }
  .app-copy { padding-bottom: 8px; }
  .shot { justify-self: center; width: min(250px, 78%); max-height: 380px; }
}
.apps { grid-template-columns: 1fr 1fr; }
.apps .app-feature { grid-column: 1 / -1; grid-row: auto; padding-inline: clamp(24px, 5vw, 56px); padding-top: clamp(28px, 5vw, 56px); }
.app-copy { max-width: 520px; justify-content: center; padding-bottom: clamp(28px, 5vw, 56px); }
.app-copy .store-row { margin-top: 22px; }
.shot { width: clamp(220px, 26vw, 290px); max-height: 470px; margin-right: clamp(0px, 4vw, 56px); }
@media (max-width: 1000px) { .apps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .apps { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .shot { margin-right: 0; } }
img.store-icon { width: 64px; height: 64px; object-fit: cover; }

/* ---------- FAQ: heading left, questions right ---------- */

.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-grid .section-head { margin-bottom: 0; position: sticky; top: 100px; }
.faq-grid .section-head .btn { margin-top: 26px; }
.faq-grid .faq { max-width: none; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid .section-head { position: static; } }

/* ---------- ClearDuck phone: a whole iPhone, not a cropped one ---------- */

.app-feature { align-items: center; padding-bottom: clamp(28px, 5vw, 56px); }
.app-copy { padding-bottom: 0; }
.shot { position: relative; align-self: center; width: clamp(220px, 24vw, 270px); max-height: none; overflow: visible; padding: 9px; border-radius: 15.5% / 7.2%; background: linear-gradient(145deg, #3a3a46, #0c0c12 35%, #23232d); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16) inset, 0 0 0 1px rgba(0, 0, 0, 0.6), var(--shadow-3), 0 40px 70px -30px rgba(0, 110, 190, 0.45); }
.shot picture { overflow: hidden; border-radius: 13.5% / 6.2%; }
.shot-light { display: block; }
.shot img { display: block; border-radius: 0; }
.shot::before { content: ""; position: absolute; z-index: 2; left: 50%; top: calc(9px + 1.6%); width: 28%; aspect-ratio: 125 / 37; transform: translateX(-50%); border-radius: 999px; background: #000; }
.shot::after { content: ""; position: absolute; right: -3px; top: 27%; width: 3px; height: 12%; border-radius: 0 2px 2px 0; background: #2a2a34; }
@media (max-width: 620px) { .app-feature { padding-bottom: clamp(24px, 3.4vw, 34px); } .shot { width: min(250px, 78%); max-height: none; margin-top: 12px; } }

/* Legal pages: the clauses that must stand out */
.doc .callout { margin: 14px 0 18px; padding: 20px 22px; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow-1); border-left: 0; }
.doc .callout p { color: var(--text); margin: 0 0 12px; }
.doc .callout p:last-child { margin-bottom: 0; }
.doc h2 { scroll-margin-top: 90px; }
.doc ul strong, .doc p strong { color: var(--text); }
.doc table th { width: 32%; }
.brand { white-space: nowrap; }

/* ================= ClearDuck: same system, water palette ================= */

:root {
  --accent: #0572b0;
  --accent-2: #12b5cf;
  --accent-3: #0a8fe0;
  --accent-soft: rgba(5, 114, 176, 0.09);
  --brand: linear-gradient(135deg, #27ccd8, #0a84d0 55%, #0b5fb0);
  --glow-1: rgba(18, 181, 207, 0.2);
  --glow-2: rgba(10, 132, 208, 0.16);
  --shadow-3: 0 0 0 1px rgba(12, 12, 40, 0.06), 0 28px 70px -14px rgba(10, 90, 150, 0.3);
}
:root[data-theme="dark"] {
  --accent: #5cc4f5;
  --accent-2: #6fe0e6;
  --accent-3: #4aa8ff;
  --accent-soft: rgba(92, 196, 245, 0.13);
  --glow-1: rgba(18, 181, 207, 0.22);
  --glow-2: rgba(10, 132, 208, 0.2);
  --shadow-3: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 80px -10px rgba(0, 0, 0, 0.7);
}
.cta { background: #06223a; }
.cta::before { background: radial-gradient(closest-side at 30% 40%, rgba(18, 181, 207, 0.55), transparent), radial-gradient(closest-side at 72% 60%, rgba(10, 110, 220, 0.45), transparent); }
.btn-light { color: #06223a; }
img.brand-mark { border-radius: 7px; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.15); }

/* Hero: copy left, the app right */
.hero-split { display: grid; grid-template-columns: minmax(0, 1.1fr) auto; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero-split .hero-copy { text-align: left; margin: 0; max-width: 620px; }
.hero-split h1 { font-size: clamp(2.45rem, 6.2vw, 4.5rem); }
.hero-split .lede { margin-inline: 0; }
.hero-split .hero-actions, .hero-split .pillars { justify-content: flex-start; }
.hero-phone { position: relative; justify-self: center; }
.hero-phone .shot { margin: 0; width: clamp(240px, 26vw, 300px); }
.js .hero-phone { animation: phone-rise 1000ms var(--ease-out) 200ms both; }
.hero-duck { position: absolute; z-index: 3; left: -56px; bottom: 34px; width: 112px; height: auto; filter: drop-shadow(0 14px 16px rgba(0, 60, 100, 0.28)); }
.js .hero-duck { animation: pop 700ms var(--ease-out) 1100ms both, bob 4.4s ease-in-out 1900ms infinite alternate; }
@keyframes bob { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-9px) rotate(3deg); } }
.soon { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 999px; background: var(--text); color: var(--bg); font: 600 16px/1 var(--font); }
.soon svg { width: 18px; height: 18px; }
@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-split .hero-copy { text-align: center; margin-inline: auto; }
  .hero-split .lede { margin-inline: auto; }
  .hero-split .hero-actions, .hero-split .pillars { justify-content: center; }
  .hero-duck { left: -34px; width: 92px; }
}

/* Feature tiles reuse .tier without the level bars */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature { border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-1); padding: 28px; }
.feature h3 { font-size: 1.2rem; letter-spacing: -0.025em; font-weight: 720; margin-top: 18px; }
.feature p { color: var(--text-2); font-size: 15.5px; margin: 8px 0 0; }

/* Screens row */
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.screens figure { margin: 0; display: grid; justify-items: center; gap: 18px; text-align: center; }
.screens .shot { margin: 0; width: min(100%, 270px); }
.screens figcaption strong { display: block; font: 720 1.12rem/1.3 var(--font-display); letter-spacing: -0.02em; }
.screens figcaption span { color: var(--text-2); font-size: 15px; }
@media (max-width: 760px) { .screens { grid-template-columns: 1fr; gap: 44px; } }

/* Plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); max-width: 880px; }
@media (max-width: 700px) { .plans { grid-template-columns: 1fr; } }
.plan { border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-1); padding: clamp(24px, 3.4vw, 34px); display: flex; flex-direction: column; gap: 6px; }
.plan-plus { background: radial-gradient(120% 90% at 100% 0%, var(--accent-soft), transparent 60%), var(--surface); box-shadow: var(--shadow-2); }
.plan h3 { font-size: 1.25rem; letter-spacing: -0.025em; font-weight: 720; }
.plan .price { font: 780 2.6rem/1.1 var(--font-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; margin-top: 6px; }
.plan .price small { font: 500 15px/1 var(--font); letter-spacing: 0; color: var(--text-2); }
.plan .sub { color: var(--text-2); font-size: 15px; }
.plan ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.plan li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--ok); }
.fine { color: var(--text-3); font-size: 13.5px; margin-top: 18px; max-width: 70ch; }

/* Safety band */
.safety-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.safety-grid .section-head { margin-bottom: 0; }
@media (max-width: 860px) { .safety-grid { grid-template-columns: 1fr; } }
.safety-grid .values { grid-template-columns: 1fr; }

.footer .safety-line { display: block; margin-top: 14px; color: var(--text-2); font-size: 13.5px; font-weight: 550; }
.steps-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .steps-3 { grid-template-columns: 1fr; row-gap: 36px; } }
.btn-primary { background: var(--text); }
.doc .faq { margin-top: 12px; max-width: none; }
@media (max-width: 560px) { .hero-split .nw { white-space: normal; } .hero-split h1 { font-size: 2.5rem; } }

/* ================= ClearDuck "joy" layer: sunny, light-only, a pool you want to jump in ================= */

:root {
  --bg: #f4fbfe;
  --bg-2: #e6f6fc;
  --text: #0b2b3a;
  --text-2: #3f5f70;
  --text-3: #5d7c8c;
  --line: rgba(11, 60, 90, 0.1);
  --line-2: rgba(11, 60, 90, 0.16);
  --accent: #0572b0;
  --accent-soft: rgba(5, 114, 176, 0.1);
  --sun: #ffd23f;
  --sun-deep: #dba400;
  --sea-1: #9fe0f2;
  --sea-2: #4cc6e8;
  --sea-3: #1aa6dc;
  --sea-4: #0b74bd;
  --header-bg: rgba(244, 251, 254, 0.82);
  --shadow-1: 0 0 0 1px rgba(11, 60, 90, 0.06), 0 2px 0 rgba(11, 60, 90, 0.05), 0 8px 20px -6px rgba(11, 90, 140, 0.12);
  --shadow-2: 0 0 0 1px rgba(11, 60, 90, 0.06), 0 3px 0 rgba(11, 60, 90, 0.06), 0 22px 40px -12px rgba(11, 90, 140, 0.24);
  --font-display: ui-rounded, "SF Pro Rounded", "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}
html { color-scheme: light; }
h1, h2, h3, .brand, .btn, .soon, .nav .nav-cta, .card-title, .value dt, .plan .price { font-family: var(--font-display); }
.brand { font-weight: 800; font-size: 19px; }
img.brand-mark { width: 30px; height: 30px; border-radius: 8px; }

/* Chunky buttons that press down */
.btn, .soon, .nav .nav-cta { border-radius: 16px; font-weight: 800; letter-spacing: 0; }
.btn-primary, .nav .nav-cta { background: var(--sun); color: #3b2a00; box-shadow: 0 4px 0 var(--sun-deep); }
.nav .nav-cta:hover { background: var(--sun); color: #3b2a00; opacity: 1; }
.btn-secondary { background: #fff; color: var(--accent); box-shadow: 0 0 0 2px var(--line-2) inset, 0 4px 0 #c5dfeb; }
.btn-light { background: var(--sun); color: #3b2a00; box-shadow: 0 4px 0 var(--sun-deep); }
.btn-ghost { background: rgba(255, 255, 255, 0.16); color: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5) inset, 0 4px 0 rgba(0, 40, 80, 0.25); }
.press { transition: transform 140ms var(--ease-out), box-shadow 140ms var(--ease-out); }
.btn.press:active, .nav .nav-cta.press:active { transform: translateY(3px) scale(1); box-shadow: 0 1px 0 var(--sun-deep); }
.btn-secondary.press:active { box-shadow: 0 0 0 2px var(--line-2) inset, 0 1px 0 #c5dfeb; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover, .btn-light:hover, .nav .nav-cta:hover { filter: brightness(1.05); }
  .btn-secondary:hover { box-shadow: 0 0 0 2px var(--accent) inset, 0 4px 0 #c5dfeb; }
  .btn-ghost:hover { background: rgba(255, 255, 255, 0.24); }
}
.soon { background: var(--sea-4); color: #fff; box-shadow: 0 4px 0 #064f86; border-radius: 16px; }

/* ---------- The pool (hero) ---------- */

.pool { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 72px) 250px; background: linear-gradient(180deg, #dff5fd 0%, #eefaff 55%, #f4fbfe 100%); }
.pool .hero-bg { display: none; }
.sky { position: absolute; inset: 0; pointer-events: none; }
.sunglow { position: absolute; right: -120px; top: -140px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 221, 102, 0.75), rgba(255, 221, 102, 0.25) 55%, transparent); }
.cloud { position: absolute; height: 44px; border-radius: 999px; background: #fff; opacity: 0.9; box-shadow: 34px -18px 0 4px #fff, 78px -6px 0 -4px #fff; }
.cloud.c1 { width: 120px; left: 6%; top: 92px; }
.cloud.c2 { width: 90px; left: 46%; top: 54px; opacity: 0.75; transform: scale(0.8); }
.js .cloud.c1 { animation: drift-cloud 46s linear infinite alternate; }
.js .cloud.c2 { animation: drift-cloud 62s linear infinite alternate-reverse; }
@keyframes drift-cloud { to { translate: 90px 0; } }

.pool .hero-split { position: relative; z-index: 2; }
.pool h1 { font-weight: 900; letter-spacing: -0.03em; line-height: 1.02; color: #08324a; }
.squiggle { position: relative; display: inline-block; color: var(--accent); white-space: nowrap; }
.squiggle svg { position: absolute; left: 0; right: 0; bottom: -0.2em; width: 100%; height: 0.32em; overflow: visible; }
.squiggle path { fill: none; stroke: var(--sun); stroke-width: 7; stroke-linecap: round; }
.js .squiggle path { stroke-dasharray: 640; stroke-dashoffset: 640; animation: draw 900ms var(--ease-out) 700ms forwards; }
.pool .lede { color: var(--text-2); font-size: clamp(1.1rem, 2vw, 1.3rem); }
.pool .pillars li { background: #fff; padding: 7px 14px 7px 7px; border-radius: 999px; box-shadow: var(--shadow-1); font-weight: 600; }
.pool .pillars { gap: 10px; }

.hero-phone .shot { rotate: 3deg; }
.js .hero-phone { animation: phone-rise 900ms var(--bounce) 200ms both; }
.shot picture { display: block; }
.shot { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16) inset, 0 0 0 1px rgba(0, 0, 0, 0.6), 0 30px 60px -20px rgba(8, 80, 130, 0.45); }

/* Sea at the bottom of the hero */
.sea { position: absolute; left: 0; right: 0; bottom: 0; height: 210px; z-index: 1; pointer-events: none; }
.sea::after { content: ""; position: absolute; left: 0; right: 0; top: 92px; bottom: 0; background: linear-gradient(180deg, var(--sea-3), var(--sea-4)); }
.wave { position: absolute; left: 0; width: 200%; height: 56px; }
.wave path { fill: currentColor; }
.w-back { top: 0; color: var(--sea-1); }
.w-mid { top: 20px; color: var(--sea-2); }
.w-front { top: 44px; color: var(--sea-3); z-index: 2; }
.js .w-back { animation: tide 26s linear infinite; }
.js .w-mid { animation: tide 17s linear infinite reverse; }
.js .w-front { animation: tide 11s linear infinite; }
@keyframes tide { to { transform: translateX(-50%); } }
.shore { position: absolute; left: 0; bottom: -1px; width: 200%; height: 46px; color: var(--bg); z-index: 3; }
.js .shore { animation: tide 30s linear infinite reverse; }

.float-duck { position: absolute; z-index: 1; left: clamp(16px, 9vw, 150px); top: -46px; width: 104px; height: auto; pointer-events: auto; cursor: pointer; filter: drop-shadow(0 8px 8px rgba(0, 70, 110, 0.25)); -webkit-tap-highlight-color: transparent; }
.js .float-duck { animation: swim 9s ease-in-out infinite alternate, bobble 2.6s ease-in-out infinite alternate; }
@keyframes swim { from { translate: 0 0; } to { translate: clamp(40px, 12vw, 220px) 0; } }
@keyframes bobble { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(9px) rotate(4deg); } }
.float-duck.hop { animation: hop 620ms var(--bounce); }
@keyframes hop { 0% { transform: translateY(0) scale(1, 1); } 30% { transform: translateY(-46px) scale(0.94, 1.08) rotate(-8deg); } 60% { transform: translateY(0) scale(1.1, 0.9); } 100% { transform: none; } }

.bub { position: absolute; z-index: 2; bottom: 8px; width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6); opacity: 0; }
.js .bub { animation: rise 6s ease-in infinite; }
.b1 { left: 12%; } .b2 { left: 27%; width: 8px; height: 8px; animation-delay: 1.4s !important; } .b3 { left: 44%; width: 16px; height: 16px; animation-delay: 2.6s !important; }
.b4 { left: 61%; width: 9px; height: 9px; animation-delay: 0.7s !important; } .b5 { left: 76%; animation-delay: 3.4s !important; } .b6 { left: 90%; width: 7px; height: 7px; animation-delay: 4.5s !important; }
@keyframes rise { 0% { transform: translateY(0) scale(0.6); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-104px) scale(1.1); opacity: 0; } }

@media (max-width: 860px) {
  .pool { padding-bottom: 220px; }
  .hero-phone .shot { rotate: 0deg; }
  .sunglow { width: 300px; height: 300px; right: -110px; top: -110px; }
  .cloud.c2 { display: none; }
}

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

.section-head h2 { font-weight: 900; letter-spacing: -0.025em; color: #08324a; }
.cd-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); list-style: none; margin: 0; padding: 0; counter-reset: s; }
@media (max-width: 800px) { .cd-steps { grid-template-columns: 1fr; } }
.cd-step { position: relative; background: #fff; border-radius: 28px; padding: 30px 28px 28px; box-shadow: var(--shadow-1); }
.cd-step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 18px; font: 900 24px/1 var(--font-display); color: #fff; background: var(--sea-3); box-shadow: 0 4px 0 #0b7cb8; rotate: -6deg; }
.cd-step:nth-child(2)::before { background: var(--sun); color: #3b2a00; box-shadow: 0 4px 0 var(--sun-deep); rotate: 5deg; }
.cd-step:nth-child(3)::before { background: #34c98a; box-shadow: 0 4px 0 #1f9c66; rotate: -3deg; }
.cd-step h3 { font-size: 1.35rem; font-weight: 800; margin-top: 20px; letter-spacing: -0.01em; }
.cd-step p { color: var(--text-2); margin: 8px 0 0; font-size: 16px; }

.feature { border-radius: 28px; background: #fff; transition: transform 260ms var(--bounce), box-shadow 260ms var(--ease-out); }
.feature h3 { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; }
.feature .icon-tile { width: 56px; height: 56px; border-radius: 18px; color: #fff; background: var(--tile, var(--sea-3)); box-shadow: 0 4px 0 var(--tile-deep, #0b7cb8); transition: transform 320ms var(--bounce); }
.feature .icon-tile svg { width: 28px; height: 28px; }
.t-blue { --tile: #1aa6dc; --tile-deep: #0b7cb8; } .t-green { --tile: #34c98a; --tile-deep: #1f9c66; } .t-teal { --tile: #20c4c9; --tile-deep: #12959a; }
.t-coral { --tile: #ff7a59; --tile-deep: #d6532f; } .t-purple { --tile: #8b6cf6; --tile-deep: #6547d1; } .t-sun { --tile: #ffc21a; --tile-deep: #d79a00; }
@media (hover: hover) and (pointer: fine) {
  .feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
  .feature:hover .icon-tile { transform: rotate(-8deg) scale(1.08); }
}

/* Screens: three phones on a soft pool */
.screens { position: relative; padding: clamp(28px, 4vw, 48px) clamp(16px, 4vw, 48px); border-radius: 40px; background: linear-gradient(180deg, #d9f3fc, #c2ebf9); }
.screens figure:nth-child(2) { margin-top: -18px; }
.screens .shot { width: min(100%, 250px); }
.screens figcaption strong { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: #08324a; }
@media (max-width: 760px) { .screens figure:nth-child(2) { margin-top: 0; } }

/* Deep water (safety) */
.deep { position: relative; margin-top: clamp(96px, 12vw, 150px); padding-block: clamp(72px, 9vw, 110px) clamp(84px, 10vw, 124px); background: linear-gradient(180deg, var(--sea-3), var(--sea-4)); color: #fff; }
.deep .wave-top { position: absolute; left: 0; top: -45px; width: 100%; height: 46px; overflow: hidden; }
.deep .wave-top svg { position: absolute; left: 0; top: 0; width: 200%; height: 46px; color: var(--sea-3); }
.js .deep .wave-top svg { animation: tide 14s linear infinite; }
.deep .wave-bottom { position: absolute; left: 0; bottom: -1px; width: 100%; height: 46px; overflow: hidden; }
.deep .wave-bottom svg { position: absolute; left: 0; top: 0; width: 200%; height: 46px; color: var(--bg); }
.js .deep .wave-bottom svg { animation: tide 22s linear infinite reverse; }
.deep .section-head h2 { color: #fff; }
.deep .section-head p { color: rgba(255, 255, 255, 0.92); }
.deep .values { gap: 12px; }
.deep .value { border: 0; padding: 20px 22px; border-radius: 22px; background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.3); }
.deep .value dt { color: #fff; font-weight: 800; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.deep .value dt svg { width: 22px; height: 22px; flex: none; color: var(--sun); }
.deep .value dd { color: rgba(255, 255, 255, 0.94); max-width: none; }
.deep .bub { bottom: 40px; }
.deep ::selection { background: rgba(255, 255, 255, 0.3); color: #fff; }
.deep + .section { padding-top: clamp(64px, 8vw, 96px); }

/* Pricing */
.plan { border-radius: 28px; background: #fff; }
.plan h3 { font-weight: 800; }
.plan .price { font-weight: 900; color: #08324a; }
.plan-plus { position: relative; background: #fff; box-shadow: 0 0 0 3px var(--sun), 0 6px 0 var(--sun-deep), 0 26px 44px -16px rgba(160, 120, 0, 0.35); overflow: visible; }
.plan-duck { position: absolute; right: 18px; top: -62px; width: 96px; height: auto; }
.js .plan-duck { animation: bobble 2.4s ease-in-out infinite alternate; }
.plan li svg { color: #1f9c66; }

/* Privacy chips */
.chips-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
@media (max-width: 900px) { .chips-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .chips-4 { grid-template-columns: 1fr; } }
.chip-card { background: #fff; border-radius: 24px; padding: 22px; box-shadow: var(--shadow-1); }
.chip-card strong { display: block; font: 800 1.1rem/1.3 var(--font-display); margin-top: 14px; }
.chip-card span { color: var(--text-2); font-size: 15px; }
.chip-card .icon-tile { width: 44px; height: 44px; border-radius: 14px; background: var(--bg-2); color: var(--accent); }

/* FAQ */
.faq details { border-radius: 22px; background: #fff; }
.faq summary { font-family: var(--font-display); font-weight: 800; border-radius: 22px; }
.faq summary .plus { background: var(--bg-2); color: var(--accent); }

/* Closing pool card */
.cta { background: linear-gradient(180deg, #2bb9e6, #0b74bd); border-radius: 40px; padding-bottom: clamp(110px, 14vw, 150px); }
.cta::before { display: none; }
.cta h2 { font-weight: 900; }
.cta .sea { height: 110px; }
.cta .sea::after { top: 60px; background: #0a66a8; }
.cta .w-back { color: rgba(255, 255, 255, 0.25); }
.cta .w-mid { color: rgba(255, 255, 255, 0.2); top: 16px; }
.cta .w-front { color: #0a66a8; top: 30px; }
.cta .float-duck { left: auto; right: clamp(20px, 12vw, 160px); top: -52px; width: 92px; }
.js .cta .float-duck { animation: bobble 2.6s ease-in-out infinite alternate; }

.footer { border-top: 0; }
.doc h1 { font-weight: 900; color: #08324a; }

@media (prefers-reduced-motion: reduce) {
  .js .cloud, .js .wave, .js .shore, .js .float-duck, .js .bub, .js .plan-duck, .js .deep .wave-top svg, .js .deep .wave-bottom svg { animation: none !important; }
  .js .squiggle path { animation: none; stroke-dashoffset: 0; }
  .btn.press:active { transform: none; }
}
.wave, .deep .wave-top svg, .deep .wave-bottom svg { overflow: visible; }
.hero-split h1, .pool h1 { font-size: clamp(2.3rem, 5.1vw, 3.9rem); }
.pool + .section { padding-top: clamp(40px, 6vw, 72px); }
.deep .wave-top { height: 47px; top: -46px; }
.footer { margin-top: clamp(48px, 6vw, 72px); }
.plans { max-width: 940px; }
@media (max-width: 860px) {
  .hero-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .squiggle { white-space: normal; }
  .pool h1 { font-size: clamp(2.1rem, 10.4vw, 2.7rem); }
  .cta { padding-bottom: 170px; }
  .cta .float-duck { width: 76px; right: 22px; top: -44px; }
}
@media (max-width: 700px) { .plan-plus { margin-top: 44px; } }

/* The hero phone stands in the pool: back waves behind it, the front wave in front. */
.pool .sea-back::after { display: none; }
.pool .sea-back { z-index: 1; }
.pool .hero-split { z-index: 2; }
.pool .sea-front { z-index: 3; }
.pool .sea-front .w-front { top: 44px; }
.pool .hero-phone { align-self: end; margin-bottom: -196px; }
.pool .float-duck { z-index: 1; }
@media (max-width: 860px) { .pool .hero-phone { margin-top: 36px; margin-bottom: -170px; } }
.pool .sea-front .float-duck { z-index: 1; }
.pool .sea-front .w-front { z-index: 2; }
.pool .sea-front::after { z-index: 2; }
/* The phone is always visible; the entrance only moves it. */
.js .hero-phone { animation: phone-in 900ms var(--bounce) 200ms both; }
@keyframes phone-in { from { transform: translateY(46px) scale(0.96); } }
@media (max-width: 620px) { .pool .float-duck { width: 80px; top: -30px; left: 6px; } }
