/* ===================================
   THE BIGGER STEP — Launching Soon Page
   Fluid: sizes scale with the viewport via clamp(),
   breakpoints only change layout.
   =================================== */

:root {
  /* Colors */
  --ls-paper: #f4f1ea;
  --ls-ink: #1b1a17;
  --ls-ink-soft: #45413a;
  --ls-muted: #5d584e;
  --ls-rule: #d8d2c4;
  --ls-tape: #e8b730;
  --ls-tab: #8d8a82;
  --ls-tab-dark: #6f6c65;
  --ls-marker: #c8372d;

  /* Typography */
  --ls-serif: 'Instrument Serif', 'Georgia', serif;
  --ls-sans: 'Inter', 'Helvetica Neue', sans-serif;
  --ls-mono: 'JetBrains Mono', 'Menlo', monospace;
  --ls-brand: 'Playfair Display', 'Georgia', serif;

  /* Layout */
  --container: 1600px;
  --gutter: clamp(16px, 4vw, 64px);
  --section-gap: clamp(48px, 7vw, 120px);

  /* Tape geometry: 1cm on screen, where the ticks start, first cm number */
  --cm: clamp(40px, 4.6vw, 104px);
  --tape-pad: clamp(40px, 4.3vw, 80px);
  --tape-start: 24;
  --tape-height: clamp(84px, 7.6vw, 156px);
  --tape-tilt: -2deg;
  --tick-cm: calc(var(--tape-height) * 0.34);
  --tick-half: calc(var(--tape-height) * 0.24);
  --tick-mm: calc(var(--tape-height) * 0.13);
}

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

[hidden] {
  display: none !important;
}

.ls-nowrap {
  white-space: nowrap;
}

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

body {
  font-family: var(--ls-sans);
  font-size: clamp(15px, 0.35vw + 14px, 19px);
  color: var(--ls-ink);
  background: var(--ls-paper);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--ls-ink);
}

a:hover {
  color: var(--ls-marker);
}

.ls-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* === Header === */
.ls-header {
  border-bottom: 1px solid var(--ls-rule);
}

.ls-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: clamp(16px, 2vw, 30px);
  padding-bottom: clamp(16px, 2vw, 30px);
}

.ls-brand {
  flex-shrink: 0;
  font-family: var(--ls-brand);
  font-size: clamp(18px, 0.8vw + 15px, 28px);
  font-weight: 700;
  letter-spacing: -0.4px;
  text-decoration: none;
  color: var(--ls-ink);
}

.tm {
  font-size: 0.38em;
  margin-left: 2px;
}

.ls-status {
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.6vw, 10px);
  font-family: var(--ls-mono);
  font-size: clamp(10px, 0.3vw + 9px, 14px);
  font-weight: 600;
  letter-spacing: clamp(1px, 0.12vw, 2px);
  text-transform: uppercase;
  white-space: nowrap;
}

.ls-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ls-marker);
  animation: ls-pulse 2s ease-in-out infinite;
}

@keyframes ls-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.ls-brands-link {
  font-size: clamp(14px, 0.2vw + 13px, 16px);
  font-weight: 500;
  padding: 12px 0;
  white-space: nowrap;
}

/* === Hero === */
.ls-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 48px) clamp(32px, 5vw, 96px);
  padding-top: clamp(32px, 9vh, 120px);
}

.ls-hero h1 {
  font-family: var(--ls-serif);
  font-weight: 400;
  /* Width-driven, but capped by height so landscape phones keep the tape in view */
  font-size: clamp(44px, min(10.5vw, 22vh), 232px);
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.ls-hero h1 em {
  font-style: italic;
}

.ls-lede {
  max-width: 22em;
  margin-bottom: 0.8em;
  font-size: clamp(16px, 0.5vw + 14px, 22px);
  color: var(--ls-ink-soft);
}

/* === Tape === */
.ls-tape-wrap {
  overflow: hidden;
  padding: clamp(72px, 7vw, 132px) 0 clamp(64px, 7vw, 132px);
}

/* Starts just left of the text column and runs off the right edge */
.ls-tape {
  position: relative;
  margin-left: calc(max(0px, (100% - var(--container)) / 2) + var(--gutter) * 0.4);
  width: calc(100vw + 10%);
  height: var(--tape-height);
  background: var(--ls-tape);
  transform: rotate(var(--tape-tilt));
  transform-origin: left center;
  box-shadow: 0 14px 28px rgba(27, 26, 23, 0.14);
  /* "backwards", not "both": keeping clip-path after the animation makes
     Safari split the marker tag across raster tiles on the rotated tape */
  animation: ls-unroll 1.1s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes ls-unroll {
  from { clip-path: inset(-160px 100% -160px 0); }
  to { clip-path: inset(-160px 0 -160px 0); }
}

/* Metal end tab */
.ls-tape-tab {
  position: absolute;
  left: 0;
  top: -6px;
  bottom: -6px;
  width: calc(var(--tape-pad) * 0.55);
  background: var(--ls-tab);
  border-radius: 3px 0 0 3px;
}

.ls-tape-tab::after {
  content: '';
  position: absolute;
  top: 6px;
  bottom: 6px;
  right: calc(var(--tape-pad) * -0.14);
  width: calc(var(--tape-pad) * 0.14);
  background: var(--ls-tab-dark);
}

/* cm, half-cm and mm ticks */
.ls-tape-ticks {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--tape-pad);
  right: 0;
  background-image:
    repeating-linear-gradient(to right, var(--ls-ink) 0 1px, transparent 1px var(--cm)),
    repeating-linear-gradient(to right, var(--ls-ink) 0 1px, transparent 1px calc(var(--cm) / 2)),
    repeating-linear-gradient(to right, var(--ls-ink) 0 1px, transparent 1px calc(var(--cm) / 10));
  background-size: 100% var(--tick-cm), 100% var(--tick-half), 100% var(--tick-mm);
  background-repeat: no-repeat;
}

.ls-tape-labels {
  position: absolute;
  top: calc(var(--tick-cm) + var(--tape-height) * 0.06);
  left: calc(var(--tape-pad) - var(--cm) / 2);
  right: 0;
  overflow: hidden;
  display: flex;
  font-family: var(--ls-mono);
  font-size: clamp(15px, calc(var(--cm) * 0.3), 32px);
  font-weight: 800;
  line-height: 1;
}

.ls-tape-labels span {
  flex: 0 0 var(--cm);
  text-align: center;
}

.ls-tape-marker {
  --pos: 27;
  position: absolute;
  top: calc(var(--tape-height) * -0.38);
  bottom: calc(var(--tape-height) * -0.17);
  width: 3px;
  left: calc(var(--tape-pad) + (var(--pos) - var(--tape-start)) * var(--cm) - 1px);
  background: var(--ls-marker);
  transition: left 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.ls-tape-marker span {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.45em 0.9em;
  background: var(--ls-marker);
  color: #ffffff;
  font-family: var(--ls-mono);
  font-size: clamp(11px, 0.35vw + 9px, 16px);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  /* Rasterize the tag as one layer so it can't tear across tiles */
  will-change: transform;
}

/* === Details + Signup === */
.ls-details {
  display: flex;
  flex-wrap: wrap;
  gap: var(--section-gap) clamp(48px, 7vw, 140px);
  padding-bottom: var(--section-gap);
}

.ls-steps,
.ls-signup {
  flex: 1 1 420px;
  min-width: 0;
}

.ls-eyebrow {
  margin-bottom: 20px;
  font-family: var(--ls-mono);
  font-size: clamp(12px, 0.2vw + 11px, 14px);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ls-muted);
}

.ls-steps ol {
  list-style: none;
  border-top: 1px solid var(--ls-ink);
}

.ls-steps li {
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 1.6vw, 28px);
  padding: clamp(14px, 1.4vw, 24px) 0;
  border-bottom: 1px solid var(--ls-rule);
  font-family: var(--ls-serif);
  font-size: clamp(23px, 1.2vw + 16px, 40px);
  line-height: 1.15;
}

.ls-steps li span {
  flex-shrink: 0;
  font-family: var(--ls-mono);
  font-size: clamp(12px, 0.2vw + 11px, 15px);
  color: var(--ls-muted);
}

.ls-form {
  display: flex;
  flex-direction: column;
}

.ls-form h2,
.ls-success h2 {
  font-family: var(--ls-serif);
  font-weight: 400;
  font-size: clamp(34px, 1.8vw + 26px, 60px);
  line-height: 1;
}

.ls-form-sub {
  margin: 10px 0 22px;
  color: var(--ls-ink-soft);
}

.ls-form label {
  margin-top: 6px;
  font-family: var(--ls-mono);
  font-size: clamp(11px, 0.15vw + 10px, 13px);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ls-muted);
}

.ls-form select,
.ls-form input {
  height: clamp(48px, 1.5vw + 40px, 60px);
  margin-bottom: 16px;
  padding: 0 2px;
  border: none;
  border-bottom: 2px solid var(--ls-ink);
  border-radius: 0;
  background: transparent;
  /* ≥16px stops iOS zooming into the field */
  font: 400 clamp(17px, 0.3vw + 16px, 22px) var(--ls-sans);
  color: var(--ls-ink);
}

.ls-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231b1a17' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  cursor: pointer;
}

.ls-form select:invalid {
  color: var(--ls-muted);
}

.ls-form input::placeholder {
  color: #8a8478;
}

.ls-form select:focus,
.ls-form input:focus {
  outline: none;
  border-bottom-color: var(--ls-marker);
}

.ls-form select:focus-visible,
.ls-form input:focus-visible,
.ls-submit:focus-visible {
  outline: 2px solid var(--ls-marker);
  outline-offset: 3px;
}

.ls-submit {
  position: relative;
  height: clamp(54px, 1.2vw + 46px, 64px);
  margin-top: 8px;
  border: none;
  border-radius: 2px;
  background: var(--ls-ink);
  color: var(--ls-paper);
  font: 600 clamp(16px, 0.2vw + 15px, 18px) var(--ls-sans);
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ls-submit:hover {
  background: #000000;
}

.ls-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.ls-submit .spinner {
  display: none;
  width: 20px;
  height: 20px;
  margin: 0 auto;
  border: 2px solid transparent;
  border-top-color: var(--ls-paper);
  border-radius: 50%;
  animation: ls-spin 0.6s linear infinite;
}

.ls-submit.loading .btn-text {
  display: none;
}

.ls-submit.loading .spinner {
  display: block;
}

@keyframes ls-spin {
  to { transform: rotate(360deg); }
}

.ls-form-error {
  margin-top: 10px;
  font-size: 0.9em;
  font-weight: 500;
  color: var(--ls-marker);
}

.ls-form-error:empty {
  margin-top: 0;
}

.ls-hint {
  margin-top: 12px;
  font-size: 0.88em;
  color: var(--ls-muted);
}

.ls-success {
  padding: 32px 0;
  border-top: 1px solid var(--ls-ink);
}

.ls-success p {
  margin-top: 12px;
  font-size: 1.05em;
  color: var(--ls-ink-soft);
}

/* === Footer === */
.ls-footer {
  border-top: 1px solid var(--ls-rule);
}

.ls-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 22px;
  padding-bottom: 30px;
  font-family: var(--ls-mono);
  font-size: clamp(11px, 0.15vw + 10px, 13px);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ls-muted);
}

.ls-footer a {
  color: var(--ls-muted);
}

.ls-footer a:hover {
  color: var(--ls-marker);
}

/* === Layout breakpoints === */

/* Once steps and signup stack (tablets and down), put signup first */
@media (max-width: 999px) {
  .ls-signup {
    order: -1;
  }
}

@media (max-width: 720px) {
  :root {
    --tape-tilt: -3deg;
  }

  .ls-brands-link {
    display: none;
  }

  /* Phones: let the headline fill the width (~16vw fits "Launching soon." on one line) */
  .ls-hero h1 {
    font-size: clamp(44px, min(16vw, 22vh), 120px);
  }

  .ls-tape {
    width: calc(100vw + 20%);
  }

  .ls-footer-inner {
    flex-direction: column;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ls-dot,
  .ls-tape {
    animation: none;
  }

  .ls-tape-marker {
    transition: none;
  }
}
