/* DispatchO public home page. Same palette and fonts as the app. Mobile first. */
:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #475569;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --ground: #f6f7f9;
  --white: #ffffff;
  --night: #0b1220;
  --night-2: #1e293b;
  --night-text: #cbd5e1;
  --night-muted: #94a3b8;
  --navy: #1e3a8a;
  --navy-dark: #172554;
  --rec: #b91c1c;
  --dot: #ef4444;
  --ok: #047857;
  --ok-bg: #d1fae5;
  --display: 'Manrope', system-ui, sans-serif;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--ground);
  font-size: 16px;
  line-height: 1.55;
}
a {
  color: var(--navy);
}
a:hover {
  color: var(--navy-dark);
}
h1,
h2,
h3 {
  font-family: var(--display);
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0;
}
[hidden] {
  display: none !important;
}
.mono {
  font-family: var(--mono);
}
:focus-visible {
  outline: 3px solid #60a5fa;
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--white);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus {
  left: 8px;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-lg {
  min-height: 54px;
  padding: 0 24px;
}
.btn-light {
  background: var(--white);
  color: var(--ink);
}
.btn-light:hover {
  background: #e2e8f0;
  color: var(--ink);
}
.btn-ghost {
  border-color: #334155;
  color: var(--white);
}
.btn-ghost:hover {
  background: var(--night-2);
  color: var(--white);
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--navy-dark);
  color: var(--white);
}
.btn-primary:disabled {
  opacity: 0.7;
  cursor: progress;
}
.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--ground);
  color: var(--ink);
}

/* ---------- Dark areas ---------- */
.dark {
  background: var(--night);
  color: var(--white);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--night-muted);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot);
  flex-shrink: 0;
}

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  color: var(--white);
  text-decoration: none;
}
.logo:hover {
  color: var(--white);
}
.logo-o {
  width: 17px;
  height: 17px;
  border: 4px solid currentColor;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
}
.logo-o span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dot);
}

/* ---------- Nav ---------- */
.nav {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--night-2);
  max-width: none;
}
@media (min-width: 1100px) {
  .nav {
    height: 76px;
    padding-left: max(40px, calc((100% - 1200px) / 2 + 20px));
    padding-right: max(40px, calc((100% - 1200px) / 2 + 20px));
  }
}
.nav-links {
  display: none;
  gap: 32px;
  font-size: 15px;
}
.nav-links a,
.menu-panel a {
  color: var(--night-text);
  text-decoration: none;
}
.nav-links a:hover,
.menu-panel a:hover {
  color: var(--white);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-signin {
  min-height: 44px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.nav-signin:hover {
  color: var(--night-text);
}
.nav-cta {
  display: none;
  min-height: 44px;
  font-size: 15px;
}
.menu {
  position: relative;
}
.menu summary {
  list-style: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 10px;
  color: var(--white);
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu[open] summary {
  background: var(--night-2);
}
.menu-panel {
  position: absolute;
  right: 0;
  top: 52px;
  width: 220px;
  background: var(--night-2);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  z-index: 5;
  box-shadow: 0 16px 32px rgba(2, 6, 23, 0.5);
}
.menu-panel a {
  padding: 12px;
  border-radius: 8px;
}
@media (min-width: 1100px) {
  .nav-links {
    display: flex;
  }
  .nav-cta {
    display: inline-flex;
    margin-left: 8px;
  }
  .menu {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 40px;
  padding-bottom: 48px;
  display: grid;
  gap: 40px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero h1 {
  font-weight: 800;
  font-size: 40px;
  line-height: 1.12;
  letter-spacing: -1.2px;
}
.lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--night-text);
  max-width: 560px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-actions .btn {
  flex: 1 1 200px;
}
.hero-note {
  font-size: 14px;
  color: var(--night-muted);
}
@media (min-width: 768px) {
  .hero h1 {
    font-size: 56px;
    letter-spacing: -1.8px;
  }
  .hero-actions .btn {
    flex: 0 0 auto;
  }
}
@media (min-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 600px);
    align-items: center;
    gap: 64px;
    padding-top: 88px;
    padding-bottom: 104px;
  }
  .hero h1 {
    font-size: 64px;
    letter-spacing: -2px;
  }
  .lead {
    font-size: 19px;
  }
}

/* Product mock */
.mock {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mock-cam {
  position: relative;
  aspect-ratio: 7 / 5;
  border-radius: 16px;
  background: var(--night-2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mock-box {
  width: 55%;
  height: auto;
  stroke: #64748b;
}
.mock-box .hl {
  stroke: var(--night-muted);
}
.rec {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--rec);
  border-radius: 999px;
  padding: 5px 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}
.rec span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--white);
  animation: blink 1.6s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0.2;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rec span {
    animation: none;
  }
}
.stamp {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: var(--night);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.45;
  color: #f8fafc;
}
.mock-card {
  display: none;
}
.mock-seal {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
}
.mock-seal > span:last-child {
  display: flex;
  flex-direction: column;
  font-size: 14px;
}
.mock-seal .mono {
  font-size: 12px;
  color: var(--muted);
}
.seal-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ok-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.seal-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--ok);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (min-width: 768px) {
  .mock {
    display: block;
    height: 480px;
    max-width: 640px;
  }
  .mock-cam {
    position: absolute;
    left: 0;
    top: 0;
    width: 88%;
    aspect-ratio: auto;
    height: 400px;
  }
  .stamp {
    font-size: 13px;
    padding: 10px 12px;
  }
  .mock-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: absolute;
    right: 0;
    top: 150px;
    width: 280px;
    background: var(--white);
    color: var(--ink);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 24px 48px rgba(2, 6, 23, 0.45);
  }
  .mock-seal {
    position: absolute;
    left: 32px;
    bottom: 0;
    box-shadow: 0 16px 32px rgba(2, 6, 23, 0.4);
  }
}
.mock-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.mock-card-head strong {
  font-family: var(--display);
  font-weight: 800;
}
.mock-card-head span {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
}
.mock-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
.mock-card li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mock-card li svg,
.ticks li::before {
  flex-shrink: 0;
}
.mock-card li svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--ok);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mock-card dl,
.phone-facts {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  font-size: 12px;
  color: var(--muted);
}
.mock-card dl {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.mock-card dd,
.phone-facts dd {
  margin: 0;
  color: var(--ink);
}
.mock-card dd {
  font-family: var(--mono);
}

/* ---------- Sections ---------- */
.section {
  padding-top: 56px;
  padding-bottom: 56px;
}
.section.wrap {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.band {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band > .wrap {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.intro {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
}
.intro h2,
.section h2 {
  font-weight: 800;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.6px;
}
.intro p,
.lead-dark {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}
@media (min-width: 1100px) {
  .section {
    padding-top: 112px;
    padding-bottom: 112px;
  }
  .section.wrap,
  .band > .wrap {
    gap: 48px;
  }
  .intro h2,
  .section h2 {
    font-size: 44px;
    letter-spacing: -1px;
  }
  .intro p,
  .lead-dark {
    font-size: 18px;
  }
  .intro-split {
    max-width: none;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 48px;
  }
  .intro-split h2 {
    max-width: 620px;
  }
  .intro-split p {
    max-width: 420px;
  }
}

.grid-3,
.grid-4 {
  display: grid;
  gap: 16px;
}
@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
}
@media (min-width: 1100px) {
  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card p {
  font-size: 15px;
  color: var(--muted);
}
.card .quote {
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.3;
  color: var(--ink);
}
.card h3 {
  font-weight: 800;
  font-size: 20px;
}
@media (min-width: 1100px) {
  .card {
    padding: 28px;
  }
  .card .quote {
    font-size: 24px;
  }
  .card h3 {
    font-size: 22px;
  }
}
.label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
}
.steps li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 3px solid var(--ink);
  padding-top: 18px;
}
.steps li.step-rec {
  border-top-color: var(--rec);
}
.steps li.step-rec .label {
  color: var(--rec);
}
.steps h3 {
  font-weight: 800;
  font-size: 20px;
}
.steps p {
  font-size: 15px;
  color: var(--muted);
}
@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .steps h3 {
    font-size: 22px;
  }
}

/* Customer view */
.customer {
  align-items: stretch;
}
.customer-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.phone {
  order: 2;
  align-self: center;
  width: 100%;
  max-width: 320px;
  border-radius: 34px;
  border: 10px solid var(--ink);
  background: var(--ground);
  overflow: hidden;
}
.phone-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: 15px;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #0f766e;
  color: var(--white);
  font-family: var(--display);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.phone-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.25;
}
.phone-video {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background: var(--night-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.play {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.play svg {
  width: 20px;
  height: 20px;
  fill: var(--ink);
}
.phone-facts {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
.ok {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ok);
}
.ok svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--ok);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.phone-note {
  font-size: 12px;
  color: var(--muted);
}
@media (min-width: 1100px) {
  .customer {
    display: grid !important;
    grid-template-columns: 420px minmax(0, 1fr);
    align-items: center;
    gap: 96px !important;
  }
  .phone {
    order: 0;
    max-width: 340px;
    justify-self: center;
  }
}

.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 15px;
  line-height: 1.55;
}
.ticks li {
  position: relative;
  padding-left: 32px;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  background: var(--navy);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.ticks-green li::before {
  background: var(--ok);
}
.ticks strong {
  font-weight: 600;
}
@media (min-width: 1100px) {
  .ticks {
    font-size: 16px;
    gap: 18px;
  }
}

/* Developers */
.dev {
  display: grid;
  gap: 32px;
}
.dev-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.dev-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 15px;
  color: var(--night-text);
}
.dev-list strong {
  color: var(--white);
  font-weight: 600;
}
.link-light {
  color: var(--white);
  font-weight: 600;
}
.link-light:hover {
  color: var(--night-text);
}
.code {
  border-radius: 14px;
  background: #111a2e;
  border: 1px solid var(--night-2);
  overflow: hidden;
  min-width: 0;
}
.code-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--night-2);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--night-muted);
}
.code pre {
  margin: 0;
  padding: 16px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.65;
  color: #e2e8f0;
  overflow-x: auto;
}
@media (min-width: 1100px) {
  .dev {
    grid-template-columns: minmax(0, 1fr) minmax(0, 600px);
    align-items: center;
    gap: 72px;
  }
  .dev-list {
    font-size: 16px;
    gap: 16px;
  }
  .code pre {
    font-size: 14px;
    padding: 20px 18px;
  }
}

/* Trust */
.point {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.point h3 {
  font-weight: 800;
  font-size: 18px;
}
.point p {
  font-size: 15px;
  color: var(--muted);
}
.built-for {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 14px;
  color: var(--muted);
}
.built-for strong {
  color: var(--ink);
  font-weight: 600;
  margin-right: 4px;
}
.built-for span {
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 7px 13px;
}

/* Pricing */
.pilot {
  background: var(--night);
  color: var(--white);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pilot div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pilot strong {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
}
.pilot span {
  font-size: 15px;
  color: var(--night-text);
}
@media (min-width: 768px) {
  .pilot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px;
  }
}
.plan {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.plan-best {
  position: relative;
  border: 2px solid var(--ink);
}
.plan h3 {
  font-weight: 800;
  font-size: 24px;
}
.plan .tag {
  position: absolute;
  top: -14px;
  left: 22px;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
}
.price {
  font-size: 15px;
  color: var(--muted);
}
.price span {
  font-family: var(--display);
  font-weight: 800;
  font-size: 32px;
  color: var(--ink);
}
.plan .btn {
  margin-top: auto;
}
.plans {
  align-items: stretch;
  padding-top: 8px;
}
.small {
  font-size: 14px;
  color: var(--muted);
}
@media (min-width: 1100px) {
  .plan {
    padding: 32px;
  }
  .price span {
    font-size: 36px;
  }
  .small {
    font-size: 15px;
  }
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
}
.faq-list details {
  border-top: 1px solid var(--line-2);
}
.faq-list details:last-of-type {
  border-bottom: 1px solid var(--line-2);
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 36px 18px 0;
  position: relative;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 14px;
  font-size: 24px;
  font-weight: 600;
  color: var(--muted);
}
.faq-list details[open] summary::after {
  content: '−';
}
.faq-list details p {
  padding: 0 0 20px;
  font-size: 15px;
  color: var(--muted);
  max-width: 680px;
}
@media (min-width: 1100px) {
  .faq {
    display: grid !important;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 96px !important;
    padding-bottom: 0;
  }
  .faq-list summary {
    font-size: 19px;
    padding: 22px 40px 22px 0;
  }
  .faq-list summary::after {
    top: 18px;
  }
  .faq-list details p {
    font-size: 16px;
  }
}

/* Demo form */
.demo-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.numbered {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: n;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-2);
}
.numbered li {
  counter-increment: n;
  display: flex;
  gap: 14px;
}
.numbered li::before {
  content: counter(n);
  font-family: var(--mono);
  color: var(--muted);
}
.form,
.form-done {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-row {
  display: grid;
  gap: 16px;
}
@media (min-width: 600px) {
  .form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
}
.field textarea {
  padding: 12px 14px;
  resize: vertical;
}
.field [aria-invalid='true'] {
  border-color: var(--rec);
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-error {
  background: #fef2f2;
  color: #991b1b;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}
.form-done {
  align-items: flex-start;
}
.form-done h3 {
  font-weight: 800;
  font-size: 24px;
}
.form-done p {
  color: var(--muted);
}
@media (min-width: 1100px) {
  .demo {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 560px;
    gap: 96px !important;
    align-items: start;
  }
  .form,
  .form-done {
    padding: 32px;
  }
  .form-done {
    grid-column: 2;
  }
}

/* Footer */
.footer {
  margin-top: 0;
}
.footer-inner {
  padding-top: 40px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  font-size: 14px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--night-muted);
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col strong {
  color: var(--white);
  font-weight: 600;
}
.footer-col a {
  color: var(--night-text);
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--white);
}
.copyright {
  font-size: 13px;
  color: var(--night-muted);
}
@media (min-width: 900px) {
  .footer-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 72px;
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .footer-brand {
    margin-right: auto;
  }
  .copyright {
    align-self: flex-end;
  }
}

/* 404 page */
.notfound {
  min-height: 100vh;
  display: flex;
}
.notfound-inner {
  margin: auto;
  max-width: 640px;
  padding-top: 48px;
  padding-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.notfound h1 {
  font-weight: 800;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -1px;
}

/* ---------- Server-rendered pages (FAQ, blog) ---------- */
.nav-links a[aria-current='page'],
.menu-panel a[aria-current='page'] {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 6px;
}
.page-head {
  padding-top: 40px;
  padding-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.page-head h1 {
  font-weight: 800;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.8px;
  max-width: 860px;
}
.page-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 720px;
}
.crumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}
.crumbs li + li::before {
  content: '/';
  margin-right: 6px;
  color: var(--line-2);
}
.crumbs a {
  color: var(--muted);
}
@media (min-width: 1100px) {
  .page-head {
    padding-top: 72px;
    padding-bottom: 48px;
  }
  .page-head h1 {
    font-size: 48px;
    letter-spacing: -1.2px;
  }
  .page-lead {
    font-size: 19px;
  }
}

/* FAQ page */
.faq-page {
  display: grid;
  gap: 32px;
  padding-bottom: 32px;
}
.faq-toc {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}
.faq-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.faq-toc a {
  display: inline-block;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 7px 13px;
  text-decoration: none;
  color: var(--ink-2);
  background: var(--white);
}
.faq-toc a:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.faq-sections {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.faq-section {
  scroll-margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-section h2 {
  font-weight: 800;
  font-size: 22px;
}
.faq-list details {
  scroll-margin-top: 24px;
}
.faq-answer {
  padding: 0 0 20px;
  max-width: 720px;
}
@media (min-width: 1100px) {
  .faq-page {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 72px;
    align-items: start;
  }
  .faq-toc {
    position: sticky;
    top: 24px;
  }
  .faq-toc ol {
    flex-direction: column;
    gap: 4px;
  }
  .faq-toc a {
    border: none;
    background: none;
    padding: 6px 0;
    border-radius: 0;
  }
  .faq-toc a:hover {
    text-decoration: underline;
  }
  .faq-section h2 {
    font-size: 26px;
  }
}

/* Ask form reuses the demo layout */
.ask {
  border-top: 1px solid var(--line);
}
@media (min-width: 1100px) {
  .ask {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 560px;
    gap: 96px !important;
    align-items: start;
  }
  .ask .form-done {
    grid-column: 2;
  }
}

/* Long-form text (FAQ answers, blog posts) */
.prose {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
}
.prose > * + * {
  margin-top: 1em;
}
.prose h2 {
  font-weight: 800;
  font-size: 24px;
  line-height: 1.25;
  color: var(--ink);
  margin-top: 1.8em;
}
.prose h3 {
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
  margin-top: 1.5em;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose li + li {
  margin-top: 0.4em;
}
.prose strong {
  color: var(--ink);
  font-weight: 600;
}
.prose blockquote {
  margin-left: 0;
  padding-left: 16px;
  border-left: 3px solid var(--line-2);
  color: var(--muted);
}
.prose code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 5px;
}
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.prose th,
.prose td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}

/* Blog */
.blog-index {
  padding-bottom: 56px;
}
.post-list {
  display: grid;
  gap: 16px;
}
@media (min-width: 768px) {
  .post-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}
@media (min-width: 1100px) {
  .blog-index .post-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.post-card h2 {
  font-weight: 800;
  font-size: 21px;
  line-height: 1.3;
}
.post-card h2 a {
  color: var(--ink);
  text-decoration: none;
}
.post-card h2 a:hover {
  text-decoration: underline;
}
.post-card p {
  font-size: 15px;
  color: var(--muted);
}
.post-card .read-more {
  margin-top: auto;
  font-weight: 600;
  font-size: 15px;
}
.post-meta {
  font-size: 13px;
  color: var(--muted);
}
.post-head {
  max-width: 820px;
}
.post-body {
  max-width: 720px;
  padding-bottom: 48px;
  font-size: 17px;
}
.post-head,
.post .wrap {
  margin-left: auto;
  margin-right: auto;
}
.post .wrap {
  max-width: 820px;
}
.more-posts {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.more-posts h2 {
  font-weight: 800;
  font-size: 24px;
}

.faq-more {
  padding-top: 18px;
}

.price-year {
  margin-top: -10px;
  font-size: 14px;
  color: var(--muted);
}

/* Company detail not filled in yet (content/company.json) */
mark.todo {
  background: #fef3c7;
  color: #92400e;
  border-radius: 4px;
  padding: 0 4px;
}
.page-contact .prose h2:first-child,
.post-body > h2:first-child {
  margin-top: 0;
}
@media (min-width: 900px) {
  .footer-inner {
    gap: 56px;
  }
}
