/* The Tax Action Plan — design tokens
   ATG navy / paper / ATG blue. Fraunces display, Inter body. */

:root {
  --navy: #00458f;
  --navy-deep: #003064;
  --paper: #fafaf8;
  --ink: #1c211e;
  --ink-soft: #4c554f;
  --accent: #006bdf;
  --accent-deep: #0a5abc;
  --rule: #d8dcd6;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

a { color: var(--accent-deep); }

h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.12; }

.org {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--accent);
}

/* ---------- gate ---------- */

.gate {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: var(--navy);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 43px,
    rgba(255, 255, 255, 0.045) 43px 44px
  );
  padding: 1.5rem;
}

.gate-card {
  background: var(--paper);
  max-width: 26rem;
  width: 100%;
  padding: 2.5rem 2.25rem 2rem;
  border-top: 5px solid var(--accent);
}

.gate-title {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0.35rem 0 0.75rem;
}

.gate-sub { color: var(--ink-soft); margin-bottom: 1.5rem; }

.gate-form label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.gate-form input {
  width: 100%;
  font: 600 1.15rem var(--sans);
  letter-spacing: 0.06em;
  padding: 0.65rem 0.75rem;
  border: 1.5px solid var(--rule);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
}

.gate-form input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.gate-error {
  color: #8c2f22;
  font-size: 0.9rem;
  margin-top: 0.6rem;
}

.gate-form button {
  margin-top: 1rem;
  width: 100%;
}

.gate-help {
  margin-top: 1.4rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- buttons ---------- */

button, .btn {
  display: inline-block;
  font: 600 0.95rem var(--sans);
  color: #fff;
  background: var(--navy);
  border: none;
  padding: 0.7rem 1.3rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s ease;
}

button:hover, .btn:hover { background: var(--navy-deep); }

button:focus-visible, .btn:focus-visible, .ledger-check:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-quiet {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn-quiet:hover { background: var(--navy); color: #fff; }

/* ---------- masthead ---------- */

.masthead {
  background: var(--navy);
  color: #fff;
  padding: 3.5rem 1.5rem 3rem;
  text-align: center;
}

.masthead h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700;
  margin: 0.4rem 0 0.9rem;
}

.masthead-sub {
  max-width: 34rem;
  margin: 0 auto;
  color: #c9dcf5;
  font-size: 1.05rem;
}

/* ---------- layout ---------- */

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

section { margin-top: 3rem; }

section > h2, .course-head h2 {
  font-size: 1.7rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

/* ---------- three actions ---------- */

.action-list {
  list-style: none;
  counter-reset: act;
  margin-top: 1.25rem;
}

.action-list > li {
  counter-increment: act;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 1.5rem;
  align-items: center;
  padding: 1.25rem 0 1.25rem 3.1rem;
  border-top: 1px solid var(--rule);
  position: relative;
}

.action-list > li:last-child { border-bottom: 1px solid var(--rule); }

.action-list > li::before {
  content: counter(act);
  position: absolute;
  left: 0;
  top: 1.15rem;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent);
  width: 2.2rem;
}

.action-title { font-weight: 600; font-size: 1.05rem; }
.action-desc { color: var(--ink-soft); font-size: 0.93rem; margin-top: 0.2rem; }

/* ---------- module ledger ---------- */

.course-head p { color: var(--ink-soft); max-width: 38rem; }

.ledger {
  list-style: none;
  margin-top: 1.5rem;
  border-top: 2px solid var(--navy);
}

.ledger-row { border-bottom: 1px solid var(--rule); padding: 0.85rem 0; }

.ledger-line {
  display: grid;
  grid-template-columns: 2.6rem 1fr auto 2rem;
  gap: 0.75rem;
  align-items: baseline;
}

.ledger-num {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
}

.ledger-title { font-weight: 600; }
.ledger-desc { color: var(--ink-soft); font-size: 0.9rem; margin-top: 0.15rem; }

.ledger-duration {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.ledger-check {
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  align-self: center;
  background: transparent;
  border: 1.5px solid var(--ink-soft);
  border-radius: 50%;
  position: relative;
}

.ledger-check:hover { background: transparent; border-color: var(--navy); }

.ledger-row.done .ledger-check {
  background: var(--navy);
  border-color: var(--navy);
}

.ledger-row.done .ledger-check::after {
  content: "";
  position: absolute;
  inset: 0;
  background: center / 62% no-repeat
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M3 8.5l3.2 3.2L13 5" fill="none" stroke="white" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/></svg>');
}

.ledger-row.done .ledger-title { color: var(--ink-soft); }

.ledger-row audio {
  width: 100%;
  height: 2.4rem;
  margin-top: 0.6rem;
}

/* ---------- downloads ---------- */

.dl-list { list-style: none; margin-top: 1.25rem; }

.dl-list > li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 1.5rem;
  align-items: center;
  padding: 1.1rem 0;
  border-top: 1px solid var(--rule);
}

.dl-list > li:last-child { border-bottom: 1px solid var(--rule); }

.dl-title { font-weight: 600; }
.dl-desc { color: var(--ink-soft); font-size: 0.9rem; margin-top: 0.15rem; }

/* ---------- footer ---------- */

.foot {
  border-top: 2px solid var(--navy);
  margin-top: 3.5rem;
  padding: 1.75rem 1.25rem 2.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.foot-note {
  max-width: 38rem;
  margin: 0.75rem auto 0;
  font-size: 0.8rem;
}

/* ---------- responsive ---------- */

@media (max-width: 620px) {
  .action-list > li, .dl-list > li {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .action-list > li .btn, .dl-list > li .btn { justify-self: start; }
  .ledger-line { grid-template-columns: 2.2rem 1fr 2rem; }
  .ledger-duration { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- logo ---------- */

.logo { display: block; height: auto; }
.logo-gate { width: 10.5rem; margin-bottom: 1.4rem; }
.logo-masthead { width: 11.5rem; margin: 0 auto 1.5rem; }
.logo-foot { width: 8rem; margin: 0 auto 0.9rem; }

/* ---------- subnav + page headers ---------- */

.subnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: 46rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
}

.subnav a { font-weight: 600; text-decoration: none; }
.subnav a:hover { text-decoration: underline; }
.subnav span { color: var(--ink-soft); }

.pagehead {
  background: var(--navy);
  color: #fff;
  padding: 2.75rem 1.5rem 2.5rem;
  text-align: center;
}

.pagehead-kicker {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: #9cc7ff;
}

.pagehead h1 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5vw, 3rem);
  font-weight: 700;
  margin: 0.35rem 0 0.85rem;
}

.pagehead-sub {
  max-width: 38rem;
  margin: 0 auto;
  color: #c9dcf5;
  font-size: 1rem;
}

/* ---------- suite cards (hub) ---------- */

.suite {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.suite-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.6rem 1.5rem 1.4rem;
  background: #fff;
  border: 1.5px solid var(--rule);
  border-top: 4px solid var(--accent);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease;
}

.suite-card:hover { border-color: var(--navy); border-top-color: var(--navy); }

.suite-kicker {
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--accent-deep);
}

.suite-card h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
}

.suite-desc { color: var(--ink-soft); font-size: 0.93rem; flex: 1; }

.suite-meta { font-size: 0.83rem; color: var(--ink-soft); }

.suite-cta {
  margin-top: 0.4rem;
  font-weight: 600;
  color: var(--accent-deep);
}

.suite-card:hover .suite-cta { text-decoration: underline; }

/* ---------- toolbar (workbook / guide bar) ---------- */

.toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 1.5rem;
  align-items: center;
  margin-top: 2rem;
  padding: 1.15rem 1.35rem;
  background: #fff;
  border: 1.5px solid var(--rule);
  border-left: 4px solid var(--accent);
}

/* ---------- augusta checklist + cta ---------- */

.section-sub { color: var(--ink-soft); max-width: 38rem; margin-top: 0.25rem; }

.checklist { margin-top: 1rem; }
.checklist > li { grid-template-columns: 1fr; }

.cta-panel {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 2.25rem 1.5rem;
  margin-top: 3rem;
}

.cta-panel h2 { color: #fff; font-size: 1.5rem; }
.cta-panel p { color: #c9dcf5; max-width: 32rem; margin: 0.5rem auto 1.25rem; }
.cta-panel .btn { background: var(--accent); }
.cta-panel .btn:hover { background: var(--accent-deep); }

@media (max-width: 620px) {
  .suite { grid-template-columns: 1fr; }
  .toolbar { grid-template-columns: 1fr; }
  .toolbar .btn { justify-self: start; }
}

/* ---------- hub steps ---------- */

.steps {
  list-style: none;
  margin-top: 2.5rem;
  display: grid;
  gap: 1.25rem;
}

.step {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 1.1rem;
  background: #fff;
  border: 1.5px solid var(--rule);
  padding: 1.6rem 1.6rem 1.5rem;
}

.step-num {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.step-body h2 {
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 0.45rem;
}

.step-body p { color: var(--ink-soft); font-size: 0.95rem; max-width: 36rem; }

.step-kicker {
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--accent-deep);
  margin-bottom: 0.2rem;
}

.step-meta { font-size: 0.85rem; margin-top: 0.5rem; }

.step-body .btn { margin-top: 1rem; }

/* featured step — the course */
.step-feature {
  background: var(--navy);
  border-color: var(--navy);
  padding: 2rem 1.6rem 1.9rem;
}

.step-feature .step-num { color: #9cc7ff; }
.step-feature h2 { color: #fff; font-size: 1.6rem; }
.step-feature p { color: #c9dcf5; }
.step-feature .step-kicker { color: #9cc7ff; }

.btn-bright { background: var(--accent); }
.btn-bright:hover { background: var(--accent-deep); }

@media (max-width: 620px) {
  .step { grid-template-columns: 2.4rem 1fr; padding: 1.3rem 1.15rem; }
  .step-num { font-size: 1.7rem; }
}

/* ---------- course part headers ---------- */

.ledger-part {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  padding: 1.6rem 0 0.5rem;
  border-bottom: 2px solid var(--navy);
}

.pagehead-meta {
  margin-top: 0.8rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #9cc7ff;
}
