/* ===== Thanafit — Cycle-aware fitness & nutrition ===== */
:root {
  --color-bg: #faf8f5;
  --color-bg-alt: #f0ebe3;
  --color-surface: #ffffff;
  --color-text: #2d2a26;
  --color-text-muted: #5c5650;
  --color-accent: #c45c3e;
  --color-accent-soft: #e8a090;
  --color-sage: #5c7c6b;
  --color-sage-soft: #8fa89a;
  --color-cream-dark: #e8e4dd;
  --color-border: #e0dbd2;
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(45, 42, 38, 0.06);
  --shadow-hover: 0 8px 32px rgba(45, 42, 38, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: inline-block;
}

.logo-img {
  display: block;
  height: 38px;
  width: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: #a84d32;
  box-shadow: var(--shadow-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-border);
}

.btn-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ----- Hero ----- */
.hero {
  position: relative;
  padding: 4rem 0 5rem;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.85rem;
  background: var(--color-sage);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 100px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  color: var(--color-text);
}

.hero-title em {
  font-style: italic;
  color: var(--color-accent);
}

.hero-desc {
  max-width: 540px;
  margin: 0 0 2rem;
  font-size: 1.125rem;
  color: var(--color-text-muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-bg {
  position: absolute;
  top: -20%;
  right: -15%;
  width: 60%;
  max-width: 500px;
  height: 140%;
  background: radial-gradient(ellipse at center, rgba(196, 92, 62, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ----- Sections ----- */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--color-text);
}

.section-lead {
  max-width: 640px;
  margin: 0 0 2.5rem;
  font-size: 1.0625rem;
  color: var(--color-text-muted);
}

.section-note {
  margin: 1.5rem 0 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* ----- Two col cards ----- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow);
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--color-text);
}

.card ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-text-muted);
}

.card li {
  margin-bottom: 0.5rem;
}

.card-accent {
  background: linear-gradient(135deg, var(--color-sage) 0%, #4a6658 100%);
  color: #fff;
}

.card-accent h3,
.card-accent li {
  color: #fff;
  opacity: 0.95;
}

/* ----- Phases table ----- */
.phases-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: var(--color-surface);
}

.phases-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.phases-table th,
.phases-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.phases-table thead th {
  background: var(--color-bg-alt);
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-text);
}

.phases-table tbody tr:last-child td {
  border-bottom: none;
}

.phases-table tbody tr:hover {
  background: rgba(196, 92, 62, 0.04);
}

.phases-table td strong {
  color: var(--color-sage);
}

/* ----- Features grid ----- */
.features-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.feature-card-wide {
  grid-column: 1 / -1;
  max-width: 560px;
}

.feature-icon {
  display: block;
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--color-text);
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* ----- Why section ----- */
.why-section .section-lead {
  margin-bottom: 1.5rem;
}

.benefits-list {
  margin: 0;
  padding-left: 1.5rem;
  color: var(--color-text-muted);
}

.benefits-list li {
  margin-bottom: 0.6rem;
}

/* ----- CTA ----- */
.cta-section {
  background: linear-gradient(160deg, var(--color-sage) 0%, #4a6658 100%);
  color: #fff;
  padding: 4rem 0;
}

.cta-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: #fff;
}

.cta-desc {
  margin: 0 0 2rem;
  font-size: 1rem;
  opacity: 0.95;
}

.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.waitlist-form input {
  flex: 1;
  min-width: 220px;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.waitlist-form input::placeholder {
  color: rgba(255,255,255,0.7);
}

.waitlist-form input:focus {
  outline: none;
  border-color: #fff;
  background: rgba(255,255,255,0.2);
}

.waitlist-form .btn-primary {
  background: #fff;
  color: var(--color-sage);
}

.waitlist-form .btn-primary:hover {
  background: var(--color-cream-dark);
}

.cta-note {
  margin: 0;
  font-size: 0.8125rem;
  opacity: 0.8;
}

/* ----- Static / legal pages ----- */
.static-page {
  padding: 3rem 0 4rem;
}

.page-content {
  max-width: 720px;
}

.page-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--color-text);
}

.page-updated {
  margin: 0 0 2rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.page-content h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--color-text);
}

.page-content h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
  color: var(--color-text);
}

.page-content p,
.page-content ul {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
}

.page-content ul {
  padding-left: 1.5rem;
}

.page-content a {
  color: var(--color-accent);
  text-decoration: none;
}

.page-content a:hover {
  text-decoration: underline;
}

.support-section {
  margin-bottom: 2.5rem;
}

.support-section h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--color-text);
}

.support-email {
  margin: 1rem 0 !important;
}

.support-email .btn {
  text-decoration: none;
}

.support-links {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

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

.support-links a {
  color: var(--color-accent);
  text-decoration: none;
}

.support-links a:hover {
  text-decoration: underline;
}

/* ----- Footer ----- */
.site-footer {
  padding: 2.5rem 0;
  background: var(--color-text);
  color: rgba(255,255,255,0.75);
  text-align: center;
}

.footer-inner .logo {
  color: #fff;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.footer-inner .logo-img {
  height: 32px;
}

.footer-tagline {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
}

.footer-links {
  margin: 0.5rem 0;
  font-size: 0.9375rem;
}

.footer-links a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  margin: 0 0.5rem;
}

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

.footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  opacity: 0.7;
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 0 0;
    gap: 0.5rem;
  }

  .nav.is-open {
    display: flex;
  }

  .nav .btn-small {
    justify-content: center;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 3rem 0 4rem;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .phases-table th,
  .phases-table td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

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

  .waitlist-form input {
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }
}
