/* PureBariatric.app — shared styles
   Calm clinical palette, no medical-device claims, no clinical-endorsement language. */

:root {
  --pb-forest: #1f4d3f;
  --pb-forest-dark: #163729;
  --pb-sand: #f7f3ec;
  --pb-cream: #fdfbf7;
  --pb-ink: #1a2520;
  --pb-muted: #5c6a64;
  --pb-line: #e1ddd4;
  --pb-accent: #d8a657;
  --pb-radius: 14px;
  --pb-maxw: 980px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--pb-ink);
  background: var(--pb-cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--pb-forest); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--pb-forest-dark); }

.wrap {
  max-width: var(--pb-maxw);
  margin: 0 auto;
  padding: 32px 24px;
}

header.site {
  background: var(--pb-forest);
  color: var(--pb-cream);
  padding: 18px 0;
}
header.site .wrap { padding-top: 0; padding-bottom: 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
header.site .brand { font-family: Georgia, "Times New Roman", serif; font-size: 22px; letter-spacing: 0.4px; }
header.site nav a { color: var(--pb-cream); margin-left: 22px; text-decoration: none; opacity: 0.9; font-size: 15px; }
header.site nav a:hover { opacity: 1; text-decoration: underline; }

footer.site {
  background: var(--pb-forest-dark);
  color: var(--pb-cream);
  padding: 28px 0;
  margin-top: 64px;
  font-size: 14px;
}
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer.site a { color: var(--pb-cream); opacity: 0.9; }

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; color: var(--pb-forest-dark); margin-top: 0; }
h1 { font-size: 38px; line-height: 1.15; }
h2 { font-size: 26px; margin-top: 36px; }
h3 { font-size: 19px; margin-top: 28px; }

.hero {
  background: linear-gradient(180deg, var(--pb-sand) 0%, var(--pb-cream) 100%);
  border-bottom: 1px solid var(--pb-line);
  padding: 56px 0 48px;
}
.hero h1 { margin-bottom: 12px; }
.hero .tagline { font-size: 20px; color: var(--pb-muted); margin-bottom: 28px; }
.hero .badges { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.appstore-badge {
  display: inline-flex;
  align-items: center;
  background: #000;
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  gap: 10px;
}
.appstore-badge small { display: block; font-size: 10px; opacity: 0.8; font-weight: 400; line-height: 1; margin-bottom: 2px; }
.appstore-badge strong { font-size: 17px; line-height: 1; }
.appstore-badge.disabled { opacity: 0.6; cursor: not-allowed; }

.btn-secondary {
  display: inline-block;
  padding: 11px 20px;
  border: 1.5px solid var(--pb-forest);
  border-radius: 10px;
  color: var(--pb-forest);
  text-decoration: none;
  font-weight: 500;
}
.btn-secondary:hover { background: var(--pb-forest); color: var(--pb-cream); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 32px 0; }
.card {
  background: #fff;
  border: 1px solid var(--pb-line);
  border-radius: var(--pb-radius);
  padding: 22px;
}
.card h3 { margin-top: 0; }

.callout {
  background: var(--pb-sand);
  border-left: 4px solid var(--pb-forest);
  padding: 18px 22px;
  border-radius: 6px;
  margin: 24px 0;
}
.callout strong { color: var(--pb-forest-dark); }

.screenshot-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 0;
  margin: 24px 0;
}
.screenshot-row .shot {
  flex: 0 0 220px;
  height: 460px;
  background: var(--pb-sand);
  border: 1px dashed var(--pb-line);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pb-muted);
  font-size: 13px;
  text-align: center;
  padding: 12px;
}

table.legal { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
table.legal th, table.legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--pb-line); vertical-align: top; }
table.legal th { background: var(--pb-sand); font-family: Georgia, serif; }

.toc { background: var(--pb-sand); border-radius: var(--pb-radius); padding: 18px 22px; margin: 20px 0 32px; }
.toc h3 { margin-top: 0; font-size: 16px; }
.toc ol { margin: 0; padding-left: 18px; }
.toc li { margin: 4px 0; }

.last-reviewed { color: var(--pb-muted); font-size: 14px; margin-top: 0; }

form.contact { display: grid; gap: 14px; max-width: 560px; margin-top: 24px; }
form.contact label { font-weight: 500; font-size: 14px; }
form.contact input, form.contact textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--pb-line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  background: #fff;
}
form.contact textarea { min-height: 130px; resize: vertical; }
form.contact button {
  background: var(--pb-forest);
  color: var(--pb-cream);
  border: 0;
  padding: 13px 22px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  justify-self: start;
}
form.contact button:hover { background: var(--pb-forest-dark); }

@media (max-width: 640px) {
  h1 { font-size: 30px; }
  header.site nav a { margin-left: 12px; font-size: 14px; }
  .hero { padding: 40px 0 32px; }
}
