/* liftellect.com — one stylesheet, no framework. The only script sends the
 * waitlist form in place; the page works without it.
 *
 * Colours are the app's dark theme (mobile_app/lib/design/tokens/
 * app_colors.dart), so the site and the screenshots on it read as one
 * product. Headings use Archivo Black and figures JetBrains Mono, the app's
 * own fonts; body text uses the reader's system font, which saves the 860 KB
 * Inter file and looks the same family on Apple and Android.
 *
 * Each `__ASSET:<path>__` is replaced by tools/build_website.py with the
 * hashed file name.
 */

@font-face {
  font-family: "Archivo Black";
  src: url("/assets/fonts/ArchivoBlack-Regular.dd9a89a019.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/JetBrainsMono-VariableFont.48715a42ec.ttf") format("truetype");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --page: #121316;
  --surface: #1b1d22;
  --raised: #24262c;
  --overlay: #2e313a;
  --line: #2e313a;
  --text: #ffffff;
  --text-2: #a6a9b2;
  --text-3: #6e717b;
  --accent: #e8452c;
  --accent-pressed: #c7351f;
  --radius: 14px;
  --radius-shot: 28px;
  --gutter: 16px;
  --display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter,
    "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

a:focus-visible,
summary:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

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

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  z-index: 100;
}

.skip:focus {
  left: 8px;
}

/* --- Shared pieces ------------------------------------------------------ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--overlay);
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}

.tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.15s ease;
}

.button:hover {
  background: var(--accent-pressed);
}

.button--small {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 14px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px;
}

.section {
  padding: 64px 0;
}

.section-head {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin-bottom: 32px;
}

.section-head h2,
.h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 4.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--text-2);
  font-size: 17px;
}

.link-arrow {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-top: 16px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--overlay);
}

.link-arrow:hover {
  border-color: var(--accent);
}

/* The screenshots: a phone-shaped frame around a real capture. */
.shot {
  border-radius: var(--radius-shot);
  overflow: hidden;
  background: #000;
  outline: 1px solid var(--line);
  outline-offset: -1px;
}

.shot img {
  width: 100%;
  aspect-ratio: 720 / 1560;
  object-fit: cover;
}

/* Two captures overlapped, in the box one capture takes: the first behind
 * and to the left, the second in front, lower and to the right. */
.shot-pair {
  position: relative;
  aspect-ratio: 720 / 1560;
}

.shot-pair .shot {
  position: absolute;
  width: 74%;
}

.shot--back {
  top: 0;
  left: 0;
  opacity: 0.92;
}

.shot--front {
  right: 0;
  bottom: 0;
  box-shadow: -12px 12px 32px rgba(0, 0, 0, 0.55);
}

/* --- Header ----------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 19, 22, 0.9);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--surface);
}

.header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.04em;
  min-height: 48px;
  margin-right: auto;
}

.logo-mark {
  height: 20px;
  width: auto;
  flex: none;
}

.logo-name sup {
  font-size: 0.5em;
  line-height: 0;
  margin-left: 1px;
}

.nav {
  display: none;
  gap: 4px;
}

.nav a,
.lang a,
.lang span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 999px;
}

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

.lang {
  display: flex;
  align-items: center;
  font-family: var(--mono);
}

.lang [aria-current] {
  color: var(--text);
}

.header .button {
  display: none;
}

.menu {
  position: relative;
}

.menu summary {
  list-style: none;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
}

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

.menu summary span,
.menu summary span::before,
.menu summary span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
}

.menu summary span::before,
.menu summary span::after {
  content: "";
  position: absolute;
}

.menu summary span::before {
  top: -6px;
}

.menu summary span::after {
  top: 6px;
}

.menu[open] summary {
  background: var(--surface);
}

.menu-panel {
  position: absolute;
  right: 0;
  top: 56px;
  width: min(280px, calc(100vw - 32px));
  background: var(--raised);
  border-radius: var(--radius);
  padding: 8px;
  display: grid;
}

.menu-panel a {
  padding: 14px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

.menu-panel a:hover {
  background: var(--overlay);
}

.menu-panel .button {
  display: flex;
  margin-top: 6px;
}

@media (min-width: 900px) {
  .nav,
  .header .button {
    display: inline-flex;
  }

  .menu {
    display: none;
  }
}

/* --- Hero ------------------------------------------------------------- */

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

.hero .wrap {
  display: grid;
  gap: 40px;
  align-items: start;
}

.hero-copy {
  display: grid;
  gap: 18px;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.lead {
  color: var(--text-2);
  font-size: 18px;
  max-width: 620px;
}

.cta {
  display: grid;
  gap: 14px;
  margin-top: 6px;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Not links until launch: a store's name and "Coming soon". */
.store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 52px;
  padding: 8px 18px;
  border-radius: 14px;
  background: var(--surface);
}

.store strong {
  font-size: 16px;
}

/* The waitlist. One field and its button side by side, stacked on a phone
 * too narrow for both. */
.waitlist {
  display: grid;
  gap: 12px;
  max-width: 560px;
}

.waitlist-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.waitlist input[type="email"] {
  flex: 1 1 240px;
  min-width: 0;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.waitlist input[type="email"]::placeholder {
  color: var(--text-3);
}

.waitlist input[type="email"]:focus-visible {
  outline: none;
  border-color: var(--text-2);
}

.waitlist .button {
  flex: 0 0 auto;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.waitlist .button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.waitlist .small a {
  color: var(--text-2);
}

/* The answer: shown by the script (.on), or, when the form posted without
 * one, by the address the API sent the browser back to (:target). */
.waitlist-msg {
  display: none;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 15px;
}

.waitlist-msg.on,
.waitlist-msg:target {
  display: block;
}

.waitlist-msg--joined {
  background: var(--raised);
  font-weight: 600;
}

.waitlist.done .waitlist-row {
  display: none;
}

/* A field people never see, which a script filling every field fills. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

.small {
  color: var(--text-3);
  font-size: 13px;
}

.hero-card {
  display: grid;
  gap: 14px;
  justify-self: center;
  width: 100%;
  max-width: 360px;
}

.hero-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.hero-card figcaption {
  color: var(--text-2);
  font-size: 14px;
}

@media (min-width: 960px) {
  .hero {
    padding-top: 72px;
  }

  .hero .wrap {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 64px;
  }

  .hero-card {
    position: sticky;
    top: 96px;
  }
}

/* --- Grids, and the two ways to train --------------------------------- */

.grid {
  display: grid;
  gap: 14px;
}

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

.track {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 28px;
}

.track h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.15;
}

.track p {
  color: var(--text-2);
  font-size: 16px;
}

/* --- Screens ---------------------------------------------------------- */

/* On a phone the five captures scroll sideways inside their own strip, so
 * each stays large enough to read; from a desktop width they sit in one
 * row and nothing scrolls. */
.screens {
  list-style: none;
  margin: 0 calc(var(--gutter) * -1);
  padding: 4px var(--gutter) 12px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(72vw, 260px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
}

.screens li {
  scroll-snap-align: start;
  display: grid;
  gap: 12px;
  align-content: start;
}

.screens h3 {
  font-size: 16px;
  line-height: 1.3;
}

.screens p {
  color: var(--text-2);
  font-size: 14px;
}

.screens .label {
  display: grid;
  gap: 4px;
}

@media (min-width: 1100px) {
  .screens {
    margin: 0;
    padding: 0;
    grid-auto-flow: row;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: visible;
  }
}

/* --- FAQ -------------------------------------------------------------- */

.faq {
  display: grid;
  gap: 10px;
  max-width: 860px;
}

.faq details {
  background: var(--surface);
  border-radius: var(--radius);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  min-height: 48px;
  font-weight: 700;
  font-size: 16px;
}

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

.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 20px;
  line-height: 1;
  color: var(--text-2);
  flex: none;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 20px 20px;
  color: var(--text-2);
}

/* --- Footer ----------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--surface);
  padding: 48px 0 40px;
  margin-top: 32px;
}

.footer .wrap {
  display: grid;
  gap: 32px;
}

.footer-brand {
  display: grid;
  gap: 10px;
  max-width: 420px;
}

.footer-brand .h2 {
  font-size: 22px;
}

.footer-brand p {
  color: var(--text-2);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.footer h3 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.footer li a {
  display: inline-block;
  padding: 8px 0;
  color: var(--text-2);
  text-decoration: none;
}

.footer li a:hover {
  color: var(--text);
}

.footer-legal {
  display: grid;
  gap: 6px;
  color: var(--text-3);
  font-size: 13px;
}

@media (min-width: 900px) {
  .footer .wrap {
    grid-template-columns: 1fr 1.4fr;
  }

  .footer-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-legal {
    grid-column: 1 / -1;
  }
}

/* --- 404 -------------------------------------------------------------- */

.missing {
  min-height: 60vh;
  display: grid;
  align-content: center;
  gap: 16px;
}

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

/* --- Wider screens ---------------------------------------------------- */

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

  .section {
    padding: 88px 0;
  }
}

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

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

  * {
    transition: none !important;
  }
}
