/* Aurora Calm — shared tokens */
:root {
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --accent-cyan: #5dd5c4;
  --accent-violet: #8b7bff;
  --accent-gradient: linear-gradient(135deg, #5dd5c4 0%, #8b7bff 100%);
  --risk-low: #7ddcb0;
  --risk-moderate: #f5b66e;
  --risk-high: #f08a8a;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --shadow-soft: 0 8px 32px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 4px 24px rgba(15, 23, 42, 0.06);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Legal / prose pages (dark) */
body.legal {
  color: #f0f4ff;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(93, 213, 196, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(139, 123, 255, 0.14), transparent),
    #0d172a;
}

body.legal header,
body.legal main,
body.legal footer {
  max-width: 960px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

body.legal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  padding-bottom: 1rem;
}

body.legal .logo {
  font-size: 1.35rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.legal nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
}

body.legal nav a {
  color: #a8b5d1;
}

body.legal main {
  padding-bottom: 4rem;
}

body.legal .prose h2 {
  margin-top: 2rem;
  font-size: 1.25rem;
}

body.legal .prose p,
body.legal .prose li {
  color: #a8b5d1;
}

body.legal footer {
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #6a7a99;
  font-size: 0.9rem;
}

body.legal footer nav {
  margin-bottom: 0.75rem;
}

/* Landing — light Aurora Calm */
body.landing {
  color: #1a2744;
  background: #f7fafc;
  background-image:
    radial-gradient(ellipse 90% 60% at 10% -5%, rgba(93, 213, 196, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 0%, rgba(139, 123, 255, 0.14), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(245, 182, 110, 0.1), transparent 55%);
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(247, 250, 252, 0.85);
  border-bottom: 1px solid rgba(26, 39, 68, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-gradient);
  box-shadow: 0 4px 16px rgba(93, 213, 196, 0.35);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), transparent 60%);
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a {
  color: #4a5878;
  text-decoration: none;
}

.site-nav a:hover {
  color: #1a2744;
  text-decoration: none;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(26, 39, 68, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }
}

.site-nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 1rem 1.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(26, 39, 68, 0.08);
  box-shadow: var(--shadow-soft);
}

@media (min-width: 768px) {
  .site-nav.is-open {
    position: static;
    flex-direction: row;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  text-decoration: none;
  font-family: inherit;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  color: #0d172a;
  background: var(--accent-gradient);
  box-shadow: 0 4px 20px rgba(93, 213, 196, 0.35);
}

.btn-secondary {
  color: #1a2744;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(26, 39, 68, 0.12);
}

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

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #2d6a62;
  background: rgba(93, 213, 196, 0.18);
  border: 1px solid rgba(93, 213, 196, 0.35);
  border-radius: var(--radius-pill);
}

/* Section */
.section {
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

.section-header {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-header.center {
  margin-inline: auto;
  text-align: center;
}

.section-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5a6b8a;
  margin: 0 0 0.5rem;
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #1a2744;
}

.section-lead {
  margin: 0;
  font-size: 1.05rem;
  color: #4a5878;
  line-height: 1.65;
}

/* Hero */
.hero {
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(3rem, 8vw, 5rem);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.hero-copy h1 {
  margin: 1rem 0 1rem;
  font-size: clamp(2.25rem, 5.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: #0f1a30;
}

.hero-sub {
  margin: 0 0 1.75rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: #4a5878;
  line-height: 1.65;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-note {
  font-size: 0.875rem;
  color: #6a7a99;
  margin: 0;
}

/* Dashboard mockup */
.mockup-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(26, 39, 68, 0.04);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}

.mockup-card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(93, 213, 196, 0.25), transparent 70%);
  pointer-events: none;
}

.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.mockup-location {
  font-size: 0.85rem;
  color: #6a7a99;
}

.mockup-risk {
  text-align: center;
  padding: 1.25rem 0;
}

.risk-score {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.risk-label {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background: rgba(125, 220, 176, 0.25);
  color: #2d6a4a;
}

.mockup-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.metric-pill {
  padding: 0.65rem 0.5rem;
  text-align: center;
  background: rgba(247, 250, 252, 0.9);
  border-radius: var(--radius-md);
  border: 1px solid rgba(26, 39, 68, 0.06);
}

.metric-pill span {
  display: block;
  font-size: 0.7rem;
  color: #6a7a99;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-pill strong {
  font-size: 1rem;
  color: #1a2744;
}

.mockup-rec {
  padding: 1rem;
  background: linear-gradient(135deg, rgba(93, 213, 196, 0.12), rgba(139, 123, 255, 0.08));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(93, 213, 196, 0.2);
}

.mockup-rec p {
  margin: 0;
  font-size: 0.9rem;
  color: #3d4f6f;
  line-height: 1.5;
}

.mockup-rec strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5a6b8a;
  margin-bottom: 0.35rem;
}

.safe-windows {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.window-chip {
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(26, 39, 68, 0.08);
  color: #2d6a62;
}

.window-chip.muted {
  color: #8a96ad;
  background: rgba(247, 250, 252, 0.8);
}

/* Cards grid */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .card-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .card-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.glass-card {
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.glass-card .icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(93, 213, 196, 0.2), rgba(139, 123, 255, 0.15));
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}

.glass-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a2744;
}

.glass-card p {
  margin: 0;
  font-size: 0.925rem;
  color: #4a5878;
  line-height: 1.55;
}

/* Flow diagram */
.flow-section {
  background: rgba(255, 255, 255, 0.5);
  border-block: 1px solid rgba(26, 39, 68, 0.06);
}

.flow-diagram {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .flow-diagram {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }
}

.flow-step {
  flex: 1;
  min-width: 140px;
  max-width: 200px;
  padding: 1.25rem;
  text-align: center;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(26, 39, 68, 0.08);
  box-shadow: var(--shadow-card);
}

.flow-step strong {
  display: block;
  font-size: 0.95rem;
  color: #1a2744;
  margin-bottom: 0.35rem;
}

.flow-step span {
  font-size: 0.82rem;
  color: #6a7a99;
}

.flow-arrow {
  display: none;
  color: #8b7bff;
  font-size: 1.5rem;
  font-weight: 300;
}

@media (min-width: 768px) {
  .flow-arrow {
    display: block;
  }
}

/* Timeline planner */
.timeline {
  display: grid;
  gap: 0.5rem;
}

.timeline-row {
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  border: 1px solid rgba(26, 39, 68, 0.06);
}

.timeline-time {
  font-size: 0.85rem;
  font-weight: 600;
  color: #4a5878;
  font-variant-numeric: tabular-nums;
}

.timeline-bar {
  height: 8px;
  border-radius: var(--radius-pill);
  background: rgba(26, 39, 68, 0.06);
  overflow: hidden;
}

.timeline-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 0.6s var(--ease);
}

.timeline-fill.low {
  background: var(--risk-low);
  width: 35%;
}

.timeline-fill.moderate {
  background: var(--risk-moderate);
  width: 55%;
}

.timeline-fill.high {
  background: var(--risk-high);
  width: 78%;
}

.timeline-fill.best {
  background: linear-gradient(90deg, var(--risk-low), var(--accent-cyan));
  width: 28%;
}

.timeline-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.timeline-tag.safe {
  background: rgba(125, 220, 176, 0.25);
  color: #2d6a4a;
}

.timeline-tag.caution {
  background: rgba(245, 182, 110, 0.25);
  color: #8a5a18;
}

.timeline-tag.avoid {
  background: rgba(240, 138, 138, 0.2);
  color: #9a3a3a;
}

/* Wearables roadmap */
.roadmap-card {
  padding: 2rem;
  background: linear-gradient(135deg, rgba(139, 123, 255, 0.08), rgba(93, 213, 196, 0.1));
  border: 1px dashed rgba(139, 123, 255, 0.35);
  border-radius: var(--radius-xl);
  text-align: center;
}

.roadmap-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b5bb5;
  background: rgba(139, 123, 255, 0.15);
  border-radius: var(--radius-pill);
}

/* Trust */
.trust-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.trust-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(26, 39, 68, 0.06);
}

.trust-item .check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(93, 213, 196, 0.2);
  color: #2d6a62;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Waitlist */
.waitlist-section {
  background: linear-gradient(180deg, rgba(93, 213, 196, 0.08), rgba(139, 123, 255, 0.06));
  border-block: 1px solid rgba(26, 39, 68, 0.06);
}

.waitlist-form {
  max-width: 480px;
  margin-inline: auto;
}

.form-group {
  margin-bottom: 1rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #3d4f6f;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid rgba(26, 39, 68, 0.12);
  border-radius: var(--radius-md);
  background: #fff;
  color: #1a2744;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(93, 213, 196, 0.25);
}

.form-message {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.925rem;
  display: none;
}

.form-message.is-visible {
  display: block;
}

.form-message.success {
  background: rgba(125, 220, 176, 0.2);
  color: #2d6a4a;
  border: 1px solid rgba(125, 220, 176, 0.4);
}

.form-message.error {
  background: rgba(240, 138, 138, 0.15);
  color: #9a3a3a;
  border: 1px solid rgba(240, 138, 138, 0.35);
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid rgba(26, 39, 68, 0.08);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1a2744;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.faq-question:hover {
  color: #2d6a62;
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #8b7bff;
  transition: transform 0.25s var(--ease);
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}

.faq-answer-inner {
  padding-bottom: 1.15rem;
  font-size: 0.95rem;
  color: #4a5878;
  line-height: 1.6;
}

.faq-item.is-open .faq-answer {
  max-height: 200px;
}

/* Footer */
.site-footer {
  padding-block: 3rem 2rem;
  background: #0f1a30;
  color: #a8b5d1;
}

.site-footer a {
  color: #c8d4ef;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent-cyan);
  text-decoration: none;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand .brand {
  color: #f0f4ff;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  margin: 0;
  font-size: 0.9rem;
  max-width: 280px;
  line-height: 1.55;
}

.footer-links h4 {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6a7a99;
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: #6a7a99;
}

.footer-disclaimer {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  line-height: 1.5;
}
