/* ── Design tokens — warm editorial palette ──
   Ink on paper with a muted sage accent; bronze is reserved for Pro "✦"
   markers and the founding-member card only. */
:root {
  --ink:          #2B2926;   /* warm near-black — body text, primary buttons */
  --ink-soft:     #403C37;   /* hover state for ink fills */
  --paper:        #FAF8F4;   /* warm off-white page background */
  --surface:      #FFFFFF;   /* cards */
  --accent:       #7A8B6F;   /* muted sage — links, highlights, timeline accents */
  --accent-dark:  #5F7057;
  --accent-soft:  #F0F2EC;   /* ~10% sage tint for backgrounds/badges */
  --gold:         #B08D57;   /* bronze — Pro ✦ + founding card ONLY */
  --gold-soft:    #F6F0E6;

  /* legacy aliases (rules below reference these) */
  --text:         var(--ink);
  --muted:        #726C63;
  --border:       #E5E1DA;
  --border-input: #D6D0C6;
  --bg:           var(--paper);
  --white:        var(--surface);
  --danger:       #C25B4E;
  --success:      #5F7057;
  --warning:      #B08D57;
  --radius:       8px;
  --shadow:       0 1px 3px rgba(43,41,38,.07), 0 1px 2px rgba(43,41,38,.04);
  --shadow-md:    0 4px 6px -1px rgba(43,41,38,.09), 0 2px 4px -1px rgba(43,41,38,.05);
}

/* ── Display face: Fraunces (self-hosted, variable weight) ── */
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces-latin-wght.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
.display, .hero h1, .steps h2, .band h2, .features h2, .pricing h2, .faq h2,
.cta-band h2, .app-wrap h1, .auth-card h2, .dash-header h1, .modal h3 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 560;
  letter-spacing: -.01em;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
body   { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; color: var(--text); background: var(--bg); line-height: 1.55; font-size: 15px; }
h1,h2,h3,h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; }
p      { margin: 0 0 1em; }
a      { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
ul     { margin: 0; padding: 0; list-style: none; }
img    { display: block; max-width: 100%; }

/* ── Layout ── */
.container { max-width: 780px; margin: 0 auto; padding: 0 20px; }
.container--wide { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* ── Navigation ── */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}
.nav__logo {
  font-size: 17px;
  font-weight: 700;
  color: var(--accent-dark);
  text-decoration: none;
}
.nav__logo span { color: var(--text); }
.nav__links { display: flex; align-items: center; gap: 8px; }
.nav__links a { font-size: 14px; font-weight: 500; color: var(--muted); padding: 6px 10px; border-radius: 6px; }
.nav__links a:hover { color: var(--text); background: var(--bg); text-decoration: none; }
/* Buttons in the nav: out-specify the muted link color so button text renders correctly */
.nav__links a.btn { padding: 6px 12px; font-weight: 600; }
.nav__links a.btn--primary,
.nav__links a.btn--primary:hover { color: var(--paper); }
.nav__links a.btn--secondary { color: var(--text); }
.nav__links a.btn--secondary:hover { color: var(--text); background: var(--bg); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s;
  text-decoration: none;
}
.btn--primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--primary:hover { background: var(--ink-soft); border-color: var(--ink-soft); text-decoration: none; color: var(--paper); }
.btn--secondary { background: var(--white); color: var(--text); border-color: var(--border-input); }
.btn--secondary:hover { background: var(--bg); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--accent-dark); border-color: transparent; }
.btn--ghost:hover { background: var(--accent-soft); text-decoration: none; }
.btn--danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn--danger:hover { background: #A94B3F; text-decoration: none; color: #fff; }
.btn--full { width: 100%; }
.btn--sm { padding: 6px 12px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Key contacts modal: dynamic role/value rows ── */
.ct-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.ct-row__label { flex: 0 0 38%; min-width: 0; }
.ct-row__value { flex: 1; min-width: 0; }
.ct-row__del {
  border: none;
  background: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  padding: 4px 6px;
}
.ct-row__del:hover { color: var(--danger); }

/* ── Golden-hour lighting note (Pro) ── */
.lighting-note {
  font-size: 14px;
  line-height: 1.5;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 14px;
  border: 1px solid var(--border);
  background: var(--white);
}
.lighting-note--good   { background: var(--accent-soft); border-color: #C9D2BF; color: #4A5741; }
.lighting-note--warn   { background: var(--gold-soft); border-color: #E3D3B8; color: #7A5F37; }
.lighting-note--locked { background: var(--accent-soft); border-color: #D3D9CB; color: var(--accent-dark); }

/* ── Card ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.card--flat { box-shadow: none; }

/* ── Form elements ── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--text); }
.form-input, .form-select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border-input);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 3px rgba(122,139,111,.18);
}
.form-check { display: flex; align-items: center; gap: 9px; margin: 10px 0; }
.form-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent-dark); cursor: pointer; flex-shrink: 0; }
.form-check label { font-size: 14px; cursor: pointer; margin: 0; }
.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-row > .form-group { flex: 1; min-width: 150px; }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* Venue/city search dropdown (Nominatim autocomplete on app.html) */
.geo-results {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 50;
  background: var(--white); border: 1px solid var(--border-input);
  border-radius: 8px; box-shadow: var(--shadow-md);
  margin-top: 4px; overflow: hidden;
}
.geo-result {
  display: block; width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  font-size: 13px; font-family: inherit; color: var(--text);
  padding: 9px 12px; border-bottom: 1px solid var(--border);
}
.geo-result:last-child { border-bottom: none; }
.geo-result:hover, .geo-result:focus { background: var(--bg); }
.form-error { font-size: 13px; color: var(--danger); margin-top: 6px; display: none; }
.form-error.show { display: block; }

/* ── Alerts ── */
.alert { padding: 11px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 14px; display: none; }
.alert.show { display: block; }
.alert--success { background: var(--accent-soft); border: 1px solid #C9D2BF; color: #4A5741; }
.alert--error   { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
.alert--info    { background: var(--accent-soft); border: 1px solid #C9D2BF; color: #4A5741; }
.alert--warning { background: var(--gold-soft); border: 1px solid #E3D3B8; color: #7A5F37; }

/* ── Badge ── */
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.badge--pro { background: var(--accent); color: #fff; }
.badge--free { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 999;
  padding: 20px;
  display: none;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--white);
  border-radius: 14px;
  padding: 28px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-md);
}
.modal h3 { margin: 0 0 8px; font-size: 18px; }
.modal p  { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.modal__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ═══════════════════════════════════════════
   LANDING PAGE
══════════════════════════════════════════ */
.hero {
  text-align: center;
  padding: 72px 20px 60px;
  background: linear-gradient(180deg, #F3F1EA 0%, var(--bg) 100%);
}
.hero__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 46px);
  max-width: 640px;
  margin: 0 auto 16px;
  color: var(--text);
}
.hero p {
  font-size: 17px;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 32px;
}
.hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero__note { font-size: 12px; color: var(--muted); margin-top: 14px; }

.steps { padding: 60px 20px; }
.steps h2 { text-align: center; font-size: 24px; margin-bottom: 36px; }
.steps__grid { display: flex; gap: 24px; flex-wrap: wrap; }
.step { flex: 1; min-width: 200px; text-align: center; padding: 0 12px; }
.step__num {
  width: 36px; height: 36px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.step h3 { font-size: 15px; margin-bottom: 6px; }
.step p  { font-size: 14px; color: var(--muted); margin: 0; }

.pricing { background: var(--white); padding: 60px 20px; border-top: 1px solid var(--border); }
.pricing h2 { text-align: center; font-size: 24px; margin-bottom: 8px; }
.pricing__sub { text-align: center; color: var(--muted); font-size: 15px; margin-bottom: 40px; }
.pricing__grid { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.pricing__card {
  flex: 1; min-width: 260px; max-width: 340px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  background: var(--white);
}
.pricing__card--pro {
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 2px rgba(79,70,229,.15);
}
.pricing__tier { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.pricing__card--pro .pricing__tier { color: var(--accent-dark); }
.pricing__price { font-size: 36px; font-weight: 800; margin-bottom: 4px; }
.pricing__price span { font-size: 16px; font-weight: 500; color: var(--muted); }
.pricing__alt { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.pricing__features { margin-bottom: 24px; }
.pricing__features li {
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px solid var(--bg);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.pricing__features li::before { content: "✓"; color: var(--success); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.pricing__features li.disabled { color: var(--muted); }
.pricing__features li.disabled::before { content: "—"; color: var(--border-input); }

.landing-footer {
  padding: 28px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.landing-footer a { color: var(--muted); margin: 0 8px; }

/* ═══════════════════════════════════════════
   APP PAGE — the tool
══════════════════════════════════════════ */
.app-wrap { max-width: 980px; margin: 0 auto; padding: 28px 20px 60px; }
.app-wrap h1 { font-size: 22px; margin: 0 0 4px; }
.app-wrap .sub { color: var(--muted); font-size: 14px; margin: 0 0 22px; }

/* One wrapping grid of equal-width action buttons — no lone stretched row */
.tool-toolbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(138px, 1fr)); gap: 8px; margin: 8px 0 16px; }
.tool-toolbar .btn { width: 100%; padding-left: 8px; padding-right: 8px; white-space: nowrap; }

#timeline, #secondlist, #contactslist { width: 100%; border-collapse: collapse; font-size: 14px; }
#timeline td, #secondlist td, #contactslist td { padding: 8px 6px; border-bottom: 1px solid #f0f0f3; vertical-align: middle; }
#timeline td.t, #secondlist td.t, #contactslist td.t { width: 96px; font-weight: 700; color: var(--accent-dark); white-space: nowrap; }
#contactslist td.t { width: auto; min-width: 110px; padding-right: 16px; }
#timeline td.d { color: var(--muted); font-size: 12px; white-space: nowrap; width: 64px; }
#timeline td.del, #secondlist td.del, #contactslist td.del { width: 28px; text-align: right; }
#timeline td.del button, #secondlist td.del button, #contactslist td.del button {
  background: none; border: none; color: var(--muted); font-size: 16px;
  cursor: pointer; padding: 0 4px; opacity: .3; transition: opacity .15s;
  line-height: 1;
}
#timeline tr:hover td.del button, #secondlist tr:hover td.del button, #contactslist tr:hover td.del button { opacity: 1; }
#timeline tr:hover td.del button:hover, #secondlist tr:hover td.del button:hover, #contactslist tr:hover td.del button:hover { color: var(--danger); }

/* Computed "coverage ends" footer row — the visible math line */
#timeline tr.cov-end td { border-top: 2px solid var(--border-input); border-bottom: none; color: var(--muted); font-size: 12.5px; font-style: italic; padding-top: 10px; }
#timeline tr.cov-end td.t { color: var(--muted); font-style: normal; }

/* ── Editable affordance: anything you can click-and-retype carries a dashed
   underline all the time, brightens on hover, and gets a clear focus ring.
   (Stripped in print + PDF export below.) ── */
[contenteditable="true"] {
  cursor: text;
  text-decoration: underline dashed rgba(114,108,99,.5);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
[contenteditable]:focus { outline: 2px solid var(--accent-dark); outline-offset: 2px; border-radius: 3px; text-decoration: none; }
[contenteditable]:hover:not(:focus) { background: var(--accent-soft); border-radius: 3px; text-decoration-color: var(--accent-dark); }

.add-row-btn {
  background: none; border: 1px dashed var(--border-input); color: var(--muted);
  border-radius: 6px; padding: 6px 12px; font-size: 13px; cursor: pointer;
  width: 100%; margin-top: 8px; transition: border-color .15s, color .15s;
}
.add-row-btn:hover { border-color: var(--accent-dark); color: var(--accent-dark); }

.shot-section { margin-bottom: 4px; }
/* Shot list: multi-column on wider screens, each phase group kept whole.
   Mobile, print, and PDF export stay single-column. */
@media (min-width: 768px) {
  #shotlist { column-count: 2; column-gap: 32px; }
  #shotlist .shot-section { break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid; }
}
@media (min-width: 1200px) {
  #shotlist { column-count: 3; }
}
@media print {
  #shotlist { column-count: 1 !important; }
}
.out.pdf-mode #shotlist { column-count: 1 !important; }
.phase {
  font-weight: 700; font-size: 13px; margin: 14px 0 4px; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between;
}
.phase-name { flex: 1; }
.phase-name[contenteditable]:focus { outline: 2px solid var(--accent-dark); outline-offset: 2px; border-radius: 3px; }
.shots { padding-left: 18px; font-size: 14px; color: var(--ink); list-style: disc; }
.shots li { margin: 3px 0; display: flex; align-items: flex-start; gap: 4px; }
.shots li span { flex: 1; }
.shots li .del-shot {
  background: none; border: none; color: var(--muted); font-size: 14px;
  cursor: pointer; padding: 0 3px; opacity: .3; transition: opacity .15s; line-height: 1; flex-shrink: 0;
}
.shots li:hover .del-shot { opacity: 1; }
.shots li:hover .del-shot:hover { color: var(--danger); }
.add-shot-btn {
  background: none; border: none; color: var(--muted); font-size: 12px;
  cursor: pointer; padding: 2px 0 2px 18px; transition: color .15s;
}
.add-shot-btn:hover { color: var(--accent-dark); }

.save-bar {
  background: var(--accent-soft);
  border: 1px solid #C9D2BF;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  flex-wrap: wrap;
}
.save-bar p { font-size: 14px; color: #4A5741; margin: 0; }

.foot { font-size: 12px; color: var(--muted); text-align: center; margin-top: 8px; }

/* ═══════════════════════════════════════════
   AUTH PAGE
══════════════════════════════════════════ */
.auth-wrap {
  min-height: calc(100vh - 57px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 32px; width: 100%; max-width: 400px; box-shadow: var(--shadow-md); }
.auth-card h2 { font-size: 22px; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.auth-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.auth-tab {
  padding: 8px 16px;
  font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; background: none; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: color .15s, border-color .15s;
}
.auth-tab.active { color: var(--accent-dark); border-bottom-color: var(--accent-dark); }
.auth-tab:hover { color: var(--text); }
.auth-divider { text-align: center; color: var(--muted); font-size: 13px; margin: 16px 0; }
.auth-footer { text-align: center; font-size: 13px; color: var(--muted); margin-top: 20px; }

/* ═══════════════════════════════════════════
   DASHBOARD PAGE
══════════════════════════════════════════ */
.dash-wrap { max-width: 780px; margin: 0 auto; padding: 32px 20px 60px; }
.dash-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.dash-header h1 { font-size: 22px; margin: 0; }
.plan-grid { display: flex; flex-direction: column; gap: 12px; }
.plan-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.plan-card__info h3 { font-size: 15px; margin: 0 0 2px; }
.plan-card__info p  { font-size: 12px; color: var(--muted); margin: 0; }
.plan-card__actions { display: flex; gap: 8px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state h3 { font-size: 17px; color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: 14px; margin-bottom: 20px; }

/* ── Upgrade prompt banner ── */
.upgrade-banner {
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.upgrade-banner h3 { font-size: 16px; margin: 0 0 4px; }
.upgrade-banner p  { font-size: 13px; margin: 0; opacity: .85; }
.upgrade-banner .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); flex-shrink: 0; }
.upgrade-banner .btn:hover { background: var(--accent-soft); text-decoration: none; }
/* Demoted banner once a free user has a saved plan — the plan card leads */
.upgrade-banner--slim { padding: 10px 16px; }
.upgrade-banner--slim h3 { font-size: 13.5px; margin: 0; }
.upgrade-banner--slim p { display: none; }
.upgrade-banner--slim .btn { padding: 5px 12px; font-size: 12.5px; }

/* ── Spinner ── */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Section separator ── */
.section-head { font-size: 15px; font-weight: 700; margin: 18px 0 10px; padding-bottom: 6px; border-bottom: 2px solid #eef0f4; }
.section-head::before {
  content: ""; display: inline-block; width: 8px; height: 8px;
  border-radius: 2px; background: var(--accent); margin-right: 8px;
}

/* ── Generated-output reveal — rows fade in like the generator just ran
   (mirrors the homepage demo card). Rows past the stagger window share the
   final delay so nothing appears out of order. ── */
#timeline tr, .shot-section {
  animation: out-row-in .3s ease both;
  animation-delay: .36s;
}
#timeline tr:nth-child(1), .shot-section:nth-child(1) { animation-delay: 0s; }
#timeline tr:nth-child(2), .shot-section:nth-child(2) { animation-delay: .04s; }
#timeline tr:nth-child(3), .shot-section:nth-child(3) { animation-delay: .08s; }
#timeline tr:nth-child(4), .shot-section:nth-child(4) { animation-delay: .12s; }
#timeline tr:nth-child(5), .shot-section:nth-child(5) { animation-delay: .16s; }
#timeline tr:nth-child(6), .shot-section:nth-child(6) { animation-delay: .20s; }
#timeline tr:nth-child(7), .shot-section:nth-child(7) { animation-delay: .24s; }
#timeline tr:nth-child(8), .shot-section:nth-child(8) { animation-delay: .28s; }
#timeline tr:nth-child(9), .shot-section:nth-child(9) { animation-delay: .32s; }
@keyframes out-row-in {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: none; }
}
/* Never animate in PDF export, print, or for reduced-motion users */
.out.pdf-mode #timeline tr, .out.pdf-mode .shot-section { animation: none !important; }
@media print {
  #timeline tr, .shot-section { animation: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  #timeline tr, .shot-section { animation: none !important; }
}

/* ── Tactile button press ── */
.btn:active:not(:disabled) { transform: translateY(1px); }

/* ═══════════════════════════════════════════
   PRINT STYLES
══════════════════════════════════════════ */
@media print {
  .nav, .tool-toolbar, .save-bar, .add-row-btn, .add-shot-btn, .del-shot, #generate-btn, .foot { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 1px solid #ddd; }
  .app-wrap { padding: 0; max-width: 100%; }
  [contenteditable] { outline: none !important; text-decoration: none !important; }
  .pdf-brand { display: block !important; }
  /* photographer coaching never prints; sun-times line only if not opted out */
  .lighting-advice, .lighting-note__toggle, .lighting-note--exclude { display: none !important; }
  .lighting-note--good, .lighting-note--warn { background: #fff; border-color: #ddd; color: inherit; }
}
.pdf-brand {
  display: none;
  text-align: center;
  font-size: 11px;
  color: #aaa;
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

/* ── PDF export mode ──
   html2canvas ignores @media print, so exportPDF() toggles .pdf-mode on #out
   to hide interactive chrome (buttons, save bar) in the rendered PDF. */
.out.pdf-mode .tool-toolbar,
.out.pdf-mode .save-bar,
.out.pdf-mode .add-row-btn,
.out.pdf-mode .add-shot-btn,
.out.pdf-mode .del-shot,
.out.pdf-mode td.del,
.out.pdf-mode .foot { display: none !important; }
.out.pdf-mode [contenteditable] { outline: none !important; text-decoration: none !important; }
/* Exports drop the photographer-facing advice + toggle; the whole sun-times
   note drops too when the photographer opted it out. A warning-state note
   also loses its amber tint — the warning text isn't there to explain it. */
.out.pdf-mode .lighting-advice,
.out.pdf-mode .lighting-note__toggle,
.out.pdf-mode .lighting-note--exclude { display: none !important; }
.out.pdf-mode .lighting-note--good,
.out.pdf-mode .lighting-note--warn { background: var(--white); border-color: var(--border); color: inherit; }

/* screen-only toggle line inside the lighting note */
.lighting-note__toggle {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  color: inherit;
  opacity: .65;
}
.lighting-note__toggle:hover { opacity: .9; }

/* ── Branded PDF header (Pro custom branding) ── */
.pdf-header {
  display: none;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 3px solid var(--accent);
}
.pdf-header.show { display: flex; }
.pdf-header img { max-height: 52px; max-width: 180px; }
.pdf-header__name { font-size: 18px; font-weight: 700; }
.pdf-header__sub  { font-size: 12px; color: var(--muted); }
.pdf-header__contact { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* Photographer's closing note — only in branded exports/prints */
.pdf-footer {
  display: none;
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: var(--ink-soft, var(--muted));
  font-style: italic;
}
.out.pdf-mode .pdf-footer.has-note { display: block; }
@media print { .pdf-footer.has-note { display: block; } }

/* ═══════════════════════════════════════════
   LANDING PAGE (index.html) EXTRAS
══════════════════════════════════════════ */

/* Split hero: copy left, sample timeline right */
.hero--split { text-align: left; padding: 64px 20px 68px; }
.hero__cols { display: flex; align-items: center; gap: 48px; }
.hero__copy { flex: 1 1 340px; min-width: 0; }
.hero--split h1 { margin: 0 0 16px; max-width: none; }
.hero--split .hero__copy > p { margin: 0 0 28px; max-width: 520px; }
.hero--split .hero__cta { justify-content: flex-start; }
.hero__demo { flex: 1 1 380px; min-width: 0; }

/* The signature element: a real-looking generated timeline */
.demo-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 18px 20px 14px;
  max-width: 460px;
  margin: 0 auto;
}
.demo-card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-bottom: 10px; margin-bottom: 6px;
  border-bottom: 2px solid var(--accent-soft);
  flex-wrap: wrap;
}
.demo-card__title { font-size: 14px; font-weight: 700; }
.demo-card__tag {
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent-dark); background: var(--accent-soft);
  padding: 3px 9px; border-radius: 99px; white-space: nowrap;
}
.demo-row {
  display: flex; gap: 12px; align-items: baseline;
  font-size: 13.5px; padding: 6px 2px;
  border-bottom: 1px solid #f0f0f3;
  animation: demo-row-in .4s ease both;
}
.demo-row:nth-child(2)  { animation-delay: .05s; }
.demo-row:nth-child(3)  { animation-delay: .12s; }
.demo-row:nth-child(4)  { animation-delay: .19s; }
.demo-row:nth-child(5)  { animation-delay: .26s; }
.demo-row:nth-child(6)  { animation-delay: .33s; }
.demo-row:nth-child(7)  { animation-delay: .40s; }
.demo-row:nth-child(8)  { animation-delay: .47s; }
.demo-row:nth-child(9)  { animation-delay: .54s; }
.demo-row__time { font-weight: 700; color: var(--accent-dark); white-space: nowrap; width: 62px; flex-shrink: 0; }
.demo-row--gold {
  background: var(--gold-soft); border-bottom-color: #E3D3B8;
  border-radius: 6px; margin: 0 -6px; padding: 6px 8px;
}
.demo-row--gold .demo-row__time { color: #8A6A3B; }
.demo-row__label {
  font-style: normal; font-size: 11px; font-weight: 700; color: #8A6A3B;
  background: #EFE3CD; border-radius: 99px; padding: 1px 7px; margin-left: 6px;
  white-space: nowrap;
}
.demo-row--end {
  color: var(--muted); font-size: 12px; font-style: italic;
  border-top: 2px solid var(--border-input); border-bottom: none;
}
.demo-row--end .demo-row__time { color: var(--muted); }
.demo-card__foot { font-size: 12px; color: var(--muted); padding-top: 10px; }

/* Expandable sample plan: hover lifts the card + underlines the invitation;
   .open reveals the full generator output (the --extra rows). */
.demo-card { cursor: pointer; transition: box-shadow .2s ease, transform .2s ease; }
.demo-card:hover {
  box-shadow: 0 12px 30px -10px rgba(43,41,38,.25);
  transform: translateY(-2px);
  border-color: var(--border-input);
}
.demo-card:not(.open) .demo-row--extra { display: none; }
.demo-card__toggle {
  display: block; width: 100%; text-align: center;
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--accent-dark); padding: 10px 0 4px;
}
.demo-card:hover .demo-card__toggle { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) {
  .demo-card, .demo-card:hover { transition: none; transform: none; }
}
@keyframes demo-row-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-row { animation: none; }
}

/* Generic landing band (free tier, event types) */
.band { padding: 60px 20px; background: var(--white); border-top: 1px solid var(--border); }
.band h2 { text-align: center; font-size: 24px; margin-bottom: 8px; }
.band__sub { text-align: center; color: var(--muted); font-size: 15px; max-width: 560px; margin: 0 auto 32px; }
.band__cta { text-align: center; margin-top: 28px; }

.checkgrid {
  list-style: none; padding: 0; margin: 0 auto; max-width: 640px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px;
}
.checkgrid li { position: relative; padding-left: 26px; font-size: 14px; }
.checkgrid li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--success); font-weight: 700;
}

/* Pro feature grid */
.features { padding: 60px 20px; }
.features h2 { text-align: center; font-size: 24px; margin-bottom: 8px; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.feat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
}
.feat h3 { font-size: 15px; margin: 0 0 6px; }
.feat p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ── Pro section: alternating mockup/copy rows ── */
.pro-row {
  display: flex; align-items: center; gap: 48px;
  margin-top: 44px;
}
.pro-row--flip { flex-direction: row-reverse; }
.pro-row__visual { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.pro-row__copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.pro-row__kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 2px;
}
@media (max-width: 860px) {
  .pro-row, .pro-row--flip { flex-direction: column; gap: 24px; margin-top: 36px; }
  .pro-row__visual { width: 100%; }
}

/* Mockup: miniature branded-PDF page */
.mock-pdf {
  background: #fff; border: 1px solid var(--border); border-radius: 6px;
  box-shadow: var(--shadow-md); padding: 20px 22px; width: 100%; max-width: 360px;
  font-size: 12.5px;
}
.mock-pdf__head {
  display: flex; align-items: center; gap: 12px;
  border-bottom: 3px solid var(--accent); padding-bottom: 12px; margin-bottom: 12px;
}
.mock-pdf__logo {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent-dark);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px; letter-spacing: -.02em;
}
.mock-pdf__name { display: block; font-weight: 700; font-size: 14px; }
.mock-pdf__sub  { display: block; font-size: 11px; color: var(--muted); }
.mock-pdf__row  { padding: 5px 0; border-bottom: 1px solid var(--border); color: var(--ink); }
.mock-pdf__row b { color: var(--accent-dark); margin-right: 8px; font-weight: 700; }
.mock-pdf__row--faded { opacity: .45; border-bottom: none; }

/* Mockup: client link in a phone frame */
.mock-phone {
  width: 210px; padding: 12px 10px 16px; border-radius: 28px;
  background: var(--ink); box-shadow: var(--shadow-md);
}
.mock-phone::before {
  content: ""; display: block; width: 64px; height: 5px; border-radius: 99px;
  background: rgba(255,255,255,.25); margin: 0 auto 10px;
}
.mock-phone__screen {
  background: var(--paper); border-radius: 18px; padding: 14px 12px 18px;
  font-size: 11px;
}
.mock-phone__brand { font-size: 10px; font-weight: 700; color: var(--accent-dark); margin-bottom: 6px; }
.mock-phone__title { font-family: 'Fraunces', Georgia, serif; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.mock-phone__row { padding: 4px 0; border-bottom: 1px solid var(--border); }
.mock-phone__row b { color: var(--accent-dark); margin-right: 6px; }

/* Mockup: family-formals output card */
.mock-formals {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  box-shadow: var(--shadow); padding: 16px 18px; width: 100%; max-width: 340px;
  font-size: 12.5px;
}
.mock-formals__head { font-weight: 700; font-size: 13px; padding-bottom: 8px; border-bottom: 2px solid var(--accent-soft); margin-bottom: 8px; }
.mock-formals__row { padding: 4px 0; }
.mock-formals__row b { color: var(--accent-dark); font-weight: 700; margin-right: 8px; }

/* Mockup: golden-hour lighting note (stand-in until the photo exists) */
.mock-lighting {
  background: var(--accent-soft); border: 1px solid #C9D2BF; border-radius: 8px;
  padding: 16px 18px; width: 100%; max-width: 380px; font-size: 13px; color: #4A5741;
}
.mock-lighting__row b { font-weight: 700; }
.mock-lighting__ok { margin-top: 8px; }
.mock-lighting__sub { margin-top: 8px; font-size: 11.5px; opacity: .8; }

/* ── Photo slots (founder-supplied images; empty = collapsed) ── */
.photo-slot { margin: 0; display: none; }
.photo-slot--loaded { display: block; }
.photo-slot img {
  border-radius: 10px; box-shadow: var(--shadow-md);
  filter: saturate(.82) contrast(.97);   /* shared muted treatment */
  width: 100%; height: auto;
}
.photo-slot--sm { max-width: 300px; }
.photo-slot--avatar { width: 56px; height: 56px; flex-shrink: 0; }
.photo-slot--avatar img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
/* Optional hero background photo (hero--photo added only when the file exists) */
.hero--photo { position: relative; overflow: hidden; }
.hero--photo::before {
  content: ""; position: absolute; inset: 0;
  background: url('/assets/photos/hero-bg.jpg') center/cover no-repeat;
  opacity: .10; pointer-events: none;
}
.hero--photo > * { position: relative; }

/* Free-section columns: photo (if present) beside the checklist */
.band__cols { display: flex; align-items: center; gap: 40px; max-width: 900px; margin: 0 auto; }
.band__cols .photo-slot--loaded { flex: 0 1 320px; }
.band__cols .checkgrid { flex: 1; }
@media (max-width: 860px) { .band__cols { flex-direction: column; gap: 24px; } }

/* How-it-works demo video (hidden until /assets/demo.mp4 exists) */
.demo-video { margin: 36px auto 0; max-width: 760px; }
.demo-video video { width: 100%; border-radius: 10px; box-shadow: var(--shadow-md); display: block; }

/* Founder note */
.founder-note { background: var(--white); border-top: 1px solid var(--border); padding: 32px 20px; }
.founder-note__inner { display: flex; align-items: center; gap: 18px; justify-content: center; }
.founder-note__inner p { margin: 0; font-size: 14px; color: var(--muted); max-width: 560px; }

/* FAQ accordion (native <details>) */
.faq { padding: 60px 20px; background: var(--white); border-top: 1px solid var(--border); }
.faq h2 { text-align: center; font-size: 24px; margin-bottom: 28px; }
.faq details {
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg); margin-bottom: 10px; padding: 0 18px;
}
.faq summary {
  cursor: pointer; font-size: 15px; font-weight: 600;
  padding: 14px 0; list-style: none; position: relative; padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  font-size: 18px; font-weight: 400; color: var(--accent-dark);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { font-size: 14px; color: var(--muted); margin: 0; padding: 0 0 16px; }

/* Final CTA */
.cta-band {
  text-align: center; padding: 64px 20px;
  background: var(--ink);
  color: #fff;
}
.cta-band h2 { font-size: 26px; margin-bottom: 8px; color: #fff; }
.cta-band p { font-size: 15px; opacity: .85; margin: 0 0 24px; }
.cta-band .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); font-weight: 700; }
.cta-band .btn:hover { background: var(--accent-soft); text-decoration: none; }

@media (max-width: 860px) {
  .hero__cols { flex-direction: column; gap: 36px; }
  .hero--split { text-align: center; }
  .hero--split .hero__cta { justify-content: center; }
  .hero--split .hero__copy > p { margin-left: auto; margin-right: auto; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .checkgrid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 600px) {
  .hero { padding: 48px 20px 40px; }
  .steps__grid { flex-direction: column; gap: 32px; }
  .pricing__grid { flex-direction: column; align-items: center; }
  .pricing__card { max-width: 100%; }
  .nav__links .hide-mobile { display: none; }
  .auth-card { padding: 24px 18px; }
  #timeline td.t, #secondlist td.t { width: 72px; font-size: 13px; }
  .save-bar { flex-direction: column; align-items: flex-start; }
  .plan-card { flex-direction: column; align-items: flex-start; }
}

/* ── Gear checklist: clickable ☐/☑ boxes (buildGearDOM/makeGearLi) ── */
.gear-box { flex: 0 0 auto; cursor: pointer; user-select: none; font-size: 16px; line-height: 1.3; color: var(--accent-dark); }
.gear-box:hover { color: var(--accent-dark); }
.gear-text.gear-done { text-decoration: line-through; color: var(--muted); }
