:root {
  --base: #eef6f4;
  --ink: #142925;
  --muted: #384d49;
  --accent: #a71b43;
  --hop: #276856;
  --line: #c9ddd6;
  --card: #ffffff;
  --foam: #f7f3ee;
  --rose-soft: #f8e7ec;
  --invert: #142925;
  --on-invert: #e7f3ef;
  color-scheme: light;
}

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

html,
body { overflow-x: clip; }

html { scroll-behavior: auto; }

body {
  margin: 0;
  min-height: 100%;
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--base);
}

img,
svg,
video,
canvas { max-width: 100%; }

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.site-header,
main,
.site-footer { position: relative; z-index: 1; }

h1, h2, h3,
.brand,
.stat-num,
.step-num,
.contact-name,
.btn,
.eyebrow {
  font-family: "Oswald", system-ui, sans-serif;
}

h1, h2, h3 { font-weight: 600; text-wrap: balance; }

h1 {
  margin: 0 0 14px;
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  scroll-margin-top: 96px;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  line-height: 1.2;
  font-weight: 500;
  scroll-margin-top: 96px;
}

p { margin: 0 0 1rem; text-wrap: pretty; }

a { color: var(--accent); }

p a,
.prose a,
.footer-links a { text-underline-offset: 0.18em; }

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

::selection { background: #f3c3d0; color: var(--ink); }

.wrap {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

.skip {
  position: absolute;
  left: max(12px, env(safe-area-inset-left));
  top: calc(env(safe-area-inset-top) + 8px);
  z-index: 80;
  transform: translateY(-150%);
  background: #fff;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
}

.skip:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--base);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  flex-wrap: wrap;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
  max-width: calc(100% - 56px);
  overflow-wrap: anywhere;
}

html.js body.nav-open .burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
html.js body.nav-open .burger i:nth-child(2) { opacity: 0; }
html.js body.nav-open .burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  position: relative;
  z-index: 2;
  cursor: pointer;
}

.burger {
  position: relative;
  width: 22px;
  height: 16px;
  display: block;
}

.burger i {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: 7px; }
.burger i:nth-child(3) { top: 14px; }

.nav-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.nav-panel a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
}

.nav-panel a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.lede,
.dek { max-width: 68ch; font-size: 1.125rem; color: var(--muted); }

.section { padding: 56px 0; }

.hero {
  min-height: calc(100svh - 72px);
  min-height: calc(100dvh - 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0 36px;
}

.hero-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 12px;
  align-items: center;
}

.hero-copy { grid-column: 1 / -1; }

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 2px solid transparent;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-secondary { border-color: var(--ink); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 8px 0 0;
  list-style: none;
}

.chips li {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 500;
}

.device {
  width: min(100%, 300px);
  margin-inline: auto;
  background: var(--ink);
  padding: 8px;
  border-radius: 28px;
  box-shadow: 0 22px 44px rgba(20, 41, 37, 0.16);
}

.device-ios { border-radius: 34px; }

.device-screen {
  background: linear-gradient(#f8fcfb, #e5f1ed);
  color: var(--ink);
  border-radius: 22px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.device-ios .device-screen { border-radius: 26px; }

.status {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 8px 12px 0;
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
}

.status .time { justify-self: start; }
.status .sig { justify-self: end; display: flex; gap: 2px; align-items: flex-end; height: 10px; }
.status .sig i { display: block; width: 3px; background: var(--ink); border-radius: 1px; }
.status .sig i:nth-child(1) { height: 4px; }
.status .sig i:nth-child(2) { height: 7px; }
.status .sig i:nth-child(3) { height: 10px; }

.island {
  width: 58px;
  height: 16px;
  background: var(--ink);
  border-radius: 20px;
}

.hole {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink);
  display: block;
}

.screen-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

.app-kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hop);
  font-weight: 500;
}

.app-title {
  margin: 0;
  font-family: "Oswald", system-ui, sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}

.msg {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  padding: 8px 10px;
  border-radius: 12px;
  max-width: 95%;
}

.msg-user { align-self: flex-end; background: var(--ink); color: #fff; }
.msg-bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); }

.plan {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan li {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 10px;
  padding: 7px 8px;
  font-size: 12px;
  line-height: 1.3;
  border: 1px solid var(--line);
}

.tick {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--hop);
  flex: none;
  position: relative;
}

.tick.on { background: var(--hop); }
.tick.on::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.home-bar {
  width: 84px;
  height: 4px;
  border-radius: 4px;
  background: var(--ink);
  margin: 8px auto 10px;
  opacity: 0.8;
}

.device-caption {
  margin: 8px 0 0;
  text-align: center;
  font-family: "Oswald", system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 1rem;
}

.section-head { margin-bottom: 22px; }

.bento, .stats, .note-grid {
  display: grid;
  gap: 12px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}

.card p:last-child { margin-bottom: 0; }

.card-invert {
  background: var(--invert);
  color: var(--on-invert);
  border-color: var(--invert);
}

.card-invert p { color: var(--on-invert); }
.card-invert .eyebrow,
.card-invert h3 { color: #fff; }

.icon { width: 48px; height: 48px; display: block; margin-bottom: 12px; }
.mark-icon { width: 28px; height: 28px; flex: none; }
.composer {
  margin-top: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 12px;
  color: var(--muted);
}
.icon .accent { fill: var(--accent); }
.card-invert .icon .accent { fill: #ffd0dc; }
.card-invert .icon { color: #fff; }

.wash { background: rgba(255, 255, 255, 0.72); }

.sticky-copy p { max-width: 68ch; }

.scene { width: 100%; height: auto; display: block; }

.diagram-frame {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px;
}

.diagram-wide { display: none; }
.diagram-tall, .diagram-wide { width: 100%; height: auto; }

figure { margin: 0; }
figcaption { margin-top: 10px; max-width: 68ch; color: var(--muted); }

.stat {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}

.stat-num {
  margin: 0;
  font-size: clamp(3rem, 5vw, 4.75rem);
  line-height: 0.9;
  color: var(--accent);
  font-weight: 600;
}

.stat-label {
  margin: 8px 0;
  font-family: "Oswald", system-ui, sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
}

.steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.step {
  display: grid;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
}

.step-num {
  font-size: 2.4rem;
  line-height: 1;
  color: var(--accent);
  font-weight: 600;
}

.step p { max-width: 68ch; margin: 0; }

.center-head { text-align: center; }
.center-head .dek { margin-inline: auto; }

.assistant-grid { display: grid; gap: 24px; align-items: center; }

.chat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  min-height: 420px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 40px rgba(20, 41, 37, 0.06);
}

.chat-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.chat-top p { margin: 0; font-weight: 500; }

.tag {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--rose-soft);
  color: var(--accent);
  font-weight: 500;
}

.chat-log { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

.bubble {
  margin: 0;
  max-width: 92%;
  padding: 12px 14px;
  border-radius: 16px;
  line-height: 1.5;
}

.bubble.user { align-self: flex-end; background: var(--ink); color: #fff; }
.bubble.bot { align-self: flex-start; background: var(--base); color: var(--ink); }

.chat-note { margin: auto 0 0; padding-top: 16px; color: var(--muted); }

.band-rose {
  background: var(--accent);
  color: #fff;
}

.band-rose .eyebrow,
.band-rose h2,
.band-rose p,
.band-rose a { color: #fff; }

.band-rose .btn-primary { background: #fff; color: var(--accent); }
.band-rose .btn-secondary { border-color: #fff; color: #fff; }

.contact-name {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  margin: 0 0 8px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.split-cta { display: grid; gap: 20px; align-items: center; }

.cta-art { width: 100%; height: auto; display: block; }

.site-footer {
  background: var(--ink);
  color: #eef6f4;
  padding-top: 36px;
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

.site-footer a { color: #fff; }

.footer-grid { display: grid; gap: 18px; }

.footer-name {
  font-family: "Oswald", system-ui, sans-serif;
  font-size: 1.6rem;
  margin: 0 0 8px;
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-links a { min-height: 44px; display: inline-flex; align-items: center; }

.page-hero { padding: 28px 0 8px; }
.page-hero-grid { display: grid; gap: 8px; align-items: center; }

.effective {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin: 8px 0 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 500;
}

.doc { display: block; }

.toc-desktop { display: none; }

.toc-mobile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 14px;
  margin-bottom: 16px;
}

.toc-mobile summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-family: "Oswald", system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.toc a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  border-left: 2px solid var(--line);
  padding-left: 12px;
}

.prose {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 18px 8px;
}

.prose h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose p { max-width: 70ch; }

.contact-grid { display: grid; gap: 16px; }

.field { margin-bottom: 16px; }

label { display: block; font-weight: 500; margin-bottom: 6px; }

input, textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}

textarea { min-height: 150px; resize: vertical; }

.form-card { padding: 18px; }
.form-card .btn { width: 100%; }

.band-rose :focus-visible,
.site-footer :focus-visible,
.card-invert :focus-visible { outline-color: #fff; }

@media (min-width: 640px) {
  .actions { flex-direction: row; flex-wrap: wrap; }
  .btn { width: auto; }
  .bento, .note-grid, .stats { grid-template-columns: 1fr 1fr; }
  .step { grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
  .device-screen { min-height: 360px; }
}

@media (max-width: 899px) {
  html.js .nav-toggle { display: inline-flex; }
  html.js .nav-bar { flex-wrap: nowrap; }
  html.js .nav-panel {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: var(--base);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 6px;
    padding: calc(80px + env(safe-area-inset-top)) 28px calc(28px + env(safe-area-inset-bottom));
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
  }
  html.js body.nav-open .nav-panel {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  html.js .nav-panel a {
    font-family: "Oswald", system-ui, sans-serif;
    font-size: 2rem;
    font-weight: 500;
    min-height: 48px;
    width: 100%;
  }
  html.js body.nav-open .nav-toggle { background: #fff; }
}

@media (min-width: 900px) {
  body { font-size: 18px; }
  .section { padding: 88px 0; }
  .hero { padding: 20px 0 48px; }
  .hero-stage {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr) minmax(0, 0.9fr);
    grid-template-areas: "ios copy android";
    gap: 28px;
  }
  .hero-copy { grid-column: auto; grid-area: copy; }
  .ios-col { grid-area: ios; }
  .android-col { grid-area: android; }
  .device-screen { min-height: 470px; }
  .bento { grid-template-columns: 1.25fr 1fr 1fr; }
  .bento .wide { grid-row: span 2; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .sticky-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
    gap: 48px;
    align-items: start;
  }
  .sticky-col { position: sticky; top: 88px; }
  .assistant-grid, .split-cta, .page-hero-grid, .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
    gap: 40px;
  }
  .page-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr); }
  .contact-grid { align-items: start; }
  .diagram-tall { display: none; }
  .diagram-wide { display: block; }
  .doc {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 36px;
    align-items: start;
  }
  .toc-mobile { display: none; }
  .toc-desktop { display: block; position: sticky; top: 96px; }
  .prose { padding: 36px 40px 16px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; }
  .note-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1200px) {
  .wrap { width: min(1160px, 100%); }
  .hero-stage { gap: 36px; }
}

@media (prefers-reduced-motion: no-preference) {
  .nav-panel { transition: opacity 0.2s ease, transform 0.2s ease; }
  .burger i { transition: transform 0.2s ease, opacity 0.2s ease; }
  .btn, .card, .stat, .step { transition: transform 0.2s ease; }
  .btn:hover, .btn:focus-visible, .btn:active { transform: translateY(-2px); }
  .card:hover, .card:focus-within, .card:active,
  .stat:hover, .stat:focus-within,
  .step:hover, .step:focus-within { transform: translateY(-3px); }
  .device { will-change: transform; animation: bob 7s ease-in-out infinite alternate; }
  .device-android { animation-duration: 8.6s; animation-delay: -2.2s; }
  html.js .reveal { opacity: 0; transform: translateY(14px); }
  html.js .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  html.js .reveal.is-in .bubble { animation: rise 0.45s ease both; }
  html.js .reveal.is-in .bubble:nth-child(2) { animation-delay: 0.08s; }
  html.js .reveal.is-in .bubble:nth-child(3) { animation-delay: 0.16s; }
  html.js .reveal.is-in .bubble:nth-child(4) { animation-delay: 0.24s; }
}

@keyframes bob {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 0; justify-content: flex-start; padding-top: 12px; }
  .device-screen { min-height: 0; }
  h1 { font-size: 2.4rem; }
}
