/* Landing page. Builds on base.css tokens. */

html { scroll-padding-top: 84px; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ------------------------------------------------------------ top bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-inline-end: auto;
  min-width: 0;
}
.brand img { width: 116px; height: auto; flex: none; }
.brand-name { font-weight: 700; font-size: 17px; white-space: nowrap; }

.nav { display: none; gap: 4px; }
.nav a {
  padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
.nav a:hover { color: var(--ink); background: var(--sunken); }

@media (min-width: 860px) {
  .nav { display: flex; }
}
@media (max-width: 519px) {
  .brand img { width: 96px; }
}
@media (max-width: 380px) {
  .brand img { width: 80px; }
  .brand-name { font-size: 16px; }
  .topbar-cta { padding: 0 12px; }
}

/* ------------------------------------------------------------ hero */

.hero { padding-block: 48px 40px; }
.hero-copy { max-width: 720px; }
@media (min-width: 720px) {
  .hero-copy { margin-inline: auto; text-align: center; }
  .hero-copy .lede { margin-inline: auto; }
  .hero-copy .cta-row { justify-content: center; }
}

.compat {
  display: inline-block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}
.compat .mono { font-size: 12.5px; color: var(--ink); }

.hero h1 {
  font-size: clamp(32px, 7.4vw, 60px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: 0;
}
.lede {
  margin-top: 18px;
  max-width: 600px;
  font-size: clamp(17px, 2.2vw, 19px);
  line-height: 1.75;
  color: var(--muted);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
@media (max-width: 400px) {
  .cta-row .btn { flex: 1 1 100%; }
}

.stage {
  margin: 48px 0 0;
  padding: 0;
  animation: rise .7s cubic-bezier(.2, .7, .2, 1) both .1s;
}
.strip {
  position: relative;
  max-width: 940px;
  margin-inline: auto;
  padding-bottom: 64px;
}
.strip img { width: 100%; }

/* Readouts sit under each socket. The drawing is not mirrored in RTL, so
   positions are physical: socket centres at 134, 256, 378, 500 of 578. */
.readouts { list-style: none; margin: 0; padding: 0; }
.readouts li {
  position: absolute;
  top: calc(100% - 52px);
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 0;
  text-align: center;
  white-space: nowrap;
  line-height: 1.35;
}
.readouts li::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 1px;
  height: 8px;
  background: var(--line);
}
.readouts .r1 { left: 23.18%; }
.readouts .r2 { left: 44.29%; }
.readouts .r3 { left: 65.40%; }
.readouts .r4 { left: 86.51%; }
.r-name { font-size: 12px; color: var(--muted); }
.r-val { font-size: 13px; color: var(--faint); }
.is-on .r-val { color: var(--ink); font-weight: 600; }
.r-val .num { font-size: 14px; font-weight: 500; }

@media (min-width: 640px) {
  .strip { padding-bottom: 76px; }
  .readouts li { top: calc(100% - 60px); }
  .r-name { font-size: 13px; }
  .r-val { font-size: 15px; }
  .r-val .num { font-size: 17px; }
}

.stage-spec {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 0;
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}
.stage-spec > span { display: inline-flex; align-items: center; white-space: nowrap; }
.stage-spec .num { margin-inline: 4px; color: var(--ink); }
.dot-sep {
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--faint);
  margin-inline: 12px;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 960px) {
  .hero { padding-block: 72px 56px; }
  .stage { margin-top: 64px; }
}

/* ------------------------------------------------------------ sections */

.section {
  padding-block: 64px;
  border-top: 1px solid var(--line);
}
@media (min-width: 960px) {
  .section { padding-block: 96px; }
}
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 {
  font-size: clamp(26px, 4.4vw, 36px);
  font-weight: 700;
}
.section-head p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 17px;
}

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ------------------------------------------------------------ features */

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
.features li {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 24px 1fr;
  column-gap: 16px;
  row-gap: 4px;
  align-items: start;
}
.features .icon { grid-row: span 2; margin-top: 3px; color: var(--ink); }
.features h3 { font-size: 18px; font-weight: 600; }
.features p { color: var(--muted); font-size: 15.5px; line-height: 1.7; }

@media (min-width: 680px) {
  .features { grid-template-columns: 1fr 1fr; column-gap: 40px; border-top: 0; }
  .features li { border-top: 1px solid var(--line); border-bottom: 0; padding: 28px 0 24px; }
}
@media (min-width: 1000px) {
  .features { grid-template-columns: repeat(3, 1fr); column-gap: 48px; }
  .features li { grid-template-columns: 1fr; row-gap: 10px; }
  .features .icon { grid-row: auto; margin: 0 0 6px; }
}

/* ------------------------------------------------------------ phones */

.phones {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 68%);
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  margin-inline: calc(var(--gutter) * -1);
  padding: 4px var(--gutter) 12px;
  scrollbar-width: thin;
}
.phones:focus-visible { outline-offset: -2px; }
.phone-fig { margin: 0; scroll-snap-align: center; }
.phone {
  padding: 8px;
  border-radius: 36px;
  background: #1C1F24;
  border: 1px solid #1C1F24;
}
.phone img {
  width: 100%;
  border-radius: 28px;
  background: var(--sunken);
}
.phone-fig figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 14.5px;
  color: var(--muted);
}
@media (prefers-color-scheme: dark) {
  .phone { background: #1B1D22; border-color: #2E3138; }
}
@media (min-width: 820px) {
  .phones {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 270px));
    justify-content: center;
    gap: 40px;
    overflow: visible;
    margin-inline: 0;
    padding: 0;
  }
}

/* ------------------------------------------------------------ steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.steps li {
  position: relative;
  display: grid;
  align-content: start;
  grid-template-columns: 44px 1fr;
  column-gap: 16px;
  row-gap: 4px;
  padding-bottom: 28px;
}
.steps li:last-child { padding-bottom: 0; }
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-start: 21px;
  top: 48px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}
.step-n {
  grid-row: span 2;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 16px;
  font-weight: 500;
}
.steps li:first-child .step-n { background: var(--signal); color: var(--on-signal); border-color: var(--signal); }
.steps h3 { font-size: 18px; padding-top: 8px; }
.steps p { color: var(--muted); font-size: 15.5px; }

@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .steps li { grid-template-columns: 1fr; padding: 0; row-gap: 8px; }
  .step-n { grid-row: auto; margin-bottom: 10px; }
  .steps h3 { padding-top: 0; }
  .steps li:not(:last-child)::after {
    top: 22px;
    bottom: auto;
    inset-inline-start: 60px;
    inset-inline-end: -16px;
    width: auto;
    height: 1px;
  }
}

/* ------------------------------------------------------------ pricing */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
  max-width: 900px;
}
.plans-loading { color: var(--muted); }
.plan {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.plan.is-highlight { border: 1.5px solid var(--ink); position: relative; }
.plan-flag {
  align-self: flex-start;
  margin: -6px 0 -4px;
  padding: 2px 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}
.plan h3 { font-size: 21px; font-weight: 700; }
.plan-meta { margin-top: 4px; color: var(--muted); font-size: 14.5px; }
.plan-meta .num { color: var(--ink); }
.price { padding-block: 16px; border-block: 1px solid var(--line); }
.price-main { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.price-main .num { font-size: 40px; font-weight: 500; line-height: 1.1; }
.price-unit { color: var(--muted); font-size: 15px; }
.price-alt { margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.price-alt .num { color: var(--ink); }
.price-ask { font-size: 22px; font-weight: 600; line-height: 1.4; }
.price-ask-note { margin-top: 4px; font-size: 14px; color: var(--muted); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1; }
.checks li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 15px;
  line-height: 1.6;
}
.checks .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--ink); stroke-width: 1.8; }

.pricing-foot {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  color: var(--muted);
  font-size: 15px;
  max-width: 900px;
}
.pricing-foot .icon { width: 18px; height: 18px; }

/* ------------------------------------------------------------ faq */

.faq { max-width: 780px; 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: 16px;
  padding: 20px 0;
  font-weight: 600;
  font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .plus {
  flex: none;
  width: 14px; height: 14px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
  stroke-linecap: round;
  transition: transform .2s ease;
}
.faq details[open] .plus { transform: rotate(45deg); }
.faq summary:hover { color: var(--ink); }
.faq summary:focus-visible { outline-offset: 2px; }
.faq details p {
  padding: 0 0 22px;
  color: var(--muted);
  max-width: 680px;
  line-height: 1.8;
}

/* ------------------------------------------------------------ request */

.request-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 900px) {
  .request-grid { grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
}
.request-side h2 { font-size: clamp(26px, 4.4vw, 36px); font-weight: 700; }
.request-lede { margin-top: 10px; color: var(--muted); font-size: 17px; }
.request-notes {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.request-notes li {
  position: relative;
  padding-inline-start: 20px;
  color: var(--muted);
  font-size: 15.5px;
}
.request-notes li::before {
  content: "";
  position: absolute;
  inset-inline-start: 2px;
  top: .72em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink);
}
.request-side .icon { width: 18px; height: 18px; }

.request-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 20px;
}
@media (min-width: 600px) {
  .request-card { padding: 32px; }
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 600px) {
  .form-grid { grid-template-columns: 1fr 1fr; gap: 20px 18px; }
  .field-wide { grid-column: 1 / -1; }
}
.ltr-input { direction: ltr; text-align: right; }
.ltr-input::placeholder { text-align: right; }

/* Honeypot: off screen, out of the tab order, hidden from screen readers. */
.hp {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.turnstile:not(:empty) { margin-top: 20px; min-height: 65px; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 24px;
}
@media (max-width: 599px) {
  .form-actions .btn { width: 100%; }
}
.form-status { font-size: 14.5px; color: var(--muted); }
.form-status.is-error { color: var(--fault); }
.privacy { margin-top: 14px; font-size: 13px; color: var(--faint); }

.request-done {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding-block: 24px;
}
.request-done[hidden] { display: none; }
.request-done:focus-visible { outline-offset: 8px; }
.done-icon {
  width: 40px; height: 40px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.done-title { font-size: 21px; font-weight: 600; line-height: 1.6; max-width: 460px; }

/* ------------------------------------------------------------ footer */

.footer {
  border-top: 1px solid var(--line);
  padding-block: 40px 48px;
  font-size: 14px;
  color: var(--muted);
}
.footer-in { display: grid; gap: 18px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.footer-brand img { width: 96px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; }
.disclaimer { max-width: 680px; line-height: 1.7; color: var(--faint); font-size: 13px; }
.copy { color: var(--faint); font-size: 13px; }

/* ------------------------------------------------------------ 404 */

.notfound {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
  max-width: 560px;
}
.notfound img { width: 160px; margin-bottom: 12px; }
.notfound-code { color: var(--faint); font-size: 14px; }
.notfound h1 { font-size: 30px; font-weight: 700; }
.notfound p { color: var(--muted); }
.notfound .btn { margin-top: 10px; }
