/* Plus Jakarta Sans, hosted with the site (no visitor data sent to Google).
   SIL Open Font License, see assets/fonts/OFL.txt */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}

/* ==========================================================
   SmartLocker: design tokens
   Greys only, taken from the padlock logo (#6E6E73).
   ========================================================== */
:root {
  --bg: #f5f5f7;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --ink: #1d1d1f;          /* main text */
  --ink-2: #6e6e73;        /* secondary text, logo grey */
  --ink-3: #9a9aa0;        /* hero second line (large text only) */
  --line: #d2d2d7;         /* borders */
  --line-soft: #e5e5ea;
  --logo: #6e6e73;
  --btn-bg: #1d1d1f;
  --btn-ink: #ffffff;
  --btn-bg-hover: #3a3a3c;
  --focus: #1d1d1f;
  --error: #b3261e;

  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-s: 10px;
  --radius-m: 18px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

:root[data-theme="dark"] {
  --bg: #161617;
  --bg-alt: #1d1d1f;
  --surface: #232325;
  --ink: #f5f5f7;
  --ink-2: #a1a1a6;
  --ink-3: #6e6e73;
  --line: #3a3a3c;
  --line-soft: #2c2c2e;
  --logo: #c7c7cc;
  --btn-bg: #f5f5f7;
  --btn-ink: #1d1d1f;
  --btn-bg-hover: #d2d2d7;
  --focus: #f5f5f7;
  --error: #ff8a80;
}

/* Fallback if the head script is blocked */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --bg: #161617; --bg-alt: #1d1d1f; --surface: #232325;
    --ink: #f5f5f7; --ink-2: #a1a1a6; --ink-3: #6e6e73;
    --line: #3a3a3c; --line-soft: #2c2c2e; --logo: #c7c7cc;
    --btn-bg: #f5f5f7; --btn-ink: #1d1d1f; --btn-bg-hover: #d2d2d7;
    --focus: #f5f5f7; --error: #ff8a80;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}

h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  border-radius: var(--radius-s);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Logo drawn from the PNG's shape, so it recolours for light and dark */
.logo {
  display: block;
  background-color: var(--logo);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: left center;
  mask-position: left center;
}
.logo-full {
  width: 130px;
  aspect-ratio: 1255 / 385;
  -webkit-mask-image: url("assets/logo-full.png");
  mask-image: url("assets/logo-full.png");
}
.logo-mark {
  width: 36px;
  aspect-ratio: 1;
  -webkit-mask-image: url("assets/logo-mark.png");
  mask-image: url("assets/logo-mark.png");
}

/* ==========================================================
   Buttons
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 1rem/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: scale(.98); }

.btn-primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn-primary:hover { background: var(--btn-bg-hover); }

.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-2); }

.btn-small { min-height: 40px; padding: 0 18px; font-size: .9375rem; }

/* ==========================================================
   Header
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; min-height: 44px; }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 500;
  border-radius: 8px;
  transition: color .2s var(--ease);
}
.site-nav a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s var(--ease);
}
.theme-toggle:hover { border-color: var(--ink-2); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ==========================================================
   Hero
   ========================================================== */
.hero { padding: clamp(48px, 9vw, 112px) 0 clamp(64px, 9vw, 120px); }

.hero-title {
  font-size: clamp(2.75rem, 11.5vw, 10rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -0.045em;
}
.hero-title .line { display: block; }
.hero-title .line-1 { color: var(--ink); }
.hero-title .line-2 { color: var(--ink-3); }

.hero-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-top: clamp(32px, 5vw, 64px);
  align-items: end;
}

.lead {
  max-width: 34ch;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.5;
  color: var(--ink-2);
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 20px; font-size: .9375rem; color: var(--ink-2); }

/* Locker bank illustration */
.locker-bank { max-width: 520px; width: 100%; justify-self: end; }
.locker-bank svg { width: 100%; height: auto; }
.lb-frame { fill: var(--surface); stroke: var(--line); stroke-width: 2; }
.lb-door { fill: var(--bg); stroke: var(--line); stroke-width: 1.5; transition: fill .6s var(--ease); }
.lb-led { fill: var(--line); transition: fill .6s var(--ease); }
.lb-screen { fill: var(--ink); }
.lb-qr { fill: var(--bg); }
.lb-screen-line { fill: var(--ink-2); }
.lb-caption { margin-top: 14px; font-size: .875rem; color: var(--ink-2); }

/* One door "unlocks" after the headline finishes */
.is-ready .lb-door-active { fill: var(--line-soft); }
.is-ready .lb-led-active { fill: var(--ink); }

/* ==========================================================
   Sections
   ========================================================== */
.section { padding: clamp(72px, 10vw, 136px) 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2,
.about h2 {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}
.section-intro {
  margin-top: 20px;
  max-width: 52ch;
  font-size: 1.125rem;
  color: var(--ink-2);
}

h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }

/* How it works: a real sequence, so numbered */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 16px;
  row-gap: 6px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.step-num {
  grid-row: span 2;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink-3);
}
.step p { color: var(--ink-2); max-width: 40ch; }

/* Locker sizes */
.sizes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.size {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px 20px 28px;
  background: var(--bg-alt);
}
.size-door { width: 72px; height: 96px; margin-bottom: 20px; }
.size-door rect { fill: var(--bg); stroke: var(--ink-2); stroke-width: 2; }
.size-code { font-size: .9375rem; font-weight: 600; color: var(--ink-2); }
.size-fits { margin-top: 6px; color: var(--ink-2); font-size: .9375rem; }
.size-dims { margin-top: auto; padding-top: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }

.fine-print { margin-top: 16px; font-size: .875rem; color: var(--ink-2); }

.specs {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--line);
}
.specs > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.specs dt { color: var(--ink-2); }
.specs dd { font-weight: 600; }

/* Locations */
.places {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.places li { padding: 24px 0; border-bottom: 1px solid var(--line); }
.places p { margin-top: 6px; color: var(--ink-2); max-width: 46ch; }
.locations-cta { margin-top: 40px; font-size: 1.125rem; color: var(--ink-2); }
.locations-cta a { color: var(--ink); font-weight: 600; text-underline-offset: 4px; }

/* About */
.about { display: grid; gap: 32px; }
.about-body { max-width: 62ch; display: grid; gap: 20px; font-size: 1.125rem; color: var(--ink-2); }
.about-lead {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* Waitlist */
.waitlist-form { display: grid; gap: 24px; max-width: 640px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .9375rem; }

.field input[type="email"],
.field input[type="text"] {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  font: 400 1rem var(--font);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  transition: border-color .2s var(--ease);
}
.field input:hover { border-color: var(--ink-2); }
.field input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: var(--error); }

.field-choices { border: 0; padding: 0; margin: 0; }
.field-choices legend { padding: 0; margin-bottom: 10px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: .9375rem;
  font-weight: 500;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.choice:hover span { border-color: var(--ink-2); }
.choice input:checked + span { background: var(--btn-bg); color: var(--btn-ink); border-color: var(--btn-bg); }
.choice input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }

.field-error { min-height: 0; font-size: .875rem; color: var(--error); }
.field-error:empty { display: none; }

.btn-submit { justify-self: start; min-width: 200px; }
.btn-submit[disabled] { opacity: .6; cursor: progress; }
.form-note { font-size: .875rem; color: var(--ink-2); }
.form-status { font-weight: 600; }
.form-status:empty { display: none; }

/* Spam trap: hidden from people, filled in only by bots */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Consent checkbox */
.consent {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  cursor: pointer;
  font-size: .9375rem;
  color: var(--ink-2);
}
.consent input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--btn-bg);
  cursor: pointer;
}
.consent strong { color: var(--ink); font-weight: 600; }
.form-note a, .consent a { color: var(--ink); text-underline-offset: 3px; }

/* Privacy Policy page */
.policy { max-width: 760px; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(72px, 10vw, 120px); }
.policy h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.policy-updated { margin-top: 16px; font-size: .9375rem; color: var(--ink-2); }
.policy-intro { margin-top: 32px; font-size: 1.1875rem; line-height: 1.6; }
.policy-toc { margin: 40px 0 8px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius-m); }
.policy-toc ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.policy-toc a { display: inline-flex; min-height: 36px; align-items: center; color: var(--ink-2); font-size: .9375rem; text-underline-offset: 3px; }
.policy-toc a:hover { color: var(--ink); }
.policy section { padding-top: 40px; margin-top: 40px; border-top: 1px solid var(--line); }
.policy h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 16px; }
.policy p, .policy-list { color: var(--ink-2); max-width: 66ch; }
.policy p + p, .policy p + .policy-list, .policy-list + p { margin-top: 14px; }
.policy strong { color: var(--ink); font-weight: 600; }
.policy a { color: var(--ink); text-underline-offset: 3px; }
.policy-list { list-style: disc; padding-left: 1.25em; display: grid; gap: 10px; }
.policy-list li::marker { color: var(--ink-3); }

/* Footer */
.site-footer { padding: 48px 0 56px; border-top: 1px solid var(--line-soft); }
.footer-inner { display: grid; gap: 24px; align-items: center; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer a { display: inline-flex; min-height: 44px; align-items: center; color: var(--ink-2); text-decoration: none; font-size: .9375rem; }
.site-footer a:hover { color: var(--ink); }
.copyright { font-size: .875rem; color: var(--ink-2); }

/* ==========================================================
   Letter-by-letter reveal (only when JS runs and motion is allowed)
   ========================================================== */
.letters .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
  transition-delay: calc(var(--i) * 28ms);
}
.letters .punct { margin-left: -0.06em; } /* splitting letters loses kerning before full stops */
.letters .sp { display: inline; }
.letters .word { display: inline-block; white-space: nowrap; }
.letters.is-in .ch { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation: none !important; }
  .letters .ch { opacity: 1; transform: none; }
}

/* ==========================================================
   Breakpoints
   ========================================================== */
@media (max-width: 859px) {
  .site-nav { display: none; }
  .header-actions { margin-left: auto; }
}

@media (max-width: 380px) {
  .btn-small { padding: 0 14px; font-size: .875rem; }
  .logo-full { width: 112px; }
}

@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
  .specs { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
  .places { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
}

@media (min-width: 860px) {
  .hero-body { grid-template-columns: 1fr 1fr; }
  .sizes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .size { padding: 32px 28px 32px; }
  .steps { grid-template-columns: repeat(4, 1fr); column-gap: 32px; border-top: 0; }
  .step { grid-template-columns: 1fr; border-bottom: 0; border-top: 1px solid var(--line); padding-top: 24px; }
  .step-num { grid-row: auto; margin-bottom: 20px; }
  .specs { grid-template-columns: repeat(5, 1fr); column-gap: 24px; border-top: 0; }
  .specs > div { grid-template-columns: 1fr; gap: 6px; border-top: 1px solid var(--line); border-bottom: 0; }
  .places { grid-template-columns: repeat(3, 1fr); }
  .about { grid-template-columns: 5fr 7fr; gap: 64px; }
  .footer-inner { grid-template-columns: auto 1fr auto; }
  .site-footer ul { justify-content: center; }
}
