/* FitExo marketing site — shared styles
   Palette mirrors the app: mint accent (#99D4C7), dark-teal ink (#1B3733),
   pale mint container (#D9F0EA). Rounded, SF-Rounded-inspired type. */

:root {
  --mint: #99D4C7;
  --mint-dark: #6FBBAA;
  --mint-darker: #4FA090;
  --ink: #1B3733;
  --ink-soft: #3E5B56;
  --container: #D9F0EA;
  --container-soft: #EDF7F4;
  --bg: #FBFEFD;
  --white: #FFFFFF;
  --amber: #BF6B0D;
  --red: #A82A2A;
  --shadow: 0 12px 32px rgba(27, 55, 51, 0.12);
  --shadow-soft: 0 4px 14px rgba(27, 55, 51, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: "Nunito Sans", -apple-system, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-word {
  font-family: "Quicksand", "SF Pro Rounded", -apple-system, ui-rounded, sans-serif;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: inherit; }

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

img { max-width: 100%; display: block; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 254, 253, 0.9);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid rgba(27, 55, 51, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-lockup img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: var(--shadow-soft);
}

.logo-lockup span {
  font-family: "Quicksand", ui-rounded, sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-pill {
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink-soft);
  padding: 9px 16px;
  border-radius: 999px;
  transition: background .15s ease, color .15s ease;
  white-space: nowrap;
}

.nav-pill:hover { background: var(--container-soft); color: var(--ink); }

.nav-pill.is-active {
  background: var(--ink);
  color: var(--white);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--container);
}

.btn-secondary:hover { border-color: var(--mint-dark); }

.btn-ghost-onmint {
  background: rgba(27, 55, 51, 0.08);
  color: var(--ink);
  border: 2px solid rgba(27, 55, 51, 0.18);
}

.btn[disabled], .btn.is-disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.btn.is-disabled:hover { transform: none; }

/* Store badges */
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--white);
  border-radius: 14px;
  padding: 10px 20px 10px 16px;
  text-decoration: none;
  min-width: 190px;
  box-shadow: var(--shadow-soft);
  transition: transform .15s ease, opacity .15s ease;
}

.store-badge:hover { transform: translateY(-2px); }

.store-badge svg { width: 26px; height: 26px; flex-shrink: 0; }

.store-badge .store-text { display: flex; flex-direction: column; line-height: 1.2; }
.store-badge .store-text small { font-size: 11px; opacity: 0.75; letter-spacing: .03em; }
.store-badge .store-text strong { font-size: 16.5px; font-family: "Quicksand", ui-rounded, sans-serif; }

.store-badge.is-soon {
  background: var(--container-soft);
  color: var(--ink-soft);
  box-shadow: none;
  border: 2px dashed var(--container);
}

.store-badge.is-soon .store-text small { opacity: 0.65; }

/* ---------- Hero ---------- */

.hero {
  padding: 64px 0 40px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--container);
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(34px, 4.4vw, 52px);
  margin-bottom: 20px;
}

.hero .lede {
  font-size: 19px;
  max-width: 46ch;
  margin-bottom: 8px;
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art .blob {
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side, var(--mint) 0%, var(--container) 68%, transparent 100%);
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.9;
  transform: scale(1.15);
}

.hero-art img {
  position: relative;
  width: min(320px, 62vw);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* ---------- Sections ---------- */

section { padding: 72px 0; }

.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); }
.section-head p { font-size: 18px; }

.on-mint {
  background: var(--mint);
}
.on-mint h2, .on-mint h3, .on-mint p, .on-mint li { color: var(--ink); }

.on-container {
  background: var(--container-soft);
}

/* Feature grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 28px;
  box-shadow: var(--shadow-soft);
}

.card .icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--container);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card .icon-badge svg { width: 26px; height: 26px; color: var(--ink); }

.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { margin: 0; font-size: 15.5px; }

/* Audience split cards (cross-link) */
.audience-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.audience-card {
  border-radius: var(--radius-lg);
  padding: 36px;
  text-decoration: none;
  display: block;
  transition: transform .15s ease;
}

.audience-card:hover { transform: translateY(-4px); }

.audience-card.for-patient {
  background: var(--container);
}

.audience-card.for-pro {
  background: var(--ink);
  color: var(--white);
}

.audience-card.for-pro h3, .audience-card.for-pro p { color: var(--white); }
.audience-card.for-pro .arrow { color: var(--mint); }

.audience-card h3 { font-size: 22px; margin-bottom: 8px; }
.audience-card p { font-size: 15.5px; margin-bottom: 18px; }
.audience-card .arrow { font-weight: 700; color: var(--ink); }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.price-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
}

.price-card.is-featured {
  border-color: var(--mint-dark);
  box-shadow: var(--shadow);
  position: relative;
}

.price-card .badge {
  position: absolute;
  top: -14px;
  left: 28px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}

.price-card .plan-name { font-weight: 700; color: var(--ink); font-size: 15px; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 10px; }

.price-card .amount {
  font-family: "Quicksand", ui-rounded, sans-serif;
  font-weight: 700;
  color: var(--ink);
  font-size: 40px;
  margin-bottom: 2px;
}

.price-card .amount .period { font-size: 15px; font-weight: 600; color: var(--ink-soft); }

.price-card .sub { font-size: 14px; color: var(--ink-soft); margin-bottom: 22px; }

.price-card ul {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  flex: 1;
}

.price-card li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  margin-bottom: 12px;
  align-items: flex-start;
}

.price-card li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--mint-darker); }

.price-note {
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 28px;
  opacity: 0.85;
}

/* Home page pricing note only — pro.html's anchor-price note stays regular weight. */
.on-mint .price-note { font-weight: 700; opacity: 1; }

/* ---------- Pro pricing comparison table ---------- */

.pricing-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  background: var(--white);
}

.pricing-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
  padding: 16px 22px;
  text-align: left;
  font-size: 15px;
  white-space: nowrap;
}

.pricing-table thead th {
  background: var(--ink);
  color: var(--white);
  font-family: "Quicksand", ui-rounded, sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pricing-table thead th:first-child { border-top-left-radius: var(--radius-lg); }
.pricing-table thead th:last-child { border-top-right-radius: var(--radius-lg); }

.pricing-table tbody tr { border-bottom: 1px solid var(--container); }
.pricing-table tbody tr:last-child { border-bottom: none; }
.pricing-table tbody tr.is-start { background: var(--container-soft); }

.pricing-table td strong {
  font-family: "Quicksand", ui-rounded, sans-serif;
  color: var(--ink);
  font-size: 16px;
}

.table-tag {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 10px;
  background: var(--mint);
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 999px;
  vertical-align: middle;
}

@media (max-width: 640px) {
  .pricing-table th, .pricing-table td { padding: 12px 16px; font-size: 14px; }
}

/* Short inline definition under the hero lede, introducing "ExoFitter". */
.term-note {
  font-size: 14.5px;
  color: var(--ink-soft);
  opacity: 0.85;
  margin-top: -6px;
  margin-bottom: 20px;
}

/* Steps (how it works) */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 4px;
}

.step .num {
  font-family: "Quicksand", ui-rounded, sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--mint-darker);
  background: var(--container);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 15px; }

/* CTA band */
.cta-band {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
}

.cta-band h2, .cta-band p { color: var(--white); }
.cta-band .lede { color: rgba(255,255,255,0.78); max-width: 56ch; margin: 0 auto 28px; }

/* Footer */
.site-footer {
  border-top: 1px solid rgba(27, 55, 51, 0.08);
  padding: 44px 0 36px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--ink-soft); font-size: 14.5px; font-weight: 600; }
.footer-links a:hover { color: var(--ink); }

.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 28px; height: 28px; border-radius: 8px; }
.footer-brand span { font-size: 13.5px; color: var(--ink-soft); }

/* Utility */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 320px; margin: 0 auto; }
  .grid-3, .pricing-grid, .steps { grid-template-columns: 1fr; }
  .grid-2, .audience-split { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  section { padding: 52px 0; }
}

@media (max-width: 640px) {
  .site-nav { gap: 4px; }
  .nav-pill { padding: 8px 12px; font-size: 13.5px; }
  .logo-lockup span { font-size: 19px; }
  .hero { padding: 40px 0 24px; }
  .btn { width: 100%; }
  .store-row { flex-direction: column; }
  .store-badge { width: 100%; }
}

/* ---------- Header right cluster (nav + language switch) ---------- */

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  background: var(--container-soft);
  border-radius: 999px;
}

.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity .15s ease, border-color .15s ease, transform .15s ease;
}

.lang-btn svg { width: 20px; height: 20px; border-radius: 50%; display: block; }

.lang-btn:hover { opacity: 0.85; transform: translateY(-1px); }

.lang-btn.is-active {
  opacity: 1;
  border-color: var(--ink);
}

@media (max-width: 640px) {
  .header-right { gap: 8px; }
  .lang-btn { width: 28px; height: 28px; }
  .lang-btn svg { width: 17px; height: 17px; }
}

/* Narrow phone portrait widths: the nav pills + language flags alone need
   more width than these screens have, so the logo (icon included, not just
   the "FitExo" wordmark) steps aside and the row wraps — nav pills on line
   one, language flags centered on line two. Tested down to a 375px-wide
   viewport. */
@media (max-width: 430px) {
  .site-header .container {
    height: auto;
    flex-wrap: wrap;
    row-gap: 8px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .logo-lockup { display: none; }
  .header-right {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 8px;
  }
}

/* ---------- Steps note (below "how it works") ---------- */

.steps-note {
  max-width: 680px;
  margin: 40px auto 0;
  text-align: center;
  background: rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-md);
  padding: 20px 26px;
  font-size: 15.5px;
}

.steps-note strong { font-family: "Quicksand", ui-rounded, sans-serif; }

/* ---------- Application form ---------- */

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 40px;
  max-width: 640px;
  margin: 0 auto;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-field.full { grid-column: 1 / -1; }

.form-field label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}

.form-field .hint {
  font-size: 12.5px;
  color: var(--ink-soft);
  opacity: 0.75;
}

.address-fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

.address-fieldset legend {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  padding: 0;
  margin-bottom: 2px;
}

.address-fieldset .hint {
  display: block;
  margin-bottom: 4px;
}

.address-fieldset .form-grid .form-field { margin-bottom: 0; }
.address-fieldset .form-grid { row-gap: 18px; }

.form-field input {
  font-family: inherit;
  font-size: 15.5px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--container);
  background: var(--container-soft);
  color: var(--ink);
  transition: border-color .15s ease, background .15s ease;
}

.form-field input:focus {
  outline: none;
  border-color: var(--mint-dark);
  background: var(--white);
}

.form-card.was-validated input:invalid {
  border-color: var(--red);
}

/* Honeypot — visually hidden but present in the DOM/tab order-free, so real
   users never see or fill it while simple bots still do. */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-status {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  display: none;
}

.form-status.is-visible { display: block; }
.form-status.is-success { background: var(--container); color: var(--ink); }
.form-status.is-error { background: #FBE7E7; color: var(--red); }

.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}

.form-submit[disabled] { opacity: 0.6; cursor: default; }

@media (max-width: 640px) {
  .form-card { padding: 28px 22px; }
  .form-grid { grid-template-columns: 1fr; }
}
