/* Dogwood Pro marketing homepage. Light-mode brand colors and fonts come from core/brand.py. */
/* Layout: bordered full-width bands stacked in one column. Bare header, text-led hero with an example lead
   ticket beside it, 4 numbered steps (a real sequence), 3-column feature grid, 4 plan columns,
   navy demo band, one-line footer. */
:root {
  /* Light-mode tokens point at the brand colors in core/brand.py; dark-mode shades are below. */
  --bg: var(--brand-offwhite);
  --surface: var(--brand-surface);
  --band: var(--brand-band);
  --ink: var(--brand-navy);
  --muted: var(--brand-muted);
  --line: var(--brand-line);
  --accent: var(--brand-orange);
  --accent-ink: var(--brand-orange-ink);
  --on-accent: var(--brand-navy);
  --field: #FFFFFF;
  --bubble-out: var(--brand-orange-tint);
  --bubble-in: #ECE6DB;
  --ok: #1F7A4D;
  --ok-bg: #DDEFE4;
  --ok-glow: rgba(31, 122, 77, 0.45);
  --cta-bg: var(--brand-navy);
  --cta-fg: var(--brand-offwhite);
  --cta-muted: #AEB7C7;
  --cta-line: #2A3D63;
  --cta-field: #15264A;

  --radius: 8px;
  --maxw: 1160px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1322;
    --surface: #101C30;
    --band: #0D1829;
    --ink: #EDF0F5;
    --muted: #98A4B7;
    --line: #1F2C44;
    --accent: #FF7A2F;
    --accent-ink: #FF9152;
    --on-accent: #0A1322;
    --field: #0D1829;
    --bubble-out: #3A2415;
    --bubble-in: #1A2740;
    --ok: #5FD19A;
    --ok-bg: #12301F;
    --ok-glow: rgba(95, 209, 154, 0.4);
    --cta-bg: #14233D;
    --cta-fg: #EDF0F5;
    --cta-muted: #A3AEC0;
    --cta-line: #2C3E60;
    --cta-field: #0F1B30;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A1322;
  --surface: #101C30;
  --band: #0D1829;
  --ink: #EDF0F5;
  --muted: #98A4B7;
  --line: #1F2C44;
  --accent: #FF7A2F;
  --accent-ink: #FF9152;
  --on-accent: #0A1322;
  --field: #0D1829;
  --bubble-out: #3A2415;
  --bubble-in: #1A2740;
  --ok: #5FD19A;
  --ok-bg: #12301F;
  --ok-glow: rgba(95, 209, 154, 0.4);
  --cta-bg: #14233D;
  --cta-fg: #EDF0F5;
  --cta-muted: #A3AEC0;
  --cta-line: #2C3E60;
  --cta-field: #0F1B30;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Type */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 7.2vw, 5.6rem); line-height: 0.92; letter-spacing: 0.005em; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1; letter-spacing: 0.01em; }
h3 { font-size: 1.5rem; line-height: 1.05; letter-spacing: 0.01em; }
.eyebrow, .label {
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0;
}
.eyebrow { font-size: 0.78rem; letter-spacing: 0.14em; }
.label { font-size: 0.72rem; letter-spacing: 0.12em; }

/* Buttons and forms */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--on-accent);
  font: 600 0.9rem/1 var(--font-body);
  padding: 11px 18px;
  border: 0;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.15s, transform 0.15s;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 14px; font-size: 0.85rem; }
.signup { display: flex; flex-wrap: wrap; gap: 10px; max-width: 30rem; }
.signup input {
  flex: 1 1 220px;
  min-width: 0;
  background: var(--field);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  font: 400 0.95rem var(--font-body);
}
.signup input::placeholder { color: var(--muted); opacity: 0.85; }
.signup .btn { padding: 12px 20px; font-size: 0.95rem; }
.thanks {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 500;
}
.thanks::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 3px;
  background: var(--accent);
  transform: rotate(45deg);
}

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: 0.01em;
}
.mark { width: 28px; height: 28px; flex: none; color: var(--ink); }
.mark-center { fill: var(--accent); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav .link { color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.nav .link:hover { color: var(--ink); }
@media (max-width: 600px) { .nav .link { display: none; } }

/* Hero */
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
  padding-block: 88px 96px;
}
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.lede { font-size: 1.125rem; color: var(--muted); max-width: 34em; margin: 0; }
.fineprint { font-size: 0.85rem; color: var(--muted); margin: -10px 0 0; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; padding-block: 56px 64px; }
}

/* Example lead ticket */
.ticket {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  min-width: 0;
}
.ticket-head, .ticket-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
}
.ticket-head {
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.tag {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.66rem;
}
.events { list-style: none; margin: 0; padding: 0; }
.events li {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  padding: 11px 18px;
}
.events li + li { border-top: 1px dashed var(--line); }
.events time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  padding-top: 3px;
  white-space: nowrap;
}
.events b { display: block; font-size: 0.92rem; font-weight: 600; line-height: 1.4; }
.events span { display: block; font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.bubble {
  margin: 6px 0 0;
  padding: 8px 11px;
  border-radius: 12px;
  font-size: 0.84rem;
  line-height: 1.45;
  max-width: 34ch;
  overflow-wrap: anywhere;
}
.bubble.out { background: var(--bubble-out); border-bottom-right-radius: 4px; }
.bubble.in { background: var(--bubble-in); border-bottom-left-radius: 4px; }
.now b::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--ok);
  vertical-align: middle;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--ok-glow); }
  100% { box-shadow: 0 0 0 8px transparent; }
}
@media (prefers-reduced-motion: reduce) { .now b::after { animation: none; } }
.ticket-foot {
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.ticket-foot b { color: var(--ink); }
.pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ok);
  background: var(--ok-bg);
  border-radius: 999px;
  padding: 3px 10px;
}

/* Sections */
.band { background: var(--band); border-block: 1px solid var(--line); }
.section { display: grid; gap: 40px; padding-block: 88px; }
.section-head { display: grid; gap: 12px; max-width: 46rem; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}
.card .body { margin: 0; color: var(--muted); font-size: 0.95rem; }
.more { color: var(--accent-ink); font-weight: 600; text-decoration: none; justify-self: start; }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) { .section { padding-block: 64px; gap: 32px; } }

.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.features h3 { font-size: 1.35rem; }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; gap: 12px; }
.plan .pitch { margin: 0; color: var(--muted); font-size: 0.95rem; }
.plan .plus { margin: 4px 0 0; font-size: 0.85rem; font-weight: 600; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.92rem; }
.checks li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.checks li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  transform: translateY(-1px) rotate(45deg);
}
.plan .users {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.addons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding-top: 8px;
}
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.85rem;
  font-weight: 500;
}
.addons-note { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 0.92rem; }

/* Demo band */
.cta { background: var(--cta-bg); color: var(--cta-fg); }
.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
  gap: 32px 56px;
  align-items: end;
  padding-block: 80px;
}
.cta-copy { display: grid; gap: 14px; }
.cta .eyebrow { color: var(--accent); }
.cta p.sub { margin: 0; color: var(--cta-muted); font-size: 1.05rem; max-width: 36em; }
.cta .signup { max-width: none; }
.cta .signup input { background: var(--cta-field); border-color: var(--cta-line); color: var(--cta-fg); }
.cta .signup input::placeholder { color: var(--cta-muted); }
@media (max-width: 860px) { .cta-inner { grid-template-columns: 1fr; padding-block: 64px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-block: 28px;
  font-size: 0.88rem;
  color: var(--muted);
}
.foot-left, .foot-right { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.site-footer .brand { font-size: 1.25rem; }
.site-footer .mark { width: 22px; height: 22px; }
.site-footer p { margin: 0; }
.site-footer a.link { color: var(--muted); text-decoration: none; }
.site-footer a.link:hover { color: var(--ink); }

/* Added for the live site */
.nav .login { color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 600; }
.nav .login:hover { color: var(--accent-ink); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #B42318; font-size: .85rem; margin: 0; flex-basis: 100%; }
.cta .form-error { color: #FFB4A8; }
