/* ==========================================================================
   Huff Capital Advisors
   Warm paper, near-black accents, copper highlights. Rounded cards.
   ========================================================================== */

:root {
  --paper: #fbfaf7;
  --band: #eeebe3;
  --white: #ffffff;
  --black: #121417;
  --black-card: #1c1f24;
  --ink: #121417;
  --body: #3a434d;
  --muted: #5a6470;
  --line: #e5e2da;
  --line-strong: #c9c5ba;
  --on-dark: #c5cbd2;
  --on-dark-muted: #a3acb5;
  --copper: #b4532a;
  --copper-dark: #9a4521;
  --teal: #1f6f6b;

  --sans: 'Manrope', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;

  --max: 1180px;
  --narrow: 1040px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(64px, 8vw, 104px);
  --nav-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: var(--narrow); }

/* Type -------------------------------------------------------------------- */

h1, h2 { font-weight: 800; color: var(--ink); letter-spacing: -0.025em; text-wrap: balance; }

h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.15; }

h3, dt { font-size: 17px; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; color: var(--ink); }

.label {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.lede { margin-top: 14px; max-width: 38em; font-size: 17px; }

/* Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--lg { padding: 15px 22px; font-size: 15.5px; }

.btn--dark { background: var(--black); color: #fff; }
.btn--dark:hover { background: #2a2e35; }

.btn--accent { background: var(--copper); color: #fff; }
.btn--accent:hover { background: var(--copper-dark); }

.btn--outline { background: var(--white); border-color: var(--line-strong); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); }

/* Navigation -------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }

.brand__mark { width: 24px; height: 24px; border-radius: 6px; background: var(--copper); }

.nav__links { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; color: var(--ink); }

.nav__links a:not(.btn):hover { color: var(--copper); }

.nav__cta { margin-left: 12px; }

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.nav__toggle span { display: block; width: 18px; height: 2px; margin: 5px auto; background: var(--ink); transition: transform 0.2s ease; }
.nav.is-open .nav__toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Hero -------------------------------------------------------------------- */

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-top: clamp(56px, 7vw, 88px);
  padding-bottom: clamp(56px, 7vw, 96px);
}

.hero h1 { font-size: clamp(36px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -0.035em; text-wrap: wrap; }
.hero h1 span { white-space: nowrap; }

.hero__lede { margin-top: 22px; max-width: 30em; font-size: 19px; line-height: 1.5; }

.hero__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }

.hero__fine { margin-top: 20px; max-width: 30em; font-size: 13.5px; color: var(--muted); }

/* Daily brief ------------------------------------------------------------- */

.brief {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(18, 20, 23, 0.08);
}

.brief__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0 2px 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.brief__list { display: grid; gap: 10px; }

.brief__item {
  position: relative;
  padding: 14px 16px 14px 36px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.brief__item::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 20px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
}

.brief__item--copper::before { background: var(--copper); }
.brief__item--teal::before { background: var(--teal); }

.brief__item h3 { font-size: 15px; }
.brief__item p { margin-top: 3px; font-size: 13.5px; line-height: 1.5; }

.brief__foot { display: flex; gap: 8px; margin-top: 14px; }

.brief__btn { padding: 11px 16px; background: var(--white); border: 1px solid var(--line-strong); border-radius: 8px; font-size: 14px; font-weight: 700; line-height: 1.2; color: var(--ink); cursor: default; }
.brief__btn--dark { background: var(--black); border-color: var(--black); color: #fff; }

/* Sections ---------------------------------------------------------------- */

.section { padding: var(--section) 0; }
.section--band { background: var(--band); }

.section--dark { background: var(--black); color: var(--on-dark); }
.section--dark h2,
.section--dark h3 { color: #fff; }
.section--dark .label { color: var(--on-dark-muted); }

.head { margin-bottom: clamp(28px, 3.5vw, 44px); max-width: 720px; }

.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.split--faq { grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr); }
.split--even { grid-template-columns: 1fr 1fr; align-items: center; }

.grid { display: grid; gap: 16px; }
.grid--two { grid-template-columns: repeat(2, 1fr); }
.grid--three { grid-template-columns: repeat(3, 1fr); }

/* Cards ------------------------------------------------------------------- */

.card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.card p { margin-top: 8px; font-size: 14.5px; line-height: 1.55; }

.card--dark { background: var(--black-card); border-color: transparent; }
.card--dark p { color: var(--on-dark); }

.card--black { background: var(--black); border-color: var(--black); }
.card--black h3 { color: #fff; }
.card--black p { color: var(--on-dark); }

.card h3 em {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f6e9e2;
  font-size: 11.5px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  vertical-align: 2px;
  color: var(--copper);
}

.icon {
  display: block;
  width: 26px;
  height: 26px;
  margin-bottom: 14px;
  fill: none;
  stroke: var(--copper);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Steps ------------------------------------------------------------------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px clamp(24px, 4vw, 48px); }

.steps__num { display: block; margin-bottom: 14px; font-family: var(--mono); font-size: 36px; font-weight: 500; line-height: 1; color: var(--copper); }

.steps p { margin-top: 8px; font-size: 15px; }

/* Compliance -------------------------------------------------------------- */

.checks { display: grid; gap: 12px; }

.checks .card { position: relative; padding: 18px 22px 18px 50px; }

.checks .card::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 22px;
  width: 12px;
  height: 6px;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}

.checks h3 { font-size: 16px; }
.checks p { margin-top: 4px; }

/* Pricing ----------------------------------------------------------------- */

.plan { display: flex; flex-direction: column; padding: 28px; }

.plan h3 { font-size: 19px; }

.plan .plan__for { margin-top: 2px; font-size: 14px; color: var(--muted); }
.card--black .plan__for { color: var(--on-dark-muted); }

.plan .plan__price { margin-top: 22px; font-size: 42px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--ink); }
.card--black .plan__price { color: #fff; }

.plan__price small { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.card--black .plan__price small { color: var(--on-dark-muted); }

.plan ul { margin: 22px 0 28px; display: grid; gap: 9px; font-size: 14.5px; }

.plan li { position: relative; padding-left: 16px; }
.plan li::before { content: ''; position: absolute; left: 2px; top: 0.65em; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

.card--black li { color: var(--on-dark); }

.plan .btn { margin-top: auto; padding: 13px 18px; }

/* FAQ --------------------------------------------------------------------- */

.faq > div { padding: 22px 0; border-top: 1px solid var(--line); }
.faq > div:last-child { border-bottom: 1px solid var(--line); }
.faq dd { margin-top: 6px; font-size: 15px; }

/* Form -------------------------------------------------------------------- */

.form { display: grid; gap: 16px; padding: clamp(22px, 3vw, 32px); background: var(--white); border-radius: 14px; color: var(--body); }

.form label span { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--ink); }

.form input {
  width: 100%;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
}

.form input::placeholder { color: #9aa1a9; }
.form input:focus { outline: 2px solid var(--copper); outline-offset: -1px; border-color: var(--copper); }
.form input.is-invalid { border-color: #b3261e; }

.form .btn { margin-top: 4px; }

.form__status { font-size: 13px; color: var(--muted); }

/* Footer ------------------------------------------------------------------ */

.footer { background: var(--paper); border-top: 1px solid var(--line); }

.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 20px 48px; align-items: center; padding-top: 40px; padding-bottom: 40px; }

.footer__links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.footer__links a:hover { color: var(--copper); }

.footer__legal,
.footer__copy { grid-column: 1 / -1; font-size: 13px; line-height: 1.6; color: var(--muted); }

.footer__legal { max-width: 760px; padding-top: 20px; border-top: 1px solid var(--line); }

/* Responsive -------------------------------------------------------------- */

@media (max-width: 960px) {
  .hero__inner,
  .split,
  .split--faq,
  .split--even { grid-template-columns: 1fr; }

  .brief { max-width: 560px; }

  .grid--three { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }

  .nav__toggle { display: block; }

  .nav__links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px var(--gutter) 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(18, 20, 23, 0.08);
    font-size: 17px;
    display: none;
  }

  .nav.is-open .nav__links { display: flex; }
  .nav__links a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nav__cta { margin: 20px 0 0; padding: 16px; }
}

@media (max-width: 640px) {
  .grid--two,
  .grid--three { grid-template-columns: 1fr; }

  .brief__head { flex-direction: column; gap: 2px; }

  .hero__actions .btn,
  .form .btn { width: 100%; }

  .footer__inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
