/* VoixCall.ai: the US side of the line is paper, your side is ink. */
:root {
  --paper: #f5f7f4;
  --paper-2: #ebf0ec;
  --white: #ffffff;
  --ink: #15261f;
  --ink-2: #44554e;
  --ink-3: #66756f;
  --line: #d3dbd5;
  --night: #133029;
  --night-2: #1c4038;
  --night-line: #2e554b;
  --night-text: #eaf2ef;
  --night-text-2: #a8c1b9;
  --green: #00ae87;
  --green-deep: #00785d;
  --green-deeper: #00634d;
  --lamp: #f2b544;
  --error: #b42318;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --narrow: 80;
  --wide: 116;

  --max: 1200px;
  --gutter: 16px;
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 20px;
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

*, *::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;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }

a { color: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }

.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 20;
  background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: var(--radius-s);
}
.skip:focus { top: 12px; }

.tnum { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Links and buttons */
.link {
  color: var(--green-deep);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.link:hover { color: var(--green-deeper); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: var(--radius-m);
  font: 600 16px/1 var(--font);
  text-decoration: none; cursor: pointer;
}
.btn--primary { background: var(--green-deep); color: var(--white); }
.btn--primary:hover { background: var(--green-deeper); }
.btn--primary:disabled { opacity: .6; cursor: progress; }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 15px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 97%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top__inner {
  max-width: var(--max); margin: 0 auto; padding: 10px var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; margin-right: auto; }
.brand__name { font-weight: 760; font-size: 19px; font-variation-settings: "wdth" 92; letter-spacing: -0.01em; }
.brand__tld { color: var(--green-deep); }
.top__nav { display: none; gap: 26px; font-size: 15px; font-weight: 500; }
.top__nav a { color: var(--ink-2); text-decoration: none; }
.top__nav a:hover { color: var(--ink); }
@media (min-width: 900px) { .top__nav { display: flex; } }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
}
.hero__them { padding: 28px var(--gutter) 40px; }
.hero__you {
  background: var(--night); color: var(--night-text);
  padding: 40px var(--gutter) 40px;
}

.clock {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding-bottom: 12px; margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.hero__you .clock { border-bottom-color: var(--night-line); }
.clock__who { color: var(--ink-2); }
.hero__you .clock__who { color: var(--night-text-2); }
.clock__time {
  font-variant-numeric: tabular-nums;
  font-weight: 600; font-size: 22px;
  font-variation-settings: "wdth" var(--wide);
  white-space: nowrap;
}

.hero__title {
  font-size: clamp(42px, 9.6vw, 78px);
  line-height: 0.98;
  font-weight: 760;
  font-variation-settings: "wdth" var(--narrow);
  letter-spacing: -0.015em;
  max-width: 13ch;
}
.hero__lead {
  margin-top: 22px; max-width: 34em;
  font-size: 19px; line-height: 1.5; color: var(--ink-2);
}
.hero__actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hero__foot { margin-top: 18px; font-size: 15px; color: var(--ink-3); }

.gap {
  justify-self: center;
  margin: 0; padding: 7px 14px;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  position: relative; z-index: 2;
  margin-bottom: -17px; margin-top: -17px;
  white-space: nowrap;
}

.line__num {
  font-size: clamp(28px, 8.4vw, 54px);
  line-height: 1.05;
  font-weight: 620;
  font-variation-settings: "wdth" var(--wide);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  white-space: nowrap;
  min-height: 1.05em;
}
.line__place { margin-top: 8px; color: var(--night-text-2); font-size: 16px; }

.line__pick { margin-top: 26px; }
.line__field { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; color: var(--night-text-2); }
.line__field input {
  width: 4.2em; min-height: 44px; padding: 0 12px;
  background: var(--night-2); color: var(--night-text);
  border: 1px solid var(--night-line); border-radius: var(--radius-s);
  font: 600 20px/1 var(--font); font-variant-numeric: tabular-nums;
  font-variation-settings: "wdth" var(--wide);
}
.line__field input:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(0, 174, 135, .35); }

.chips { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 36px; padding: 0 12px;
  background: transparent; color: var(--night-text);
  border: 1px solid var(--night-line); border-radius: 999px;
  font: 500 14px/1 var(--font); cursor: pointer;
}
.chip:hover { border-color: var(--night-text-2); }
.chip.is-on { background: var(--night-text); color: var(--night); border-color: var(--night-text); }

.feed { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--night-line); }
.feed li {
  display: grid; grid-template-columns: 1fr; gap: 2px;
  padding: 12px 0; border-bottom: 1px solid var(--night-line);
  font-size: 15px;
}
.feed__kind { color: var(--lamp); font-weight: 600; }
.feed__text { color: var(--night-text); font-variant-numeric: tabular-nums; }
@media (min-width: 520px) {
  .feed li { grid-template-columns: 9.5em 1fr; gap: 12px; }
}
.line__note { margin-top: 14px; font-size: 13px; color: var(--night-text-2); }

@media (min-width: 1000px) {
  .hero {
    grid-template-columns: 1.08fr 1fr;
    max-width: none;
    min-height: calc(100vh - 61px);
    min-height: calc(100svh - 61px);
  }
  .hero__them {
    padding: 44px 64px 64px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
    display: flex; flex-direction: column;
  }
  .hero__copy { margin-top: auto; margin-bottom: auto; padding-top: 40px; }
  .hero__you {
    padding: 44px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 64px 64px;
    display: flex; flex-direction: column;
  }
  .line { margin-top: auto; margin-bottom: auto; padding-top: 40px; }
  .gap {
    position: absolute; left: 51.92%; top: 125px;
    transform: translate(-50%, -50%);
    margin: 0;
  }
  .hero__title { max-width: 14.5ch; }
}

/* Sections */
.section { padding: 72px 0; }
.section--tint { background: var(--paper-2); }
@media (min-width: 900px) { .section { padding: 104px 0; } }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.section__title {
  font-size: clamp(32px, 5.4vw, 50px);
  line-height: 1.02;
  font-weight: 740;
  font-variation-settings: "wdth" var(--narrow);
  letter-spacing: -0.01em;
  max-width: 24ch;
  text-wrap: balance;
}
.section__lead { margin-top: 18px; max-width: 38em; font-size: 19px; color: var(--ink-2); }

/* What you get */
.specs {
  margin: 44px 0 0;
  display: grid; grid-template-columns: 1fr; column-gap: 48px;
}
.spec { padding: 20px 0; border-top: 1px solid var(--line); }
.spec dt { font-weight: 650; font-size: 19px; }
.spec dd { margin: 6px 0 0; color: var(--ink-2); max-width: 36em; }
@media (min-width: 760px) { .specs { grid-template-columns: 1fr 1fr; } }

/* Setup steps */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 36px; }
.step { position: relative; }
.step__n {
  display: block;
  font-size: 64px; line-height: 1; font-weight: 300;
  font-variation-settings: "wdth" var(--narrow);
  color: var(--green-deep);
}
.step__title { margin-top: 14px; font-size: 21px; font-weight: 650; }
.step p { margin-top: 8px; color: var(--ink-2); max-width: 30em; }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .step { padding-top: 22px; border-top: 2px solid var(--ink); }
}

/* Who */
.who { margin-top: 44px; display: grid; gap: 36px; }
.who__title { font-size: 21px; font-weight: 650; }
.who__item p { margin-top: 8px; color: var(--ink-2); }
.who__item .who__detail {
  margin-top: 16px; padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 15px; color: var(--ink);
}
.who__detail .tnum { font-weight: 650; font-variation-settings: "wdth" var(--wide); margin-right: 6px; }
@media (min-width: 860px) { .who { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* Pricing */
.rates {
  margin-top: 40px;
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-l);
  overflow-x: auto;
}
.rates table { width: 100%; border-collapse: collapse; min-width: 520px; }
.rates th, .rates td { padding: 15px 22px; text-align: left; vertical-align: top; }
.rates thead th { font-size: 14px; font-weight: 600; color: var(--ink-3); border-bottom: 1px solid var(--line); }
.rates tbody tr + tr td { border-top: 1px solid var(--paper-2); }
.rates td:nth-child(2) { color: var(--ink-3); }
.rates .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rates tbody .num { font-weight: 650; font-variation-settings: "wdth" 108; }
.rates__note { margin-top: 16px; font-size: 15px; color: var(--ink-2); }
@media (max-width: 560px) {
  .rates table { min-width: 0; }
  .rates thead { display: none; }
  .rates tbody tr { display: grid; grid-template-columns: 1fr auto; padding: 14px 16px; column-gap: 12px; }
  .rates tbody tr + tr { border-top: 1px solid var(--paper-2); }
  .rates tbody tr + tr td { border-top: 0; }
  .rates th, .rates td { padding: 0; }
  .rates td:nth-child(1) { grid-column: 1; }
  .rates td:nth-child(2) { grid-column: 1; grid-row: 2; font-size: 14px; }
  .rates td:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}

/* AI */
.ai { display: grid; gap: 36px; align-items: center; }
.ai__copy p { margin-top: 16px; color: var(--ink-2); max-width: 34em; }
.ai__copy .section__title + p { margin-top: 20px; }
.ai__code {
  margin: 0; padding: 24px;
  background: var(--night); color: var(--night-text);
  border-radius: var(--radius-l);
}
.ai__code figcaption { font-size: 14px; color: var(--night-text-2); }
.ai__code pre {
  margin: 12px 0 0; padding: 16px; overflow-x: auto;
  background: var(--night-2); border-radius: var(--radius-s);
  font: 500 14px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.ai__ask {
  margin-top: 18px; padding: 14px 16px;
  border: 1px solid var(--night-line); border-radius: var(--radius-m);
  font-size: 16px;
}
@media (min-width: 900px) { .ai { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* Request form */
.request { display: grid; gap: 36px; align-items: start; }
.request__copy p { margin-top: 16px; color: var(--ink-2); max-width: 30em; }
.request__copy .section__title + p { margin-top: 20px; }
.request__copy .request__self { padding-top: 16px; border-top: 1px solid var(--line); }
@media (min-width: 960px) {
  .request { grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
  .request__copy { position: sticky; top: 96px; }
}

.form, .done {
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 22px 16px;
  display: grid; gap: 20px;
}
@media (min-width: 560px) { .form, .done { padding: 32px; } }
.form__row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field { display: grid; gap: 7px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field__label { font-size: 15px; font-weight: 600; padding: 0; }
.field__input {
  width: 100%; min-height: 48px; padding: 11px 13px;
  background: var(--white); color: var(--ink);
  border: 1px solid #b9c4bd; border-radius: var(--radius-s);
  font: 400 16px/1.4 var(--font);
}
select.field__input {
  appearance: none; -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2315261f' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
textarea.field__input { resize: vertical; min-height: 88px; }
.field__input::placeholder { color: #8a968f; }
.field__input:focus { outline: none; border-color: var(--green-deep); box-shadow: 0 0 0 3px rgba(0, 174, 135, .28); }
.field__error { display: none; font-size: 14px; color: var(--error); }
.is-touched:invalid { border-color: var(--error); }
.is-touched:invalid + .field__error { display: block; }

.checks { display: grid; gap: 4px 20px; margin-top: 4px; }
@media (min-width: 640px) { .checks { grid-template-columns: 1fr 1fr; } }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 16px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--green-deep); flex: none; }

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.form__hint { font-size: 15px; color: var(--ink-3); }
.form__error { color: var(--error); font-size: 15px; }

.done { gap: 10px; }
.done:focus { outline: none; }
.done__title { font-size: 28px; font-weight: 740; font-variation-settings: "wdth" var(--narrow); }
.done p { color: var(--ink-2); }

/* FAQ */
.faq { margin-top: 36px; max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; font-size: 19px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
  transform: translateY(-3px) rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 40em; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Footer */
.foot { background: var(--night); color: var(--night-text-2); font-size: 15px; }
.foot__inner {
  max-width: var(--max); margin: 0 auto; padding: 36px var(--gutter);
  display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between;
}
.foot a { color: var(--night-text); text-underline-offset: 3px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot__links a { text-decoration: none; }
.foot__links a:hover { text-decoration: underline; }

/* Thanks page */
.thanks { max-width: 640px; margin: 0 auto; padding: 96px var(--gutter); }
.thanks h1 { font-size: clamp(36px, 7vw, 56px); line-height: 1; font-weight: 760; font-variation-settings: "wdth" var(--narrow); }
.thanks p { margin-top: 18px; font-size: 19px; color: var(--ink-2); }
