/* Network Notes — landing v2 */
:root {
  --bg-primary: #090909;
  --bg-secondary: #111111;
  --bg-gradient-end: #101010;
  --mint: #6fe7c8;
  --mint-secondary: #4bc3a6;
  --mint-glow: rgba(111, 231, 200, 0.25);
  --text-primary: #f5f5f5;
  --text-secondary: #a0a0a0;
  --text-muted: #6a6a6a;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.05);
  --error: #ff453a;

  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    system-ui, sans-serif;

  --page-max: 1400px;
  --page-padding-x: 80px;
  --form-control-height: 64px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

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

.accent {
  color: var(--mint);
  font-style: normal;
}

/* Background layers */
.bg-stack {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-base {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg-primary), var(--bg-gradient-end));
}

.bg-aurora {
  position: absolute;
  width: 55%;
  height: 70%;
  opacity: 0.08;
  filter: blur(80px);
}

.bg-aurora--left {
  top: 10%;
  left: -10%;
  background: linear-gradient(
    160deg,
    rgba(111, 231, 200, 0.5),
    transparent 60%
  );
}

.bg-aurora--right {
  bottom: 0;
  right: -5%;
  background: linear-gradient(
    20deg,
    transparent 30%,
    rgba(75, 195, 166, 0.45)
  );
}

/* Page */
.page {
  position: relative;
  z-index: 1;
  max-width: var(--page-max);
  margin: 0 auto;
  min-height: 100vh;
  padding: 40px var(--page-padding-x) 80px;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  display: block;
  width: 48px;
  height: auto;
  aspect-ratio: 230 / 156;
  border-radius: 14px;
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.ios-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
}

.ios-badge__icon {
  width: 16px;
  height: 16px;
  opacity: 0.85;
}

/* Hero grid */
.hero-grid {
  container-type: inline-size;
  container-name: hero;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 64px;
  align-items: center;
  min-height: auto;
}

@media (min-width: 961px) {
  .hero-grid {
    min-height: min(720px, calc(100vh - 280px));
  }
}

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

.coming-soon-pill {
  display: inline-block;
  margin: 0 0 28px;
  padding: 8px 16px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
  background: rgba(111, 231, 200, 0.08);
  border: 1px solid rgba(111, 231, 200, 0.2);
  border-radius: 999px;
}

.headline {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.75rem, 4.5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.headline__line {
  display: block;
}

.subhead {
  margin: 0 0 20px;
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--text-primary);
}

.lede {
  margin: 0 0 36px;
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Signup */
.signup {
  margin-bottom: 40px;
}

.waitlist-form.is-hidden {
  display: none;
}

.form-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.email-input {
  flex: 1;
  min-width: 0;
  height: var(--form-control-height);
  min-height: var(--form-control-height);
  padding: 0 20px;
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.25;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.email-input::placeholder {
  color: var(--text-muted);
}

.email-input:focus {
  border-color: rgba(111, 231, 200, 0.4);
  box-shadow: 0 0 0 3px rgba(111, 231, 200, 0.12);
}

.cta {
  flex-shrink: 0;
  height: var(--form-control-height);
  min-height: var(--form-control-height);
  padding: 0 28px;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  background: var(--mint);
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.cta:hover {
  transform: translateY(-2px);
  background: #7ef0d4;
}

.cta:active {
  transform: translateY(0);
}

.cta:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

.cta:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.offer-line,
.social-proof {
  margin: 14px 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.social-proof strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.form-error {
  margin: 10px 0 0;
  font-size: 0.875rem;
  color: var(--error);
}

.success-panel {
  padding: 24px;
  background: var(--glass);
  border: 1px solid rgba(111, 231, 200, 0.25);
  border-radius: 16px;
  backdrop-filter: blur(12px);
}

.success-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--mint);
}

.success-body {
  margin: 0;
  color: var(--text-secondary);
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 540px;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.feature__icon {
  display: flex;
  align-items: center;
  color: var(--mint);
}

.feature__icon svg {
  width: 22px;
  height: 22px;
}

.feature__text {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

@media (prefers-reduced-motion: reduce) {
  .cta:hover {
    transform: none;
  }
}

@media (max-width: 1100px) {
  :root {
    --page-padding-x: 40px;
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 40px;
  }

  .hero-copy {
    max-width: none;
  }

  .form-row {
    flex-direction: column;
  }

  .email-input {
    flex: none;
    width: 100%;
  }

  .cta {
    width: 100%;
  }

  .features {
    grid-template-columns: 1fr;
    max-width: none;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  :root {
    --page-padding-x: 20px;
  }

  .page {
    padding-top: 24px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 32px;
  }

  .ios-badge {
    font-size: 0.8125rem;
  }
}

/* Legal pages (Privacy / Terms) */
.legal-page {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding-bottom: 64px;
}

.legal-back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
}

.legal-back:hover {
  color: var(--mint);
}

.legal-header {
  margin-bottom: 40px;
}

.legal-header h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.25rem;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.legal-subtitle,
.legal-updated {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.legal-updated {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.legal-section {
  margin-bottom: 32px;
}

.legal-section h2 {
  font-family: var(--font-ui);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text-primary);
}

.legal-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 16px 0 8px;
  color: var(--text-primary);
}

.legal-section p,
.legal-section li {
  color: var(--text-secondary);
  line-height: 1.65;
}

.legal-section p {
  margin: 0 0 12px;
}

.legal-section ul,
.legal-section ol {
  margin: 0 0 12px;
  padding-left: 1.25rem;
}

.legal-section li {
  margin-bottom: 6px;
}

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

.legal-callout {
  font-weight: 500;
  color: var(--text-primary) !important;
}

/* Homepage site footer */
.site-footer {
  position: relative;
  z-index: 1;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 48px var(--page-padding-x) 40px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-subtle);
}

.site-footer a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
}

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