/* shiipdeck.ai — one family (Archivo), two widths: expanded for the
   slogan and headings, normal for text. Colours from the CI package:
   ink, paper, the brand blue for actions only, green for "checked". */

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

:root {
  --paper: #F5F5F7;
  --card: #FFFFFF;
  --ink: #16191D;
  --muted: #565B63;
  --faint: #86868B;
  --line: #DFE1E6;
  --blue: #1F4FD8;
  --blue-hover: #1A43BA;
  --blue-light: #4D8BFF;
  --sky: #8DB6FF;
  --sky-soft: #E8F0FF;
  --done: #13804A;
  --done-soft: #E6F4EC;
  --error: #B42318;

  --size-xl: clamp(46px, 6.5vw, 96px);
  --size-l: clamp(26px, 2.6vw, 34px);
  --size-m: 17px;
  --size-s: 14px;

  --radius: 14px;
  --radius-l: 20px;
  --gutter: 16px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-hover); }

:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

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

/* ── Header ─────────────────────────────────────────── */

.top { padding: 22px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; line-height: 0; }
.brand img { height: 24px; width: auto; }
@media (min-width: 720px) { .brand img { height: 28px; } }
.lang { font-size: var(--size-s); color: var(--muted); text-decoration: none; font-weight: 600; }
.lang:hover { color: var(--ink); }

/* ── Hero ───────────────────────────────────────────── */

.hero { padding: 20px 0 64px; }
.hero-grid { display: grid; gap: 40px; margin-top: 28px; }
@media (min-width: 1000px) {
  .hero { padding: 40px 0 96px; }
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; gap: 64px; margin-top: 40px; }
}

.slogan {
  margin: 0;
  font-size: var(--size-xl);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.04em;
}
.sub {
  margin: 0;
  font-size: var(--size-l);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.lead { margin: 14px 0 0; color: var(--muted); max-width: 30em; }

/* ── Waitlist form ──────────────────────────────────── */

.join { margin-top: 32px; display: grid; gap: 14px; max-width: 460px; scroll-margin-top: 24px; }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--size-s); font-weight: 600; }
.field input {
  font: inherit;
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
}
.field input::placeholder { color: var(--faint); }
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--sky-soft); }
.field input[aria-invalid="true"] { border-color: var(--error); }

.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: var(--size-s); color: var(--muted); line-height: 1.45; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 54px; padding: 0 28px;
  border: 0; border-radius: var(--radius);
  background: var(--blue); color: #fff;
  font: inherit; font-weight: 700; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.button:hover { background: var(--blue-hover); color: #fff; }
.button:active { transform: translateY(1px); }
.button[disabled] { opacity: .7; cursor: progress; }
.join .button { width: 100%; }
@media (min-width: 720px) { .join .button { width: auto; justify-self: start; } }

.form-error { margin: 0; min-height: 1.4em; font-size: var(--size-s); color: var(--error); font-weight: 600; }
.form-error:empty { min-height: 0; }

/* ── The slide (the picture of the hero) ────────────── */

.deck { position: relative; margin: 0; padding: 18px 18px 0 0; }
.deck::before, .deck::after {
  content: ''; position: absolute; border-radius: var(--radius-l);
}
/* the stack behind the slide — the bars of the ship, drawn as slides */
.deck::before { top: 0; right: 0; left: 36px; bottom: 36px; background: var(--sky); opacity: .55; }
.deck::after { top: 9px; right: 9px; left: 18px; bottom: 18px; background: var(--blue-light); opacity: .5; }

.slide {
  position: relative; z-index: 1;
  aspect-ratio: 16 / 10;
  background: var(--card);
  border-radius: var(--radius-l);
  box-shadow: 0 1px 2px rgba(22,25,29,.06), 0 24px 48px -24px rgba(22,25,29,.25);
  padding: 4.2% 4.6%;
  display: grid; grid-template-rows: auto 1fr auto; gap: 4%;
  container-type: inline-size;
}
/* on a phone the slide gets taller, so the drawn screen keeps its proportions */
@media (max-width: 599px) { .slide { aspect-ratio: 4 / 3.3; padding: 5.5% 5.5%; } }
.slide-head { display: flex; align-items: baseline; gap: 10px; }
.slide-kind { font-size: max(11px, 2.1cqi); font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
.slide-title { font-size: max(15px, 3.6cqi); font-weight: 800; font-stretch: 112%; letter-spacing: -0.02em; }

.slide-body { display: grid; grid-template-columns: 30% 1fr; gap: 5%; align-items: center; min-height: 0; height: 100%; }

.phone {
  aspect-ratio: 9 / 17;
  height: 100%;
  max-width: 100%;
  border: 2px solid var(--ink);
  border-radius: 14% / 7.5%;
  padding: 18% 9% 9%;
  display: flex; flex-direction: column; gap: 6%;
  justify-self: center;
}
.phone-title { font-size: max(10px, 2.3cqi); font-weight: 700; line-height: 1.15; }
.phone-chip { font-size: max(9px, 1.9cqi); background: var(--paper); border-radius: 999px; padding: 4% 10%; align-self: flex-start; color: var(--muted); }
.phone-button { margin-top: auto; background: var(--ink); color: #fff; font-size: max(9px, 1.9cqi); font-weight: 700; border-radius: 8px; text-align: center; padding: 8% 0; }

.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 9%; }
.point { display: grid; grid-template-columns: max(18px, 3.6cqi) 1fr; gap: 3.2cqi; align-items: center; font-size: max(12px, 2.8cqi); line-height: 1.3; font-weight: 500; }
.mark {
  width: max(18px, 3.6cqi); height: max(18px, 3.6cqi); border-radius: 50%;
  border: 2px solid var(--line); position: relative;
}
.mark::after {
  content: ''; position: absolute; left: 32%; top: 18%; width: 28%; height: 48%;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
  opacity: 0;
}

.slide-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.count { font-size: max(11px, 2.1cqi); font-weight: 700; color: var(--done); }
.ship {
  background: var(--blue); color: #fff; font-weight: 700;
  font-size: max(11px, 2.2cqi); border-radius: 10px; padding: 2cqi 3.6cqi;
  white-space: nowrap;
}

/* The one moment on the page: Ship it is pressed, the points are checked
   one after the other and turn green. Plays once; reduced motion shows the
   end state. */
@keyframes press { 0%, 100% { transform: none; } 50% { transform: scale(.94); } }
@keyframes checking {
  0% { border-color: var(--line); }
  50% { border-color: var(--sky); border-top-color: var(--blue); transform: rotate(180deg); }
  100% { border-color: var(--sky); border-top-color: var(--blue); transform: rotate(360deg); }
}
@keyframes checked { to { background: var(--done); border-color: var(--done); } }
@keyframes tick { to { opacity: 1; } }
@keyframes appear { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .ship { animation: press .4s ease .5s 1 both; }
  .count { animation: appear .4s ease 3.4s 1 both; }
  .point .mark { animation: checking .5s linear var(--start) 1 both, checked .2s ease calc(var(--start) + .5s) 1 forwards; }
  .point .mark::after { animation: tick .15s ease calc(var(--start) + .6s) 1 forwards; }
  .point:nth-child(1) { --start: 1s; }
  .point:nth-child(2) { --start: 1.8s; }
  .point:nth-child(3) { --start: 2.6s; }
}
@media (prefers-reduced-motion: reduce) {
  .point .mark { background: var(--done); border-color: var(--done); }
  .point .mark::after { opacity: 1; }
  html { scroll-behavior: auto; }
}

/* ── How it works ───────────────────────────────────── */

.section { padding: 64px 0; border-top: 1px solid var(--line); }
@media (min-width: 1000px) { .section { padding: 88px 0; } }

.section-title {
  margin: 0 0 40px;
  font-size: var(--size-l);
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 18em;
}

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.step h3 { margin: 18px 0 6px; font-size: var(--size-m); font-weight: 700; }
.step p { margin: 0; color: var(--muted); }

/* the ship is loaded step by step: hull, then one container, then two */
.load { display: block; width: 132px; height: 52px; }
.load .hull { fill: var(--ink); }
.load .c1 { fill: url(#shipBlue); }
.load .c2 { fill: var(--sky); }
.load .empty { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 4 3; }

/* ── On your computer ───────────────────────────────── */

.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.fact { padding-top: 18px; border-top: 2px solid var(--ink); }
.fact h3 { margin: 0 0 6px; font-size: var(--size-m); font-weight: 700; }
.fact p { margin: 0; color: var(--muted); }

/* ── Closing band ───────────────────────────────────── */

.band { background: var(--ink); color: #F5F5F7; padding: 72px 0; }
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.band h2 { margin: 0; font-size: var(--size-l); font-stretch: 125%; font-weight: 800; letter-spacing: -0.03em; }
.band .button:focus-visible { outline-color: #fff; }

/* ── Footer ─────────────────────────────────────────── */

.foot { padding: 28px 0 40px; font-size: var(--size-s); color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .company { margin-right: auto; }

/* ── Simple pages (thanks, 404, legal) ──────────────── */

.simple { padding: 56px 0 96px; min-height: 60vh; }
.simple .wrap { max-width: 760px; }
.simple h1 { margin: 0; font-size: var(--size-l); font-stretch: 125%; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.simple .lead { margin-top: 12px; }
.simple .button { margin-top: 32px; }
.done-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--done); position: relative; margin-bottom: 28px; }
.done-mark::after { content: ''; position: absolute; left: 21px; top: 13px; width: 12px; height: 24px; border: solid #fff; border-width: 0 4px 4px 0; transform: rotate(45deg); }

.legal h1 { margin-bottom: 6px; }
.legal h2 { margin: 36px 0 8px; font-size: var(--size-m); font-weight: 700; }
.legal p { margin: 0 0 12px; color: var(--muted); }
.legal .legal-note { font-size: var(--size-s); color: var(--faint); }
