/* Marketing site. Colour, type, space and focus come from /tokens.css,
   copied from packages/design-tokens/tokens.css when the site is built.
   IBM Plex is self-hosted (SIL Open Font License). See /fonts/LICENSE.txt. */

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-400.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-500.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-600.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-700.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-500.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-600.woff2') format('woff2');
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--c-ground);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: var(--fw-regular);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url('/img/07-background.webp') center / cover no-repeat;
  opacity: 0.22;
  pointer-events: none;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
.wordmark {
  letter-spacing: var(--tracking-tight);
  line-height: 1.15;
}

h1 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: var(--fw-bold);
}

h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: var(--fw-bold);
}

h3 {
  font-size: 20px;
  font-weight: var(--fw-semibold);
  line-height: 1.3;
}

a {
  color: var(--c-accent-text);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--c-text);
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

:focus:not(:focus-visible) {
  outline: none;
}

main:focus {
  outline: none;
}

.skip-link {
  position: absolute;
  left: var(--gutter-phone);
  top: -48px;
  z-index: 40;
  background: var(--c-accent);
  color: var(--c-ground);
  font-weight: var(--fw-semibold);
  padding: 12px 16px;
  border-radius: var(--r-control);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(1120px, calc(100% - 2 * var(--gutter-phone)));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--c-ground);
  border-bottom: 1px solid var(--c-border);
}

.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 12px;
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  color: var(--c-text);
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: var(--r-logo-tile);
  background: var(--c-ground);
}

.wordmark {
  font-size: 22px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-wordmark);
  color: var(--c-text);
}

.wordmark-tv {
  color: var(--c-accent);
}

.nav-toggle {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-control);
  background: var(--c-surface-2);
  color: var(--c-text);
  font: inherit;
  font-weight: var(--fw-semibold);
  cursor: pointer;
}

.nav {
  display: none;
  flex-direction: column;
  gap: 4px;
}

.nav.is-open {
  display: flex;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  width: min(280px, 80vw);
  padding: 8px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-sheet);
}

.nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  border-radius: var(--r-control);
  color: var(--c-text);
  font-weight: var(--fw-medium);
  text-decoration: none;
}

.nav a:hover {
  background: var(--c-surface-2);
  color: var(--c-text);
}

.header-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--r-control);
  font: inherit;
  font-size: 16px;
  font-weight: var(--fw-semibold);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--t-overlay),
    border-color var(--t-overlay),
    color var(--t-overlay);
}

.btn-primary {
  background: var(--c-accent);
  color: var(--c-ground);
}

.btn-primary:hover {
  background: #60a5fa;
  color: var(--c-ground);
}

.btn-primary:focus-visible {
  outline-color: var(--c-text);
}

.btn-ghost {
  background: transparent;
  border-color: var(--c-border-strong);
  color: var(--c-text);
}

.btn-ghost:hover {
  background: var(--c-surface-2);
  color: var(--c-text);
}

.header-actions .btn {
  width: 100%;
}

@media (max-width: 420px) {
  .header-actions .btn {
    padding-inline: 8px;
    font-size: 15px;
  }
}

.hero {
  padding: 28px 0 16px;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.kicker,
.label {
  margin-bottom: 12px;
  color: var(--c-accent-text);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 16ch;
}

.lede,
.section-lead {
  max-width: 62ch;
  margin-top: 16px;
  color: var(--c-text-2);
  font-size: 17px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.honesty {
  max-width: 62ch;
  margin-top: 18px;
  color: var(--c-text-2);
  font-size: 15px;
}

.frame {
  margin: 0;
  overflow: hidden;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-sheet);
}

.frame img {
  display: block;
  width: 100%;
  height: auto;
}

.section,
#contact {
  scroll-margin-top: 148px;
}

.section {
  padding: 48px 0;
}

.section-head {
  max-width: 68ch;
  margin-bottom: 28px;
}

.section-head p,
.section-lead {
  margin-top: 12px;
}

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

.device-list li {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  font-weight: var(--fw-semibold);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.feature {
  display: grid;
  gap: 20px;
  align-items: center;
}

.feature p {
  margin-top: 10px;
  color: var(--c-text-2);
  font-size: 17px;
}

.label-catchup {
  color: var(--c-catchup-text);
}

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
  padding: 20px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-panel);
}

.step-num {
  color: var(--c-accent-text);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-code);
}

.steps p {
  color: var(--c-text-2);
}

.price-grid {
  display: grid;
  gap: 16px;
}

.price {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-panel);
}

.price-featured {
  border: 2px solid var(--c-accent);
  background: var(--c-accent-tint);
}

.badge {
  align-self: flex-start;
  margin: 0;
  padding: 4px 10px;
  background: var(--c-accent);
  color: var(--c-ground);
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: var(--fw-semibold);
}

.price-amount {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.price-amount span {
  color: var(--c-text-muted);
  font-size: 15px;
  font-weight: var(--fw-medium);
  letter-spacing: 0;
}

.price ul {
  margin: 0;
  padding-left: 1.1em;
  color: var(--c-text-2);
}

.price li {
  margin: 6px 0;
}

.price .btn {
  margin-top: auto;
}

.launch-flag {
  margin: 0;
  color: var(--c-warn-text);
  font-size: 15px;
  font-weight: var(--fw-semibold);
}

.fine-print {
  max-width: 75ch;
  margin-top: 20px;
  color: var(--c-text-2);
  font-size: 15px;
}

.tips {
  display: grid;
  gap: 16px;
}

.tip {
  padding: 20px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-panel);
}

.tip p {
  margin-top: 8px;
  color: var(--c-text-2);
}

.tip-parked {
  background: var(--c-warn-tint);
  border-color: var(--c-warn);
}

.tip-parked h3 {
  color: var(--c-warn-text);
}

.faq details {
  border-top: 1px solid var(--c-border);
}

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

.faq summary {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 12px 0;
  color: var(--c-text);
  font-size: 17px;
  font-weight: var(--fw-semibold);
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  margin-left: auto;
  color: var(--c-text-muted);
  font-size: 15px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  content: 'Show';
}

.faq details[open] summary::after {
  content: 'Hide';
}

.faq details p {
  max-width: 70ch;
  margin: 0 0 16px;
  color: var(--c-text-2);
}

.page {
  padding: 32px 0 16px;
}

.prose {
  max-width: 68ch;
}

.prose h1 {
  margin-bottom: 12px;
}

.prose h2 {
  margin: 32px 0 8px;
  font-size: 22px;
}

.prose p,
.prose li {
  color: var(--c-text-2);
  font-size: 16px;
}

.prose p {
  margin-top: 12px;
}

.prose ul {
  margin: 12px 0 0;
  padding-left: 1.2em;
}

.prose li {
  margin: 6px 0;
}

.draft-banner {
  max-width: 68ch;
  margin-bottom: 28px;
  padding: 16px 20px;
  background: var(--c-warn-tint);
  border: 1px solid var(--c-warn);
  border-radius: var(--r-panel);
}

.draft-banner strong {
  color: var(--c-warn-text);
}

.draft-banner p {
  margin-top: 8px;
  color: var(--c-text);
}

.site-footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--c-border);
}

.footer-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 32px;
}

.footer-grid nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.footer-grid nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--c-text-2);
  font-weight: var(--fw-medium);
  text-decoration: none;
}

.footer-grid nav a:hover {
  color: var(--c-text);
}

.footer-tag,
.footer-meta {
  margin-top: 12px;
  color: var(--c-text-2);
  font-size: 15px;
}

.site-footer h2 {
  margin-bottom: 8px;
  font-size: 22px;
}

.site-footer > .wrap > p {
  max-width: 75ch;
  color: var(--c-text-2);
}

.disclaimer {
  margin-top: 16px;
  padding: 16px 20px;
  background: var(--c-surface);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-panel);
  color: var(--c-text-2);
  font-size: 15px;
}

@media (min-width: 768px) {
  .wrap {
    width: min(1120px, calc(100% - 64px));
  }

  .section {
    padding: 72px 0;
  }

  .feature-list {
    gap: 64px;
  }

  .feature {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 32px;
  }

  .feature.reverse figure {
    order: 2;
  }

  .steps,
  .tips {
    grid-template-columns: repeat(3, 1fr);
  }

  .price-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 1080px) {
  .section,
  #contact {
    scroll-margin-top: 88px;
  }

  .header-inner {
    display: flex;
    gap: 8px;
    min-height: 72px;
    padding-block: 0;
  }

  .nav-toggle {
    display: none;
  }

  .nav,
  .nav.is-open {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: auto;
    margin-left: auto;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .header-actions {
    display: flex;
    width: auto;
    grid-column: auto;
  }

  .header-actions .btn {
    width: auto;
  }

  .hero {
    padding: 48px 0 24px;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 40px;
    align-items: center;
  }

  .price-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .wrap {
    width: min(1160px, calc(100% - 96px));
  }
}

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