/* events.vote — marketing site
   Two brand colors plus white. Tints are derived from navy, never a new hue. */

:root {
  --red: #aa0000;
  --red-dark: #8c0000;
  --navy: #00003f;
  --ink: #1a1a33;
  --muted: #5c5c78;
  --tint-1: rgba(0, 0, 63, 0.04);
  --tint-2: rgba(0, 0, 63, 0.08);
  --line: rgba(0, 0, 63, 0.12);
  --white: #fff;
  --font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --measure: 60ch;
  --pad: clamp(1rem, 4vw, 2rem);
  --r: 16px;
  --shadow: 0 1px 2px rgba(0,0,63,.06), 0 12px 32px -12px rgba(0,0,63,.18);
  --shadow-lg: 0 2px 4px rgba(0,0,63,.06), 0 40px 80px -30px rgba(0,0,63,.35);
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { color: var(--navy); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.25rem); letter-spacing: -0.03em; line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); max-width: 24ch; }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; margin-bottom: 0.35em; }
p { margin: 0 0 1em; max-width: var(--measure); }
a { color: var(--navy); }
.lede { font-size: 1.2rem; color: var(--muted); line-height: 1.5; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: var(--white); padding: .5rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 var(--pad); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: var(--white); border-color: var(--red); box-shadow: 0 8px 20px -10px rgba(170,0,0,.7); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); box-shadow: 0 12px 24px -10px rgba(170,0,0,.7); }
.btn-ghost { background: var(--white); color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: #000060; }
.btn-lg { padding: 1rem 1.75rem; font-size: 1.05rem; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 2rem; min-height: 4.25rem; }
.brand { font-weight: 700; font-size: 1.4rem; letter-spacing: -0.03em; color: var(--navy); text-decoration: none; }
.brand b { color: var(--red); font-weight: inherit; }
.nav ul { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; align-items: center; gap: 1.75rem; }
.nav ul a:not(.btn) { text-decoration: none; font-weight: 500; color: var(--ink); }
.nav ul a:not(.btn):hover { color: var(--red); }
.nav .btn { padding: .6rem 1.15rem; font-size: .95rem; }
@media (max-width: 760px) { .nav ul li:not(.cta) { display: none; } }

/* ---------- sections ---------- */
section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }
.eyebrow-num { font-size: .95rem; font-weight: 600; color: var(--red); margin-bottom: .75rem; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 85% 15%, rgba(0,0,63,.09), transparent 70%),
    radial-gradient(45% 45% at 5% 95%, rgba(170,0,0,.07), transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero .lede { font-size: 1.3rem; }
.hero .actions { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.75rem 0 1.5rem; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .95rem; font-weight: 500; color: var(--muted); }
.checks li { display: flex; align-items: center; gap: .45rem; }
.checks svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Product visual: browser frame + floating post card */
.visual { position: relative; padding: 1rem 0 3.25rem 3.5rem; }
@media (max-width: 520px) { .visual { padding: 0; } }

.frame {
  margin: 0; position: relative; z-index: 1;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--white); box-shadow: var(--shadow-lg); overflow: hidden;
  font-size: .82rem;
}
.frame-bar { display: flex; align-items: center; gap: .45rem; padding: .6rem .9rem; border-bottom: 1px solid var(--line); background: var(--tint-1); }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: block; }
.frame-bar span { margin-left: auto; margin-right: auto; color: var(--muted); font-size: .75rem; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .8rem; }
.frame-site { padding: 1.1rem 1.2rem 0; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.frame-site strong { color: var(--navy); font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
.frame-site small { color: var(--muted); }

.widget { padding: .9rem 1.2rem 1rem; display: grid; grid-template-columns: 1fr 1.2fr; gap: 1rem; }
@media (max-width: 440px) { .widget { grid-template-columns: 1fr; } }

.cal { border: 1px solid var(--line); border-radius: 10px; padding: .7rem .7rem .55rem; background: var(--white); }
.cal header { display: flex; justify-content: space-between; color: var(--navy); font-weight: 600; margin-bottom: .45rem; }
.cal table { border-collapse: collapse; width: 100%; text-align: center; }
.cal th { font-weight: 500; color: var(--muted); font-size: .68rem; padding-bottom: .25rem; }
.cal td { padding: .2rem 0; position: relative; font-variant-numeric: tabular-nums; }
.cal td.dim { color: rgba(26,26,51,.3); }
.cal td.ev::after { content: ""; position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.cal td.today span { display: inline-block; min-width: 1.55em; border-radius: 999px; background: var(--navy); color: var(--white); font-weight: 600; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: grid; grid-template-columns: 2.5rem 1fr; gap: .6rem; padding: .5rem 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; padding-top: 0; }
.list time { color: var(--red); font-weight: 600; line-height: 1.1; font-size: .72rem; text-transform: uppercase; }
.list time b { display: block; font-size: 1.1rem; color: var(--navy); text-transform: none; }
.list strong { display: block; color: var(--navy); font-weight: 600; }
.list span { color: var(--muted); }
.widget-foot { grid-column: 1 / -1; color: var(--muted); font-size: .72rem; text-align: right; padding-top: .4rem; border-top: 1px solid var(--line); }
.widget-foot b { color: var(--navy); font-weight: 700; }
.widget-foot b i { color: var(--red); font-style: normal; }

/* the candidate's side, floating over the committee site */
.post {
  position: absolute; z-index: 2; left: 0; bottom: 0; width: 230px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: .9rem 1rem 1rem; font-size: .78rem;
}
@media (max-width: 520px) { .post { position: static; width: 100%; margin-top: 1rem; } }
.post header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.post header strong { color: var(--navy); font-weight: 700; font-size: .85rem; }
.pill { display: inline-flex; align-items: center; gap: .35rem; border-radius: 999px; padding: .15rem .55rem; font-size: .68rem; font-weight: 600; background: var(--tint-2); color: var(--navy); white-space: nowrap; }
.pill.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.field { display: grid; gap: .2rem; margin-bottom: .5rem; }
.field label { color: var(--muted); font-size: .68rem; font-weight: 500; }
.field div { border: 1px solid var(--line); border-radius: 6px; padding: .35rem .5rem; color: var(--ink); background: var(--white); }
.post .btn { padding: .5rem .9rem; font-size: .78rem; margin-top: .2rem; }

/* ---------- logos-style trust bar ---------- */
.bar { padding-block: 0; }
.bar .wrap { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 1.25rem; display: flex; flex-wrap: wrap; gap: .75rem 2.5rem; justify-content: center; color: var(--muted); font-weight: 500; font-size: .95rem; }
.bar .wrap span b { color: var(--navy); font-weight: 700; }

/* ---------- problem ---------- */
.problem .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 860px) { .problem .wrap { grid-template-columns: 1fr; } }
.problem p { font-size: 1.15rem; }
.problem .chain { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.problem .chain li { display: flex; gap: .8rem; align-items: center; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); font-weight: 500; color: var(--navy); }
.problem .chain li small { display: block; font-weight: 400; color: var(--muted); }
.problem .chain li:last-child { border-color: var(--red); color: var(--red); }
.problem .chain svg { width: 22px; height: 22px; flex: none; }

/* ---------- how it works ---------- */
.how { background: var(--tint-1); }
.how .intro { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; }
.steps > li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.steps .mock { background: var(--tint-1); border-bottom: 1px solid var(--line); padding: 1.25rem; height: 250px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: .78rem; }
.steps .text { padding: 1.25rem 1.4rem 1.5rem; }
.steps .text::before { content: "0" counter(step); display: block; font-weight: 700; color: var(--red); font-size: .9rem; margin-bottom: .5rem; letter-spacing: 0; }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.mini { background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); width: 100%; max-width: 250px; padding: .8rem .9rem; }
.mini .cal { border: 0; padding: 0; }
.subs { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.subs li { display: flex; align-items: center; gap: .55rem; color: var(--ink); }
.subs i { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--line); display: inline-grid; place-items: center; flex: none; }
.subs li.on i { background: var(--navy); border-color: var(--navy); }
.subs li.on i::after { content: ""; width: 8px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.mini .title { font-weight: 700; color: var(--navy); margin-bottom: .55rem; font-size: .85rem; }

/* ---------- audiences ---------- */
.cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.cols > div { border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem 1.6rem 1.75rem; background: var(--white); position: relative; overflow: hidden; }
.cols > div::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--navy); }
.cols > div.lead::before, .cols > div.payoff::before { background: var(--red); }
.cols p { margin: 0; color: var(--muted); }
.cols .who { font-size: .8rem; font-weight: 600; color: var(--red); margin-bottom: .4rem; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }

/* ---------- embed ---------- */
.embed { background: var(--navy); color: var(--white); }
.embed h2, .embed h3 { color: var(--white); }
.embed .lede { color: rgba(255,255,255,.75); }
.embed .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (max-width: 860px) { .embed .wrap { grid-template-columns: 1fr; } }
.code { border-radius: 12px; overflow: hidden; background: #000026; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.code .top { display: flex; align-items: center; gap: .5rem; padding: .6rem .9rem; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .8rem; color: rgba(255,255,255,.55); }
.code .top i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18); }
.code .top button { margin-left: auto; font: inherit; font-weight: 600; font-size: .78rem; background: rgba(255,255,255,.12); color: var(--white); border: 0; border-radius: 999px; padding: .3rem .8rem; cursor: pointer; }
.code .top button:hover { background: rgba(255,255,255,.2); }
.code .top button:focus-visible { outline-color: var(--white); }
.code pre { margin: 0; padding: 1.25rem 1.25rem 1.4rem; overflow-x: auto; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92rem; line-height: 1.65; color: #e8e8ff; }
.code .a { color: #ffb3b3; }
.code .v { color: #9fd0ff; }
.works { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.works li { border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: .3rem .85rem; font-size: .85rem; font-weight: 500; color: rgba(255,255,255,.85); }

/* ---------- verified ---------- */
.verified .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (max-width: 860px) { .verified .wrap { grid-template-columns: 1fr; } }
.verified ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.verified li { display: flex; gap: .8rem; align-items: start; padding: 1rem 1.1rem; border-radius: 12px; background: var(--tint-1); border: 1px solid var(--line); }
.verified li svg { width: 22px; height: 22px; flex: none; margin-top: .1rem; }
.verified li b { display: block; color: var(--navy); }
.verified li span { color: var(--muted); font-size: .95rem; }

/* ---------- pricing ---------- */
.pricing { background: var(--tint-1); }
.pricing .card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: clamp(1.75rem, 4vw, 3rem); display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; margin-top: 2rem; }
@media (max-width: 860px) { .pricing .card { grid-template-columns: 1fr; } }
.pricing .big { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; color: var(--navy); letter-spacing: -0.02em; line-height: 1.15; margin-bottom: .5rem; }
.pricing .card p { color: var(--muted); }
.pricing ul { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .6rem; }
.pricing li { display: flex; gap: .6rem; align-items: center; font-weight: 500; color: var(--navy); }
.pricing li svg { width: 20px; height: 20px; flex: none; }

/* ---------- roadmap ---------- */
.roadmap { padding-block: 2rem; }
.roadmap .wrap { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.roadmap p { margin: 0; max-width: none; color: var(--muted); }
.roadmap b { color: var(--navy); font-weight: 600; }

/* ---------- faq ---------- */
.faq .wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 860px) { .faq .wrap { grid-template-columns: 1fr; } }
.faq details { border-top: 1px solid var(--line); padding: 1rem 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-weight: 500; font-size: 1.4rem; flex: none; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border-radius: 50%; background: var(--tint-1); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: .7rem 0 0; color: var(--muted); }

/* ---------- contact ---------- */
.contact { background: var(--navy); color: var(--white); overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 100% 0%, rgba(170,0,0,.35), transparent 70%); }
.contact .wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (max-width: 860px) { .contact .wrap { grid-template-columns: 1fr; } }
.contact h2 { color: var(--white); }
.contact .lede { color: rgba(255,255,255,.8); }
.contact .side p:not(.lede) { color: rgba(255,255,255,.7); }
.card-form { background: var(--white); color: var(--ink); border-radius: 20px; padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow-lg); }
.card-form form { display: grid; gap: 1rem; }
.card-form label { display: grid; gap: .35rem; font-weight: 500; font-size: .92rem; color: var(--navy); }
.card-form input, .card-form select, .card-form textarea { font: inherit; color: var(--ink); padding: .7rem .85rem; border-radius: 8px; border: 1px solid var(--line); background: var(--white); width: 100%; }
.card-form input:focus, .card-form select:focus, .card-form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--tint-2); }
.card-form textarea { min-height: 6rem; resize: vertical; }
.card-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .card-form .row { grid-template-columns: 1fr; } }
.card-form .hp { position: absolute; left: -9999px; }
.card-form .btn { width: 100%; justify-content: center; }
.card-form .fine { font-size: .82rem; color: var(--muted); margin: 0; text-align: center; }
.card-form .err { display: none; color: var(--red); margin: 0; font-weight: 500; }
.card-form .done { display: none; text-align: center; padding: 1.5rem 0; }
.card-form .done p { margin: 0 auto; }
.card-form form.sent { display: none; }
.card-form form.sent + .done { display: block; }

/* ---------- footer ---------- */
footer { padding: 2.5rem 0; font-size: .92rem; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
footer .brand { font-size: 1.15rem; }

/* RSVP column in the hero event list */
.list li { grid-template-columns: 2.5rem 1fr auto; }
.list em { font-style: normal; text-align: right; font-size: .7rem; color: var(--muted); white-space: nowrap; align-self: start; }
.list em b { display: block; color: var(--white); background: var(--red); border-radius: 999px; padding: .15rem .55rem; font-size: .68rem; font-weight: 600; margin-bottom: .2rem; }

/* email-only contact card */
.card-form h3 { margin-top: 0; }
.card-form > p { color: var(--muted); }
.card-form > .btn { width: 100%; justify-content: center; margin: .5rem 0 1rem; }

/* problem section: the "today" column must read as the broken status quo, not a feature list */
.chain-label { font-size: .85rem; font-weight: 600; color: var(--muted); margin: 0 0 .6rem; }
.problem .chain li { border-style: dashed; background: var(--tint-1); color: var(--muted); box-shadow: none; }
.problem .chain li:last-child { border-style: solid; background: var(--white); color: var(--red); }
.chain-after { margin: 1rem 0 0; font-weight: 600; color: var(--navy); max-width: none; }
