/* daveedtuck.com. Tokens and components copied from the live anviltax.com (navy brand design system). */
:root {
  --navy: #090969;
  --on-navy: #ffffff;
  --blue-wash: #F2F5F8;
  --blue-mist: #C6D4E1;
  --blue-steel: #44739D;
  --blue-bright: #1A8BE1;
  --ground: #FFFFFF;
  --sand: var(--blue-wash);
  --ink: var(--navy);
  --ink-2: var(--navy);
  --muted: var(--blue-steel);
  --line: var(--blue-mist);
  --on-dark: var(--on-navy);
  --on-dark-2: var(--blue-mist);
  --on-dark-4: var(--blue-mist);
  --accent-hover: #05054A;
  --serif: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --sans: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  --gutter: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
a { color: var(--blue-steel); }
a:hover { color: var(--navy); }

.wrap { max-width: 1440px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack-lg { display: flex; flex-direction: column; gap: 56px; }
.center { text-align: center; align-items: center; display: flex; flex-direction: column; }
.narrow { max-width: 880px; }

h1, h2, h3, .wordmark { font-family: var(--serif); font-weight: 700; }
h1 { font-size: 56px; line-height: 64px; }
h2 { font-size: 40px; line-height: 48px; }
h3 { font-size: 22px; line-height: 30px; font-weight: 600; }

.eyebrow { font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--muted); }
.lede { font-size: 21px; line-height: 1.55; color: var(--ink-2); max-width: 600px; }
.center .lede { max-width: none; font-size: 20px; }
.body { font-size: 19px; line-height: 1.65; color: var(--ink-2); }
.muted { font-size: 15px; color: var(--muted); }
.pull { font-family: var(--serif); font-size: 24px; line-height: 36px; font-weight: 600; max-width: 980px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 28px; border-radius: 8px; font: 700 16px/1.25 var(--serif); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-sm { padding: 12px 24px; }
.btn-primary { background: var(--navy); color: var(--on-navy); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-outline { border-color: var(--blue-steel); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.actions { display: flex; gap: 16px; flex-wrap: wrap; }
.actions-center { justify-content: center; }

/* Header */
.site-header-band { border-bottom: 1px solid var(--line); }
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 20px var(--gutter); max-width: 1440px; margin: 0 auto; }
.wordmark { font-size: 24px; color: var(--ink); text-decoration: none; }
.wordmark:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 28px; font-size: 16px; font-weight: 600; }
.nav-link { color: var(--ink); text-decoration: none; }
.nav-link:hover { color: var(--blue-steel); }
.nav-link[aria-current="page"] { border-bottom: 2px solid var(--navy); }
.nav .short { display: none; }

/* Sections */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; padding-top: 120px; padding-bottom: 120px; }
.hero { padding-top: 96px; padding-bottom: 96px; }
.plain { padding: 96px 0; }
.sand { background: var(--sand); padding: 96px 0; }
.dark { background: var(--navy); color: var(--on-navy); padding: 96px 0; }
.hero-band { background: var(--navy); color: var(--on-navy); }
.hero-band h1, .hero-band .lede { color: var(--on-navy); }
.hero-band .eyebrow, .hero-band .muted { color: var(--blue-mist); }
.hero-band .btn-primary { background: var(--on-navy); color: var(--navy); }
.hero-band .btn-primary:hover { background: var(--blue-wash); color: var(--navy); }
.hero-band .btn-outline { border-color: var(--on-navy); color: var(--on-navy); }
.hero-band .btn-outline:hover { background: var(--on-navy); color: var(--navy); }
.accent-band { background: var(--navy); color: var(--on-navy); padding: 96px 0; }
.accent-band h2 { font-size: 44px; line-height: 52px; color: var(--on-navy); }
.accent-band .lede { color: var(--on-navy); }
.accent-band .btn-primary { background: var(--on-navy); color: var(--navy); }
.accent-band .btn-outline { border-color: var(--on-navy); color: var(--on-navy); }
.accent-band .btn-outline:hover { background: var(--on-navy); color: var(--navy); }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.steps { list-style: none; padding: 0; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.step h3 { font-size: 20px; line-height: 28px; }
.step p, .step li { font-size: 16px; line-height: 26px; color: var(--ink-2); }
.step ul { padding-left: 20px; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.callout { border-left: 4px solid var(--blue-bright); background: var(--sand); padding: 16px 20px; border-radius: 4px; }
.callout p { margin: 0; font-weight: 600; font-size: 19px; line-height: 1.55; }

.guide-figure { margin: 0; justify-self: center; width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 12px; }
.guide-photo { display: block; width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; object-position: center top; border-radius: 12px; }
.guide-figure figcaption { font-size: 15px; line-height: 22px; color: var(--on-dark-2); }
.sand .guide-figure figcaption, .plain .guide-figure figcaption { color: var(--navy); }

.article { gap: 20px; }
.article h2 { font-size: 30px; line-height: 38px; margin-top: 12px; }
.article h3 { margin-top: 12px; }
.faq h3 { font-size: 20px; line-height: 28px; margin-top: 8px; }
.faq p { font-size: 17px; line-height: 28px; }

/* Form */
.form { display: flex; flex-direction: column; gap: 20px; max-width: 720px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font: 600 16px/24px var(--serif); }
.field input, .field select, .field textarea { font: 400 17px/1.4 var(--sans); color: var(--navy); padding: 12px 14px; border: 1.5px solid var(--blue-steel); border-radius: 8px; background: #fff; width: 100%; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--blue-bright); outline-offset: 1px; }
.form-status { font-weight: 600; font-size: 17px; line-height: 26px; padding: 16px 20px; border-radius: 8px; background: var(--sand); border-left: 4px solid var(--blue-bright); }
.form-status[hidden] { display: none; }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-dark-2); padding: 64px 0 calc(96px + env(safe-area-inset-bottom)); font-size: 15px; }
.site-footer a { color: var(--on-dark-2); }
.site-footer a:hover { color: var(--on-dark); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 48px; align-items: start; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-head { font-weight: 600; color: var(--on-dark); margin-bottom: 4px; }
.wordmark-light { color: var(--on-dark); font-size: 24px; }
.social { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-legal { margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; flex-direction: column; gap: 16px; font-size: 13px; color: var(--on-dark-4); }
.footer-legal p { max-width: 820px; }
.footer-legal-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-legal-row nav { display: flex; gap: 24px; flex-wrap: wrap; }

/* Bottom navigation bar */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--ground); border-top: 1px solid var(--line); box-shadow: 0 -2px 12px rgba(9, 9, 105, .08); padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav ul { display: flex; max-width: 760px; margin: 0 auto; padding: 0; list-style: none; }
.bottom-nav li { flex: 1 1 0; min-width: 0; }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 60px; padding: 7px 2px 6px; color: var(--muted); text-decoration: none; font: 600 12px/14px var(--serif); text-align: center; border-top: 3px solid transparent; margin-top: -1px; }
.bottom-nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bottom-nav a:hover, .bottom-nav a:focus-visible { color: var(--navy); }
.bottom-nav a[aria-current="page"] { color: var(--navy); border-top-color: var(--navy); }
@media print { .bottom-nav { display: none; } }

@media (max-width: 1100px) {
  :root { --gutter: 48px; }
  h1 { font-size: 48px; line-height: 56px; }
  .nav { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --gutter: 20px; }
  h1 { font-size: 38px; line-height: 46px; }
  h2 { font-size: 30px; line-height: 38px; }
  .site-header { padding: 18px var(--gutter); }
  .wordmark { font-size: 19px; white-space: nowrap; }
  .nav-link { display: none; }
  .nav .btn-sm { padding: 12px 16px; font-size: 15px; }
  .nav .long { display: none; }
  .nav .short { display: inline; }
  .split, .grid-3, .grid-2, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .split { gap: 36px; padding-top: 56px; padding-bottom: 56px; }
  .hero { padding-top: 48px; padding-bottom: 56px; }
  .lede, .center .lede { font-size: 18px; }
  .actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .actions .btn { text-align: center; }
  .dark, .sand, .plain, .accent-band { padding: 56px 0; }
  .accent-band h2 { font-size: 32px; line-height: 40px; }
  .step { padding: 28px; }
  .pull { font-size: 20px; line-height: 30px; }
  .guide-figure { max-width: 240px; justify-self: start; }
  .footer-grid { gap: 32px; }
  .site-footer { padding-top: 40px; }
  .article h2 { font-size: 25px; line-height: 33px; }
}
@media (max-width: 380px) { .bottom-nav a { font-size: 11px; } }

/* StoryBrand sections: numbered plan and with/without outcome */
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--on-navy); font: 700 18px/1 var(--serif); }
.outcome > div { border-radius: 12px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.outcome p { font-size: 18px; line-height: 28px; }
.outcome-lose { background: #fff; border: 1px solid var(--line); }
.outcome-lose h3 { color: var(--muted); }
.outcome-win { background: var(--navy); color: var(--on-navy); }
.outcome-win h3, .outcome-win p { color: var(--on-navy); }
@media (max-width: 760px) { .outcome { gap: 20px; } .outcome > div { padding: 28px; } }
