/* fiTTogo — shared site styles.
   Palette mirrors the app's Green/Yellow/Red "Fit to Go" readiness language
   (PRD v4.1 §6, Screen Mockups v1.1) and the primary logo's navy/green, so the
   site reads as the same product as the app. */

:root {
  --navy: #1F2937;
  --navy-dark: #14202E;
  --green: #2F5233;
  --green-light: #4C8351;
  --amber: #B45309;
  --red: #B91C1C;
  --bg: #F7F8F6;
  --surface: #FFFFFF;
  --surface-2: #F0F2EF;
  --border: #E2E5E0;
  --text-primary: #182430;
  --text-dim: #5B6673;
  --gradient: linear-gradient(90deg, var(--green), var(--navy));
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--navy); text-decoration: underline; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-header .wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
}
.brand img { height: 30px; width: auto; display: block; }

nav.site-nav { display: flex; gap: 28px; align-items: center; }
nav.site-nav a {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 15px;
}
nav.site-nav a:hover { color: var(--navy); text-decoration: none; }

a.nav-cta-mobile { display: none; }

/* ---- Mobile nav toggle ---- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  a.cta-desktop { display: none; }
  .nav-toggle { display: flex; }

  nav.site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 22px;
    box-shadow: 0 16px 28px -18px rgba(0,0,0,0.25);
  }
  nav.site-nav.is-open { display: flex; }
  nav.site-nav a { padding: 10px 0; width: 100%; }

  a.nav-cta-mobile {
    display: inline-block;
    margin-top: 12px;
  }
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  font-family: inherit;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: var(--green);
  color: #fff;
}
.btn-primary:hover { background: var(--navy); text-decoration: none; }

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--navy);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); text-decoration: none; }

/* ---- Hero ---- */
.hero {
  padding: 76px 0 56px;
  text-align: center;
  background: var(--navy);
  color: #fff;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-light);
  background: rgba(76, 131, 81, 0.16);
  border: 1px solid rgba(76, 131, 81, 0.4);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(34px, 5.5vw, 58px);
  font-weight: 800;
  margin: 0 0 18px;
  line-height: 1.1;
  color: #fff;
}
.hero h1 .accent { color: var(--green-light); }

.hero p.lead {
  font-size: clamp(17px, 2.2vw, 20px);
  color: #C7CDD3;
  max-width: 620px;
  margin: 0 auto 34px;
}

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

.hero .btn-ghost { border-color: rgba(255,255,255,0.3); color: #fff; }
.hero .btn-ghost:hover { border-color: var(--green-light); color: var(--green-light); }

.hero-note {
  font-size: 14px;
  color: #8D97A2;
}

/* ---- Status demo (hero visual) ---- */
.status-demo {
  margin: 52px auto 0;
  max-width: 340px;
}
.status-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 22px 22px 18px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.45);
  text-align: left;
  color: var(--text-primary);
}
.status-card .status-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.status-card .status-head span:first-child {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  color: #fff;
}
.status-pill.green { background: var(--green); }
.status-pill.amber { background: var(--amber); }
.status-pill.red { background: var(--red); }
.status-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; }

.status-card .headline {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}
.status-card .sub { color: var(--text-dim); font-size: 13.5px; margin-bottom: 16px; }

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
}
.status-row:first-of-type { border-top: none; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.status-dot.green { background: var(--green); }
.status-dot.amber { background: var(--amber); }
.status-dot.grey { background: #C6CCD1; }

/* ---- Sections ---- */
section { padding: 84px 0; }
section.alt { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head .eyebrow { color: var(--green); background: rgba(47,82,51,0.08); border-color: rgba(47,82,51,0.25); }
.section-head h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  margin: 0 0 14px;
  color: var(--navy);
}
.section-head p { color: var(--text-dim); font-size: 17px; margin: 0; }

/* ---- Feature grid ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 26px;
  position: relative;
}

.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: rgba(47, 82, 51, 0.1);
  color: var(--green);
  font-size: 22px;
}

.feature-card h3 { margin: 0 0 10px; font-size: 18px; font-weight: 700; color: var(--navy); }
.feature-card p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

.tier-tag {
  position: absolute;
  top: -11px;
  right: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
}
.tier-tag.pro { background: var(--amber); }
.tier-tag.free { background: var(--green); }

/* ---- Principles list ---- */
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}
.principle {
  padding: 20px 4px;
}
.principle .num {
  font-size: 13px;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 8px;
}
.principle h4 { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: var(--navy); }
.principle p { margin: 0; font-size: 14px; color: var(--text-dim); }

/* ---- Pricing ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 1040px;
  margin: 0 auto;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}

.price-card.highlight {
  border: 2px solid var(--green);
  position: relative;
}

.price-card.dim { opacity: 0.72; }

.price-card h3 { font-size: 21px; margin: 0 0 4px; font-weight: 800; color: var(--navy); }
.price-card .price {
  font-size: 38px;
  font-weight: 800;
  margin: 12px 0 4px;
  color: var(--navy);
}
.price-card .price span { font-size: 15px; font-weight: 600; color: var(--text-dim); }
.price-card .price-sub { color: var(--text-dim); font-size: 13.5px; margin-bottom: 24px; }

.price-card ul { list-style: none; margin: 0 0 28px; padding: 0; flex-grow: 1; }
.price-card li {
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.price-card li:last-child { border-bottom: none; }
.price-card li .check { color: var(--green); font-weight: 800; }

.badge-soon {
  position: absolute;
  top: -11px;
  right: 24px;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---- Legal pages ---- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 100px;
}
.legal h1 { font-size: 30px; margin-bottom: 6px; color: var(--navy); }
.legal .meta { color: var(--text-dim); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-size: 19px; margin-top: 38px; margin-bottom: 12px; color: var(--navy); }
.legal p, .legal li { color: var(--text-dim); font-size: 15.5px; }
.legal strong { color: var(--text-primary); }
.legal ul { padding-left: 22px; }
.legal table { border-collapse: collapse; width: 100%; margin: 16px 0; }
.legal th, .legal td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); font-size: 14.5px; color: var(--text-dim); }
.legal th { color: var(--navy); }

/* ---- CTA band ---- */
.cta-band {
  text-align: center;
  padding: 80px 0;
  background: var(--navy);
  color: #fff;
}
.cta-band h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 14px; color: #fff; }
.cta-band p { color: #C7CDD3; margin-bottom: 30px; }

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 44px 0;
  background: var(--surface);
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
footer .foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
footer .foot-links a { color: var(--text-dim); font-size: 14px; }
footer .foot-links a:hover { color: var(--navy); }
footer .copyright { color: var(--text-dim); font-size: 13px; }

.back-link { display: inline-block; margin-bottom: 24px; font-size: 14px; }
