/* ─── Design tokens ─────────────────────────────────────────────────────── */
:root {
  --teal-900: #004D40;
  --teal-700: #00796B;
  --teal-600: #00897B;
  --teal-400: #4DB6AC;
  --teal-200: #B2DFDB;
  --teal-50:  #E0F2F1;

  --phase-menstrual: #EF9A9A;
  --phase-follicular: #80CBC4;
  --phase-ovulatory: #FFCC80;
  --phase-luteal: #CE93D8;

  --bg:        #F8FAFA;
  --surface:   #FFFFFF;
  --text-primary: #1A2B2B;
  --text-secondary: #4A6A6A;
  --text-muted:     #8AA8A8;
  --border:    #E0EAEA;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.04);
}

/* ─── Reset & base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--teal-600); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Layout ────────────────────────────────────────────────────────────── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Top accent bar ────────────────────────────────────────────────────── */
.top-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--teal-700) 0%, var(--teal-400) 100%);
  flex-shrink: 0;
}

/* ─── Navigation ────────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248,250,250,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--teal-600); text-decoration: none; }

.nav-cta {
  background: var(--teal-600);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 20px;
  transition: background 0.15s !important;
}

.nav-cta:hover { background: var(--teal-700) !important; }

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}

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

.btn-primary {
  background: var(--teal-600);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,137,123,0.30);
}

.btn-primary:hover {
  background: var(--teal-700);
  box-shadow: 0 6px 20px rgba(0,137,123,0.35);
}

.btn-secondary {
  background: var(--surface);
  color: var(--teal-600);
  border: 2px solid var(--teal-200);
}

.btn-secondary:hover {
  border-color: var(--teal-600);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background: transparent;
  color: var(--teal-600);
  border: 2px solid var(--teal-600);
}

.btn-outline:hover { background: var(--teal-50); }

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,137,123,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal-50);
  color: var(--teal-700);
  border: 1px solid var(--teal-200);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero h1 .highlight {
  color: var(--teal-600);
}

.hero p.lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.coming-soon-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  border-radius: 28px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Phone mockup */
.phone-mockup {
  position: relative;
  display: inline-block;
  max-width: 280px;
  margin: 0 auto;
}

.phone-frame {
  background: var(--text-primary);
  border-radius: 44px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
}

.phone-screen {
  background: #121212;
  border-radius: 34px;
  overflow: hidden;
  aspect-ratio: 9/19;
  display: flex;
  flex-direction: column;
}

.phone-screen-inner {
  padding: 32px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.phone-header {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.6;
  text-align: center;
}

.phone-phase-card {
  background: linear-gradient(135deg, #00897B, #4DB6AC);
  border-radius: 20px;
  padding: 20px;
  color: #fff;
}

.phone-phase-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
  margin-bottom: 4px;
}

.phone-phase-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.phone-phase-sub {
  font-size: 0.65rem;
  opacity: 0.75;
}

.phone-phase-days {
  display: flex;
  gap: 4px;
  margin-top: 12px;
}

.phone-phase-dot {
  height: 4px;
  flex: 1;
  border-radius: 2px;
  background: rgba(255,255,255,0.3);
}

.phone-phase-dot.active { background: #fff; }

.phone-log-card {
  background: rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 14px;
}

.phone-log-title {
  color: rgba(255,255,255,0.5);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.phone-log-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.phone-tag {
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  border-radius: 10px;
  padding: 4px 10px;
  font-size: 0.6rem;
  font-weight: 500;
}

.phone-privacy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,137,123,0.2);
  border-radius: 12px;
  padding: 10px 14px;
}

.phone-privacy-icon {
  width: 20px;
  height: 20px;
  background: var(--teal-600);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phone-privacy-text {
  color: rgba(255,255,255,0.8);
  font-size: 0.6rem;
  line-height: 1.3;
}

/* ─── Trust strip ───────────────────────────────────────────────────────── */
.trust-strip {
  background: var(--teal-50);
  border-top: 1px solid var(--teal-200);
  border-bottom: 1px solid var(--teal-200);
  padding: 20px 0;
}

.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--teal-700);
}

.trust-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* ─── Section headings ──────────────────────────────────────────────────── */
.section {
  padding: 80px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-600);
  margin-bottom: 12px;
}

.section-heading {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* ─── Privacy cards ─────────────────────────────────────────────────────── */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.privacy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.privacy-card-icon {
  width: 48px;
  height: 48px;
  background: var(--teal-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-600);
  margin-bottom: 16px;
}

.privacy-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.privacy-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── Features ──────────────────────────────────────────────────────────── */
.features-bg {
  background: linear-gradient(180deg, var(--bg) 0%, var(--teal-50) 50%, var(--bg) 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

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

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon.menstrual  { background: #FFEBEE; color: #C62828; }
.feature-icon.follicular { background: #E0F2F1; color: #00695C; }
.feature-icon.ovulatory  { background: #FFF8E1; color: #E65100; }
.feature-icon.luteal     { background: #F3E5F5; color: #7B1FA2; }
.feature-icon.teal       { background: var(--teal-50); color: var(--teal-700); }
.feature-icon.lock       { background: #E8EAF6; color: #3949AB; }

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── Phases section ────────────────────────────────────────────────────── */
.phases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.phase-card {
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.phase-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background: currentColor;
}

.phase-card.menstrual  { background: #FFEBEE; color: #C62828; }
.phase-card.follicular { background: #E0F2F1; color: #00695C; }
.phase-card.ovulatory  { background: #FFF8E1; color: #E65100; }
.phase-card.luteal     { background: #F3E5F5; color: #7B1FA2; }

.phase-number {
  font-size: 2.5rem;
  font-weight: 800;
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 8px;
}

.phase-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.phase-days {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.7;
  margin-bottom: 10px;
}

.phase-desc {
  font-size: 0.85rem;
  opacity: 0.8;
  line-height: 1.5;
}

/* ─── Architecture callout ──────────────────────────────────────────────── */
.arch-callout {
  background: var(--teal-900);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.arch-callout::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(77,182,172,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.arch-callout .section-label { color: var(--teal-400); }

.arch-callout .section-heading {
  color: #fff;
  margin-bottom: 16px;
}

.arch-callout p {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.arch-stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.arch-stat {
  text-align: center;
}

.arch-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--teal-400);
  line-height: 1;
  margin-bottom: 6px;
}

.arch-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── CTA section ───────────────────────────────────────────────────────── */
.cta-section {
  padding: 80px 0;
  text-align: center;
}

.cta-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 56px 40px;
  box-shadow: var(--shadow-md);
}

.cta-box .section-heading { margin-bottom: 14px; }
.cta-box p { color: var(--text-secondary); margin-bottom: 32px; font-size: 1.05rem; }


/* ─── Footer ────────────────────────────────────────────────────────────── */
footer {
  background: var(--text-primary);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px;
  align-items: start;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 260px;
}

.footer-links h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 12px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.15s;
}

.footer-links a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ─── Inner page hero ───────────────────────────────────────────────────── */
.page-hero-section {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  margin-bottom: 56px;
}

.page-hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 120% at 50% -30%, rgba(0,137,123,0.09) 0%, transparent 65%);
  pointer-events: none;
}

.page-hero {
  padding: 64px 0 48px;
}

.page-hero .section-label { margin-bottom: 10px; }

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.page-hero p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
}

.prose {
  max-width: 720px;
  margin: 0 auto 80px;
}

.prose h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 40px 0 12px;
  color: var(--text-primary);
}

.prose h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 28px 0 8px;
  color: var(--text-primary);
}

.prose p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.75;
}

.prose ul, .prose ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.prose li {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 6px;
}

.prose a { color: var(--teal-600); }

.prose .callout {
  background: var(--teal-50);
  border: 1px solid var(--teal-200);
  border-left: 4px solid var(--teal-600);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 20px;
  margin: 24px 0;
}

.prose .callout p { margin: 0; color: var(--teal-900); font-weight: 500; }

/* ─── Support page ──────────────────────────────────────────────────────── */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  max-width: 960px;
  margin: 0 auto 80px;
}

.support-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.support-form-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.support-form-card > p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px rgba(0,137,123,0.12);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 32px;
  color: var(--teal-700);
}

.form-success svg { margin: 0 auto 12px; }
.form-success h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.form-success p { font-size: 0.9rem; color: var(--text-secondary); }

.support-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.support-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.support-info-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.support-info-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.support-info-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.support-info-card .icon-sm {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--teal-600);
}

.privacy-note-card {
  background: var(--teal-50);
  border: 1px solid var(--teal-200);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.privacy-note-card h3 { color: var(--teal-700); }

.privacy-note-card p {
  font-size: 0.875rem;
  color: var(--teal-900);
  line-height: 1.6;
}

/* ─── Utilities ─────────────────────────────────────────────────────────── */
.mt-2  { margin-top: 8px; }
.mt-4  { margin-top: 16px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }

  .hero { padding: 48px 0 40px; }
  .hero-actions { flex-direction: column; align-items: center; }

  .footer-inner { grid-template-columns: 1fr; }

  .support-grid { grid-template-columns: 1fr; }

  .arch-callout { padding: 40px 24px; }

  .phases-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .phases-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-box { padding: 40px 24px; }
}
