/* KoeFormula — styles.css
   Brand: Navy #1B5E8B, Gold #B8860B. Dark theme. */

:root {
  --navy: #1B5E8B;
  --navy-mid: #143F5E;
  --navy-deep: #0A1C2C;
  --navy-elevated: #122B40;
  --gold: #B8860B;
  --gold-bright: #D9A21A;
  --text: #ECECEC;
  --text-muted: #A8B6C2;
  --bg: #0A1929;
  --bg-elevated: #122B40;
  --border: rgba(184, 134, 11, 0.28);
  --border-soft: rgba(184, 134, 11, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* The [hidden] attribute must always win over display rules on any element. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  color: var(--text);
  line-height: 1.22;
  font-weight: 600;
}

h1 { font-size: 2.6rem; margin-bottom: 1rem; letter-spacing: -0.005em; }
h2 { font-size: 1.95rem; margin-bottom: 0.85rem; margin-top: 0.5rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.55rem; color: var(--gold); }
h4 { font-size: 1.05rem; margin-bottom: 0.4rem; color: var(--gold); }

p { margin-bottom: 1.15rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--gold-bright); text-decoration: none; }
a:hover { color: var(--gold); text-decoration: underline; }

strong { color: var(--text); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header / Nav ---------- */

.site-header {
  background: rgba(10, 25, 41, 0.92);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.brand {
  font-family: Georgia, serif;
  font-size: 1.35rem;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand:hover { color: var(--gold); text-decoration: none; }

.brand-mark { color: var(--gold); }

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.primary-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.primary-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.primary-nav a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  margin: -0.5rem -0.5rem -0.5rem 0;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.08s;
  font-family: inherit;
  text-align: center;
  line-height: 1.2;
}

.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--gold);
  color: #15110A;
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: #15110A;
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-secondary:hover {
  background: var(--gold);
  color: #15110A;
}

.btn-lg {
  padding: 1rem 1.9rem;
  font-size: 1.05rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
  margin-bottom: 0.5rem;
}

.cta-block {
  margin-top: 2rem;
}

/* ---------- Main / Sections ---------- */

main { padding-bottom: 4rem; }

section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--bg-elevated);
}

.section-divider {
  border: 0;
  border-top: 1px solid var(--border-soft);
  margin: 0;
}

.page-header {
  padding: 3rem 0 1rem;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 1rem;
}

.page-header h1 { margin-bottom: 0.5rem; }

.page-header .subhead {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 680px;
}

/* ---------- Hero (home) ---------- */

.hero {
  padding: 3.5rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-photo-wrap {
  background: linear-gradient(160deg, rgba(27,94,139,0.12), rgba(184,134,11,0.05));
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid var(--border-soft);
}

.hero-photo {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.12;
  margin-bottom: 1.25rem;
}

.hero .lead {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

/* ---------- Content blocks ---------- */

.content {
  max-width: 760px;
  margin: 0 auto;
}

.content p { font-size: 1.05rem; }

.content h2 { margin-top: 2.2rem; }
.content h2:first-child { margin-top: 0; }
.content h3 { margin-top: 1.6rem; }

/* ---------- Benefits list ---------- */

.benefits {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.benefits li {
  position: relative;
  padding-left: 1.85rem;
  margin-bottom: 0.95rem;
  font-size: 1.05rem;
  line-height: 1.55;
}

.benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 9px;
  height: 9px;
  background: var(--gold);
  border-radius: 50%;
}

/* ---------- Notify Me (coming-soon product waitlist) ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.notify-wrap {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border-soft);
}

.notify-label {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
}

.notify-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.notify-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s, background 0.15s;
}

.notify-input::placeholder {
  color: var(--text-muted);
}

.notify-input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
}

.product-card .notify-submit {
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  align-self: stretch;
}

.notify-success {
  margin-top: 0.5rem;
  padding: 0.85rem 1rem;
  background: rgba(184, 134, 11, 0.14);
  border: 1px solid var(--gold);
  border-radius: 4px;
  color: var(--text);
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.4;
}

.notify-error {
  margin-top: 0.5rem;
  padding: 0.75rem 0.9rem;
  background: rgba(200, 60, 60, 0.14);
  border: 1px solid #d05a5a;
  border-radius: 4px;
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* ---------- Vet summary text link ---------- */

.vet-link-inline {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.98rem;
  margin: 1rem 0 2rem;
}

/* ---------- Case series form ---------- */

.case-intro {
  border-left: 4px solid var(--gold);
  padding: 0.5rem 0 0.5rem 1.25rem;
  margin: 1rem 0 2.25rem;
  font-size: 1.05rem;
  color: var(--text);
  background: rgba(184, 134, 11, 0.04);
}

.case-intro p {
  margin-bottom: 0.9rem;
}

.case-intro p:last-child { margin-bottom: 0; }

.case-progress {
  position: sticky;
  top: 4.75rem;
  z-index: 10;
  background: var(--bg);
  padding: 0.85rem 0.9rem;
  margin: 2rem 0 1.5rem;
  border: 1px solid var(--border-soft);
  border-radius: 4px;
}

.case-progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.case-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gold);
  transition: width 0.25s ease-out;
}

.case-progress-label {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.02em;
}

.case-progress-label #case-progress-percent {
  color: var(--gold);
  font-weight: 600;
}

.case-fieldset {
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 1.5rem 1.25rem 1.75rem;
  margin: 1.5rem 0;
  background: rgba(255, 255, 255, 0.015);
}

.case-fieldset legend {
  padding: 0 0.6rem;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.case-legend-num {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-legend-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  color: var(--text);
}

.form-row .req {
  color: var(--gold);
  font-weight: 400;
  margin-left: 0.15rem;
}

.form-helper {
  font-size: 0.83rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.5rem;
  margin-bottom: 0;
  line-height: 1.5;
}

.form-row-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row-label {
  display: block;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 400;
  cursor: pointer;
  line-height: 1.5;
  padding: 0.15rem 0;
}

.form-checkbox input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
}

.form-checkbox-block {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.15s, background 0.15s;
}

.form-checkbox-block:hover {
  border-color: var(--border);
}

.case-fieldset-consent .form-checkbox-block:last-child {
  margin-bottom: 0;
}

.form-row-invalid input,
.form-row-invalid select,
.form-row-invalid textarea {
  border-color: #d05a5a;
  background: rgba(200, 60, 60, 0.06);
}

.form-row-invalid label {
  color: #e77a7a;
}

.form-error-msg {
  color: #e77a7a;
  font-size: 0.85rem;
  margin: 0.4rem 0 0;
  font-style: normal;
}

.form-summary-error {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  background: rgba(200, 60, 60, 0.12);
  border: 1px solid #d05a5a;
  border-radius: 4px;
  color: var(--text);
  font-size: 0.95rem;
}

.case-submit-row {
  margin-top: 2rem;
  text-align: center;
}

.case-success {
  margin: 2rem 0;
  padding: 2.5rem 1.75rem;
  background: rgba(184, 134, 11, 0.08);
  border: 1px solid var(--gold);
  border-radius: 6px;
  text-align: center;
}

.case-success .download-check {
  margin-bottom: 1.25rem;
}

.case-success h2 {
  margin-bottom: 1rem;
}

.case-success p {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0.9rem;
  line-height: 1.6;
}

.case-success p:last-child {
  margin-bottom: 0;
}

.case-closing {
  margin: 2.5rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .case-fieldset { padding: 1.25rem 1rem 1.5rem; }
  .case-progress { top: 0.5rem; }
}

/* ---------- Contact form ---------- */

.contact-section {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-soft);
  max-width: 620px;
}

.contact-section h2 {
  margin-bottom: 0.75rem;
}

.contact-section > p {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.form-row {
  margin-bottom: 1.1rem;
}

.form-row label {
  display: block;
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.15s, background 0.15s;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
}

.form-row select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='%23B8860B' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}

.form-row textarea {
  resize: vertical;
  min-height: 130px;
  font-family: inherit;
}

.contact-success,
.contact-error {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: 4px;
  text-align: center;
}

.contact-success {
  background: rgba(184, 134, 11, 0.12);
  border: 2px solid var(--gold);
  color: var(--text);
}

.contact-success p {
  margin-bottom: 0.4rem;
}

.contact-success p:last-child {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-error {
  background: rgba(200, 60, 60, 0.14);
  border: 2px solid #d05a5a;
  color: var(--text);
}

.contact-error p {
  margin-bottom: 0;
}

/* ---------- Legal content (Terms of Service, etc.) ---------- */

.legal-content h2 {
  margin-top: 2.4rem;
  color: var(--gold);
  font-size: 1.35rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  font-size: 1rem;
}

.legal-list {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 1rem 0 1.2rem;
}

.legal-list li {
  margin-bottom: 0.7rem;
  font-size: 1rem;
}

.legal-address {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  border-left: 3px solid var(--gold);
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
  margin: 1rem 0 1.5rem;
  line-height: 1.55;
}

.legal-divider {
  border: 0;
  border-top: 1px solid var(--border-soft);
  margin: 2.75rem 0 1.75rem;
}

/* Footer links row (TOS, etc.) */
.site-footer .footer-links {
  margin-top: 0.8rem;
  font-size: 0.85rem;
}

.site-footer .footer-links a {
  color: var(--gold-bright);
}

.site-footer .footer-links a:hover {
  color: var(--gold);
}

/* ---------- Download page (post-purchase) ---------- */

.download-section {
  padding: 4rem 0 3rem;
  text-align: center;
}

.download-check {
  width: 78px;
  height: 78px;
  margin: 0 auto 1.5rem;
  border: 3px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1;
}

.download-section h1 {
  font-size: 2.4rem;
  margin-bottom: 1.25rem;
}

.download-section .lead {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 2rem;
}

.download-descriptor {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.download-descriptor strong {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.download-cta {
  margin: 2rem 0 1.5rem;
}

.download-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  max-width: 620px;
  margin: 0 auto 3rem;
}

.download-secondary {
  text-align: left;
  border-top: 1px solid var(--border-soft);
  padding-top: 2rem;
  margin-top: 2.5rem;
}

.download-secondary h2 {
  font-size: 1.3rem;
  color: var(--gold);
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}

.download-secondary h2:first-child {
  margin-top: 0;
}

.download-signoff {
  margin-top: 1.5rem;
  font-family: Georgia, serif;
  color: var(--gold);
  font-size: 1.05rem;
}

/* ---------- Koe's record (homepage) ---------- */

.record-section {
  padding: 3.5rem 0;
}

.record-header {
  text-align: center;
  margin-bottom: 2rem;
}

.record-header h2 {
  margin-bottom: 0.35rem;
}

.record-subline {
  color: var(--text-muted);
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 0;
}

.record-list {
  max-width: 680px;
  margin: 0 auto;
}

.record-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  column-gap: 1.5rem;
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--border-soft);
  border-left: 3px solid transparent;
  align-items: baseline;
}

.record-row:last-of-type {
  border-bottom: 0;
}

.record-row dt {
  color: var(--text-muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.record-row dd {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
}

.record-row-gap {
  padding: 0.55rem 0.9rem;
}

.record-row-gap dt {
  text-align: center;
  font-size: 1.5rem;
  color: var(--text-muted);
  opacity: 0.55;
  letter-spacing: 0.15em;
}

.record-row-gap dd {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.92rem;
}

.record-row-pivot {
  border-left-color: var(--gold);
  background: rgba(184, 134, 11, 0.06);
}

.record-row-pivot dt,
.record-row-pivot dd {
  color: var(--gold);
  font-weight: 600;
}

.record-caption {
  max-width: 680px;
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-style: italic;
  text-align: center;
  line-height: 1.55;
}

@media (max-width: 600px) {
  .record-row {
    grid-template-columns: 1fr;
    row-gap: 0.35rem;
    padding: 1rem 0.9rem;
  }

  .record-row dt {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
  }

  .record-row-gap dt {
    text-align: left;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0.15em;
    font-size: 1.4rem;
  }

  .record-row-pivot dt {
    color: var(--gold);
  }
}

/* ---------- Shop / product grid ---------- */

.shop-section {
  padding: 3.5rem 0;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
  text-align: center;
}

.shop-section h2 { font-size: 2.1rem; }

.shop-section .lead {
  max-width: 620px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  text-align: left;
}

.product-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.product-image-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f0efeb;
  border-radius: 4px;
  margin-bottom: 1.25rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-card h3 {
  color: var(--text);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.product-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.product-price {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
}

.product-spec {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
  margin-top: -0.75rem;
  margin-bottom: 1.1rem;
}

.product-card .btn {
  align-self: flex-start;
}

.coming-soon-badge {
  display: inline-block;
  padding: 0.55rem 1rem;
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  align-self: flex-start;
  margin-bottom: 0.75rem;
}

.product-note {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-style: italic;
  margin-bottom: 0;
}

@media (max-width: 860px) {
  .product-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ---------- Journal table ---------- */

.table-wrap { overflow-x: auto; margin: 1.8rem 0; }

.journal-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-elevated);
  border-radius: 6px;
  overflow: hidden;
  font-size: 1rem;
}

.journal-table th,
.journal-table td {
  padding: 0.95rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}

.journal-table thead th {
  background: rgba(27, 94, 139, 0.45);
  color: var(--gold);
  font-family: Georgia, serif;
  font-weight: 600;
  font-size: 1rem;
}

.journal-table tr:last-child td { border-bottom: 0; }

.journal-table td:first-child,
.journal-table th:first-child {
  font-weight: 600;
  color: var(--text);
  background: rgba(27, 94, 139, 0.18);
}

/* ---------- Callout / pull quote ---------- */

.callout {
  border-left: 4px solid var(--gold);
  padding: 1.3rem 1.6rem;
  background: var(--bg-elevated);
  margin: 2.2rem 0;
  font-size: 1.05rem;
  color: var(--text);
  border-radius: 0 4px 4px 0;
}

.callout strong { color: var(--gold); }

.callout-quiet {
  border-left-color: var(--navy);
  background: rgba(27, 94, 139, 0.15);
  font-style: italic;
  color: var(--text-muted);
}

.callout-quiet strong { color: var(--text); }

/* ---------- Disclaimer ---------- */

.disclaimer {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  border-top: 1px solid var(--border-soft);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
  max-width: 800px;
}

/* ---------- About page ---------- */

.about-photo-wrap {
  max-width: 380px;
  margin: 0 auto 2.5rem;
  background: linear-gradient(160deg, rgba(27,94,139,0.12), rgba(184,134,11,0.05));
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border-soft);
}

.signoff {
  margin-top: 2.5rem;
  font-family: Georgia, serif;
  font-size: 1.05rem;
  color: var(--gold);
}

/* ---------- eBook page ---------- */

.ebook-hero {
  text-align: center;
  padding: 3rem 0 2rem;
}

.ebook-hero .ebook-photo-wrap {
  max-width: 360px;
  margin: 0 auto 2rem;
  background: linear-gradient(160deg, rgba(27,94,139,0.12), rgba(184,134,11,0.05));
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border-soft);
}

.ebook-hero h1 { margin-bottom: 0.3rem; }

.ebook-hero .subtitle {
  font-family: Georgia, serif;
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.price-tag {
  font-size: 1.3rem;
  color: var(--gold);
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
  font-family: Georgia, serif;
}

.download-note {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.ebook-description {
  margin: 1rem 0 2.5rem;
}

.ebook-description p {
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}

.ebook-description p:last-child {
  margin-bottom: 0;
}

.toc {
  margin: 1.5rem 0;
}

.toc-item {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border-soft);
}

.toc-item:last-child { border-bottom: 0; }

.toc-item h3 {
  margin-bottom: 0.35rem;
}

.toc-item p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.98rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #060F1A;
  border-top: 1px solid var(--border-soft);
  padding: 2.5rem 0 2rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer p { margin-bottom: 0.7rem; }
.site-footer .footer-disclaimer {
  max-width: 760px;
  font-style: italic;
  font-size: 0.85rem;
}

.site-footer .footer-meta {
  font-size: 0.85rem;
  margin-top: 1rem;
}

.site-footer .footer-meta + .footer-meta {
  margin-top: 0.2rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-photo-wrap { max-width: 420px; margin: 0 auto; }
  .hero h1 { font-size: 2.4rem; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.15rem; }

  .hero { padding: 2rem 0 1.5rem; }
  .hero h1 { font-size: 2rem; }
  .hero .lead { font-size: 1.05rem; }

  section { padding: 2.5rem 0; }

  .nav-toggle { display: block; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border-soft);
    display: none;
  }
  .primary-nav.open { display: block; }

  .primary-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.5rem;
    align-items: stretch;
  }

  .primary-nav li {
    border-bottom: 1px solid rgba(184, 134, 11, 0.08);
  }
  .primary-nav li:last-child { border-bottom: 0; }

  .primary-nav a {
    display: block;
    padding: 0.9rem 0;
    border-bottom: 0;
  }
  .primary-nav a.active { border-bottom: 0; }

  .journal-table { font-size: 0.92rem; }
  .journal-table th, .journal-table td { padding: 0.7rem 0.7rem; }

  .callout { padding: 1.1rem 1.2rem; }
}

@media (max-width: 460px) {
  .hero h1 { font-size: 1.8rem; }
  .cta-group .btn { width: 100%; }
  .btn-lg { padding: 0.95rem 1.4rem; font-size: 1rem; }
}
