:root {
  --bg: #f8f7f3;
  --card: #ffffff;
  --ink: #17201e;
  --muted: #56615e;
  --line: #e2dfd6;
  --brand: #0e6655;
  --brand-ink: #ffffff;
  --brand-soft: #e3f1ed;
  --sun: #f2b705;
  --high: #b42318;
  --high-soft: #fdeceb;
  --medium: #a15c07;
  --medium-soft: #fdf3e2;
  --low: #3d5a80;
  --low-soft: #e9eff7;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(0 0 0 / 5%), 0 4px 16px rgb(0 0 0 / 4%);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--font);
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--brand);
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 10;
  background: var(--card);
  padding: 8px 12px;
}

.wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 750;
  letter-spacing: -0.01em;
  text-decoration: none;
  font-size: 18px;
}

.logo-mark {
  width: 32px;
  height: 32px;
  flex: none;
}

.nav {
  display: none;
  gap: 4px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 550;
}

.nav a[aria-current='page'] {
  color: var(--brand);
  background: var(--brand-soft);
}

.menu-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 8px 18px 14px;
  background: var(--card);
}

.mobile-nav.open {
  display: grid;
}

.mobile-nav a {
  padding: 12px 4px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

@media (min-width: 760px) {
  .nav {
    display: flex;
  }

  .menu-btn,
  .mobile-nav,
  .mobile-nav.open {
    display: none;
  }
}

/* Type */
h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(30px, 7vw, 44px);
  font-weight: 800;
}

h2 {
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 750;
}

h3 {
  font-size: 19px;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

.lede {
  font-size: 19px;
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 14px;
}

/* Layout */
main {
  padding: 28px 0 56px;
}

section {
  margin: 0 0 36px;
  scroll-margin-top: 76px;
}

.hero {
  padding: 18px 0 8px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.card + .card {
  margin-top: 14px;
}

/* Secondary cross-promo (zyz.io). Keep it quieter than any help content. */
.plug {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 15px;
  color: var(--muted);
}

.plug p {
  margin: 0;
}

.grid {
  display: grid;
  gap: 14px;
}

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

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

/* Buttons */
.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 2px solid var(--brand);
  background: var(--brand);
  color: var(--brand-ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn.secondary {
  background: var(--card);
  color: var(--brand);
}

.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-row {
  display: grid;
  gap: 10px;
}

@media (min-width: 520px) {
  .btn {
    width: auto;
  }

  .btn-row {
    display: flex;
    flex-wrap: wrap;
  }
}

/* Help strip */
.help-strip {
  background: #fff8e1;
  border: 1px solid #f1dc9a;
  border-radius: var(--radius);
  padding: 16px 18px;
}

.help-strip h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.help-strip ul {
  margin: 0;
  padding-left: 20px;
}

.help-strip li {
  margin: 4px 0;
}

/* Steps */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding: 16px 16px 16px 60px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
  display: grid;
  place-items: center;
}

.steps h3 {
  margin-bottom: 4px;
  font-size: 17px;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

/* Path cards */
.path {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.path .price {
  font-size: 28px;
  font-weight: 800;
}

.path ul {
  padding-left: 20px;
  margin: 0 0 12px;
  flex: 1;
}

.path.free {
  border-color: var(--brand);
  border-width: 2px;
}

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  align-self: flex-start;
  justify-self: start;
}

.badge.preview {
  background: var(--medium-soft);
  color: var(--medium);
}

.promises {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

@media (min-width: 640px) {
  .promises {
    grid-template-columns: 1fr 1fr;
  }
}

.promises li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.promises li::before {
  content: '';
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 10.5l3 3 7-7'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* Forms */
form {
  margin: 0;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 18px;
  margin: 0 0 16px;
}

legend {
  font-weight: 750;
  font-size: 18px;
  padding: 0 6px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.field:last-child {
  margin-bottom: 0;
}

.field label,
.label {
  font-weight: 650;
  font-size: 15px;
}

.hint {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

input[type='text'],
input[type='email'],
input[type='tel'],
input[type='date'],
input[type='number'],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1.5px solid #cfcabd;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  color: var(--ink);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  outline: 3px solid rgb(14 102 85 / 18%);
  outline-offset: 0;
}

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

@media (min-width: 520px) {
  .row.two {
    grid-template-columns: 1fr 1fr;
  }
}

.choice-group {
  display: grid;
  gap: 8px;
}

.choice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.choice:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.choice input {
  margin-top: 4px;
  width: 20px;
  height: 20px;
  accent-color: var(--brand);
  flex: none;
}

.choice strong {
  display: block;
}

.choice span {
  color: var(--muted);
  font-size: 15px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  margin: 0 0 16px;
}

details > summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 700;
  list-style: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

details > summary::after {
  content: '+';
  float: right;
  font-weight: 800;
  color: var(--brand);
}

details[open] > summary::after {
  content: '–';
}

details > .details-body {
  padding: 0 18px 18px;
}

details fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

/* Upload */
.dropzone {
  display: grid;
  gap: 8px;
  place-items: center;
  text-align: center;
  padding: 22px 16px;
  border: 2px dashed #c6c0b0;
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}

.dropzone.drag {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-status {
  margin-top: 10px;
  font-size: 15px;
}

.bill-preview {
  margin-top: 12px;
  max-height: 320px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.bill-preview img {
  display: block;
  width: 100%;
}

/* Results */
.verdict {
  border-radius: var(--radius);
  padding: 18px 20px;
  border: 2px solid;
  margin-bottom: 16px;
}

.verdict.worth-disputing {
  border-color: var(--high);
  background: var(--high-soft);
}

.verdict.worth-asking {
  border-color: var(--medium);
  background: var(--medium-soft);
}

.verdict.no-flags {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

@media (min-width: 640px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

.stat b {
  display: block;
  font-size: 22px;
}

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

.flag {
  border-left: 5px solid;
  background: var(--card);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}

.flag.high {
  border-color: var(--high);
}

.flag.medium {
  border-color: var(--medium);
}

.flag.low,
.flag.info {
  border-color: var(--low);
}

.flag h3 {
  font-size: 17px;
  margin-bottom: 4px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.flag .level {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
}

.flag.high .level {
  background: var(--high-soft);
  color: var(--high);
}

.flag.medium .level {
  background: var(--medium-soft);
  color: var(--medium);
}

.flag.low .level,
.flag.info .level {
  background: var(--low-soft);
  color: var(--low);
}

.flag p {
  margin: 0 0 6px;
}

.flag .ask {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

.errors {
  background: var(--high-soft);
  color: var(--high);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 14px;
}

.errors ul {
  margin: 0;
  padding-left: 18px;
}

/* Letters */
.letter-preview {
  font: 15px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  min-height: 420px;
  white-space: pre-wrap;
  background: #fffef9;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 15px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
}

/* Guides */
.commission-card h3 {
  margin-bottom: 6px;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}

.link-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  font-weight: 650;
  background: #fff;
}

.link-list a::after {
  content: '↗';
  color: var(--muted);
}

.note {
  background: var(--low-soft);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  margin-top: 12px;
}

/* File-for-me */
.banner {
  background: var(--medium-soft);
  border: 1.5px solid #e9c77f;
  color: #5e3a04;
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 20px;
}

.banner strong {
  display: block;
  margin-bottom: 2px;
}

.fee-box {
  display: grid;
  gap: 6px;
}

.fee-box .price {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}

.sig-pad {
  width: 100%;
  height: 150px;
  border: 1.5px dashed #c6c0b0;
  border-radius: 10px;
  background: #fff;
  touch-action: none;
  display: block;
}

.auth-text {
  font-size: 15px;
  background: #fffef9;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  white-space: pre-wrap;
  max-height: 280px;
  overflow: auto;
}

.checkline {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 10px 0;
}

.checkline input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--brand);
  flex: none;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--card);
  padding: 28px 0 36px;
  font-size: 15px;
  color: var(--muted);
}

.site-footer .l8 {
  font-weight: 700;
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 10px 0;
}

.site-footer p {
  margin: 0 0 8px;
}

[hidden] {
  display: none !important;
}

@media print {
  .site-header,
  .site-footer,
  .no-print {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .letter-preview {
    border: 0;
    min-height: 0;
  }
}

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