/* The Foot in Diabetes | LimbWise Capability marketing site
   Brand design system (shared with footindiabetes.com):
   navy #1B3A6B / teal #2E7D8A, warm cream surfaces,
   Fraunces (serif headings) + Figtree (sans body) */

:root {
  --ink: #122747;            /* navy-900: body text */
  --ink-soft: #47546b;
  --navy: #1b3a6b;           /* brand navy-700 */
  --navy-dark: #16305a;      /* navy-800 */
  --navy-deep: #122747;      /* navy-900 */
  --teal: #2e7d8a;           /* brand teal-600 */
  --teal-dark: #276876;      /* teal-700 */
  --teal-tint: #d7edf0;      /* teal-100 */
  --teal-wash: #eff8f9;      /* teal-50 */
  --paper: #fbfaf7;          /* cream-50 */
  --paper-deep: #f6f3ee;     /* cream-100 */
  --white: #ffffff;
  --line: #ece7de;           /* cream-200 */
  --line-strong: #ddd5c8;    /* cream-300 */
  --radius: 16px;
  --shadow: 0 8px 24px rgba(18, 39, 71, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  color: var(--navy-dark);
  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(--navy);
  text-decoration: none;
}
a:hover { text-decoration: underline; text-underline-offset: 4px; }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection {
  background: var(--teal-tint);
  color: var(--navy-deep);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

/* Header / nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.95);
  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(--navy);
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand span.accent {
  color: var(--navy);
  white-space: nowrap;
}
.brand-logo {
  height: 40px;
  width: 40px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  flex-shrink: 0;
}

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

.nav-links a {
  color: var(--navy-dark);
  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(--navy); font-weight: 700; }

.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;
  transition: background-color 0.2s ease;
}
.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(--navy-dark);
}

@media (max-width: 1400px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    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;
  background: var(--navy-dark);
}
.hero h1 { color: var(--white); }

.eyebrow {
  display: inline-block;
  background: transparent;
  color: #83c3cd; /* teal-300 on navy */
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0;
  margin-bottom: 18px;
}

.hero p.lead {
  max-width: 620px;
  margin: 0 auto 28px;
  font-size: 1.15rem;
  color: #dce6f3; /* navy-100 */
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero .btn-primary {
  background: var(--white);
  color: var(--navy-dark);
}
.hero .btn-primary:hover { background: var(--paper-deep); }
.hero .btn-secondary {
  background: var(--teal);
  color: var(--white);
  border-color: transparent;
}
.hero .btn-secondary:hover { background: var(--teal-dark); color: var(--white); }

/* Inner pages keep a light hero variant via .hero.light */
.hero.light { background: var(--paper-deep); text-align: left; }
.hero.light h1 { color: var(--navy-dark); }
.hero.light p.lead { color: var(--ink-soft); margin-left: 0; }
.hero.light .eyebrow { color: var(--teal-dark); }

/* Buttons */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy-dark); text-decoration: none; }
.btn-secondary {
  background: transparent;
  color: var(--navy-dark);
  border-color: var(--line-strong);
}
.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;
  transition: box-shadow 0.2s ease;
}
.card:hover { box-shadow: var(--shadow); }

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

/* Trust / credibility */

.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust h2 { margin-bottom: 0.6em; }

/* Callout / app-link banner */

.callout {
  background: var(--navy-dark);
  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: #dce6f3; margin-bottom: 0; max-width: 480px; }
.callout .btn-primary { background: var(--teal); }
.callout .btn-primary:hover { background: var(--teal-dark); }

/* 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(--teal);
  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(--navy-dark);
}
.price-card .price span {
  font-family: "Figtree", 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: #204751; /* teal-900 */
  background: var(--teal-wash);
  border: 1px solid var(--teal-tint);
  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(--teal-wash);
  border: 1px solid var(--teal-tint);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 0.92rem;
  color: #204751;
  margin-bottom: 36px;
}

/* Footer */

.site-footer {
  background: var(--navy-deep);
  color: #bccfe7; /* navy-200 */
  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: #dce6f3; /* navy-100 */
}
.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: #92afd5; /* navy-300 */
  margin-top: 28px;
}

/* Cookie notice */

.cookie-notice {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--navy-deep);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 20px;
}
.cookie-notice p {
  margin: 0;
  font-size: 0.9rem;
  color: #dce6f3;
  flex: 1 1 240px;
}
.cookie-notice a {
  color: #83c3cd; /* teal-300 */
}
.cookie-notice-dismiss {
  flex: 0 0 auto;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.cookie-notice-dismiss:hover {
  background: var(--teal-dark);
}
