/* =============================================================================
   THE $2 BILL BRAND : bradholcman.com
   Premium, restrained, content-first. All colors via tokens. WCAG-AA contrast.
   ============================================================================= */

:root {
  --bill-green: #315A3A;
  --dark-green: #25432C;
  --black: #0D0D0D;
  --gold: #D4AF37;
  --red: #C8102E;
  --beige: #D6CCBA;
  --paper: #f4f2ea;
  --paper-2: #ebe7da;
  --off-white: #f5f5f4;
  --mint: #6f8f6a;
  --ink: #1a201b;
  --muted: #4b5650;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --elegant: "Cormorant Garamond", Georgia, serif;
  --label: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1080px;
  --radius: 10px;
}

/* ---- base ---------------------------------------------------------------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.06rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--bill-green); text-underline-offset: 2px; }
a:hover { color: var(--dark-green); }
strong { font-weight: 700; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.12; color: var(--ink); margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.5rem); font-weight: 900; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--gold); color: var(--black); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* ---- layout helpers ----------------------------------------------------- */
.wrap { width: min(var(--maxw), 92vw); margin-inline: auto; }
.narrow { max-width: 760px; margin-inline: auto; }
.vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.eyebrow {
  font-family: var(--label); text-transform: uppercase; letter-spacing: .22em;
  font-size: .78rem; font-weight: 600; color: var(--bill-green);
  margin: 0 0 .9rem; display: flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); display: inline-block; }
.eyebrow--light { color: var(--gold); }

.answer { font-size: 1.12rem; max-width: 64ch; }
.answer--lead {
  font-family: var(--elegant); font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.4; color: var(--dark-green); max-width: 62ch;
}
.note {
  margin-top: 1.6rem; font-family: var(--elegant); font-style: italic; font-weight: 500;
  font-size: 1.25rem; color: var(--dark-green); max-width: 60ch;
}
.formula {
  font-family: var(--elegant); font-style: italic; font-weight: 600;
  font-size: clamp(1.25rem, 3vw, 1.8rem); line-height: 1.4; color: var(--bill-green);
  border-left: 3px solid var(--gold); padding: .4rem 0 .4rem 1.2rem; margin: 1.4rem 0;
}

.link-arrow {
  font-family: var(--label); text-transform: uppercase; letter-spacing: .12em;
  font-weight: 600; font-size: .9rem; text-decoration: none;
  display: inline-flex; align-items: center; gap: .45rem;
}
.link-arrow::after { content: "\2192"; transition: transform .2s ease; }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow--light { color: var(--gold); }
.link-arrow--light:hover { color: var(--beige); }

/* ---- header / nav ------------------------------------------------------- */
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 60; background: var(--black); color: #fff; padding: .6rem 1rem; border-radius: 6px; }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(13,13,13,.96); color: var(--off-white); backdrop-filter: saturate(140%) blur(6px); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--off-white); text-decoration: none; }
.brand__mark { color: var(--gold); flex: none; }
.brand__name { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; display: block; line-height: 1; }
.brand__sub { display: block; font-family: var(--label); text-transform: uppercase; letter-spacing: .18em; font-size: .6rem; color: var(--beige); margin-top: .2rem; }

/* .header__inner is the positioning anchor for the mobile dropdown, because the
   panel is now a sibling of the <details> rather than a child of it. */
.header__inner { position: relative; }
.nav { position: static; }
.nav__toggle { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .55rem; font-family: var(--label); text-transform: uppercase; letter-spacing: .14em; font-weight: 600; font-size: .9rem; color: var(--off-white); border: 1px solid rgba(245,245,244,.35); padding: .4rem .8rem; border-radius: 6px; }
.nav__toggle::-webkit-details-marker { display: none; }
.nav__bars { width: 18px; height: 2px; background: currentColor; position: relative; display: inline-block; }
.nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.nav__bars::before { top: -6px; } .nav__bars::after { top: 6px; }

/* Mobile: panel hidden until the sibling <details> is open. */
.nav__panel { display: none; }
.nav[open] ~ .nav__panel {
  display: flex; flex-direction: column; gap: .4rem;
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 50;
  background: var(--black); border: 1px solid rgba(245,245,244,.15);
  padding: 1rem; border-radius: 10px; min-width: 240px; box-shadow: 0 18px 40px rgba(0,0,0,.4);
}
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .2rem; }
.nav__list a {
  display: block; color: var(--off-white); text-decoration: none; padding: .5rem .4rem;
  font-family: var(--label); text-transform: uppercase; letter-spacing: .1em; font-weight: 500; font-size: 1rem;
}
/* Red accent (brand --red) marks hover and the current page. The underline is a
   pseudo-element so it can animate without shifting layout. */
.nav__list a { position: relative; }
.nav__list a::after {
  content: ""; position: absolute; left: .4rem; right: .4rem; bottom: .15rem;
  height: 2px; background: var(--red); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav__list a:hover, .nav__list a:focus-visible { color: #fff; }
.nav__list a:hover::after, .nav__list a:focus-visible::after { transform: scaleX(1); }
.nav__list a[aria-current="page"] { color: #fff; }
.nav__list a[aria-current="page"]::after { transform: scaleX(1); }

/* Thin red rule under the sticky header, so it reads as a bar and not as part
   of the hero when the hero is also dark. */
.site-header { border-bottom: 3px solid var(--red); }
.nav__toggle:hover, .nav__toggle:focus-visible { border-color: var(--red); color: #fff; }
.nav__cta { margin-top: .4rem; }

/* Horizontal nav only once there is genuinely room for 7 links plus the CTA.
   Below this the CSS-only <details> hamburger handles it. Raised from 880px
   because the nav gained a Contact link and was wrapping out of the header. */
@media (min-width: 1000px) {
  /* Desktop: the hamburger disappears and the nav becomes a normal flex row. */
  details.nav { display: none; }
  .nav__panel {
    display: flex !important; position: static !important;
    flex-direction: row; align-items: center; flex-wrap: nowrap;
    gap: 1rem; background: none; border: 0; padding: 0; box-shadow: none; min-width: 0;
  }
  .nav__list { flex-direction: row; flex-wrap: nowrap; gap: 1rem; }
  .nav__list a { padding: .2rem 0; font-size: .86rem; white-space: nowrap; }
  /* Reset the full-width rule shared with the footer buttons, otherwise this
     flex item resolves to 100% of the header and collapses the nav. */
  .nav__cta { margin-top: 0; width: auto; white-space: nowrap; padding: .5rem .9rem; font-size: .84rem; }
}
.header__inner { flex-wrap: nowrap; }

/* ---- buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; text-align: center;
  text-decoration: none; font-family: var(--label); text-transform: uppercase; letter-spacing: .12em;
  font-weight: 600; font-size: 1.05rem; line-height: 1.1; border-radius: 8px; padding: .9rem 1.6rem;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--gold); color: var(--black); box-shadow: 0 8px 22px rgba(212,175,55,.28); }
.btn--primary:hover { background: #e2bd45; color: var(--black); }
.btn__label { display: block; }
.btn__sub { display: block; font-size: .72rem; letter-spacing: .08em; opacity: .82; margin-top: .25rem; font-weight: 500; }
.btn--ghost { border: 1.5px solid var(--bill-green); color: var(--bill-green); }
.btn--ghost:hover { background: var(--bill-green); color: var(--off-white); }
/* Ghost buttons sitting on a dark surface. The footer is included because the
   default green-on-black failed contrast and was close to unreadable. */
.btn--on-dark, .hero .btn--ghost, .band .btn--ghost, .site-footer .btn--ghost { color: var(--off-white); border-color: rgba(245,245,244,.6); }
.btn--on-dark:hover, .hero .btn--ghost:hover, .band .btn--ghost:hover, .site-footer .btn--ghost:hover { background: var(--off-white); color: var(--dark-green); }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.15rem; }
.btn--sm { padding: .6rem 1rem; font-size: .92rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: stretch; margin-top: 1.6rem; }
.footer__cta .btn, .nav__cta { width: 100%; }

/* ---- sections ----------------------------------------------------------- */
.sec { padding-block: clamp(2.8rem, 6vw, 4.8rem); }
.sec--intro { padding-top: clamp(2.4rem, 5vw, 3.6rem); }
.sec--green { background: var(--dark-green); color: var(--off-white); }
.sec--green h1, .sec--green h2, .sec--green h3 { color: #fff; }
.sec--green a:not(.btn) { color: var(--gold); }
.sec--green .answer--lead { color: var(--beige); }
.sec--paper2 { background: var(--paper-2); }
.sec--creds { padding-block: clamp(1.6rem, 3vw, 2.2rem); background: var(--black); color: var(--off-white); }
.sec--404 { padding-block: clamp(4rem, 12vw, 8rem); }

.page-head { padding-top: clamp(2.6rem, 6vw, 4rem); padding-bottom: clamp(1.4rem, 3vw, 2rem); }

/* ---- grid + portraits --------------------------------------------------- */
.grid-2 { display: grid; gap: clamp(1.6rem, 4vw, 3rem); align-items: center; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.portrait { margin: 0; }
.portrait img, .portrait .img-ph {
  width: 100%; border-radius: var(--radius); box-shadow: 0 18px 44px rgba(13,13,13,.18);
  aspect-ratio: 4 / 3; object-fit: cover;
  /* Every photo here is a person. When `cover` has to crop, bias the keep-area
     toward the upper third so the face survives instead of being cut off, which
     is what the default `center center` was doing to the portrait shots. */
  object-position: 50% 22%;
}
.portrait--tall img, .portrait--tall .img-ph { aspect-ratio: 4 / 5; }
.portrait figcaption { font-family: var(--elegant); font-style: italic; font-size: 1.05rem; color: var(--muted); margin-top: .7rem; }

/* ---- hero --------------------------------------------------------------- */
.hero { position: relative; background: var(--dark-green); color: var(--off-white); overflow: hidden; }
.hero__media, .hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,13,13,.58) 0%, rgba(37,67,44,.82) 100%); }
.hero__inner { position: relative; padding-block: clamp(3.5rem, 10vw, 7.5rem); max-width: 56rem; }
.hero__h1 { color: #fff; margin-bottom: .4em; }
.hero__h1 em { font-style: italic; color: var(--gold); }
.hero__only {
  font-family: var(--elegant); font-style: italic; font-weight: 500;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem); line-height: 1.45; color: var(--beige); max-width: 54ch;
}

/* ---- credibility strip -------------------------------------------------- */
.creds { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .7rem; }
.creds li {
  font-family: var(--label); text-transform: uppercase; letter-spacing: .08em; font-size: .92rem; font-weight: 500;
  border: 1px solid rgba(245,245,244,.28); border-radius: 999px; padding: .45rem 1rem; color: var(--off-white);
}
.creds__cap { margin-top: 1rem; color: var(--beige); font-size: .95rem; }

/* ---- offer ladder ------------------------------------------------------- */
.ladder { display: grid; gap: 1.2rem; margin-top: 1.8rem; }
@media (min-width: 820px) { .ladder { grid-template-columns: repeat(3, 1fr); } }
.rung { display: flex; gap: 1rem; background: #fff; border: 1px solid var(--paper-2); border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 10px 26px rgba(13,13,13,.06); }
.rung__num { font-family: var(--serif); font-weight: 900; font-size: 2rem; color: var(--gold); line-height: 1; flex: none; }
.rung__tag { font-family: var(--label); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; color: var(--bill-green); margin: 0 0 .3rem; }
.rung__name { margin: 0 0 .5rem; font-size: 1.2rem; }
.rung__name a { text-decoration: none; }
.rung__name a:hover { text-decoration: underline; }
.rung__sum { font-size: .98rem; color: var(--muted); margin: 0; }

/* ---- cards -------------------------------------------------------------- */
.cards { display: grid; gap: 1.2rem; margin-top: 1.6rem; }
@media (min-width: 720px) { .cards { grid-template-columns: 1fr 1fr; } }
.card { background: #fff; border: 1px solid var(--paper-2); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 1.5rem; }
.card h3 { margin-bottom: .4rem; color: var(--bill-green); }
.card p { margin: 0; color: var(--muted); }

/* ---- O.N.L.Y. model ----------------------------------------------------- */
.only-model { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
@media (min-width: 760px) { .only-model { grid-template-columns: 1fr 1fr; } }
.omod { display: flex; gap: 1.1rem; background: #fff; border: 1px solid var(--paper-2); border-radius: var(--radius); padding: 1.4rem; }
.omod__letter { font-family: var(--serif); font-weight: 900; font-size: 2.6rem; line-height: .9; color: var(--gold); flex: none; width: 1.4em; }
.omod__body h3 { margin-bottom: .35rem; }
.omod__body p { margin: 0; color: var(--muted); }

/* ---- steps -------------------------------------------------------------- */
.steps { list-style: none; counter-reset: step; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--paper-2); border-radius: var(--radius); padding: 1.5rem; position: relative; }
.steps li::before { content: counter(step); font-family: var(--serif); font-weight: 900; font-size: 1.4rem; color: var(--gold); display: block; margin-bottom: .5rem; }
.steps h3 { margin-bottom: .3rem; font-size: 1.15rem; }
.steps p { margin: 0; color: var(--muted); }

/* ---- comparison table --------------------------------------------------- */
.table-wrap { overflow-x: auto; margin-top: 1.6rem; }
.cmp { border-collapse: collapse; width: 100%; min-width: 520px; background: #fff; border-radius: var(--radius); overflow: hidden; }
.cmp th, .cmp td { text-align: left; padding: .9rem 1.1rem; border-bottom: 1px solid var(--paper-2); font-size: .98rem; }
.cmp thead th { background: var(--dark-green); color: var(--off-white); font-family: var(--label); text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; }
.cmp tbody th { font-weight: 700; color: var(--bill-green); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tbody tr:last-child { background: #fbf6e6; }

/* ---- deliverable lists -------------------------------------------------- */
.deliver { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: .7rem; }
.deliver--2col, .deliver { }
@media (min-width: 700px) { .deliver { grid-template-columns: 1fr 1fr; } }
.deliver li { position: relative; padding-left: 1.8rem; }
.deliver li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--gold); font-weight: 700; }

/* ---- quotes ------------------------------------------------------------- */
.quotes { display: grid; gap: 1.4rem; margin-top: 1.6rem; }
@media (min-width: 760px) { .quotes { grid-template-columns: 1fr 1fr; } }
@media (min-width: 920px) { .quotes--3 { grid-template-columns: repeat(3, 1fr); } }
.quote { margin: 0; background: #fff; border: 1px solid var(--paper-2); border-radius: var(--radius); padding: 1.6rem; }
.quote blockquote { margin: 0 0 1rem; font-family: var(--elegant); font-style: italic; font-weight: 500; font-size: 1.2rem; line-height: 1.45; color: var(--dark-green); }
.quote blockquote::before { content: "\201C"; color: var(--gold); font-size: 1.4em; line-height: 0; vertical-align: -0.3em; margin-right: .08em; }
.quote figcaption { display: flex; flex-direction: column; }
.quote__name { font-weight: 700; color: var(--ink); }
.quote__title { font-family: var(--label); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--muted); margin-top: .15rem; }

/* ---- FAQ ---------------------------------------------------------------- */
.faq { display: grid; gap: 1.6rem; }
.faq__item { padding-bottom: 1.4rem; border-bottom: 1px solid var(--paper-2); }
.faq__item:last-child { border-bottom: 0; }
.faq__q { font-size: 1.2rem; margin-bottom: .5rem; color: var(--dark-green); }
.faq__a { margin: 0; max-width: 70ch; }

/* ---- form --------------------------------------------------------------- */
.form { margin-top: 1.6rem; max-width: 540px; }
.form__row { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.form label { font-family: var(--label); text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; font-weight: 600; color: var(--bill-green); }
.form input, .form textarea {
  font: inherit; padding: .75rem .9rem; border: 1.5px solid var(--paper-2); border-radius: 8px; background: #fff; color: var(--ink);
}
.form input:focus, .form textarea:focus { border-color: var(--bill-green); outline: none; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- CTA band ----------------------------------------------------------- */
.band { background: linear-gradient(135deg, var(--dark-green), var(--bill-green)); color: var(--off-white); padding-block: clamp(3rem, 7vw, 5rem); text-align: center; }
.band__inner { max-width: 720px; margin-inline: auto; }
.band .eyebrow { justify-content: center; color: var(--gold); }
.band__h { color: #fff; }
.band__lede { font-family: var(--elegant); font-style: italic; font-size: 1.2rem; color: var(--beige); margin-bottom: .5rem; }
.band .cta-row { justify-content: center; }

/* ---- placeholder image -------------------------------------------------- */
.img-ph { width: 100%; border-radius: var(--radius); }

/* ---- footer ------------------------------------------------------------- */
.site-footer { background: var(--black); color: var(--off-white); padding-block: clamp(2.6rem, 6vw, 4rem); }
.footer__name { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; margin: 0 0 .2rem; }
.footer__tag { font-family: var(--label); text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; color: var(--gold); margin: 0 0 1rem; }
.footer__only { font-family: var(--elegant); font-style: italic; font-size: 1.1rem; color: var(--beige); max-width: 60ch; margin: 0; }
.footer__cols { display: grid; gap: 1.8rem; margin-top: 2.4rem; }
@media (min-width: 760px) { .footer__cols { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer__h { font-family: var(--label); text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; color: var(--beige); margin: 0 0 .8rem; }
/* .footer__social ul deliberately excluded: the social list is a horizontal
   flex row of icons (.social), and a `display: grid` here would outrank it on
   specificity and stack the logos one per line. */
.footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer__nav a { color: var(--off-white); text-decoration: none; }
.footer__nav a:hover { color: var(--gold); }
.footer__social { margin-top: 1.6rem; }

/* ---- social logo links (icon only, no text labels) ---------------------- */
.social { display: flex; flex-direction: row; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.social__link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  color: var(--off-white); text-decoration: none;
  border: 1px solid rgba(245, 245, 244, .28);
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.social__link:hover, .social__link:focus-visible {
  background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-2px);
}
.social__icon { display: block; }
.footer__cta { display: grid; gap: .7rem; align-content: start; }
.footer__legal { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(245,245,244,.16); font-size: .85rem; color: var(--beige); display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }

/* ---- community card ----------------------------------------------------- */
.community {
  display: grid; gap: 1.1rem 1.5rem; align-items: center;
  background: #fff; border: 1px solid var(--paper-2); border-left: 4px solid var(--gold);
  border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.2rem);
  box-shadow: 0 10px 26px rgba(13, 13, 13, .06);
}
.community__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--dark-green); color: #fff; flex: none;
}
.community__h { margin: .1rem 0 .45rem; font-size: clamp(1.3rem, 3vw, 1.7rem); }
.community__text { margin: 0; color: var(--muted); max-width: 60ch; }
.community__cta { align-self: start; white-space: nowrap; }

/* Wider screens: icon | text | button on one row. */
@media (min-width: 720px) {
  .community { grid-template-columns: auto 1fr auto; }
  .community__cta { align-self: center; }
}
/* Compact homepage variant reads a touch tighter. */
.community--compact .community__h { font-size: clamp(1.2rem, 2.6vw, 1.5rem); }

/* ---- newsletter modal --------------------------------------------------- */
/* Native <dialog>: focus trapping and Escape-to-close come from the browser. */
.nl {
  border: 0; padding: 0; max-width: 460px; width: min(460px, 92vw);
  border-radius: 14px; background: var(--paper); color: var(--ink);
  box-shadow: 0 30px 70px rgba(13, 13, 13, .38);
  overflow: visible;
}
.nl::backdrop { background: rgba(13, 13, 13, .62); }
.nl[open] { animation: nlIn .28s cubic-bezier(.2, .8, .3, 1); }
@keyframes nlIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }

.nl__inner { position: relative; padding: 2.1rem 1.9rem 1.6rem; border-top: 5px solid var(--red); border-radius: 14px; }
.nl__close {
  position: absolute; top: .7rem; right: .7rem; width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; border-radius: 50%; cursor: pointer;
  color: var(--muted); transition: background .18s ease, color .18s ease;
}
.nl__close:hover, .nl__close:focus-visible { background: var(--paper-2); color: var(--ink); }

.nl__eyebrow {
  font-family: var(--label); text-transform: uppercase; letter-spacing: .2em;
  font-size: .74rem; font-weight: 600; color: var(--red); margin: 0 0 .5rem;
}
.nl__title { font-size: clamp(1.4rem, 4vw, 1.75rem); margin: 0 0 .6rem; }
.nl__body { font-size: .97rem; color: var(--muted); margin: 0 0 1.2rem; }

.nl__form { display: flex; flex-direction: column; gap: .6rem; }
.nl__input {
  font: inherit; padding: .8rem .9rem; border: 1.5px solid var(--paper-2);
  border-radius: 8px; background: #fff; color: var(--ink); width: 100%;
}
.nl__input:focus { border-color: var(--bill-green); outline: none; }
.nl__input[aria-invalid="true"] { border-color: var(--red); }
.nl__submit { width: 100%; cursor: pointer; border: 0; }

.nl__note { margin: .8rem 0 0; font-size: .9rem; min-height: 1.2em; }
.nl__note--ok { color: var(--bill-green); font-weight: 600; }
.nl__note--err { color: var(--red); }
.nl__note--warn { color: #8a6d00; }

.nl__decline {
  display: block; margin: 1rem auto 0; background: none; border: 0;
  font-family: var(--label); text-transform: uppercase; letter-spacing: .12em;
  font-size: .8rem; color: var(--muted); cursor: pointer; padding: .3rem .6rem;
}
.nl__decline:hover { color: var(--ink); text-decoration: underline; }
.nl--done .nl__form, .nl--done .nl__decline, .nl--done .nl__body { display: none; }

@media (prefers-reduced-motion: reduce) {
  .nl[open] { animation: none; }
  .social__link:hover { transform: none; }
  .nav__list a::after { transition: none; }
}

/* ---- reveal animation (added by enhance.js only) ------------------------ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
