/* ==========================================================================
   Orbiting Marketing & Legal Site Styles
   Style: Pastel Consumer (light theme, Manrope, rounded cards, real UI)
   Anti-slop: zero hairlines, zero shadows at rest, zero outlined cards, solid ink
   ========================================================================== */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Manrope-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/Manrope-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/Manrope-600.woff2') format('woff2');
}

:root {
  --ground: #f3f5f7;
  --surface: #ffffff;
  --raised: #f2f8fd;
  --text: #1b1d1f;
  --muted: #494d52;
  --accent: #1d5fd6;
  --accent-soft: #dcf1ff;
  --accent-ink: #0a3a80;
  --positive: #2f7a45;
  --negative: #c41c29;
  --warning: #92400e;

  --pill-neutral-bg: #eef1f4;
  --pill-neutral-ink: #3a3d40;
  --pill-accent-bg: #dcf1ff;
  --pill-accent-ink: #0a3a80;
  --pill-negative-bg: #ffedea;
  --pill-negative-ink: #831c1e;
  --pill-positive-bg: #dcfae5;
  --pill-positive-ink: #04250e;

  --radius-card: 20px;
  --radius-control: 10px;
  --radius-pill: 9999px;

  --font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1140px;
}

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

html {
  font-family: var(--font-family);
  background-color: var(--ground);
  color: var(--text);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--ground);
  color: var(--text);
  font-size: 16px;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent-ink);
}

/* --------------------------------------------------------------------------
   Header & Nav
   -------------------------------------------------------------------------- */

.site-header {
  width: 100%;
  background: var(--surface);
}

.site-header-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.site-brand-mark {
  width: 28px;
  height: 28px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 500;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius-control);
}

.site-nav a:hover {
  color: var(--accent);
  background: var(--ground);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
  background: var(--ground);
}

/* --------------------------------------------------------------------------
   Draft Banner
   -------------------------------------------------------------------------- */

.draft-banner {
  background: #fef3c7;
  color: #92400e;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Main Layout Wrappers
   -------------------------------------------------------------------------- */

main {
  flex: 1;
  width: 100%;
}

.content-wrap {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 48px 24px 64px;
}

.legal-wrap {
  max-width: 820px;
  margin-inline: auto;
  padding: 48px 24px 80px;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */

.hero {
  padding: 24px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}

.hero h1 {
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-lead {
  font-size: 20px;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 32px;
}

/* --------------------------------------------------------------------------
   Waitlist Form Card
   -------------------------------------------------------------------------- */

.waitlist-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 32px;
}

.waitlist-card h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.waitlist-card p.form-desc {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.5;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.form-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--ground);
  border: none;
  border-radius: var(--radius-control);
}

.form-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.form-btn {
  height: 44px;
  padding: 0 24px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--surface);
  background: var(--accent);
  border: none;
  border-radius: var(--radius-control);
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.form-btn:hover {
  opacity: 0.92;
}

.form-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.waitlist-note {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 8px;
}

/* Error and success messages */
.waitlist-error-marker,
.waitlist-js-error {
  display: none;
  background: var(--pill-negative-bg);
  color: var(--pill-negative-ink);
  padding: 12px 16px;
  border-radius: var(--radius-control);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.waitlist-error-marker:target {
  display: block;
}

.waitlist-js-success {
  display: none;
  background: var(--pill-positive-bg);
  color: var(--pill-positive-ink);
  padding: 24px;
  border-radius: var(--radius-card);
  text-align: center;
}

.waitlist-js-success h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.waitlist-js-success p {
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   App Preview Mockup (HTML UI Fragment)
   -------------------------------------------------------------------------- */

.app-mockup {
  background: var(--surface);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.mockup-bar {
  background: #f8fafc;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
}

.mockup-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.mockup-deck {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mockup-card {
  background: var(--ground);
  border-radius: 14px;
  padding: 16px;
}

.mockup-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.mockup-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--surface);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-avatar-green {
  background: #059669;
}

.mockup-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.mockup-meta {
  font-size: 14px;
  color: var(--muted);
}

.mockup-body {
  font-size: 16px;
  color: var(--text);
  line-height: 1.45;
}

.mockup-media {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 12px;
  display: block;
}

/* --------------------------------------------------------------------------
   Features Section
   -------------------------------------------------------------------------- */

.features {
  padding: 64px 0 24px;
}

.features-header {
  max-width: 680px;
  margin-bottom: 40px;
}

.features-header h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 12px;
}

.features-header p {
  font-size: 20px;
  color: var(--text);
  line-height: 1.45;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-box {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.feature-box h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.feature-box p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 20px;
}

.feature-photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-top: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   Legal Article Styles (Privacy Policy & Terms)
   -------------------------------------------------------------------------- */

.legal-article {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 48px;
}

.legal-header {
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.legal-header h1 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
}

.legal-meta-row {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
}

.legal-body h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--text);
}

.legal-body p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 16px;
}

.legal-body ul, .legal-body ol {
  margin: 0 0 16px 24px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}

.legal-body li {
  margin-bottom: 8px;
}

.legal-callout {
  background: var(--raised);
  padding: 20px 24px;
  border-radius: var(--radius-control);
  margin: 24px 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--surface);
  padding: 48px 24px 40px;
  font-size: 14px;
  color: var(--text);
}

.site-footer-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-credits {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.footer-copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Thanks Page Box
   -------------------------------------------------------------------------- */

.thanks-box {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 48px 32px;
  max-width: 580px;
  margin: 40px auto;
  text-align: center;
}

.thanks-pill {
  display: inline-block;
  background: var(--pill-positive-bg);
  color: var(--pill-positive-ink);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.thanks-box h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 16px;
}

.thanks-box p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 28px;
}

.thanks-action {
  display: inline-block;
  height: 44px;
  line-height: 44px;
  padding: 0 24px;
  background: var(--accent);
  color: var(--surface);
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-control);
}

.thanks-action:hover {
  opacity: 0.92;
  color: var(--surface);
}

/* --------------------------------------------------------------------------
   Motion Layer (CSS Transitions & Subtle Arrival)
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .site-header,
  .hero-content h1,
  .hero-lead,
  .waitlist-card,
  .app-mockup,
  .mockup-card,
  .features-header h2,
  .features-header p,
  .feature-box,
  .site-footer {
    animation: arrive 0.5s ease backwards;
  }
  @keyframes arrive {
    from {
      opacity: 0.99;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .site-header-inner {
    padding: 16px 16px;
  }
  .site-nav {
    gap: 8px;
  }
  .site-nav a {
    padding: 6px 8px;
  }
  .hero {
    padding: 16px 0 32px;
  }
  .hero h1 {
    font-size: 34px;
    line-height: 1.15;
  }
  .content-wrap, .legal-wrap {
    padding: 20px 16px 40px;
  }
  .waitlist-card {
    padding: 24px 16px;
  }
  .legal-article {
    padding: 24px 16px;
  }
  .site-footer {
    padding: 32px 16px;
  }
  .site-footer-inner {
    padding: 0;
  }
}
