/* The Foot in Diabetes — LimbWise Capability marketing site
   Brand: Fraunces (serif headings) + Inter (sans body), teal/amber/ink palette
   (matches the LimbWise Capability app's capability-theme.ts) */

:root {
  --ink: #14201f;
  --ink-soft: #3a4a48;
  --teal: #0f6e63;
  --teal-dark: #0a4f47;
  --teal-tint: #e6f2ef;
  --amber: #c98a2b;
  --amber-tint: #fbf1de;
  --paper: #faf8f4;
  --white: #ffffff;
  --line: #e3ddd2;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(20, 32, 31, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a {
  color: var(--teal-dark);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 10px 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.brand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand span.accent {
  color: var(--teal);
  white-space: nowrap;
}
.brand-logo {
  height: 48px;
  width: 48px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
  margin-left: -18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--teal-dark); text-decoration: none; }
.nav-links a.current { color: var(--teal-dark); font-weight: 600; }

.nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--teal-dark); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 1400px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 520px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 24px; width: 100%; }
  .nav-links .nav-cta { margin: 10px 24px 16px; display: inline-block; }
}

/* Hero */

.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  background: var(--teal-tint);
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero p.lead {
  max-width: 620px;
  margin: 0 auto 28px;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover { background: var(--teal-dark); text-decoration: none; }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--teal); color: var(--teal-dark); text-decoration: none; }

/* Sections */

section { padding: 64px 0; }
section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}
.section-head p { color: var(--ink-soft); }

/* Feature grid */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 760px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--teal-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

/* Callout / app-link banner */

.callout {
  background: var(--ink);
  color: var(--white);
  border-radius: 20px;
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.callout h2, .callout p { color: var(--white); }
.callout p { color: rgba(255,255,255,0.75); margin-bottom: 0; max-width: 480px; }
.callout .btn-primary { background: var(--amber); }
.callout .btn-primary:hover { background: #b07a23; }

/* Pricing */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 820px;
  margin: 0 auto;
}
.pricing-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1040px;
}
@media (max-width: 760px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
}
.price-card.featured {
  border: 2px solid var(--teal);
  box-shadow: var(--shadow);
}
.price-card .badge {
  position: absolute;
  top: -14px;
  right: 28px;
  background: var(--amber);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}
.price-card .price {
  font-family: "Fraunces", serif;
  font-size: 2.4rem;
  margin: 10px 0 4px;
  color: var(--ink);
}
.price-card .price span {
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 28px;
}
.price-card li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 0.96rem;
}
.price-card li:first-child { border-top: none; }
.price-card li::before {
  content: "✓";
  color: var(--teal);
  font-weight: 700;
}
.price-card .btn { width: 100%; text-align: center; }

.pricing-note {
  max-width: 700px;
  margin: 36px auto 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: var(--amber-tint);
  border: 1px solid #ecd9ad;
  border-radius: 12px;
  padding: 16px 22px;
}

/* Legal pages */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.legal h1 { margin-bottom: 8px; }
.legal .updated {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 36px;
}
.legal h2 {
  font-size: 1.3rem;
  margin-top: 2.2em;
}
.legal h3 { margin-top: 1.6em; }
.legal ul { padding-left: 1.4em; }
.legal .draft-notice {
  background: var(--amber-tint);
  border: 1px solid #ecd9ad;
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 36px;
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 32px;
  margin-top: 40px;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.site-footer a {
  color: rgba(255,255,255,0.75);
}
.site-footer a:hover { color: var(--white); }
.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-top: 28px;
}
