/* 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; }

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%;
}

/* ---------- Waitlist ---------- */

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

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

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

.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  max-width: 520px;
  margin: 2rem auto 0;
}

.waitlist-input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  border-radius: 4px;
  border: 2px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}

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

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

.waitlist-submit {
  flex: 0 0 auto;
}

.waitlist-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
  font-style: italic;
}

/* ---------- 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;
}

.gumroad-description-placeholder {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border);
  padding: 1.8rem;
  border-radius: 6px;
  color: var(--text-muted);
  font-style: italic;
  margin: 1rem 0 2rem;
}

.gumroad-description-placeholder strong {
  color: var(--gold);
  font-style: normal;
  display: block;
  margin-bottom: 0.5rem;
}

.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;
}

/* ---------- 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; }
}
