/* ——————————————————————————————————————————————
   The Shiatsu Portal — Biophilic design system
   Derived from mockups/v2/mockup-2-biophilic.html
—————————————————————————————————————————————— */
:root {
  --bg: #EFF7F0;
  --bg-deep: #E3F0E5;
  --surface: #FFFFFF;
  --surface-tint: #F4FAF5;
  --fg: #0F2B14;
  --fg-muted: #4A6B4E;
  --fg-dim: #7A9A7E;
  --primary: #1A6B30;
  --primary-light: #2A8A42;
  --primary-pale: #D4ECD8;
  --accent: #C47B1A;
  --accent-pale: #F5E6C8;
  --border: #C8DEC9;
  --border-soft: rgba(26,107,48,0.12);
  --danger: #B3402E;
  --danger-pale: #F6DDD8;
  --shadow-sm: 0 2px 8px rgba(15,43,20,0.06);
  --shadow-md: 0 8px 24px rgba(15,43,20,0.1);
  --shadow-lg: 0 20px 48px rgba(15,43,20,0.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Raleway', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* organic background texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(26,107,48,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 90% 80%, rgba(196,123,26,0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ——— HEADER ——— */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(239,247,240,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-mark {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: 50% 50% 50% 0;
  display: flex; align-items: center; justify-content: center;
  color: white;
}
.logo-mark svg { width: 18px; height: 18px; }
.logo-text { font-family: 'Lora', serif; font-size: 19px; font-weight: 700; color: var(--fg); white-space: nowrap; }
.logo-text span { color: var(--primary); }
nav.site-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
nav.site-nav a {
  padding: 8px 13px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  border-radius: 20px;
  transition: color 150ms, background 150ms;
  min-height: 40px;
  display: flex; align-items: center;
  white-space: nowrap;
}
nav.site-nav a:hover { color: var(--primary); background: var(--primary-pale); }
nav.site-nav a.active { color: var(--primary); background: var(--primary-pale); font-weight: 600; }
.nav-cta {
  background: var(--primary) !important;
  color: white !important;
  padding: 8px 18px !important;
  border-radius: 20px;
}
.nav-cta:hover { background: var(--primary-light) !important; }
.nav-burger {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: 10px; color: var(--fg);
  min-height: 40px; align-items: center;
}
.nav-burger:hover { background: var(--primary-pale); color: var(--primary); }
.nav-burger svg { width: 24px; height: 24px; display: block; }
.mobile-menu { display: none; }

/* ——— LAYOUT ——— */
.section {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 72px;
}
.section-narrow { max-width: 860px; }
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 24px;
  flex-wrap: wrap;
}
.section-title { font-family: 'Lora', serif; font-size: clamp(24px, 3vw, 36px); font-weight: 700; color: var(--fg); }
.section-subtitle { font-size: 15px; color: var(--fg-muted); margin-top: 6px; max-width: 640px; }
.see-all {
  font-size: 14px; font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
}

/* ——— HERO ——— */
.hero {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-single { grid-template-columns: 1fr; max-width: 920px; text-align: center; }
.hero-single .hero-desc { margin-left: auto; margin-right: auto; }
.hero-single .hero-actions { justify-content: center; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-pale);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  font-family: 'Lora', serif;
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 24px;
}
.hero h1 em { font-style: italic; color: var(--primary); }
.hero-desc {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 560px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-illustration {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  background: var(--primary-pale);
  border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
  animation: blobMorph 10s ease-in-out infinite;
}
.hero-illustration::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 2px solid rgba(26,107,48,0.15);
  border-radius: 55% 45% 50% 50% / 50% 50% 45% 55%;
}
.hero-illustration svg { width: 60%; height: 60%; color: var(--primary); opacity: 0.4; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.stat-item { display: flex; align-items: center; gap: 10px; }
.stat-icon {
  width: 36px; height: 36px;
  background: var(--primary-pale);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.stat-icon svg { width: 16px; height: 16px; }
.stat-value { font-family: 'Lora', serif; font-size: 20px; font-weight: 700; color: var(--fg); line-height: 1; }
.stat-label { font-size: 12px; color: var(--fg-muted); }

/* ——— BUTTONS ——— */
.btn-primary, .btn-secondary, .btn-small {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 26px;
  transition: background 200ms, transform 150ms, box-shadow 200ms;
}
.btn-primary {
  min-height: 52px;
  padding: 0 32px;
  background: var(--primary);
  color: white;
  border: none;
  font-size: 15px;
  box-shadow: 0 4px 16px rgba(26,107,48,0.25);
}
.btn-primary:hover { background: var(--primary-light); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(26,107,48,0.3); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-secondary {
  min-height: 52px;
  padding: 0 24px;
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  font-size: 15px;
}
.btn-secondary:hover { background: var(--primary-pale); }
.btn-small {
  min-height: 38px;
  padding: 0 18px;
  font-size: 13px;
  background: var(--primary);
  color: white;
  border: none;
}
.btn-small:hover { background: var(--primary-light); }
.btn-small.ghost { background: transparent; border: 1.5px solid var(--border); color: var(--fg-muted); }
.btn-small.ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ——— CARDS ——— */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: box-shadow 220ms ease, border-color 220ms ease, transform 220ms ease;
}
.card.hoverable { cursor: pointer; }
.card.hoverable:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary-pale); }
.card:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.card-accent-bar {
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 250ms ease;
}
.card.hoverable:hover .card-accent-bar { transform: scaleX(1); }
.card-top { padding: 24px 24px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-icon {
  width: 52px; height: 52px;
  background: var(--primary-pale);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  transition: background 200ms, color 200ms;
}
.card.hoverable:hover .card-icon { background: var(--primary); color: white; }
.card-icon svg { width: 26px; height: 26px; }
.card-badge {
  font-size: 11px; font-weight: 600;
  color: var(--accent);
  background: var(--accent-pale);
  padding: 4px 10px;
  border-radius: 10px;
  white-space: nowrap;
}
.card-badge.green { color: var(--primary); background: var(--primary-pale); }
.card-body { padding: 16px 24px 24px; }
.card-title { font-family: 'Lora', serif; font-size: 20px; font-weight: 700; color: var(--fg); line-height: 1.3; margin-bottom: 4px; }
.card-subtitle { font-size: 13px; color: var(--fg-dim); margin-bottom: 10px; }
.card-desc { font-size: 14px; color: var(--fg-muted); line-height: 1.55; margin-bottom: 18px; }
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--bg-deep);
}
.card-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--fg-dim); }
.card-meta svg { width: 14px; height: 14px; }
.card-cta { font-size: 13px; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 4px; }

/* reveal animation */
.reveal { opacity: 0; transform: scale(0.96) translateY(18px); transition: opacity 500ms ease, transform 500ms cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: scale(1) translateY(0); }

/* ——— FORMS ——— */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--fg); margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--fg-dim); margin-top: 4px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=url],
.field select, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 16px;
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  color: var(--fg);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  outline: none;
  transition: border-color 150ms, box-shadow 150ms;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,107,48,0.12);
}
.field .error-msg { font-size: 12.5px; color: var(--danger); margin-top: 4px; display: none; }
.field.invalid input { border-color: var(--danger); }
.field.invalid .error-msg { display: block; }

/* option cards (quiz answers) */
.option-list { display: flex; flex-direction: column; gap: 10px; }
.option-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  font-size: 15px;
  color: var(--fg-muted);
  transition: border-color 150ms, background 150ms, color 150ms;
}
.option-card:hover { border-color: var(--primary); background: var(--surface-tint); }
.option-card.selected { border-color: var(--primary); background: var(--primary-pale); color: var(--fg); font-weight: 600; }
.option-card .opt-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  transition: border-color 150ms, background 150ms;
}
.option-card.selected .opt-dot { border-color: var(--primary); background: var(--primary); box-shadow: inset 0 0 0 3px var(--primary-pale); }

/* progress bar */
.progress-track { height: 8px; background: var(--bg-deep); border-radius: 6px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(to right, var(--primary), var(--primary-light)); border-radius: 6px; transition: width 350ms cubic-bezier(0.16,1,0.3,1); }

/* ——— PANELS / SURFACES ——— */
.surface-panel {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.tint-panel {
  background: var(--surface-tint);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 32px;
}
.panel-section-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 12px;
}

/* ——— PILLS / CHIPS ——— */
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  color: var(--fg-muted);
  cursor: pointer;
  transition: border-color 150ms, background 150ms, color 150ms;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: white; }

/* ——— TABLES ——— */
.table-wrap { overflow-x: auto; border: 1.5px solid var(--border); border-radius: 16px; background: var(--surface); }
table.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data-table th {
  text-align: left;
  padding: 13px 16px;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fg-dim);
  background: var(--surface-tint);
  border-bottom: 1.5px solid var(--border);
  white-space: nowrap;
}
table.data-table td { padding: 13px 16px; color: var(--fg-muted); border-bottom: 1px solid var(--bg-deep); }
table.data-table tr:last-child td { border-bottom: none; }

/* ——— TIER BADGES ——— */
.tier-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 9px;
}
.tier-badge.free { background: var(--primary-pale); color: var(--primary); }
.tier-badge.pro { background: var(--accent-pale); color: var(--accent); }
.tier-badge.locked { background: var(--bg-deep); color: var(--fg-dim); }

/* ——— FOOTER ——— */
footer.site-footer {
  background: var(--fg);
  color: rgba(255,255,255,0.55);
  padding: 56px 24px 40px;
  position: relative;
  z-index: 1;
  margin-top: 24px;
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto 36px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-logo { font-family: 'Lora', serif; font-size: 22px; font-weight: 700; color: white; margin-bottom: 10px; }
.footer-tagline { font-size: 14px; line-height: 1.7; max-width: 300px; }
.footer-col h4 {
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 14px;
}
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,0.55); text-decoration: none; padding: 4px 0; transition: color 150ms; }
.footer-col a:hover { color: white; }
.footer-bottom { max-width: 1280px; margin: 0 auto; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 13px; text-align: center; }

/* ——— ANIMATIONS ——— */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes blobMorph {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50%       { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }

header.site-header { animation: fadeIn 400ms ease both; }
.hero-tag { animation: fadeUp 500ms 0ms ease both; }
.hero h1 { animation: fadeUp 700ms 150ms cubic-bezier(0.16,1,0.3,1) both; }
.hero-desc { animation: fadeUp 600ms 300ms ease both; }
.hero-actions { animation: fadeUp 550ms 420ms ease both; }
.hero-stats { animation: fadeUp 500ms 560ms ease both; }
.logo-mark { animation: breathe 5s ease-in-out 1s infinite; }
.section-header { animation: fadeUp 500ms ease both; }

/* ——— RESPONSIVE ——— */
@media (max-width: 1100px) {
  nav.site-nav a:not(.nav-cta):not(.nav-keep) { display: none; }
  .nav-burger { display: flex; }
  .mobile-menu {
    border-top: 1px solid var(--border);
    padding: 10px 18px 16px;
  }
  .mobile-menu:not([hidden]) { display: block; }
  .mobile-menu a {
    display: block; padding: 12px 14px;
    font-size: 15px; font-weight: 500;
    color: var(--fg-muted); text-decoration: none;
    border-radius: 12px;
  }
  .mobile-menu a:hover { background: var(--primary-pale); color: var(--primary); }
  .mobile-menu a.active { background: var(--primary-pale); color: var(--primary); font-weight: 600; }
  .mobile-menu .menu-cta {
    background: var(--primary); color: #fff;
    text-align: center; font-weight: 600; margin-top: 8px;
  }
  .mobile-menu .menu-cta:hover { background: var(--primary-light); color: #fff; }
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  nav.site-nav a:not(.nav-cta) { display: none; }
  .cards-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .surface-panel, .tint-panel { padding: 22px; }

  /* — mobile rhythm: a column designed for the thumb, not shrunken desktop — */
  .section { padding: 0 20px 52px; }
  .section-header { margin-bottom: 22px; gap: 12px; }
  .section-title { font-size: 25px; }
  .section-subtitle { font-size: 14px; margin-top: 4px; }

  /* hero: closer to the fold, full-width actions, compact 3-up stat row */
  .hero { padding: 40px 20px 36px; gap: 32px; }
  .hero-tag { font-size: 11px; padding: 5px 12px; margin-bottom: 16px; }
  .hero h1 { margin-bottom: 16px; }
  .hero-desc { font-size: 15.5px; line-height: 1.7; margin-bottom: 24px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn-primary, .hero-actions .btn-secondary { flex: 1 1 100%; justify-content: center; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 28px; }
  .stat-item { flex-direction: column; text-align: center; gap: 8px; }
  .stat-value { font-size: 17px; }
  .stat-label { font-size: 11px; line-height: 1.35; }

  /* feature cards: compact — smaller icon, tighter body, single quiet CTA.
     The repeated "Included in the Portal" meta line is noise when ten cards
     stack in one column, so it is hidden here. */
  .card-top { padding: 16px 18px 0; align-items: center; }
  .card-icon { width: 40px; height: 40px; border-radius: 12px; }
  .card-icon svg { width: 20px; height: 20px; }
  .card-badge { font-size: 10.5px; padding: 4px 10px; }
  .card-body { padding: 12px 18px 16px; }
  .card-title { font-size: 17.5px; margin-bottom: 2px; }
  .card-subtitle { font-size: 12px; margin-bottom: 8px; }
  .card-desc { font-size: 13.5px; line-height: 1.5; margin-bottom: 12px; }
  .card-footer { padding-top: 10px; justify-content: flex-end; }
  .card-meta { display: none; }

  /* footer: denser, calmer */
  footer.site-footer { padding: 40px 20px 28px; }
  .footer-grid { gap: 28px 24px; margin-bottom: 28px; }
  .footer-col a { font-size: 13.5px; padding: 5px 0; }
  .footer-tagline { font-size: 13px; }
  .footer-bottom { font-size: 12px; padding-top: 18px; }
}
@media (max-width: 540px) {
  /* smallest phones: logo + burger only — the Scorecard CTA stays reachable
     inside the burger menu, so the header never overflows */
  .header-inner { padding: 0 14px; gap: 10px; }
  .logo { gap: 7px; }
  .logo-mark { width: 32px; height: 32px; }
  .logo-mark svg { width: 16px; height: 16px; }
  .logo-text { font-size: 16px; }
  nav.site-nav { display: none; }
}
@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; gap: 12px; }
  .hero h1 { font-size: 31px; }
  /* brand spans the top, link columns pair up beneath */
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > .footer-col:first-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
