@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,500;0,600;0,700;1,500&family=Figtree:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light dark;
  /* shared canvas — warm, calm, "modern primary care" rather than clinical-white */
  --bg: #faf8f2;
  --surface: #f1efe4;
  --surface-2: #e8e5d6;
  --text: #2b2a24;
  --muted: #6d6a5c;
  --rule: #ddd9c9;
  --shadow: 0 1px 2px rgba(43, 42, 36, 0.05), 0 10px 26px -14px rgba(43, 42, 36, 0.16);
  /* home / suite default accent — sage green, ties the whole family together */
  --accent: #4f7359;
  --accent-text: #fbfaf5;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-app]):not([data-theme="light"]) {
    --bg: #12160f;
    --surface: #1b2118;
    --surface-2: #212a1c;
    --text: #eef0e6;
    --muted: #a3ab97;
    --rule: #2a3324;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 26px -14px rgba(0, 0, 0, 0.5);
    --accent: #8fbf8a;
    --accent-text: #12160f;
  }
}
:root:not([data-app])[data-theme="dark"] {
  --bg: #12160f;
  --surface: #1b2118;
  --surface-2: #212a1c;
  --text: #eef0e6;
  --muted: #a3ab97;
  --rule: #2a3324;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 26px -14px rgba(0, 0, 0, 0.5);
  --accent: #8fbf8a;
  --accent-text: #12160f;
}

/* shared dark canvas (bg/text/etc.) applies regardless of which app, only accent differs below */
@media (prefers-color-scheme: dark) {
  :root[data-app]:not([data-theme="light"]) {
    --bg: #12160f;
    --surface: #1b2118;
    --surface-2: #212a1c;
    --text: #eef0e6;
    --muted: #a3ab97;
    --rule: #2a3324;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 26px -14px rgba(0, 0, 0, 0.5);
  }
}
:root[data-app][data-theme="dark"] {
  --bg: #12160f;
  --surface: #1b2118;
  --surface-2: #212a1c;
  --text: #eef0e6;
  --muted: #a3ab97;
  --rule: #2a3324;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 26px -14px rgba(0, 0, 0, 0.5);
}

/* ---- Japanese Walk accent: warm clay ---- */
:root[data-app="jw"] {
  --accent: #b9603f;
  --accent-text: #fffaf5;
}
@media (prefers-color-scheme: dark) {
  :root[data-app="jw"]:not([data-theme="light"]) {
    --accent: #e0916b;
    --accent-text: #201a12;
  }
}
:root[data-app="jw"][data-theme="dark"] {
  --accent: #e0916b;
  --accent-text: #201a12;
}

/* ---- Cardio Protocol accent: deep teal ---- */
:root[data-app="cp"] {
  --accent: #1f7a6f;
  --accent-text: #fbfaf5;
}
@media (prefers-color-scheme: dark) {
  :root[data-app="cp"]:not([data-theme="light"]) {
    --accent: #58c9ba;
    --accent-text: #0e211d;
  }
}
:root[data-app="cp"][data-theme="dark"] {
  --accent: #58c9ba;
  --accent-text: #0e211d;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
body {
  font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.06rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.narrow {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Suite bar: ties both app sites back to the Dalmet home ---- */
.suite-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  font-family: "Figtree", sans-serif;
  font-size: 0.84rem;
}
.suite-bar .wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 24px;
  max-width: 1080px;
}
.suite-bar a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.suite-bar a:hover, .suite-bar a.current { color: var(--text); }
.suite-bar a.home-link { color: var(--text); font-family: "Lora", Georgia, serif; font-weight: 600; }
.suite-bar .sep { color: var(--rule); }

/* Header / nav */
header.site {
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}
nav.site {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
}
.brand svg { width: 30px; height: 30px; flex-shrink: 0; }
.brand img { width: 30px; height: 30px; flex-shrink: 0; border-radius: 22%; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.96rem;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.current { color: var(--accent); }

.btn {
  display: inline-block;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 24px;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: var(--shadow);
}
.btn-primary:hover { opacity: 0.92; }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--rule);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-small { padding: 9px 18px; font-size: 0.9rem; }
.btn-disabled {
  background: var(--surface-2);
  color: var(--muted);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-disabled:hover { opacity: 1; }

/* Hero */
.hero {
  padding: 76px 0 60px;
  text-align: center;
}
.eyebrow {
  font-family: "Figtree", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}
h1 {
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(2.35rem, 5.2vw, 3.4rem);
  line-height: 1.14;
  letter-spacing: -0.005em;
  margin: 0 0 20px;
  text-wrap: balance;
}
.hero h1 { max-width: 17ch; margin-left: auto; margin-right: auto; }
.subhead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 56ch;
  margin: 0 auto 34px;
}
.hero .cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.cta-note { color: var(--muted); font-size: 0.92rem; }
.store-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
}
.store-badge { height: 40px; width: auto; display: block; }
.store-qr { width: 64px; height: 64px; border-radius: 8px; }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--surface); }
h2 {
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.65rem, 3.2vw, 2.05rem);
  letter-spacing: -0.003em;
  margin: 0 0 14px;
  text-wrap: balance;
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
p { margin: 0 0 14px; }

/* Value / feature grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 28px 26px;
  box-shadow: var(--shadow);
}
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 {
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 8px;
}
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* Feature rows (Features page) */
.feature-row {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
}
.feature-row:last-child { border-bottom: none; }
.feature-row .icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.feature-row .icon svg { width: 24px; height: 24px; }
.feature-row h3 {
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  font-size: 1.16rem;
  margin: 0 0 6px;
}
.feature-row p { color: var(--muted); margin: 0; max-width: 62ch; }
.health-badge-row { margin-top: 14px; }
.health-badge { height: 34px; width: auto; display: block; }

/* Pricing */
.pricing-card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 26px;
  padding: 44px 36px;
  text-align: center;
  box-shadow: var(--shadow);
}
.price-line {
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  font-size: 2.5rem;
  margin: 4px 0 2px;
}
.price-sub { color: var(--muted); margin-bottom: 26px; }
.check-list { list-style: none; padding: 0; margin: 0 0 30px; text-align: left; }
.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 0.98rem;
}
.check-list svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.fine-print { color: var(--muted); font-size: 0.86rem; margin-top: 18px; }

/* FAQ accordion */
.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
}
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 12px 0 0; color: var(--muted); }

/* Trust section */
.trust-body {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.06rem;
  color: var(--muted);
}

/* Final CTA band */
.cta-band {
  text-align: center;
  padding: 70px 0;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--muted); max-width: 50ch; margin: 0 auto 30px; }

/* Contact / simple content pages */
.intro-lead { font-size: 1.14rem; margin-bottom: 8px; }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 26px 28px;
  margin: 14px 0 8px;
  box-shadow: var(--shadow);
}
.contact-card .label { font-size: 0.85rem; color: var(--muted); margin-bottom: 4px; }
.contact-card .value { font-size: 1.15rem; font-weight: 600; }
.no-collect {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 22px 26px;
  margin: 14px 0 8px;
}
.no-collect ul { margin: 0; padding-left: 20px; }
.no-collect li { margin: 0 0 10px; }
.no-collect li:last-child { margin-bottom: 0; }
.updated { color: var(--muted); font-size: 0.92rem; margin: 0 0 8px; }

/* ---- Home: app suite grid ---- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
  margin-top: 8px;
}
.app-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 26px;
  padding: 34px 32px;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.app-card:hover { border-color: var(--app-accent, var(--accent)); transform: translateY(-2px); }
.app-card .app-icon { width: 46px; height: 46px; margin-bottom: 20px; border-radius: 22%; }
.app-card h3 {
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  font-size: 1.36rem;
  margin: 0 0 10px;
}
.app-card p { color: var(--muted); margin: 0 0 20px; font-size: 1rem; }
.app-card .app-link { color: var(--app-accent, var(--accent)); font-weight: 700; font-size: 0.94rem; }
.badge-soon {
  display: inline-block;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.app-card.jw { --app-accent: #b9603f; }
.app-card.cp { --app-accent: #1f7a6f; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .app-card.jw { --app-accent: #e0916b; }
  :root:not([data-theme="light"]) .app-card.cp { --app-accent: #58c9ba; }
}
:root[data-theme="dark"] .app-card.jw { --app-accent: #e0916b; }
:root[data-theme="dark"] .app-card.cp { --app-accent: #58c9ba; }

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  text-align: left;
}
.principles .p-item { padding: 4px 0; }
.principles h4 {
  font-family: "Lora", Georgia, serif;
  font-weight: 600;
  font-size: 1.02rem;
  margin: 0 0 6px;
}
.principles p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* Footer */
footer.site {
  border-top: 1px solid var(--rule);
  margin-top: 40px;
  padding: 40px 0 56px;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--accent); }

@media (max-width: 640px) {
  .hero { padding: 52px 0 40px; }
  section { padding: 44px 0; }
  .feature-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
