/* Whereward marketing site */
:root {
  color-scheme: dark;
  --bg: #090b10;
  --surface: #13171f;
  --surface-2: #1a2030;
  --text: #f4f6fa;
  --muted: #8b95a8;
  --accent: #2f7dff;
  --accent-soft: rgba(47, 125, 255, 0.16);
  --warm: #e07a5f;
  --success: #3ddc97;
  --glass: rgba(255, 255, 255, 0.1);
  --glass-stroke: rgba(255, 255, 255, 0.18);
  --line: rgba(255, 255, 255, 0.08);
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* Nav */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--glass-stroke);
  background: var(--bg);
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 22px;
  color: rgba(244, 246, 250, 0.78);
  font-size: 14px;
  font-weight: 500;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--glass-stroke);
  border-radius: 12px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav[data-open='true'] .nav-toggle span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav[data-open='true'] .nav-toggle span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  margin: 0 0 16px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--glass-stroke);
  background: rgba(9, 11, 16, 0.45);
  color: rgba(244, 246, 250, 0.9);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

/* Hero — full-bleed product photography */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 11, 16, 0.35) 0%, rgba(9, 11, 16, 0.2) 35%, rgba(9, 11, 16, 0.88) 72%, var(--bg) 100%),
    linear-gradient(90deg, rgba(9, 11, 16, 0.72) 0%, rgba(9, 11, 16, 0.25) 55%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(640px, calc(100% - 40px));
  margin: 0 auto 0 max(20px, calc((100% - 1120px) / 2));
  padding: 0 0 72px;
  animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: clamp(56px, 11vw, 96px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.hero-line {
  margin: 0;
  font-size: clamp(18px, 2.4vw, 22px);
  color: rgba(244, 246, 250, 0.82);
  max-width: 26ch;
  font-weight: 400;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 16px;
  padding: 14px 22px;
  text-decoration: none;
  font-weight: 650;
  font-size: 15px;
  border: 1px solid transparent;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 36px rgba(47, 125, 255, 0.28);
}

.button.primary:hover {
  background: #458aff;
}

.button.secondary {
  color: var(--text);
  background: var(--glass);
  border-color: var(--glass-stroke);
  backdrop-filter: blur(18px);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Sections */
.section {
  padding: 88px 0;
}

.section-label {
  margin: 0 0 10px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 11px;
}

.section h2,
.legal h1 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.section h2 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
  margin: 0 0 14px;
  max-width: 16ch;
}

.section-lede {
  color: var(--muted);
  max-width: 42ch;
  font-size: 17px;
  margin: 0 0 36px;
}

/* Product showcase — real app screens */
.showcase {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.showcase-copy h2 {
  max-width: 12ch;
}

.showcase-reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.tour-section {
  padding-top: 24px;
}

.phone-frame {
  position: relative;
  width: min(320px, 78vw);
  margin: 0 auto;
  border-radius: 36px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--glass-stroke);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  animation: riseIn 1s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.phone-frame img {
  width: 100%;
  border-radius: 28px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
}

.feature-list {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: grid;
  gap: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.feature-list strong {
  font-size: 17px;
  font-weight: 650;
}

.feature-list span {
  color: var(--muted);
  font-size: 15px;
  max-width: 38ch;
}

/* How it works */
.steps {
  display: grid;
  gap: 0;
  margin-top: 12px;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 1px solid var(--line);
}

.step b {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}

.step strong {
  display: block;
  font-size: 17px;
  margin-bottom: 4px;
}

.step span {
  color: var(--muted);
  font-size: 15px;
}

/* Waitlist */
.waitlist-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 480px;
}

.waitlist-form input {
  flex: 1 1 220px;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid var(--glass-stroke);
  background: rgba(9, 11, 16, 0.45);
  color: var(--text);
  padding: 0 16px;
  font: inherit;
  font-size: 15px;
  outline: none;
}

.waitlist-form input::placeholder {
  color: var(--muted);
}

.waitlist-form input:focus {
  border-color: rgba(47, 125, 255, 0.55);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

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

.waitlist-status {
  min-height: 1.4em;
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.waitlist-status[data-kind='success'] {
  color: var(--success);
}

.waitlist-status[data-kind='error'] {
  color: #ff8b8b;
}

/* Closing band */
.closing {
  padding: 0 0 96px;
}

.closing-inner {
  border-radius: 28px;
  padding: clamp(32px, 5vw, 48px);
  background:
    radial-gradient(circle at 10% 0%, var(--accent-soft), transparent 45%),
    var(--surface);
  border: 1px solid var(--line);
}

.closing h2 {
  max-width: 14ch;
}

/* Legal pages */
.legal {
  max-width: 760px;
  padding: 120px 0 80px;
}

.legal .eyebrow,
.eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 11px;
  margin: 0 0 12px;
}

.legal h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1;
  margin: 0 0 24px;
}

.legal h2 {
  margin-top: 36px;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
  font-size: 28px;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal a {
  color: var(--accent);
}

body.legal-page .nav {
  position: sticky;
  background: rgba(9, 11, 16, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.panel {
  margin: 28px 0;
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.panel h2 {
  margin-top: 0;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 16px;
}

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

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(0, -1.5%, 0);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 880px) {
  .showcase,
  .showcase-reverse {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 92svh;
  }

  .hero-content {
    margin-left: 20px;
    padding-bottom: 56px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid var(--glass-stroke);
    background: rgba(19, 23, 31, 0.96);
    backdrop-filter: blur(20px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  }

  .nav[data-open='true'] .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 14px 12px;
    border-radius: 12px;
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .phone-frame {
    order: -1;
  }

  .showcase-reverse .phone-frame {
    order: -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img,
  .hero-content,
  .phone-frame {
    animation: none;
    transition: none;
  }
}
