/* SaddlebagEMR marketing site */
:root {
  --leather: #2b180e;
  --saddle: #4a2814;
  --chestnut: #7a4424;
  --rust: #b5532a;
  --brass: #b98a3e;
  --brass-light: #d9b064;
  --sand: #d8b98c;
  --cream: #f3e8d3;
  --paper: #fbf6ec;
  --ink: #2a1a10;
  --ink-soft: #5d4636;
  --line: #d9c6a3;
  --display: "Rye", "Rockwell", "Georgia", serif;
  --serif: "Source Serif 4", "Georgia", serif;
  --label: "Jost", "Segoe UI", system-ui, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--rust); }
a:hover { color: var(--chestnut); }
h1, h2, h3, p { margin: 0; }
h2, h3 { text-wrap: balance; }
:focus-visible { outline: 3px solid var(--brass-light); outline-offset: 3px; border-radius: 4px; }
section[id] { scroll-margin-top: 76px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.label {
  font-family: var(--label);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.star { color: var(--brass); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--label);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brass); color: var(--leather); border-color: var(--brass); }
.btn-primary:hover { background: var(--brass-light); border-color: var(--brass-light); color: var(--leather); }
.btn-ghost { color: var(--cream); border-color: rgba(243, 232, 211, .6); }
.btn-ghost:hover { background: rgba(243, 232, 211, .12); color: #fff; border-color: var(--cream); }
.btn-dark { background: var(--saddle); color: var(--cream); border-color: var(--saddle); }
.btn-dark:hover { background: var(--chestnut); border-color: var(--chestnut); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--leather);
  border-bottom: 1px solid rgba(217, 176, 100, .35);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream); margin-right: auto; }
.brand-icon { width: 40px; height: 40px; }
.brand-word { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  font-family: var(--label); font-size: 15px; letter-spacing: .06em;
  color: var(--cream); text-decoration: none; opacity: .88;
}
.nav a:not(.btn):hover { opacity: 1; color: var(--brass-light); }
.site-header .btn { padding: 9px 16px; font-size: 13px; white-space: nowrap; }
.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; color: var(--cream);
  font-family: var(--label); font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
  padding: 9px 12px; border: 1px solid rgba(243, 232, 211, .4); border-radius: 6px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px;
  background: var(--leather); border: 1px solid rgba(217, 176, 100, .45); border-radius: 8px;
  padding: 8px; display: grid; box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}
.menu-panel a {
  color: var(--cream); text-decoration: none; padding: 12px 14px; border-radius: 6px;
  font-family: var(--label); font-size: 16px; letter-spacing: .04em;
}
.menu-panel a:hover { background: rgba(243, 232, 211, .1); }

/* ---------- Hero ---------- */
.hero { background: var(--leather); color: var(--cream); }
.hero-art { width: 100%; max-width: 1400px; height: auto; margin: 0 auto; }
.hero-copy { padding-top: clamp(30px, 4vw, 48px); padding-bottom: clamp(44px, 6vw, 72px); text-align: center; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.15;
  margin: 0 auto 16px;
  text-wrap: balance;
}
.hero p.lede { max-width: 40em; margin: 0 auto; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: #ecdcc0; }
.hero-cta { justify-content: center; display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 108px) 0; }
.section-cream { background: var(--cream); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .label { color: var(--rust); }
.section-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 3.800vw, 42px);
  line-height: 1.18;
  color: var(--saddle);
  margin: 12px 0 14px;
}
.section-head p { color: var(--ink-soft); font-size: 19px; }

.rule { display: flex; align-items: center; gap: 14px; color: var(--brass); margin: 0 auto; max-width: 260px; }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: currentColor; }

/* problem */
.split { display: grid; grid-template-columns: 1.050fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split .section-head { margin-bottom: 0; }
.ledger { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--saddle); }
.ledger li { display: flex; justify-content: space-between; gap: 18px; padding: 14px 2px; border-bottom: 1px solid var(--line); }
.ledger li span:last-child { font-family: var(--label); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--rust); white-space: nowrap; padding-top: 4px; }
.ledger li.keep span:last-child { color: #2f6b3c; }
.ledger-note { margin-top: 14px; font-size: 16px; color: var(--ink-soft); font-style: italic; }

/* features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px 26px 24px;
  box-shadow: 0 1px 0 #fff inset, 0 2px 10px rgba(74, 40, 20, .06);
  position: relative;
}
.card::before {
  content: ""; position: absolute; inset: 6px; border: 1px dashed rgba(122, 68, 36, .28);
  border-radius: 6px; pointer-events: none;
}
.card h3 { font-family: var(--display); font-weight: 400; font-size: 21px; color: var(--saddle); margin-bottom: 4px; }
.card .card-sub { font-style: italic; color: var(--ink-soft); font-size: 16.500px; margin-bottom: 12px; }
.card ul { margin: 0; padding: 0; list-style: none; font-size: 16.500px; line-height: 1.45; }
.card li { padding: 5px 0 5px 22px; position: relative; }
.card li::before { content: "★"; position: absolute; left: 0; top: 7px; font-size: 11px; color: var(--brass); }
.whitelabel {
  margin-top: 26px; padding: 30px clamp(22px, 4vw, 44px); border-radius: 10px; text-align: center;
  background: var(--leather); color: var(--cream); position: relative;
}
.whitelabel::before { content: ""; position: absolute; inset: 7px; border: 1px dashed rgba(217, 176, 100, .5); border-radius: 6px; pointer-events: none; }
.whitelabel .label { color: var(--brass-light); }
.whitelabel h3 { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 2.8vw, 30px); line-height: 1.2; margin: 10px 0; }
.whitelabel p:last-child { max-width: 44em; margin: 0 auto; color: #ecdcc0; font-size: 17px; }
.features-note { text-align: center; margin-top: 30px; color: var(--ink-soft); font-style: italic; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: step; border-top: 2px solid var(--saddle); padding-top: 18px; }
.steps li::before {
  content: counter(step);
  font-family: var(--display); font-size: 34px; color: var(--rust); display: block; line-height: 1; margin-bottom: 10px;
}
.steps h3 { font-family: var(--label); font-weight: 600; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; color: var(--saddle); margin-bottom: 6px; }
.steps p { font-size: 16.500px; color: var(--ink-soft); line-height: 1.5; }

/* records (leather) */
.leather {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(185, 138, 62, .16), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(181, 83, 42, .18), transparent 50%),
    var(--leather);
  color: var(--cream);
}
.leather .section-head .label { color: var(--brass-light); }
.leather .section-head h2 { color: var(--cream); }
.leather .section-head p { color: var(--sand); }
.pledges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pledge { border: 1px solid rgba(217, 176, 100, .4); border-radius: 10px; padding: 24px 26px; background: rgba(255, 255, 255, .03); }
.pledge h3 { font-family: var(--label); font-weight: 600; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; color: var(--brass-light); margin-bottom: 8px; }
.pledge p { color: #ecdcc0; font-size: 17px; line-height: 1.5; }
.fineprint { margin-top: 26px; font-size: 15px; color: var(--sand); opacity: .9; max-width: 820px; }

/* who */
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.who-col { border-radius: 10px; padding: 28px; border: 1px solid var(--line); background: var(--paper); }
.who-col h3 { font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--saddle); margin-bottom: 12px; }
.who-col ul { margin: 0; padding-left: 20px; font-size: 17px; }
.who-col li { padding: 3px 0; }
.who-col.not { background: transparent; border-style: dashed; }
.who-col.not h3 { color: var(--ink-soft); }
.who-col.not ul { color: var(--ink-soft); }

/* pricing */
.price-card {
  max-width: 880px; margin: 0 auto; background: var(--paper);
  border: 2px solid var(--saddle); border-radius: 12px; padding: clamp(26px, 4vw, 44px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); position: relative;
}
.price-card::before { content: ""; position: absolute; inset: 7px; border: 1px dashed rgba(122, 68, 36, .4); border-radius: 8px; pointer-events: none; }
.price-main .label { color: var(--rust); }
.price-main h3 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4vw, 40px); color: var(--saddle); line-height: 1.1; margin: 10px 0 12px; }
.price-main h3 small { font-family: var(--label); font-size: 14px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-left: 6px; }
.price-main p { color: var(--ink-soft); font-size: 17px; margin-bottom: 22px; }
.price-list { list-style: none; margin: 0; padding: 0; font-size: 17px; }
.price-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.price-list li:first-child { padding-top: 0; }
.price-list li:last-child { border-bottom: 0; }
.price-list strong { display: block; font-family: var(--label); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--saddle); }
.price-list span { color: var(--ink-soft); }

/* faq */
.faq { max-width: 820px; margin: 0 auto; border-top: 2px solid var(--saddle); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 2px; position: relative;
  font-weight: 600; font-size: 19px; color: var(--saddle);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 12px; font-family: var(--label); font-size: 28px; font-weight: 400; color: var(--rust); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 40px 20px 2px; color: var(--ink-soft); font-size: 17.500px; }
.faq details p + p { margin-top: -8px; }
.faq details p strong { color: var(--saddle); }

/* artwork */
.art { height: auto; }
.art-logo { mix-blend-mode: multiply; }
.art-bag { width: min(260px, 70%); margin: 0 0 18px -6px; }
.art-label { width: 150px; margin: 0 0 18px -4px; }
.art-doctor { float: right; width: clamp(130px, 17vw, 200px); margin: 0 0 20px 32px; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .45)); }
.art-logo { width: min(295px, 78%); margin: 0 auto; }
.banner { background: var(--leather); }
.banner img { width: 100%; height: auto; min-height: 88px; object-fit: cover; object-position: 48% 50%; }

/* closing */
.closing { background: var(--cream); text-align: center; padding-top: clamp(56px, 8vw, 88px); }
.closing p { max-width: 34em; margin: 22px auto 26px; color: var(--ink-soft); }
.strip {
  width: 100%; height: auto; min-height: 110px; margin-top: clamp(28px, 5vw, 56px);
  object-fit: cover; object-position: 80% 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 55%);
  mask-image: linear-gradient(to bottom, transparent, #000 55%);
}

/* footer */
.site-footer { background: var(--leather); color: var(--sand); padding: 40px 0 34px; font-size: 15px; }
.site-footer .wrap { display: grid; gap: 18px; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--label); letter-spacing: .05em; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--brass-light); text-decoration: underline; }
.foot-legal { border-top: 1px solid rgba(217, 176, 100, .25); padding-top: 18px; opacity: .85; line-height: 1.5; }

/* plain pages (privacy, 404) */
.page { padding: clamp(48px, 7vw, 84px) 0; }
.page .wrap { max-width: 780px; }
.page h1 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4vw, 42px); color: var(--saddle); line-height: 1.15; margin-bottom: 10px; }
.page h2 { font-family: var(--label); font-weight: 600; font-size: 18px; letter-spacing: .08em; text-transform: uppercase; color: var(--saddle); margin: 32px 0 8px; }
.page p, .page li { color: var(--ink-soft); }
.page p + p { margin-top: 12px; }
.page ul { margin: 10px 0 12px; padding-left: 22px; }
.page li + li { margin-top: 6px; }
.page .updated { font-style: italic; font-size: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .nav { display: none; }
  .menu { display: block; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 0 18px; }
  .grid, .steps, .pledges, .who, .price-card { grid-template-columns: 1fr; }
  .brand-icon { width: 34px; height: 34px; }
  .brand-word { height: 34px; }
  .site-header .wrap { gap: 10px; }
  .site-header .btn { display: none; }
  .hero-art { aspect-ratio: 5 / 4; object-fit: cover; object-position: 100% 50%; }
  .hero-copy { padding-top: 28px; padding-bottom: 44px; }
  .art-doctor { float: none; display: block; margin: 0 0 20px; }
  .hero-cta .btn { flex: 1 1 100%; text-align: center; }
  .ledger li { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
