@font-face {
  font-family: Outfit;
  src: url('/assets/outfit-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fffbf7;
  --ink: #17374e;
  --muted: #52606a;
  --line: #e1d5ca;
  --field: #8b9298;
  --action: #b62e32;
  --action-hover: #982225;
  --warm: #f4ece5;
  --gold: #966a44;
  --gold-light: #c8a27d;
  --sans: Outfit, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.55; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 4px;
}
h1, h2, h3, p, dl { margin: 0; }
h1, h2, h3 { letter-spacing: -.035em; line-height: 1.14; }
input, button, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
section[id], aside[id], details[id], p[id] { scroll-margin-top: 1.2rem; }
.shell { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; top: .5rem; left: 1rem; padding: .5rem 1rem; background: var(--paper); transform: translateY(-180%); z-index: 2; }
.skip-link:focus { transform: none; }

.header { border-bottom: 1px solid var(--line); }
.nav { min-height: 74px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: .6rem 1.2rem; }
.nav-terms { justify-self: start; font-size: .9rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-size: 1.19rem; font-weight: 780; letter-spacing: -.04em; }
.brand-domain { color: var(--action); }
.brand-mark { position: relative; width: 33px; height: 33px; display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--gold); color: var(--action); }
.brand-mark::before { content: ''; position: absolute; top: -5px; left: 50%; width: 8px; height: 8px; background: var(--paper); border: 1.5px solid var(--gold); transform: translateX(-50%) rotate(45deg); }
.brand-mark > span { display: grid; justify-items: center; gap: 2px; font-size: 0; line-height: 0; }
.brand-mark > span::before, .brand-mark > span::after { content: ''; width: 3px; background: currentColor; border-radius: 2px; }
.brand-mark > span::before { height: 8px; }
.brand-mark > span::after { height: 3px; }
.nav nav { display: flex; flex-wrap: wrap; justify-content: end; gap: .25rem 1.2rem; font-size: .93rem; }
.nav nav a, .quiet-link { font-weight: 650; text-underline-offset: .24em; }
.nav nav a { text-decoration: none; }
.nav nav a:hover, .quiet-link:hover { color: var(--action); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .66rem 1.18rem; border: 1px solid var(--action); border-radius: 4px; background: var(--action); color: white; font-size: .96rem; font-weight: 710; line-height: 1.25; text-decoration: none; text-align: center; }
.button:hover { background: var(--action-hover); border-color: var(--action-hover); }
.button-secondary { color: var(--ink); background: transparent; border-color: var(--line); }
.button-secondary:hover { color: var(--ink); background: #f1f3f5; border-color: var(--field); }
.button[disabled] { opacity: .65; cursor: wait; }


.application { padding-block: clamp(2.35rem, 5.4vw, 4.4rem) clamp(2.65rem, 6vw, 5rem); }
.intake-layout { display: grid; grid-template-columns: minmax(0, 1.82fr) minmax(0, 1fr); gap: clamp(1.9rem, 7vw, 6.35rem); align-items: start; }
.intake-panel { min-width: 0; scroll-margin-top: 1.1rem; }
.intake-meta { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding-bottom: .62rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .87rem; }
.intake-meta p { margin-left: auto; color: var(--action); font-weight: 680; }
.intake-meta progress { width: min(9.2rem, 38%); height: 5px; border: 0; border-radius: 2px; accent-color: var(--action); }
.intake-meta progress::-webkit-progress-bar { border-radius: 2px; background: var(--line); }
.intake-meta progress::-webkit-progress-value { border-radius: 2px; background: var(--action); }
.intake-meta progress::-moz-progress-bar { border-radius: 2px; background: var(--action); }
.form-heading { font-size: clamp(1.8rem, 3.25vw, 2.95rem); font-weight: 760; letter-spacing: -.046em; margin-bottom: 1rem; }
.form-heading:focus { outline: none; }
.form-intro { color: var(--muted); margin-bottom: 1rem; }
.intake-panel fieldset { min-width: 0; padding: 0; margin: 0 0 1.2rem; border: 0; }
.acknowledge input { accent-color: var(--action); width: 1.06rem; height: 1.06rem; flex-shrink: 0; margin: 0; }
.service-picker legend { font-size: .94rem; font-weight: 670; margin-bottom: .42rem; }
.service-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; }
.service-choice { display: flex; align-items: center; gap: .47rem; min-height: 48px; padding: .55rem .59rem; border: 1px solid var(--line); border-radius: 4px; background: #fffdf9; cursor: pointer; font-size: .9rem; }
.service-choice input { width: 1rem; height: 1rem; flex: 0 0 auto; margin: 0; accent-color: var(--action); }
.service-choice:has(:checked) { border-color: var(--action); background: #fae8df; color: var(--action-hover); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .92rem; }
.field { min-width: 0; display: grid; align-content: start; gap: .3rem; margin-bottom: 1rem; }
.field > span { font-size: .94rem; font-weight: 670; }
.field small { color: var(--muted); font-size: .87rem; line-height: 1.4; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; min-height: 45px; border: 1px solid var(--field); border-radius: 4px; background-color: var(--paper); color: var(--ink); padding: .47rem .64rem; font-size: 1rem; }
.field select { appearance: none; padding-right: 1.75rem; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 15px) 51%, calc(100% - 10px) 51%; background-size: 5px 5px; background-repeat: no-repeat; }
.field textarea { min-height: 78px; resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; margin-top: 1.2rem; gap: .55rem .72rem; }
.result { border-left: 3px solid #3b7257; padding-left: .84rem; margin-block: .85rem 1.15rem; }
.result[data-kind="outside"] { border-color: var(--action); }
.result[data-kind="review"] { border-color: #987136; }
.result p + ul, .result ul + p { margin-top: .5rem; }
.result ul { margin: 0; padding-left: 1.18rem; }
.result li + li { margin-top: .28rem; }
.intake-summary { margin-bottom: .6rem; font-weight: 640; overflow-wrap: anywhere; }
.acknowledge { display: flex; align-items: start; gap: .56rem; margin-block: 1rem; font-size: .93rem; }
.acknowledge input { margin-top: .23rem; }
.confirmation-details { margin: .75rem 0 1.1rem; }
.confirmation-details div { display: grid; grid-template-columns: minmax(95px, .45fr) 1fr; gap: .55rem; border-bottom: 1px solid var(--line); padding-block: .45rem; overflow-wrap: anywhere; }
.confirmation-details dt { font-weight: 670; }
.confirmation-details dd { margin: 0; }
.form-status { color: var(--action); margin-top: .7rem; }
.form-status:empty { display: none; }
.reference { display: block; overflow-wrap: anywhere; user-select: all; padding: .5rem 0; font-size: .96rem; }

.support { min-width: 0; }
.support h2 { font: 400 clamp(1.75rem, 2.9vw, 2.55rem)/1.08 Georgia, serif; letter-spacing: -.045em; }
.support p { margin-top: .52rem; color: var(--muted); font-size: .95rem; }
.checkout-line { border-block: 1px solid var(--line); display: flex; gap: 1rem; justify-content: space-between; align-items: baseline; padding-block: .85rem; margin: .95rem 0 .65rem; }
.checkout-line strong { font-size: 1.65rem; color: var(--action); white-space: nowrap; }
.support details { border-bottom: 1px solid var(--line); }
.support summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding-block: .9rem; font-size: .95rem; font-weight: 710; }
.support summary::-webkit-details-marker { display: none; }
.support summary::after { content: "+"; color: var(--action); font-size: 1.13rem; line-height: 1; }
.support details[open] summary::after { content: "−"; }
.terms > div + div { margin-top: .72rem; }
.terms dt { font-size: .93rem; font-weight: 680; }
.terms dd { margin: .15rem 0 0; color: var(--muted); font-size: .92rem; }
.support details p { margin: .72rem 0 1rem; }
.footer { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; padding-block: 1.22rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer a { font-weight: 700; text-decoration: none; }
.footer > div { text-align: right; }
.account-page { padding-block: clamp(2.2rem, 6vw, 4.5rem); }
.account-page h1 { font-size: clamp(2rem, 5vw, 3.3rem); margin-bottom: .8rem; }
.account-page h2 { margin-top: 1.6rem; }
.account-page p { margin-top: .6rem; }
.account-page section, .account-page .field { max-width: 40rem; }
.account-page .button { margin-top: .75rem; }
.account-page .brand { margin-bottom: 1.4rem; }
.account-page form .field { margin-top: 1rem; }
.portal-report { margin-top: 2rem; }
.seller-settings fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.seller-settings .form-grid .field { margin-bottom: 0; }
.account-page .record { border-top: 1px solid var(--line); padding-block: .72rem; overflow-wrap: anywhere; }
.account-page .record p { margin-top: .18rem; }

@media (max-width: 1000px) {
  .shell { width: calc(100% - 56px); }
  .intake-layout { gap: 2.15rem; }
  .service-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 730px) {
  .shell { width: calc(100% - 36px); }
  .nav { min-height: 65px; }
  .intake-layout { grid-template-columns: 1fr; gap: 1.8rem; }
  .support { margin-top: .3rem; }
}
@media (max-width: 415px) {
  .nav { padding-block: .72rem; }
  .nav > .brand { grid-row: 1; grid-column: 1 / -1; justify-self: center; }
  .nav-terms { grid-row: 2; grid-column: 1 / 3; }
  .nav nav { grid-row: 2; grid-column: 3; white-space: nowrap; }
  .brand { font-size: 1.06rem; gap: .49rem; }
  .brand-mark { width: 29px; height: 29px; }
  .nav nav { font-size: .84rem; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
