/* Switchboard site. One family (Archivo, variable width + weight), cool mist paper, icon navy ink. */

@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --mist: #edeff5;
  --paper: #ffffff;
  --ink: #161a33;
  --slate: #565c74;
  --quiet: #80869c;
  --rule: #d3d7e3;
  --brand: #4f5de6;
  --brand-dark: #3d4ad0;
  --brand-soft: #e3e6fc;
  --lamp: #ff4d6d;
  --navy: #161a33;
  --navy-2: #1f2445;

  --measure: 34em;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);

  --t-small: 0.8125rem; /* 13 */
  --t-meta: 0.9375rem; /* 15 */
  --t-body: 1.0625rem; /* 17 */
  --t-lead: 1.3125rem; /* 21 */
  --t-h3: 1.375rem; /* 22 */
  --t-h2: clamp(1.9rem, 1.2rem + 2.4vw, 2.75rem); /* 30 → 44 */
  --t-h1: clamp(2.6rem, 1.3rem + 5.4vw, 5rem); /* 42 → 80 */

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 84px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: var(--t-body);
  font-stretch: 100%;
  line-height: 1.55;
  font-feature-settings: 'kern', 'liga';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--brand);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--brand-dark);
}

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

p {
  margin: 0 0 1em;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  font-stretch: 125%;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: var(--t-h1);
  letter-spacing: -0.035em;
  line-height: 0.96;
}

h2 {
  font-size: var(--t-h2);
}

h3 {
  font-size: var(--t-h3);
  font-stretch: 112%;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--paper);
  padding: 8px 12px;
  z-index: 100;
}

.skip:focus {
  left: 8px;
}

/* ------------------------------------------------------------------ header */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(237, 239, 245, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.site-head.scrolled {
  border-bottom-color: var(--rule);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}

.brand img {
  width: 30px;
  height: 30px;
}

.brand b {
  font-size: 1.125rem;
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: -0.02em;
}

.brand small {
  color: var(--quiet);
  font-size: var(--t-small);
  margin-left: 2px;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a:not(.btn) {
  color: var(--slate);
  text-decoration: none;
  font-size: var(--t-meta);
  font-weight: 500;
}

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

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  font-stretch: 105%;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s,
    transform 0.15s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 6px 18px -8px rgba(79, 93, 230, 0.7);
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--rule);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-small {
  height: 38px;
  padding: 0 16px;
  border-radius: 9px;
  font-size: var(--t-meta);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-on-dark {
  background: #fff;
  color: var(--navy);
}

.btn-on-dark:hover {
  background: var(--brand-soft);
  color: var(--navy);
}

.btn-ghost-dark {
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
  background: transparent;
}

.btn-ghost-dark:hover {
  border-color: #fff;
  color: #fff;
}

/* ------------------------------------------------------------------ hero */

.hero {
  padding: clamp(36px, 5.5vw, 76px) 0 0;
}

.hero h1 {
  max-width: 11.5em;
}

.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px 56px;
  margin-top: 32px;
}

.hero-lead {
  max-width: var(--measure);
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--slate);
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-fine {
  grid-column: 1 / -1;
  margin: 0;
  font-size: var(--t-meta);
  color: var(--quiet);
}

.hero-fine strong {
  color: var(--ink);
  font-weight: 600;
}

/* ------------------------------------------------------------------ demo stage */

.stage {
  margin-top: clamp(36px, 4.5vw, 52px);
  position: relative;
}

.stage-note {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
  color: var(--quiet);
  font-size: var(--t-meta);
}

.kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 0 0.4em;
  border: 1px solid var(--rule);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.85em;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
}

/* ------------------------------------------------------------------ sections */

.section {
  padding: clamp(72px, 10vw, 132px) 0 0;
}

.section-head {
  max-width: 40em;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head p {
  margin: 18px 0 0;
  font-size: var(--t-lead);
  color: var(--slate);
  max-width: var(--measure);
}

/* features: a two-column spec list, not a card grid */

.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 64px;
  border-top: 2px solid var(--ink);
}

.spec {
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 16px;
}

.spec svg {
  grid-row: span 2;
  width: 26px;
  height: 26px;
  color: var(--brand);
  margin-top: 2px;
}

.spec p {
  margin: 0;
  color: var(--slate);
  max-width: 30em;
}

/* services */

.services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 32px;
}

.services h3 {
  font-size: var(--t-meta);
  font-stretch: 100%;
  font-weight: 600;
  color: var(--quiet);
  letter-spacing: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 6px;
}

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

.services li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 0;
  font-size: 1.1875rem;
  font-weight: 600;
  font-stretch: 112%;
  letter-spacing: -0.01em;
}

.services li small {
  font-size: var(--t-small);
  font-weight: 500;
  font-stretch: 100%;
  color: var(--quiet);
  letter-spacing: 0;
  white-space: nowrap;
}

.services-foot {
  margin-top: 28px;
  color: var(--slate);
  max-width: 44em;
}

/* promises (what it won't do) */

.promises {
  background: var(--navy);
  color: #fff;
  margin-top: clamp(72px, 10vw, 132px);
  padding: clamp(64px, 9vw, 112px) 0;
}

.promises h2 {
  max-width: 13em;
}

.promises .section-head p {
  color: #b4b9d6;
}

.promise-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.promise-list li {
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #b4b9d6;
}

.promise-list strong {
  display: block;
  color: #fff;
  font-size: 1.1875rem;
  font-weight: 700;
  font-stretch: 112%;
  margin-bottom: 4px;
}

/* pricing */

.plans {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: stretch;
}

.plan {
  border-radius: 20px;
  padding: clamp(28px, 4vw, 40px);
  display: flex;
  flex-direction: column;
}

.plan-free {
  border: 1px solid var(--rule);
}

.plan-pro {
  background: var(--paper);
  border: 2px solid var(--brand);
  box-shadow: 0 30px 60px -36px rgba(22, 26, 51, 0.45);
}

.plan h3 {
  font-size: var(--t-lead);
}

.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 18px 0 6px;
}

.price b {
  font-size: clamp(3rem, 2rem + 3vw, 4.25rem);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price span {
  color: var(--slate);
}

.plan-sub {
  color: var(--slate);
  margin: 0 0 24px;
}

.ticks {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.ticks li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
}

.ticks svg {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  color: var(--brand);
}

.plan .btn {
  margin-top: auto;
  width: 100%;
}

.plan-fine {
  margin: 12px 0 0;
  text-align: center;
  font-size: var(--t-small);
  color: var(--quiet);
}

/* comparison */

.compare {
  margin-top: 64px;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 24px 48px;
  align-items: start;
}

.compare h3 {
  max-width: 12em;
}

.compare p {
  color: var(--slate);
  margin: 12px 0 0;
  max-width: 26em;
}

table.costs {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.costs th,
.costs td {
  text-align: left;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.costs th {
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--quiet);
  border-bottom-color: var(--ink);
  border-bottom-width: 2px;
}

.costs td:last-child,
.costs th:last-child {
  text-align: right;
}

.costs tr.us td {
  font-weight: 700;
  color: var(--brand-dark);
}

.costs caption {
  caption-side: bottom;
  text-align: left;
  padding-top: 12px;
  font-size: var(--t-small);
  color: var(--quiet);
}

/* maker */

.maker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 64px;
  align-items: start;
}

.maker-text p {
  color: var(--slate);
  max-width: var(--measure);
}

.maker-facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
}

.maker-facts div {
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}

.maker-facts div:nth-child(odd) {
  padding-right: 20px;
}

.maker-facts dt {
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.maker-facts dd {
  margin: 6px 0 0;
  color: var(--slate);
  font-size: var(--t-meta);
}

/* steps (a real sequence, so numbers are earned) */

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

.steps li {
  counter-increment: step;
  border-top: 2px solid var(--ink);
  padding-top: 20px;
}

.steps li::before {
  content: counter(step);
  display: block;
  font-size: 3rem;
  font-weight: 800;
  font-stretch: 125%;
  line-height: 1;
  color: var(--brand);
  margin-bottom: 18px;
}

.steps p {
  color: var(--slate);
  margin: 8px 0 0;
}

/* faq */

.faq {
  max-width: 50em;
  border-top: 2px solid var(--ink);
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 1.1875rem;
  font-weight: 650;
  font-stretch: 108%;
}

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

.faq summary::after {
  content: '';
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: 8px;
  border-right: 2px solid var(--slate);
  border-bottom: 2px solid var(--slate);
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 13px;
}

.faq .answer {
  padding: 0 0 24px;
  color: var(--slate);
  max-width: 40em;
}

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

/* closing band */

.closing {
  margin-top: clamp(72px, 10vw, 132px);
  background: var(--navy);
  color: #fff;
  padding: clamp(56px, 8vw, 96px) 0;
}

.closing .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.closing h2 {
  max-width: 12em;
}

.closing p {
  margin: 16px 0 0;
  color: #b4b9d6;
}

.closing .hero-actions {
  flex: none;
}

/* footer */

.site-foot {
  background: var(--navy);
  color: #8e94b5;
  font-size: var(--t-meta);
  padding: 0 0 48px;
}

.site-foot .wrap {
  background: linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)) no-repeat var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px;
  padding-top: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 0.6fr));
  gap: 32px;
}

.site-foot a {
  color: #d5d8ea;
  text-decoration: none;
}

.site-foot a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.site-foot p {
  max-width: 34em;
  margin: 0 0 12px;
}

.site-foot .brand {
  color: #fff;
  margin-bottom: 16px;
}

.site-foot .brand small {
  color: #8e94b5;
}

/* ------------------------------------------------------------------ inner pages */

.page {
  padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 9vw, 120px);
}

.page h1 {
  font-size: clamp(2.3rem, 1.4rem + 3.6vw, 3.75rem);
  max-width: 14em;
}

.page .lead {
  font-size: var(--t-lead);
  color: var(--slate);
  max-width: var(--measure);
  margin: 20px 0 0;
}

.prose {
  max-width: 42em;
  margin-top: 40px;
}

.prose h2 {
  font-size: 1.625rem;
  font-stretch: 115%;
  margin: 48px 0 14px;
}

.prose h3 {
  margin: 32px 0 10px;
  font-size: 1.1875rem;
}

.prose p,
.prose li {
  color: #3a3f58;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
  margin: 0 0 1em;
}

.prose li {
  margin-bottom: 6px;
}

.prose code {
  font-size: 0.92em;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 1px 6px;
}

.prose .updated {
  color: var(--quiet);
  font-size: var(--t-meta);
}

.panel {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 36px);
}

.howto {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: howto;
}

.howto > li {
  counter-increment: howto;
  position: relative;
  padding: 0 0 28px 56px;
}

.howto > li::before {
  content: counter(howto);
  position: absolute;
  left: 0;
  top: -2px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.howto > li:last-child {
  padding-bottom: 0;
}

.howto h3 {
  margin: 4px 0 6px;
  font-size: 1.1875rem;
}

.howto p {
  margin: 0;
  color: var(--slate);
}

.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 56px;
  margin-top: 40px;
  align-items: start;
}

.dl-card h2 {
  font-size: 1.5rem;
  font-stretch: 115%;
}

.dl-card .btn {
  width: 100%;
  margin-top: 20px;
}

.dl-meta {
  margin: 14px 0 0;
  font-size: var(--t-meta);
  color: var(--quiet);
}

.keybox {
  margin-top: 28px;
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.keybox output {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 0 16px;
  min-height: 56px;
  border-radius: 12px;
  border: 1px dashed var(--brand);
  background: var(--brand-soft);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

.notice {
  border-left: 3px solid var(--brand);
  padding: 4px 0 4px 18px;
  color: var(--slate);
  margin: 24px 0 0;
}

.contact-mail {
  font-size: clamp(1.4rem, 1rem + 1.6vw, 2rem);
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: -0.02em;
  text-decoration: none;
}

/* ------------------------------------------------------------------ responsive */

@media (max-width: 960px) {
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plans,
  .compare,
  .maker,
  .download-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .site-foot .wrap > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .site-nav a:not(.btn) {
    display: none;
  }

  .brand small {
    display: none;
  }

  .hero-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .specs,
  .promise-list,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .keybox {
    flex-direction: column;
  }
}

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

  .maker-facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

/* waitlist + seo pages */
.waitlist { margin-top: 20px; }
.waitlist label { font-weight: 600; font-size: var(--t-meta); }
.waitlist input {
  flex: 1; min-width: 0; height: 52px; padding: 0 16px; border-radius: 12px;
  border: 1px solid var(--rule); background: var(--mist); font: inherit; color: var(--ink);
}
.waitlist input:focus { outline: 3px solid var(--brand-soft); border-color: var(--brand); }
.prose.wide { max-width: 48em; }
.prose table.costs { margin: 8px 0 24px; }
.prose .howto { margin-top: 8px; }
.prose .faq { margin-top: 8px; }
.seo .hero-actions { display: flex; }
table.options td:last-child,
table.options th:last-child { text-align: left; }
table.options td:first-child { padding-right: 16px; font-weight: 600; }
.page h2.as-h1 {
  font-size: clamp(2.3rem, 1.4rem + 3.6vw, 3.75rem);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.035em;
  line-height: 0.98;
  max-width: 14em;
}
