@font-face {
  font-family: Onest;
  src: url("assets/onest-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Onest;
  src: url("assets/onest-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #fbf9f5;
  --sheet: #fff;
  --wash: #f4f1ea;
  --ink: #16181d;
  --graphite: #525660;
  --rule: #ece7de;
  --lapis: #24478f;
  --lapis-deep: #1d3a75;
  --stage: #eff2f6;
  --phone-edge: #343940;
  --phone-black: #080a0d;
  --chat-surface: #0e1621;
  --chat-raised: #172430;
  --chat-in: #233345;
  --chat-out: #24476c;
  --chat-ink: #f5f9ff;
  --chat-muted: #c1d0e1;
  --chat-action: #203e56;
  --chat-action-hover: #2d506c;
  --radius: 24px;
  --shell: 1152px;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.55 Onest, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.08; }
h1 { font-size: clamp(2.3rem, 5.3vw, 4.85rem); letter-spacing: -.037em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.55vw, 3.25rem); letter-spacing: -.033em; text-wrap: balance; }
h3 { font-size: 1.24rem; letter-spacing: -.017em; }
p { color: var(--graphite); }
a { color: var(--lapis); text-underline-offset: .24em; }
button { color: inherit; font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--lapis); outline-offset: 4px; }
::selection { background: var(--lapis); color: var(--sheet); }

.shell { width: min(var(--shell), calc(100% - 56px)); margin-inline: auto; }
.sr-only, .choice input:not(:focus-visible) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  z-index: 5;
  left: 12px;
  top: 8px;
  background: var(--sheet);
  padding: .65rem 1rem;
  transform: translateY(-200%);
}

.skip:focus { transform: none; }
.masthead { border-bottom: 1px solid var(--rule); background: var(--paper); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 7px;
  color: var(--ink);
  font-size: 1.11rem;
  font-weight: 700;
  letter-spacing: -.025em;
  text-decoration: none;
  white-space: nowrap;
}

nav { display: flex; gap: 28px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--graphite); font-size: .94rem; text-decoration: none; }
nav a:hover { color: var(--lapis); text-decoration: underline; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--lapis);
  color: var(--sheet);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color .16s, border-color .16s;
}

.button:hover { background: var(--lapis-deep); }
.button.secondary { background: var(--sheet); border-color: var(--rule); color: var(--ink); }
.button.secondary:hover { background: var(--wash); border-color: var(--graphite); }
.header-cta { min-height: 44px; padding: 8px 16px; font-size: .87rem; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(30px, 5vw, 78px);
  padding-block: clamp(46px, 6.6vw, 96px);
}

.hero h1 { max-width: 12.8ch; }
.page-owner .hero h1 { max-width: 13ch; }
.page-sales .hero h1 { max-width: 12ch; }
.page-start .hero h1 { max-width: 11ch; }
.lead { max-width: 45ch; margin-top: 22px; font-size: clamp(1.05rem, 1.38vw, 1.28rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.offer-note { margin-top: 14px; font-size: .89rem; }
.hardware, .sample, .starter { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--sheet); }
.hardware img { width: 100%; height: auto; aspect-ratio: 1.18; object-fit: cover; object-position: center 62%; }
.hardware figcaption, .sample figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  justify-content: space-between;
  align-items: center;
  padding: 14px 19px;
  font-size: .89rem;
}

.hardware figcaption span, .sample figcaption span { color: var(--graphite); }
.sample { padding: clamp(23px, 3vw, 40px); }
.sample-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--graphite); font-size: .89rem; }
.sample-meta span:first-child { color: var(--lapis); font-weight: 700; }
.sample-body { margin-top: 31px; }
.sample-title { display: block; font-size: clamp(1.48rem, 2.65vw, 2.35rem); line-height: 1.1; letter-spacing: -.024em; }
.sample-body > p { margin-top: 9px; font-size: .9rem; }
.output-rows { margin-top: 22px; font-size: .89rem; }
.output-rows div { display: flex; justify-content: space-between; gap: 12px; padding-block: 10px; border-top: 1px solid var(--rule); }
.output-rows dd { flex-shrink: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.sample figcaption { margin: 13px 0 0; background: var(--wash); border-radius: 12px; }
.sample figcaption strong { color: var(--lapis); }
.starter { padding: clamp(23px, 3.6vw, 43px); }
.starter h2 { font-size: clamp(1.55rem, 2.6vw, 2.2rem); }
.starter-list { list-style: none; counter-reset: starter; margin: 23px 0 0; padding: 0; }
.starter-list li { counter-increment: starter; display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: start; gap: 11px; padding-block: 17px; border-top: 1px solid var(--rule); color: var(--graphite); }
.starter-list li::before { content: counter(starter); color: var(--lapis); font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.starter-list li:last-child { padding-bottom: 0; }
.starter-list strong { display: inline-block; margin-bottom: 2px; color: var(--ink); }

.section { padding-block: clamp(49px, 7vw, 92px); border-top: 1px solid var(--rule); }
.section-white { background: var(--sheet); }
.section-heading p { max-width: 62ch; margin-top: 13px; font-size: 1.05rem; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 23px 0 24px; padding: 0; border: 0; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 17px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--graphite);
  font-size: .93rem;
  font-weight: 700;
}

.choice:hover span { background: var(--paper); color: var(--ink); }
.choice input:checked + span { border-color: var(--lapis); background: var(--lapis); color: var(--sheet); }
.choice input:focus-visible + span { outline: 2px solid var(--lapis); outline-offset: 3px; }
.demo-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  min-height: 620px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}

.phone-stage { display: grid; place-items: center; padding: 30px 20px; background: var(--stage); }
.phone {
  width: min(100%, 294px);
  aspect-ratio: 9/19;
  display: flex;
  padding: 4px;
  border: 1px solid var(--phone-edge);
  background: var(--phone-black);
  border-radius: 40px;
  box-shadow: 0 19px 32px -22px rgb(22 24 29 / 48%);
}

.phone-screen {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  padding-bottom: 9px;
  border-radius: 35px;
  background: var(--chat-surface);
  color: var(--chat-ink);
  font-size: .89rem;
  line-height: 1.38;
}

.ios-status { position: relative; display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 3px 18px 0; background: var(--chat-raised); font-size: .75rem; font-weight: 700; }
.ios-status i { position: absolute; top: 12px; left: calc(50% - 38px); width: 76px; height: 19px; border-radius: 999px; background: var(--phone-black); }
.chat-head { display: flex; align-items: center; gap: 9px; padding: 3px 13px 11px; background: var(--chat-raised); }
.chat-head img { padding: 4px; border-radius: 50%; background: var(--paper); }
.chat-head span { display: block; color: var(--chat-muted); font-size: .75rem; }
.chat-flow { display: grid; gap: 10px; min-height: 0; overflow-y: auto; margin-top: 30px; padding: 0 11px; }
.bubble { padding: 10px 11px; border-radius: 15px; }
.bubble-out { width: 91%; justify-self: end; background: var(--chat-out); border-bottom-right-radius: 4px; }
.bubble-in { width: 95%; background: var(--chat-in); border-bottom-left-radius: 4px; }
.bubble-in ul { display: grid; gap: 6px; margin: 7px 0 0; padding: 0; list-style: none; }
.bubble-in li span, .bubble-in li strong { display: block; }
.bubble-in li span { color: var(--chat-muted); font-size: .75rem; }
.bubble-in li strong { font-size: .85rem; }
.chat-action {
  min-height: 44px;
  margin: 10px 12px 0;
  padding: 5px 9px;
  border: 0;
  border-radius: 10px;
  background: var(--chat-action);
  color: var(--chat-ink);
  font-weight: 700;
}

.chat-action[data-approve], .chat-complete { flex-shrink: 0; margin-bottom: 8px; }
.chat-action:hover { background: var(--chat-action-hover); }
.chat-action:focus-visible { outline-color: var(--chat-ink); outline-offset: 2px; }
.chat-complete { display: grid; }
.chat-complete p { margin: 9px 13px 0; color: var(--chat-muted); font-size: .85rem; }
.chat-complete .chat-action { margin-top: 6px; }
.home-indicator { width: 92px; flex: 0 0 4px; align-self: center; margin-top: auto; border-radius: 999px; background: var(--chat-muted); }
.draft { align-self: center; max-width: 500px; padding: clamp(24px, 4vw, 58px); }
.draft-label { color: var(--lapis); font-size: .9rem; font-weight: 700; }
.draft h3 { margin-top: 10px; font-size: clamp(1.5rem, 2.6vw, 2.3rem); }
.draft p { margin-top: 14px; font-size: 1.07rem; }
.draft-note { margin-top: 25px; padding-top: 13px; border-top: 1px solid var(--rule); color: var(--graphite); font-size: .86rem; }

.workflow, .faq, .contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 85px); align-items: start; }
.workflow-list { list-style: none; margin: 0; padding: 0; }
ol.workflow-list { counter-reset: workflow; }
.workflow-list li { display: flex; gap: 14px; border-top: 1px solid var(--rule); padding: 17px 0; }
.workflow-list li:last-child { border-bottom: 1px solid var(--rule); }
ol.workflow-list li { counter-increment: workflow; }
ol.workflow-list li::before { content: counter(workflow); width: 22px; flex: 0 0 22px; color: var(--lapis); font-weight: 700; font-size: 1.28rem; line-height: 1.05; }
.workflow-list p { margin-top: 5px; }
details { border-top: 1px solid var(--rule); }
details:last-child { border-bottom: 1px solid var(--rule); }
summary { min-height: 52px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 3px; list-style: none; font-weight: 700; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary > span { position: relative; flex: 0 0 16px; width: 16px; height: 16px; color: var(--lapis); }
summary > span::before, summary > span::after { content: ""; position: absolute; inset: 7px 2px; height: 2px; background: currentColor; }
summary > span::after { transform: rotate(90deg); }
details[open] summary > span::after { display: none; }
details > p { padding: 0 20px 16px 3px; }
.contact { grid-template-columns: minmax(0, 1.13fr) minmax(0, .87fr); padding: clamp(24px, 4.8vw, 58px); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--sheet); }
.contact p { margin-top: 12px; }
.contact .button { margin-top: 22px; }
.cost { align-self: center; }
.cost > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 13px; padding-block: 12px; border-top: 1px solid var(--rule); }
.cost > div:first-child { border-top: 0; }
.cost span, .cost small { color: var(--graphite); }
.cost strong { font-variant-numeric: tabular-nums; }
.cost a, .footer a { display: inline-flex; align-items: center; min-height: 44px; }
.footer { border-top: 1px solid var(--rule); background: var(--wash); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0 20px; padding-block: 10px; }

@media (max-width: 860px) {
  .shell { width: calc(100% - 40px); }
  .hero { gap: 23px; }
  .hero-actions .button { padding-inline: 15px; }
  .hardware img { aspect-ratio: 1; }
  .sample { padding: 21px; }
}

@media (max-width: 680px) {
  .hero, .workflow, .faq, .contact { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 28px; }
  .hardware img { aspect-ratio: 1.35; object-position: center 64%; }
  .demo-panel { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .phone-stage { order: 1; padding-block: 25px; }
  .draft { max-width: none; }
  .demo-panel .draft-note { margin-top: 16px; }
  .masthead-inner { gap: 12px; }
}

@media (max-width: 530px) {
  nav { display: none; }
  .shell { width: calc(100% - 32px); }
  .hero h1 { max-width: none; }
  .hero { padding-top: 35px; }
  .hero-actions { margin-top: 22px; }
  .choices { gap: 6px; }
  .choice span { padding-inline: 12px; font-size: .87rem; }
}

@media (max-width: 360px) {
  .header-cta { padding-inline: 11px; }
  .phone-stage { padding-inline: 10px; }
  .phone { border-radius: 34px; }
  .phone-screen { border-radius: 29px; }
  .chat-flow { gap: 8px; margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}
