/* CareGuideDaily — shared styles. Mobile-first. */
:root {
  --sage-50: #f3f6f1;
  --sage-100: #e5ede1;
  --sage-200: #cddbc6;
  --sage-500: #6f8f6a;
  --sage-600: #587653;
  --sage-700: #46603f;
  --warm-white: #fdfbf7;
  --beige: #efe7da;
  --beige-dark: #d9ccb6;
  --charcoal: #2b2f2c;
  --charcoal-soft: #4a504b;
  --error: #a63a2b;
  --error-bg: #fbeeea;
  --ok-bg: #e8f2e4;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 6px 24px rgba(43, 47, 44, 0.08);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Georgia", "Iowan Old Style", "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--warm-white);
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-700); text-underline-offset: 3px; }
a:hover { color: var(--charcoal); }

:focus-visible { outline: 3px solid #1f5fbf; outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--charcoal); color: #fff; padding: .75rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

.container { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(720px, 100% - 2.5rem); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; color: var(--charcoal); margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 7vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.15rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

/* Header */
.site-header { background: var(--warm-white); border-bottom: 1px solid var(--beige); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding: .9rem 0; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--charcoal); font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; }
.brand svg { width: 34px; height: 34px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: .85rem 1.75rem;
  background: var(--sage-700); color: #fff;
  border: 0; border-radius: 999px;
  font: 600 1.05rem/1.2 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: background .2s ease, transform .1s ease;
}
.btn:hover { background: var(--charcoal); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .65; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--sage-700); border: 2px solid var(--sage-700); }
.btn-ghost:hover { background: var(--sage-700); color: #fff; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--sage-50), var(--warm-white)); padding: 2.5rem 0 3rem; }
.hero-grid { display: grid; gap: 2.25rem; align-items: center; }
.hero .sub { font-size: 1.15rem; color: var(--charcoal-soft); }
.hero .support { color: var(--charcoal-soft); }
.disclosure { font-size: .9rem; color: var(--charcoal-soft); margin-top: .9rem; }
.hero-visual { display: flex; justify-content: center; }

/* PDF cover mockup */
.cover {
  width: min(300px, 80vw); aspect-ratio: 3 / 4;
  background: var(--warm-white);
  border-radius: 8px 14px 14px 8px;
  box-shadow: -6px 0 0 var(--sage-200), 0 18px 40px rgba(43,47,44,.18);
  padding: 1.6rem 1.4rem; display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid var(--beige-dark); position: relative; overflow: hidden;
  transform: rotate(-2deg);
}
.cover .kicker { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-700); font-weight: 600; }
.cover .cover-title { font-family: var(--font-head); font-size: 1.55rem; line-height: 1.2; margin: .6rem 0 0; }
.cover .cover-art { margin: 0 -1.4rem -1.6rem; }
.cover .cover-brand { font-size: .78rem; color: var(--charcoal-soft); }

/* Sections */
section { padding: 3.25rem 0; }
.section-alt { background: var(--beige); }
.section-sage { background: var(--sage-50); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2rem; }

.cards { display: grid; gap: 1.1rem; }
.card { background: #fff; border: 1px solid var(--beige); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--sage-100); display: grid; place-items: center; margin-bottom: .9rem; }
.card .icon svg { width: 24px; height: 24px; stroke: var(--sage-700); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card p { margin: 0; color: var(--charcoal-soft); }
.note { text-align: center; font-size: .95rem; color: var(--charcoal-soft); margin-top: 1.5rem; }

/* Form */
.form-card { background: #fff; border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); border: 1px solid var(--sage-200); }
.field { margin-bottom: 1.1rem; }
label { display: block; font-weight: 600; margin-bottom: .35rem; }
.optional { font-weight: 400; color: var(--charcoal-soft); }
input[type="text"], input[type="email"] {
  width: 100%; min-height: 52px; padding: .75rem 1rem;
  font: inherit; color: var(--charcoal);
  background: var(--warm-white); border: 2px solid var(--beige-dark); border-radius: var(--radius-sm);
}
input[type="text"]:focus, input[type="email"]:focus { border-color: var(--sage-600); outline: 3px solid rgba(31,95,191,.35); outline-offset: 1px; }
input[aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: .95rem; margin-top: .35rem; min-height: 1.2em; }
.check { display: flex; gap: .75rem; align-items: flex-start; margin: 1.1rem 0; }
.check input { width: 24px; height: 24px; margin-top: .2rem; flex: 0 0 auto; accent-color: var(--sage-700); }
.check label { font-weight: 400; margin: 0; }
.legal-small { font-size: .88rem; color: var(--charcoal-soft); margin-top: 1rem; }
.form-msg { border-radius: var(--radius-sm); padding: .9rem 1rem; margin-top: 1rem; font-size: .98rem; }
.form-msg[hidden] { display: none; }
.form-msg.error { background: var(--error-bg); color: var(--error); border: 1px solid #e8c3ba; }
.form-msg.info { background: var(--beige); color: var(--charcoal); border: 1px solid var(--beige-dark); }
.form-msg.success { background: var(--ok-bg); color: var(--sage-700); border: 1px solid var(--sage-200); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Preview */
.exercise { background: #fff; border-left: 6px solid var(--sage-500); border-radius: var(--radius-sm); padding: 1.5rem 1.5rem 1.5rem 1.75rem; box-shadow: var(--shadow); }
.exercise ol { padding-left: 1.3rem; margin: 0 0 1rem; }
.exercise li { margin-bottom: .35rem; }
.prompt { background: var(--sage-100); border-radius: var(--radius-sm); padding: 1.25rem 1.5rem; margin-top: 1.25rem; font-family: var(--font-head); font-size: 1.15rem; }
.prompt small { display: block; font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sage-700); margin-bottom: .35rem; }

/* Disclaimer */
.disclaimer { font-size: .92rem; color: var(--charcoal-soft); background: var(--beige); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; }
.disclaimer strong { color: var(--charcoal); }

/* Footer */
.site-footer { background: var(--charcoal); color: #e9e6df; padding: 2.25rem 0; font-size: .95rem; }
.site-footer a { color: #e9e6df; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-links a { display: inline-block; padding: .35rem 0; }
.site-footer small { color: #bdb9ae; display: block; }

/* Legal / text pages */
.page { padding: 2.5rem 0 3.5rem; }
.page h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); }
.page h2 { font-size: 1.35rem; margin-top: 2rem; }
.draft-banner { background: #fff4d6; border: 1px solid #e8d08a; color: #5b4a10; padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.75rem; font-size: .95rem; }
.ph { background: #fff4d6; padding: 0 .25rem; border-radius: 3px; }

/* Thank-you */
.thanks-box { text-align: center; padding: 1rem 0; }
.thanks-box .big-check { width: 72px; height: 72px; margin: 0 auto 1rem; border-radius: 50%; background: var(--sage-100); display: grid; place-items: center; }
.thanks-box .big-check svg { width: 36px; height: 36px; stroke: var(--sage-700); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.steps { text-align: left; max-width: 520px; margin: 1.5rem auto; padding-left: 1.3rem; }

/* Larger screens */
@media (min-width: 720px) {
  .hero { padding: 4rem 0 4.5rem; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 3rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  section { padding: 4.5rem 0; }
  .form-card { padding: 2.25rem; }
}
@media (min-width: 1000px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
}
@media print {
  .site-header, .btn, form, .skip-link { display: none; }
  body { background: #fff; }
}
