/*
 * databink.com, the marketing site. Plain HTML and CSS with no build step, so Render serves
 * this folder as it is. Every color is a token here, redefined once for dark mode.
 */

:root {
  --bg: #ffffff;
  --wash: #e3f1fa;
  --wash-2: #f3f9fd;
  --surface: #ffffff;
  --surface-2: #f3f8fc;
  --ink: #002030;
  --ink-2: #33415c;
  --ink-3: #56647f;
  --line: #deebf4;
  --line-2: #c1d9e7;
  --brand: #0080c0;
  --brand-text: #006ca3;
  --brand-tint: #dff0f8;
  --button: #0072ad;
  --button-ink: #ffffff;
  --band: #002030;
  --band-ink: #ffffff;
  --field: #7a8ca3;
  --loss: #b42318;
  --gain: #16794c;
  --sample: #fff4d6;
  --sample-ink: #7a5600;
  --shadow: 0 -2px 60px rgb(0 128 192 / 14%);
  --card-shadow: 0 1px 2px rgb(0 32 48 / 5%), 0 10px 30px -14px rgb(0 32 48 / 18%);

  --sans: 'Plus Jakarta Sans', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --wrap: 1200px;
  --gutter: 20px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0b1526;
    --wash: #0f2640;
    --wash-2: #0d1b30;
    --surface: #111f35;
    --surface-2: #0e1a2e;
    --ink: #e8eef6;
    --ink-2: #b5c2d4;
    --ink-3: #93a2b9;
    --line: #1f3149;
    --line-2: #2b4262;
    --brand: #55bdf0;
    --brand-text: #74caf3;
    --brand-tint: #123552;
    --button: #55bdf0;
    --button-ink: #0b1526;
    --band: #0f2640;
    --band-ink: #e8eef6;
    --field: #64809f;
    --loss: #ff8a78;
    --gain: #4fd39a;
    --sample: #3a2f0c;
    --sample-ink: #f5d47a;
    --shadow: 0 -2px 60px rgb(0 0 0 / 40%);
    --card-shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px -12px rgb(0 0 0 / 60%);
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --bg: #0b1526;
  --wash: #0f2640;
  --wash-2: #0d1b30;
  --surface: #111f35;
  --surface-2: #0e1a2e;
  --ink: #e8eef6;
  --ink-2: #b5c2d4;
  --ink-3: #93a2b9;
  --line: #1f3149;
  --line-2: #2b4262;
  --brand: #55bdf0;
  --brand-text: #74caf3;
  --brand-tint: #123552;
  --button: #55bdf0;
  --button-ink: #0b1526;
  --band: #0f2640;
  --band-ink: #e8eef6;
  --field: #64809f;
  --loss: #ff8a78;
  --gain: #4fd39a;
  --sample: #3a2f0c;
  --sample-ink: #f5d47a;
  --shadow: 0 -2px 60px rgb(0 0 0 / 40%);
  --card-shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px -12px rgb(0 0 0 / 60%);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand-text);
}

a:hover {
  color: var(--ink);
}

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

/* Hidden until a keyboard user tabs to it. */
.skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 30;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h2 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
}

h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-text);
}

/* Header, hero and the sample screen share the pale wash at the top of the page. */

.site-header {
  background: var(--wash);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 84px;
}

/* The logo files from brand/: the dark-background one wherever the dark colors apply. */
.brand {
  display: inline-flex;
  flex: none;
}

.brand img {
  display: block;
  width: auto;
  height: 32px;
}

.brand .logo-dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .brand .logo-light {
    display: none;
  }

  :root:not([data-theme='light']) .brand .logo-dark {
    display: block;
  }
}

:root[data-theme='dark'] .brand .logo-light {
  display: none;
}

:root[data-theme='dark'] .brand .logo-dark {
  display: block;
}

.nav {
  display: flex;
  gap: 28px;
  margin-right: auto;
  margin-left: 16px;
}

.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--ink);
}

.nav a[aria-current] {
  color: var(--brand-text);
  font-weight: 600;
}

.header-phone {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.button:hover {
  color: var(--button-ink);
  filter: brightness(1.08);
}

.button.large {
  min-height: 52px;
  padding: 0 28px;
  font-size: 17px;
}

.button.plain {
  background: var(--surface);
  border-color: var(--line-2);
  color: var(--ink);
}

.button.plain:hover {
  color: var(--ink);
  filter: none;
  border-color: var(--ink-3);
}

.hero {
  padding: 48px 0 0;
  background: linear-gradient(180deg, var(--wash) 0%, var(--wash-2) 55%, var(--bg) 100%);
}

.pill {
  display: inline-block;
  margin: 0 0 20px;
  padding: 6px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-text);
}

.hero h1 {
  max-width: 980px;
  font-size: clamp(42px, 6.4vw, 78px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
}

.hero-lede {
  max-width: 760px;
  margin-top: 22px;
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.hero-note {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
}

.hero-note strong {
  color: var(--ink);
}

.hero-note a {
  white-space: nowrap;
}

/* The sample morning screen. */

.screen {
  display: flex;
  margin-top: 44px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.screen-nav {
  flex: none;
  width: 210px;
  padding: 20px 16px;
  border-right: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 14px;
  color: var(--ink-2);
}

.screen-nav strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
}

.screen-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.screen-nav li {
  padding: 8px 10px;
  border-radius: 8px;
}

.screen-nav li.on {
  background: var(--brand-tint);
  color: var(--brand-text);
  font-weight: 600;
}

.screen-main {
  flex: 1;
  min-width: 0;
  padding: 22px 24px 26px;
}

.screen-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.screen-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* The company name is in the side list on wide screens and in the title when that is hidden. */
.screen-co {
  display: none;
}

.sample {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--sample);
  color: var(--sample-ink);
  font-family: var(--mono);
  font-size: 12px;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.tile {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.tile-label {
  display: block;
  font-size: 13px;
  color: var(--ink-3);
}

.tile-value {
  display: block;
  margin-top: 4px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.tile-value.loss {
  color: var(--loss);
}

.tile-note {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-3);
}

.tile-note.gain {
  color: var(--gain);
}

.needs {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.needs-title {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
}

.needs ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.needs li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.needs li:first-child {
  border-top: 0;
}

.needs li span:last-child {
  flex: none;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink-3);
}

/* Sections below the fold. */

/* What you get: the other screens, smaller, three across. */

.mini-screens {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mini {
  padding: 22px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.mini-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mini-about {
  margin: 8px 0 16px;
  color: var(--ink-2);
}

.tiles.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini .tile-value {
  font-size: 22px;
}

.mini-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mini-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
}

.mini-list li span:last-child {
  flex: none;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink-3);
}

.section {
  padding: 88px 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section.contact {
  border-top: 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-head p:not(.eyebrow) {
  margin-top: 14px;
  font-size: 19px;
  color: var(--ink-2);
}

.questions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.questions li {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.questions h3 {
  margin-bottom: 12px;
}

.questions ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  color: var(--ink-2);
}

.questions ul li {
  padding: 6px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
}

.two-col h2 {
  margin-bottom: 16px;
}

.two-col p + p {
  margin-top: 14px;
}

.two-col p {
  color: var(--ink-2);
}

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

.tools li {
  padding: 6px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand-text);
  font-weight: 700;
}

.steps h3 {
  margin-bottom: 8px;
}

.steps p,
.facts p {
  font-size: 16px;
  color: var(--ink-2);
}

.price-line {
  margin-top: 28px;
  padding: 18px 22px;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--ink-2);
}

.price-line strong {
  color: var(--ink);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding-top: 18px;
  border-top: 3px solid var(--brand);
}

.facts h3 {
  margin-bottom: 8px;
}

.trades {
  margin-top: 18px;
  font-weight: 600;
  color: var(--ink);
}

.about {
  display: flex;
  align-items: center;
  gap: 48px;
}

.portrait {
  flex: none;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--brand-tint);
  object-fit: cover;
}

.about-copy {
  max-width: 640px;
}

.about-copy h2 {
  margin-bottom: 16px;
}

.about-copy p + p {
  margin-top: 14px;
}

.about-copy p {
  color: var(--ink-2);
}

.contact {
  background: var(--band);
  color: var(--band-ink);
}

.contact :focus-visible {
  outline-color: currentColor;
}

.contact .eyebrow {
  color: inherit;
  opacity: 0.8;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

.contact-grid p:not(.eyebrow) {
  margin-top: 14px;
  font-size: 19px;
  opacity: 0.85;
}

.contact-lines {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-line {
  display: flex;
  flex-direction: column;
  padding: 18px 22px;
  border: 1px solid rgb(128 150 180 / 35%);
  border-radius: 14px;
}

.contact-line span {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
}

.contact-line a {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-line a:hover {
  text-decoration: underline;
}

.site-footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-3);
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 24px 48px;
}

.footer-brand .brand img {
  height: 28px;
}

.footer-brand p {
  margin-top: 10px;
  max-width: 320px;
}

.footer-navs {
  display: grid;
  gap: 24px;
  align-content: start;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 24px;
  align-content: start;
}

.site-footer a {
  color: var(--ink-3);
}

.site-footer .footer-links a {
  text-decoration: none;
}

.site-footer .footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-legal {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* Inner pages open with a short header on the same pale wash as the home page. */

.page-head {
  padding: 56px 0 64px;
  background: linear-gradient(180deg, var(--wash) 0%, var(--wash-2) 70%, var(--bg) 100%);
}

.page-head h1 {
  max-width: 900px;
  font-size: clamp(38px, 5.4vw, 64px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.page-lede {
  max-width: 720px;
  margin-top: 18px;
  font-size: 20px;
  color: var(--ink-2);
}

.page-head + .section {
  padding-top: 24px;
  border-top: 0;
}

.section-screen {
  padding-top: 0;
  padding-bottom: 0;
}

.section-screen .screen {
  margin-top: 0;
}

.more-link {
  margin-top: 28px;
  font-weight: 600;
}

.not-trade {
  max-width: 640px;
  margin-top: 12px;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 0;
}

.faq div {
  padding-left: 22px;
  border-left: 3px solid var(--brand);
}

.faq dt {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.faq dd {
  margin: 6px 0 0;
  color: var(--ink-2);
}

.person {
  display: flex;
  align-items: center;
  gap: 36px;
  max-width: calc(860px + var(--gutter) * 2);
}

.person h2 {
  font-size: clamp(26px, 3.4vw, 34px);
}

.person p:not(.more-link) {
  margin-top: 12px;
  color: var(--ink-2);
}

.person .more-link {
  margin-top: 14px;
}

.portrait.small {
  width: 112px;
  height: 112px;
}

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

.checklist li {
  padding-left: 22px;
  border-left: 3px solid var(--brand);
}

.checklist h3 {
  margin-bottom: 6px;
}

.checklist p {
  font-size: 16px;
  color: var(--ink-2);
}

.trade-list {
  row-gap: 36px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 28px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
}

.contact-card span {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.contact-card a {
  margin-top: 6px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* The whole card takes the tap, not just its link. */
.contact-card a::after {
  content: '';
  position: absolute;
  inset: 0;
}

/* The privacy and not-found pages. */

.prose {
  max-width: 760px;
  padding-top: 48px;
  padding-bottom: 88px;
}

.prose h1 {
  margin-bottom: 20px;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.prose h2 {
  margin: 40px 0 12px;
  font-size: 24px;
}

.prose p,
.prose li {
  color: var(--ink-2);
}

.prose ul {
  margin: 0;
  padding-left: 22px;
}

.prose li + li {
  margin-top: 8px;
}

/* The sample dashboard call on the home page, and its form (sample.html, sample.js). */

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.try-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 40px;
  align-items: center;
  padding: 44px 48px;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: var(--brand-tint);
}

.try-card p:not(.eyebrow) {
  margin-top: 14px;
  max-width: 640px;
  font-size: 19px;
  color: var(--ink-2);
}

.demo {
  /* Holds the page height while sample.js reveals the form, so the footer doesn't jump. */
  min-height: 100vh;
  padding: 48px 0 88px;
  background: linear-gradient(180deg, var(--wash) 0%, var(--wash-2) 240px, var(--bg) 520px);
}

.demo-wrap {
  max-width: calc(820px + var(--gutter) * 2);
}

.demo-intro {
  margin-bottom: 32px;
}

.demo-intro h1 {
  font-size: clamp(36px, 5.4vw, 56px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.demo-lede {
  margin-top: 16px;
  font-size: 19px;
  color: var(--ink-2);
}

.demo-card {
  padding: 36px 40px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.form-note {
  font-size: 16px;
  color: var(--ink-3);
}

.form-alert {
  margin-top: 16px;
  padding: 14px 18px;
  border: 1px solid var(--loss);
  border-radius: 12px;
  color: var(--loss);
  font-weight: 600;
}

.form-alert:focus {
  outline: none;
}

.demo-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.demo-form .q {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.demo-form .q > legend {
  float: left;
  width: 100%;
  margin-bottom: 16px;
  padding: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.demo-form .q > legend + * {
  clear: both;
}

.q-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 12px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand-text);
  font-size: 15px;
  vertical-align: 2px;
}

.legend-hint {
  margin-left: 8px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-3);
}

.demo-form .sub + .sub {
  margin-top: 20px;
}

.demo-form .sub > legend {
  margin-bottom: 10px;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
}

.field + .field {
  margin-top: 18px;
}

.field > label,
.entries label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
}

.demo-form input[type='text'],
.demo-form input[type='email'],
.demo-form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--field);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
}

.demo-form textarea {
  resize: vertical;
}

.demo-form input::placeholder,
.demo-form textarea::placeholder {
  color: var(--ink-3);
  opacity: 1;
}

.demo-form input:focus-visible,
.demo-form textarea:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 0;
  border-color: var(--brand);
}

.demo-form [aria-invalid='true'] {
  border-color: var(--loss);
}

.field-help {
  margin-top: 6px;
  font-size: 16px;
  color: var(--ink-3);
}

.field-error {
  font-size: 14px;
  font-weight: 600;
  color: var(--loss);
}

.field-error:not(:empty) {
  margin-top: 8px;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice {
  position: relative;
  display: inline-flex;
  margin: 0;
}

.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.choices.stacked {
  flex-direction: column;
  align-items: flex-start;
}

.choices.stacked .choice span {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  line-height: 1.35;
}

.choice input[type='checkbox'] + span::before,
.choice input[type='radio'] + span::before {
  content: '';
  flex: none;
  width: 16px;
  height: 16px;
  margin-right: 10px;
  border: 1.5px solid var(--ink-3);
  border-radius: 4px;
}

.choice input[type='radio'] + span::before {
  border-radius: 50%;
}

.choice input:checked + span {
  border-color: var(--brand);
  background: var(--brand-tint);
  color: var(--ink);
  font-weight: 600;
}

.choice input:checked + span::before {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: inset 0 0 0 3px var(--brand-tint);
}

.choice input:focus-visible + span {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.has-error .choice span {
  border-color: var(--loss);
}

.other {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--surface-2);
}

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

.entry-row {
  display: flex;
  gap: 8px;
}

.add-entry,
.remove-entry {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--brand-text);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.add-entry {
  margin-top: 6px;
}

.add-entry::before {
  content: '+ ';
}

.remove-entry {
  flex: none;
  color: var(--ink-3);
}

.add-entry:hover,
.remove-entry:hover {
  color: var(--ink);
  text-decoration: underline;
}

.consent {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.consent .check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}

.consent .check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--button);
}

.turnstile {
  margin-top: 20px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 24px;
}

.form-actions .button {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.form-actions .button:disabled {
  cursor: progress;
  opacity: 0.7;
}

.form-small {
  flex: 1 1 280px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-3);
}

.demo-status h2 {
  font-size: clamp(26px, 3.4vw, 34px);
}

.demo-status h2:focus {
  outline: none;
}

.progress {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.progress li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-3);
}

.progress li::before {
  content: '';
  flex: none;
  box-sizing: border-box;
  width: 24px;
  height: 24px;
  border: 2px solid var(--line-2);
  border-radius: 50%;
}

.progress li.active {
  color: var(--ink);
  font-weight: 600;
}

.progress li.active::before {
  border-color: var(--brand) var(--line-2) var(--line-2);
  animation: spin 0.9s linear infinite;
}

.progress li.done {
  color: var(--ink);
}

.progress li.done::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: var(--gain);
  background: var(--gain);
  color: var(--bg);
  font-size: 13px;
  font-weight: 800;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .progress li.active::before {
    animation: none;
    border-color: var(--brand);
  }
}

.status-note {
  margin-top: 24px;
  color: var(--ink-2);
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.status-actions:empty {
  display: none;
}

.status-actions .button {
  border-width: 1px;
  border-style: solid;
  font-family: inherit;
  cursor: pointer;
}

/* On phones the header links fold into a menu, and a bar keeps calling one tap away. */

.menu,
.call-bar {
  display: none;
}

.menu {
  position: relative;
}

.menu summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  font-size: 15px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 25;
  display: flex;
  flex-direction: column;
  min-width: 230px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.menu nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.menu nav a:hover {
  background: var(--surface-2);
}

.menu nav a[aria-current] {
  color: var(--brand-text);
  font-weight: 600;
}

/* The five header links fit on one line with the phone and button from about 1120px up. */
@media (max-width: 1120px) {
  .site-header .wrap {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
  }

  .header-phone {
    margin-left: auto;
  }

  .nav {
    order: 3;
    flex-wrap: wrap;
    width: 100%;
    gap: 6px 20px;
    margin: -4px 0 0;
    padding-bottom: 14px;
  }
}

@media (max-width: 1000px) {
  .contact-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .questions,
  .steps,
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mini-screens {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
  }

  .screen-nav {
    display: none;
  }

  .screen-co {
    display: inline;
  }
}

@media (max-width: 720px) {
  .mini {
    padding: 16px;
  }

  .mini .tile-value {
    font-size: 19px;
  }

  html {
    scroll-padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .site-header .wrap {
    flex-wrap: nowrap;
    gap: 10px;
    min-height: 68px;
  }

  /* Small enough for the logo and the button to share a line on a phone. */
  .site-header .brand img {
    height: 24px;
  }

  .site-header .nav,
  .header-phone,
  .wide-only {
    display: none;
  }

  .site-header .button {
    margin-left: auto;
  }

  .menu {
    display: block;
  }

  .call-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--bg);
  }

  .call-bar .button {
    min-height: 48px;
    padding: 0 12px;
    font-size: 16px;
  }

  .hero {
    padding-top: 24px;
  }

  .pill {
    display: none;
  }

  .hero h1 {
    font-size: 36px;
    line-height: 1.05;
  }

  .hero-lede {
    margin-top: 14px;
    font-size: 18px;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .hero-actions .button {
    flex: 1 1 100%;
  }

  /* The header's Book button and the call bar cover booking on phones. */
  .hero-actions .button.plain {
    display: none;
  }

  .person {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .screen {
    margin-top: 32px;
    border-radius: 14px 14px 0 0;
  }

  .screen-main {
    padding: 16px;
  }

  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tile-value {
    font-size: 21px;
  }

  .needs li {
    flex-direction: column;
    gap: 2px;
  }

  .section {
    padding: 64px 0;
  }

  .section-screen {
    padding-top: 0;
    padding-bottom: 0;
  }

  .questions,
  .steps,
  .facts,
  .two-col,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .two-col,
  .contact-grid {
    gap: 40px;
  }

  .about {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .portrait {
    width: 128px;
    height: 128px;
  }

  .contact-line a {
    font-size: 22px;
  }

  .site-footer .wrap,
  .contact-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-head {
    padding: 32px 0 40px;
  }

  .page-lede {
    font-size: 18px;
  }

  .contact-card a {
    font-size: 22px;
  }

  .try-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 28px 24px;
  }

  .demo {
    padding-top: 28px;
  }

  .demo-card {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .demo-form .q > legend {
    font-size: 18px;
  }

  .form-actions .button {
    width: 100%;
  }
}

/* The narrowest phones: the logo, Book and Menu still share one line. */
@media (max-width: 359px) {
  .site-header .brand img {
    height: 20px;
  }

  .site-header .button,
  .menu summary {
    padding: 0 12px;
  }
}
