/* Medcip — premium marketing site styles */
:root {
  --pine: #0B3B32;        /* deep primary */
  --pine-2: #0E4A3E;
  --ink: #10201C;
  --green: #157A63;
  --green-soft: #E8F2EE;
  --ivory: #F7F5EF;       /* page background */
  --card: #FFFFFF;
  --gold: #B98A38;
  --gold-soft: #F4EBDB;
  --muted: #5E6B66;
  --line: #E4E0D4;
  --radius: 18px;
  --maxw: 1120px;
  --shadow-lg: 0 30px 60px -24px rgba(11, 59, 50, .28);
  --shadow-sm: 0 10px 30px -18px rgba(11, 59, 50, .25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Manrope", -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: .7rem; }
h3 { font-size: 1.18rem; margin-bottom: .4rem; font-weight: 600; }
p { margin-bottom: 1rem; }
a { color: var(--green); text-decoration: none; }
img, svg { max-width: 100%; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }
.muted { color: var(--muted); }
.accent { color: var(--green); }

/* Kicker — small caps label */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .74rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 26px;
}
.kicker::before { content: ""; width: 26px; height: 1.5px; background: var(--gold); }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 239, .85); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: "Fraunces", Georgia, serif; font-size: 1.45rem; font-weight: 600;
  color: var(--ink); letter-spacing: -.01em;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(145deg, var(--pine), var(--green));
  display: inline-flex; align-items: center; justify-content: center;
  color: #F3EDDF; font-family: "Fraunces", serif; font-size: 1.25rem; font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), var(--shadow-sm);
}
nav.links { display: flex; gap: 34px; align-items: center; }
nav.links a:not(.btn) {
  color: var(--ink); font-size: .93rem; font-weight: 600; position: relative; padding: 4px 0;
}
nav.links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--gold); transition: width .25s ease;
}
nav.links a:not(.btn):hover::after, nav.links a.active:not(.btn)::after { width: 100%; }
nav.links a.active:not(.btn) { color: var(--pine); }
#navToggle { display: none; background: none; border: none; font-size: 1.7rem; color: var(--ink); cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--pine); color: #F5F2E9 !important;
  padding: 13px 28px; border-radius: 999px; font-weight: 700; font-size: .92rem;
  letter-spacing: .02em; border: 1.5px solid var(--pine); cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { background: var(--pine-2); transform: translateY(-2px); box-shadow: var(--shadow-sm); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--pine) !important; }
.btn.ghost:hover { background: var(--green-soft); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #241A08 !important; }
.btn.gold:hover { background: #C9993F; }
.btn.big { padding: 16px 36px; font-size: 1rem; }
.btn.onDark { background: var(--gold); border-color: var(--gold); color: #241A08 !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 84px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 420px at 85% 8%, rgba(21,122,99,.10), transparent 65%),
    radial-gradient(500px 380px at 8% 90%, rgba(185,138,56,.08), transparent 60%);
}
.hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--green); }
.hero .sub { font-size: 1.16rem; color: var(--muted); max-width: 560px; margin: 24px 0 36px; }
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* Stats — hairline separated, serif numerals */
.stats {
  display: flex; margin-top: 64px; border-top: 1px solid var(--line); padding-top: 30px;
  gap: 0; flex-wrap: wrap;
}
.stats > div { padding: 0 44px; border-left: 1px solid var(--line); flex: 1; min-width: 180px; }
.stats > div:first-child { padding-left: 0; border-left: none; }
.stats strong {
  display: block; font-family: "Fraunces", serif; font-weight: 560;
  font-size: 2.3rem; color: var(--pine); line-height: 1.15;
}
.stats span { color: var(--muted); font-size: .86rem; letter-spacing: .02em; }

/* ---------- Sections ---------- */
section.band { padding: 92px 0; }
section.band.alt { background: #FDFCF8; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.band.dark {
  background:
    radial-gradient(700px 500px at 90% 0%, rgba(21,122,99,.25), transparent 60%),
    var(--pine);
  color: #E9EFEA;
}
section.band.dark h2, section.band.dark h3 { color: #F6F3E9; }
section.band.dark .muted { color: #A8BDB4; }
section.band.dark .kicker { color: var(--gold); }
.section-head { max-width: 640px; margin-bottom: 54px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.card .icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--green-soft); border: 1px solid rgba(21,122,99,.18);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  font-size: 1.35rem;
}
.card p { margin-bottom: 0; color: var(--muted); font-size: .95rem; line-height: 1.7; }
.card .link { display: inline-block; margin-top: 16px; font-weight: 700; font-size: .92rem; }
.card.feature { background: transparent; border: none; padding: 0; }
.card.feature:hover { transform: none; box-shadow: none; }

/* dark cards */
section.dark .card {
  background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.12);
}
section.dark .card p { color: #A8BDB4; }
section.dark .card .icon { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); }

/* ---------- Split rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.reverse > .visual { order: 2; }

/* Numbered feature rows — oversized serif numerals */
.feature-row { display: flex; gap: 26px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.feature-row:last-child { border-bottom: none; }
section.dark .feature-row { border-color: rgba(255,255,255,.12); }
.feature-row .no {
  font-family: "Fraunces", serif; font-size: 2rem; font-weight: 560;
  color: var(--gold); min-width: 56px; line-height: 1;
}
.feature-row p { margin: 0; color: var(--muted); font-size: .95rem; }
section.dark .feature-row p { color: #A8BDB4; }

/* ---------- Checklist ---------- */
ul.checks { list-style: none; margin: 0 0 1.4rem; }
ul.checks li { padding-left: 34px; position: relative; margin-bottom: 14px; }
ul.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--pine); color: var(--gold-soft);
  font-size: .78rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
section.dark ul.checks li::before { background: var(--gold); color: var(--pine); }

/* ---------- Device mockup ---------- */
.visual { position: relative; display: flex; justify-content: center; }
.device-wrap { position: relative; padding: 30px 10px; }
.device {
  width: 264px; background: #10201C; border-radius: 38px; padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.06);
}
.device .screen {
  background: #FBFAF6; border-radius: 28px; padding: 16px 14px 18px; min-height: 380px;
}
.device .statusbar {
  display: flex; justify-content: space-between; font-size: .62rem; color: #9AA5A0;
  padding: 0 4px 10px; font-weight: 700;
}
.device .app-title {
  font-family: "Fraunces", serif; font-weight: 600; font-size: 1rem; margin-bottom: 12px;
}
.ph-item {
  background: #fff; border: 1px solid var(--line); border-radius: 13px;
  padding: 11px 13px; font-size: .74rem; margin-bottom: 10px; color: var(--ink);
  box-shadow: 0 2px 6px rgba(11,59,50,.05);
}
.ph-item b { display: block; font-size: .78rem; margin-bottom: 2px; }
.ph-item.green { border-left: 3px solid var(--green); }
.ph-item.ring { border-left: 3px solid var(--gold); animation: pulse 1.8s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(185,138,56,.28); }
  55% { box-shadow: 0 0 0 9px rgba(185,138,56,0); }
}
.ph-cta {
  background: var(--pine); color: #F5F2E9; text-align: center; border-radius: 12px;
  padding: 11px; font-size: .76rem; font-weight: 700; letter-spacing: .02em;
}
.qr-block {
  display: grid; grid-template-columns: repeat(7, 12px); gap: 3px;
  justify-content: center; padding: 14px 0 16px;
}
.qr-block i { width: 12px; height: 12px; background: var(--ink); border-radius: 2px; }
.qr-block i.o { background: transparent; }

/* floating chips around device */
.float-chip {
  position: absolute; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 9px 14px; font-size: .74rem; font-weight: 700;
  box-shadow: var(--shadow-sm); color: var(--ink); white-space: nowrap;
}
.float-chip small { display: block; font-weight: 600; color: var(--muted); font-size: .66rem; }
.float-chip.tl { top: 44px; left: -34px; }
.float-chip.br { bottom: -6px; right: -30px; }
@media (max-width: 1150px) { .float-chip.tl { left: 0; } .float-chip.br { right: 0; } }

/* info panel used in some visuals */
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; max-width: 380px; box-shadow: var(--shadow-sm); text-align: left;
}
section.dark .panel { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
section.dark .panel .muted { color: #A8BDB4; }

/* ---------- Callout ---------- */
.callout {
  position: relative; overflow: hidden;
  background:
    radial-gradient(500px 300px at 15% 0%, rgba(185,138,56,.16), transparent 60%),
    var(--pine);
  color: #E9EFEA; border-radius: 24px;
  padding: 72px 56px; text-align: center;
}
.callout h2 { color: #F6F3E9; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.callout p { color: #A8BDB4; max-width: 560px; margin: 14px auto 32px; }

/* ---------- Forms ---------- */
form.lead { display: grid; gap: 16px; }
form.lead label { font-size: .84rem; font-weight: 700; letter-spacing: .02em; }
form.lead input, form.lead select, form.lead textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; background: #fff; color: var(--ink); transition: border-color .15s;
}
form.lead input:focus, form.lead select:focus, form.lead textarea:focus {
  outline: none; border-color: var(--green);
}
form.lead .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#formStatus { font-size: .92rem; font-weight: 600; }
#formStatus.ok { color: var(--green); }
#formStatus.err { color: #A8372B; }

/* ---------- Footer ---------- */
footer.site { background: var(--pine); color: #C9D7D0; padding: 64px 0 36px; margin-top: 0; }
footer.site .brand { color: #F6F3E9; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
footer.site h4 {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .16em;
  color: var(--gold); margin-bottom: 16px; font-family: "Manrope", sans-serif;
}
footer.site a { display: block; color: #C9D7D0; font-size: .93rem; margin-bottom: 10px; }
footer.site a:hover { color: #fff; text-decoration: none; }
footer.site .blurb { color: #91A79E; font-size: .9rem; margin-top: 14px; }
.foot-note {
  border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px;
  font-size: .82rem; color: #91A79E;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* ---------- Legal ---------- */
.legal { max-width: 760px; padding: 72px 26px; margin: 0 auto; }
.legal h1 { margin-bottom: 8px; font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { margin-top: 40px; font-size: 1.3rem; }
.legal .updated { color: var(--muted); font-size: .9rem; margin-bottom: 30px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ph-item.ring { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .grid.cols-3, .grid.cols-2, .split, .foot-grid, form.lead .row2 { grid-template-columns: 1fr; }
  .split { gap: 44px; }
  .split.reverse > .visual { order: 0; }
  .hero { padding: 64px 0 56px; }
  section.band { padding: 64px 0; }
  .stats > div { padding: 14px 0; border-left: none; border-top: 1px solid var(--line); }
  .stats > div:first-child { border-top: none; padding-top: 0; }
  .callout { padding: 44px 26px; }
  nav.links {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 22px 26px; gap: 20px; align-items: flex-start;
    box-shadow: var(--shadow-sm);
  }
  nav.links.open { display: flex; }
  #navToggle { display: block; }
}
