/* ABSeq website. The page is the app's light plastic shell; LCD windows are black, as in the app.
   Plastic stays light in dark mode (the app's rule); only the page behind it darkens. */

@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: 'Silkscreen';
  src: url('/fonts/silkscreen.ttf') format('truetype');
  font-display: swap;
}

:root {
  --plastic: #d9d5d2;
  --plastic-top: #e9e6e3;
  --plastic-shade: #bcb9b7;
  --plastic-skirt: #a29e9b;
  --ink: #1c1c1c;
  --lcd: #000;
  --lcd-text: #edf0e8;
  --track-a: #ff3b30;
  --track-b: #0a84ff;

  --bg: var(--plastic);
  --text: var(--ink);
  --text-soft: #4b4947;
  --rule: rgb(0 0 0 / 0.14);
  --link: #004fb3;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #242424;
    --text: #f2f1ef;
    --text-soft: #bdbab7;
    --rule: rgb(255 255 255 / 0.14);
    --link: #6cb6ff;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.125rem/1.55 'Archivo', system-ui, sans-serif;
  font-stretch: 100%;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--track-b); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { margin: 0; color: var(--text); text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 800; font-stretch: 125%; line-height: 0.98; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); font-weight: 780; font-stretch: 120%; line-height: 1.04; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; font-weight: 720; font-stretch: 112%; line-height: 1.2; }
p { margin: 0; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.3rem); color: var(--text-soft); max-width: 36em; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 10; background: var(--plastic-top); color: var(--ink); padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* Plastic key caps, after the app's raised keys: lit from above, a skirt underneath, pressed on tap. */
.key {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.8em 1.3em;
  border: 1px solid rgb(0 0 0 / 0.24);
  border-radius: 14px;
  background: linear-gradient(var(--plastic-top), var(--plastic) 70%, #cfcbc8);
  color: var(--ink);
  font: inherit; font-size: 1rem; font-weight: 720; font-stretch: 115%; line-height: 1.1;
  text-decoration: none; cursor: pointer;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.9), 0 3px 0 var(--plastic-skirt), 0 6px 14px rgb(0 0 0 / 0.22);
  transition: transform 80ms ease, box-shadow 80ms ease;
}
.key:hover { background: linear-gradient(#f0eeeb, var(--plastic-top) 70%, #d4d0cd); }
.key:active { transform: translateY(3px); box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.18), 0 0 0 var(--plastic-skirt), 0 2px 5px rgb(0 0 0 / 0.2); }
.key-small { padding: 0.55em 0.9em; border-radius: 11px; font-size: 0.9rem; }
.key-large { padding: 1em 1.6em; border-radius: 16px; font-size: 1.1rem; }

/* Header and footer */
.masthead {
  max-width: var(--wrap); margin: 0 auto; padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-stretch: 125%; font-size: 1.2rem; }
.brand img { border-radius: 9px; }
.masthead-nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); }
.masthead-nav > a:not(.key) { color: var(--text); text-decoration: none; font-weight: 560; font-size: 1rem; }
.masthead-nav > a:not(.key):hover, .masthead-nav > a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

.footer { border-top: 1px solid var(--rule); margin-top: clamp(64px, 10vw, 120px); }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 32px var(--gutter) 40px; display: grid; gap: 18px; grid-template-columns: 1fr auto; align-items: center; font-size: 0.95rem; color: var(--text-soft); }
.footer-maker { display: flex; align-items: center; gap: 10px; }
.footer-maker img { border-radius: 7px; flex: none; }
.footer-maker a { color: inherit; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav a { color: var(--text); text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.copyright { grid-column: 1 / -1; font-size: 0.85rem; }

/* Hero: the app's display panel, a plastic bezel around a black LCD, with the grille beneath. */
.hero { max-width: var(--wrap); margin: 0 auto; padding: 8px var(--gutter) 0; }
.panel {
  position: relative;
  padding: 34px 14px 14px;
  border-radius: clamp(18px, 3vw, 30px);
  background: linear-gradient(var(--plastic-top), var(--plastic) 55%, #d0ccc9);
  border: 1px solid rgb(0 0 0 / 0.2);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.9), 0 10px 30px rgb(0 0 0 / 0.22);
}
.panel-print {
  position: absolute; top: 9px; left: 20px;
  font-size: 0.85rem; font-weight: 720; font-stretch: 125%; letter-spacing: 0.04em; color: var(--ink);
}
.lcd {
  border-radius: clamp(10px, 1.6vw, 16px);
  background: var(--lcd);
  overflow: hidden;
  box-shadow: inset 0 2px 4px #000;
  aspect-ratio: 3840 / 1300;
}
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.grille {
  height: 12px; margin: 16px 6% 0;
  background: radial-gradient(circle, rgb(0 0 0 / 0.38) 1.6px, transparent 2.2px) 0 0 / 9px 6px;
}
@media (prefers-color-scheme: dark) { .grille { background-image: radial-gradient(circle, rgb(0 0 0 / 0.75) 1.6px, transparent 2.2px); } }
.hero-copy {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 64px);
  align-items: end; padding: clamp(24px, 4vw, 44px) 0 0;
}
.hero-copy h1 { max-width: 13ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 28px; color: var(--text-soft); font-size: 1rem; }

/* Features: one row per feature, text left and the device right, every row the same way round. */
.feature {
  max-width: var(--wrap); margin: 0 auto; padding: clamp(64px, 10vw, 128px) var(--gutter) 0;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 80px); align-items: center;
}
.feature-text { display: grid; gap: 18px; max-width: 30em; }
.feature-text p { color: var(--text-soft); }
.feature-media { display: flex; justify-content: center; align-items: flex-start; gap: clamp(8px, 2vw, 24px); }
.feature-media > img, .feature-media > figure { flex: 0 1 330px; min-width: 0; margin: 0; }
.feature-media.pair > :last-child { margin-top: 12%; }
.device-video { position: relative; }
.device-video video {
  position: absolute; left: 2.55%; top: 1.19%; width: 69.63%; height: 90.86%;
  object-fit: cover; border-radius: 11% / 5%; background: #111;
}
.device-video img { position: relative; width: 100%; }
.feature-wide { grid-template-columns: minmax(0, 1fr); }
.feature-wide .feature-text { max-width: 40em; }
.feature-wide .feature-media { justify-content: flex-start; }
.feature-wide .feature-media > img { flex-basis: 820px; }

.details {
  max-width: var(--wrap); margin: 0 auto; padding: clamp(64px, 10vw, 120px) var(--gutter) 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px);
}
.details > div { display: grid; gap: 10px; align-content: start; }
.details p { color: var(--text-soft); }

/* Pro: an LCD readout, the one place the pixel face sets numbers. */
.pricing {
  width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--wrap) - 2 * var(--gutter));
  margin: clamp(72px, 11vw, 136px) auto 0;
  padding: clamp(28px, 5vw, 56px);
  border-radius: clamp(18px, 3vw, 28px);
  background: var(--lcd); color: var(--lcd-text);
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 28px clamp(28px, 5vw, 64px); align-items: center;
}
.pricing h2 { color: var(--lcd-text); }
.pricing-text { display: grid; gap: 16px; }
.pricing-text p { color: rgb(237 240 232 / 0.72); }
.prices { margin: 0; display: grid; gap: 18px; }
.prices > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid rgb(237 240 232 / 0.18); }
.prices dt { font-weight: 640; font-stretch: 112%; }
.prices dd { margin: 0; color: rgb(237 240 232 / 0.72); }
.price { font-family: 'Silkscreen', monospace; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--lcd-text); margin-right: 0.3em; }
.pricing-note { grid-column: 1 / -1; font-size: 0.95rem; color: rgb(237 240 232 / 0.6); }

.faqs { max-width: var(--wrap); margin: 0 auto; padding: clamp(72px, 11vw, 128px) var(--gutter) 0; }
.faqs h2 { margin-bottom: 20px; }
.faq { border-top: 1px solid var(--rule); max-width: 760px; }
.faq:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-size: 1.2rem; font-weight: 680; font-stretch: 110%;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); transition: transform 160ms ease;
}
.faq[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq p { padding: 0 0 22px; color: var(--text-soft); max-width: 40em; }

.closing { max-width: var(--wrap); margin: 0 auto; padding: clamp(72px, 11vw, 128px) var(--gutter) 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }

/* Text pages: help, support, privacy, terms */
.page { max-width: var(--wrap); margin: 0 auto; padding: clamp(24px, 5vw, 56px) var(--gutter) 0; }
.page-head { display: grid; gap: 16px; max-width: 44em; padding-bottom: clamp(28px, 5vw, 48px); }
.page-head h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
.updated { color: var(--text-soft); font-size: 1rem; }
.prose { max-width: 42em; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); margin: 2.2em 0 0.6em; scroll-margin-top: 24px; }
.prose h3 { margin: 1.6em 0 0.4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose > :first-child { margin-top: 0; }

.with-toc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: 24px; display: grid; gap: 2px; font-size: 0.98rem; }
.toc a { color: var(--text-soft); text-decoration: none; padding: 5px 0; }
.toc a:hover { color: var(--text); text-decoration: underline; }
.help-topic { margin: 0 0 1.1em; }
.help-topic dt { font-weight: 700; font-stretch: 108%; }
.help-topic dd { margin: 0.2em 0 0; color: var(--text-soft); }
.app-data { margin: 0 0 1.2em; display: grid; gap: 14px; }
.app-data dt { font-weight: 700; font-stretch: 108%; }
.app-data dd { margin: 0.2em 0 0; color: var(--text-soft); }
.app-data em { font-style: normal; color: var(--text); }
kbd { font: inherit; font-weight: 700; font-stretch: 112%; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(32px, 6vw, 80px); align-items: start; }

/* Forms: inputs are recessed wells; the submit button is a key. */
.form { display: grid; gap: 8px; padding: clamp(20px, 3vw, 32px); border-radius: 22px; background: linear-gradient(var(--plastic-top), var(--plastic)); color: var(--ink); border: 1px solid rgb(0 0 0 / 0.18); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.9), 0 8px 24px rgb(0 0 0 / 0.16); }
.form h2 { color: var(--ink); font-size: 1.5rem; margin-bottom: 8px; }
.form label { font-weight: 640; font-size: 0.98rem; margin-top: 8px; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border-radius: 10px; border: 1px solid rgb(0 0 0 / 0.28);
  background: #f4f2f0; box-shadow: inset 0 2px 3px rgb(0 0 0 / 0.16);
}
.form textarea { resize: vertical; }
.form .key { justify-self: start; margin-top: 18px; }
.form-status:empty { display: none; }
.form-status { font-weight: 640; }
.form-note { font-size: 0.9rem; color: #4b4947; }
.form-note a { color: #004fb3; }
.honeypot { position: absolute; left: -9999px; }

@media (max-width: 860px) {
  .hero-copy, .feature, .details, .pricing, .split, .with-toc { grid-template-columns: minmax(0, 1fr); }
  .feature-media > img, .feature-media > figure { flex-basis: 280px; }
  .toc { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .masthead { padding-top: 12px; padding-bottom: 12px; }
  .masthead-nav { gap: 14px; }
  .brand span { display: none; }
  .panel { padding: 26px 8px 8px; }
  .panel-print { top: 6px; left: 14px; font-size: 0.75rem; }
  .actions .key-large { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .key, .faq summary::after { transition: none; }
}
