/* Stepsterz website. Colors come from the app's DarkPalette (stepsterz/Features/Shared/DarkGlass.swift). */
:root {
  --bg: #0c0c0e;
  --surface: #161618;
  --line: rgba(231, 231, 231, 0.14);
  --text: #e7e7e7;
  --muted: rgba(231, 231, 231, 0.62);
  --cream: #e2d6c0;
  --gold: #deab6b;
  --glow: #2a62ff;
  --error: #ff8a7a;
  --radius-pill: 999px;
  --gutter: clamp(16px, 5vw, 64px);
  --font-display: "Federo", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

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

html, body { margin: 0; }

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 8px 14px;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-pill);
  z-index: 10;
}
.skip-link:focus { top: 16px; }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px var(--gutter);
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.logo { display: inline-flex; }
.logo img {
  display: block;
  height: 28px;
  width: auto;
  /* The Figma logo node renders the chrome logo in silver. Remove this line for the blue version. */
  filter: grayscale(1) contrast(1.08) brightness(1.06);
}

.header-link {
  font-size: 14px;
  text-decoration: none;
  color: var(--text);
  opacity: 0.85;
}
.header-link:hover { opacity: 1; }

/* ---------- Hero ---------- */
main { flex: 1; display: flex; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(24px, 4vw, 48px) var(--gutter) clamp(48px, 6vw, 80px);
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.hero-copy { max-width: 560px; }

.hero h1 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.lede {
  margin: 0 0 32px;
  max-width: 460px;
  color: var(--muted);
  font-size: 16px;
}

/* ---------- Form ---------- */
.waitlist-form {
  display: flex;
  gap: 8px;
  max-width: 440px;
}

.waitlist-form input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.waitlist-form input[type="email"]::placeholder { color: rgba(231, 231, 231, 0.45); }
.waitlist-form input[type="email"]:focus-visible { outline: none; border-color: var(--gold); }
.waitlist-form input[aria-invalid="true"] { border-color: var(--error); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--cream);
  color: #141414;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.button:hover { background: #f0e6d3; }
.button:active { transform: scale(0.98); }
.button[disabled] { opacity: 0.6; cursor: progress; }

/* Honeypot: hidden from people, bots fill it in. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  min-height: 22px;
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--error);
}

.fine-print {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.fine-print .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  flex: none;
}

/* ---------- Phone mockup (empty screen) ---------- */
.phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-wrap::before {
  content: "";
  position: absolute;
  width: 120%;
  aspect-ratio: 1;
  max-width: 560px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(42, 98, 255, 0.55), rgba(42, 98, 255, 0.18) 55%, transparent 100%);
  filter: blur(30px);
  pointer-events: none;
}

.phone {
  position: relative;
  width: clamp(220px, 24vw, 300px);
  aspect-ratio: 9 / 19.5;
  padding: 10px;
  border-radius: 48px;
  background: linear-gradient(145deg, #3a3a3e, #1a1a1c 40%, #2c2c30);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 40px 80px -20px rgba(0, 0, 0, 0.8);
}

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 39px;
  background: #050506;
  overflow: hidden;
}

.phone-island {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 32%;
  height: 26px;
  transform: translateX(-50%);
  border-radius: var(--radius-pill);
  background: #000;
}

.phone-home {
  position: absolute;
  bottom: 9px;
  left: 50%;
  width: 36%;
  height: 4px;
  transform: translateX(-50%);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.35);
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 24px var(--gutter) 32px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  font-size: 13px;
  color: var(--muted);
}
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ---------- Legal pages ---------- */
.legal {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 24px var(--gutter) 72px;
}
.legal h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.05;
  color: var(--cream);
}
.legal .updated { margin: 0 0 40px; color: var(--muted); font-size: 14px; }
.legal h2 {
  margin: 40px 0 12px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  color: var(--cream);
}
.legal p, .legal li { color: rgba(231, 231, 231, 0.82); }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 6px; }
.legal .draft-note {
  padding: 14px 18px;
  border: 1px solid rgba(222, 171, 107, 0.4);
  border-radius: 14px;
  background: rgba(222, 171, 107, 0.08);
  color: var(--gold);
  font-size: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 8px;
  }
  .hero-copy { margin: 0 auto; }
  .lede { margin-left: auto; margin-right: auto; }
  .waitlist-form, .fine-print { margin-left: auto; margin-right: auto; justify-content: center; }
  .phone { width: min(62vw, 250px); }
}

@media (max-width: 480px) {
  .site-header { padding-top: 20px; padding-bottom: 20px; }
  .logo img { height: 22px; }
  .waitlist-form { flex-direction: column; }
  .button { width: 100%; }
  .site-footer { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: no-preference) {
  .phone { animation: float 6s ease-in-out infinite; }
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }
}
