/* ==========================================================================
   MR Accounting & Tax — brand layer v1 (1 October 2026)
   Loaded AFTER style.css. Applies the Brand System: flat graphite and bronze,
   no photo backgrounds, left-aligned hero, the tax-year ruler as the one
   decorative device. To roll back, remove the brand.css link from the pages.
   ========================================================================== */

:root {
  --paper: #f4f1e8;
  --bronze-ink: #7f5a2b;
  --tyat: 49%; /* marker position in the footer ruler, set by js/brand.js */
}

/* ---- Labels: sentence case, no shouting ---- */
.eyebrow,
.tag,
.popular-badge {
  text-transform: none;
  letter-spacing: 0;
}
.eyebrow {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--bronze-ink);
}
.mtd-band .eyebrow {
  color: var(--accent);
}
.compare-table thead th {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
}

/* ---- Links on light backgrounds need more contrast than bronze ---- */
.feature a,
.audience-card:not(.ltd) a,
.step a,
.about-body a,
.accordion .answer a,
.legal-page a,
.consult-strip a,
.closing-notes a,
.price-card a:not(.btn) {
  color: var(--bronze-ink);
}

/* ---- Flat surfaces: no stock-photo backgrounds ---- */
.hero,
.page-hero,
.cta-band,
.mtd-band,
.contact-info-card,
.audience-card.ltd {
  background-image: none;
  background-color: var(--navy);
}
.mtd-band {
  background-color: var(--navy-light);
}

/* ---- Hero: left aligned, large Fraunces headline ---- */
.hero {
  padding: 88px 0 72px;
}
.hero .container {
  max-width: var(--max-width);
  text-align: left;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 17ch;
  margin-bottom: 20px;
}
.hero .lead {
  max-width: 60ch;
  margin-bottom: 32px;
}
.hero .cta-row {
  justify-content: flex-start;
}
/* one bronze button per screen: the hero call to action */
.hero .btn-light {
  background: var(--accent);
  color: var(--navy);
}
.hero .btn-light:hover {
  background: #b98a4f;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin-top: 36px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}
.hero-facts li {
  position: relative;
  padding-left: 22px;
}
.hero-facts li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---- Inner page hero ---- */
.page-hero {
  text-align: left;
  padding: 72px 0;
}
.page-hero .container {
  max-width: var(--max-width);
}
.page-hero h1 {
  max-width: 22ch;
}
.page-hero .lead {
  margin: 0;
}

/* ---- CTA band ---- */
.cta-band {
  padding: 80px 0;
}

/* ---- Steps: ruler-style rule and Fraunces numerals ---- */
.step {
  text-align: left;
  padding: 16px 0 0;
  border-top: 3px solid var(--navy);
}
.step .num {
  width: auto;
  height: auto;
  margin: 0 0 12px;
  background: none;
  border-radius: 0;
  justify-content: flex-start;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.4rem;
  line-height: 1;
}

/* ---- Cards: flat, no lift ---- */
.audience-card:hover {
  transform: none;
  box-shadow: var(--shadow);
}

/* ---- Footer ruler ---- */
.site-footer {
  position: relative;
  padding-top: 64px;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 14px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0 2px, transparent 2px 8.3333%);
  border-bottom: 2px solid rgba(255, 255, 255, 0.28);
}
.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: var(--tyat);
  width: 4px;
  height: 14px;
  background: var(--accent);
  transform: translateX(-50%);
}

/* ==========================================================================
   Tax-year ruler (home page)
   ========================================================================== */

.taxyear {
  margin-top: 56px;
  padding: 24px 24px 8px;
  background: var(--navy-light);
  border: 1px solid var(--navy-lighter);
  border-radius: var(--radius-lg);
}
.ty-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 24px;
}
.taxyear h2 {
  font-family: var(--font);
  font-weight: 650;
  font-size: 1.25rem;
  color: #fff;
  margin: 0;
}
.ty-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
}
.ty-ruler {
  position: relative;
  margin-top: 56px;
}
.ty-track {
  position: relative;
  height: 10px;
  background: var(--navy-lighter);
  border-radius: 2px;
}
.ty-elapsed {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--now, 0%);
  background: var(--paper);
  border-radius: 2px;
  animation: ty-grow 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes ty-grow {
  from {
    width: 0;
  }
}
.ty-tick {
  position: absolute;
  top: -6px;
  width: 2px;
  height: 22px;
  background: var(--accent);
  transform: translateX(-1px);
}
.ty-tick.past {
  background: #8b8e96;
  opacity: 0.7;
}
.ty-tick.soon {
  top: -8px;
  height: 26px;
  width: 3px;
  background: #fff;
}
.ty-today {
  position: absolute;
  top: 0;
  left: var(--now, 0%);
  width: 0;
  animation: ty-slide 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes ty-slide {
  from {
    left: 0;
  }
}
.ty-today span {
  position: absolute;
  bottom: 14px;
  left: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.8125rem;
  font-weight: 700;
  background: var(--paper);
  color: var(--navy);
  padding: 2px 8px;
  border-radius: 4px;
}
.ty-today.end span {
  transform: translateX(-100%);
}
.ty-today.start span {
  transform: translateX(0);
}
.ty-today::after {
  content: "";
  position: absolute;
  left: -1px;
  top: -12px;
  width: 2px;
  height: 34px;
  background: var(--paper);
}
.ty-months {
  display: grid;
  margin-top: 8px;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.6);
  font-variant-numeric: tabular-nums;
}
.ty-months span {
  border-left: 1px solid var(--navy-lighter);
  padding: 2px 0 0 3px;
  overflow: hidden;
}
.ty-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.ty-list li {
  display: grid;
  grid-template-columns: 11rem 1fr auto;
  gap: 4px 20px;
  align-items: baseline;
  padding: 14px 12px;
  border-top: 1px solid var(--navy-lighter);
  color: rgba(255, 255, 255, 0.92);
}
.ty-list .date {
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.ty-list small {
  display: block;
  margin-top: 2px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
}
.ty-list .left {
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ty-list li.soon {
  background: var(--accent);
  color: var(--navy);
  border-radius: 8px;
  border-top-color: transparent;
}
.ty-list li.soon .date,
.ty-list li.soon small {
  color: var(--navy);
}
.ty-foot {
  margin: 0;
  padding: 12px;
  border-top: 1px solid var(--navy-lighter);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
}
.ty-foot a {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 760px) {
  .hero {
    padding: 64px 0 48px;
  }
  .taxyear {
    padding: 20px 16px 4px;
  }
  .ty-list li {
    grid-template-columns: 1fr auto;
  }
  .ty-list .date {
    grid-column: 1 / -1;
  }
  .ty-months span:nth-child(even) {
    color: transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ty-elapsed,
  .ty-today {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}
