/* FringeAuto UI: shared primitives and guided application layout. */
:root{
  font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
  font-size:16px;
  line-height:1.55;
  color:#202125;
  background:#f8f8f9;
  --ink:#202125;
  --muted:#65656c;
  --accent:#870d30;
  --accent-dark:#610723;
  --line:#dedee2;
  --soft:#f3f3f5;
  --tint:#faf0f3;
  --radius:16px;
  --shadow:0 12px 40px #24212708
}
*{
  box-sizing:border-box
}
body{
  margin:0
}
a{
  color:var(--accent);
  text-underline-offset:4px
}
button,input,select,textarea{
  font:inherit
}
button,.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  min-height:46px;
  padding:11px 20px;
  border:1px solid #bcbcc3;
  border-radius:9px;
  background:#fff;
  color:var(--ink);
  font-size:.9375rem;
  font-weight:600;
  text-decoration:none;
  cursor:pointer;
  transition:background .15s,border-color .15s
}
button:hover,.button:hover{
  background:var(--soft);
  border-color:var(--accent)
}
.primary,[data-add],#confirmSelection,#useRegistration{
  background:var(--accent);
  border-color:var(--accent);
  color:white
}
.primary:hover,[data-add]:hover,#confirmSelection:hover,#useRegistration:hover{
  background:var(--accent-dark);
  color:white
}
button:disabled{
  opacity:.45;
  cursor:not-allowed
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{
  outline:3px solid var(--accent);
  outline-offset:4px
}
.textbutton{
  background:transparent;
  border:0;
  color:var(--accent);
  text-decoration:underline
}
.skip-link{
  position:absolute;
  left:20px;
  top:-100px;
  background:white;
  padding:12px;
  z-index:99
}
.skip-link:focus{
  top:10px
}
.implementation-notice{
  max-width:1360px;
  margin:14px auto 0;
  padding:14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  background:#fff8ed;
  border:1px solid #e7c98f;
  border-left:4px solid var(--accent);
  border-radius:12px;
  color:var(--ink);
  box-shadow:0 8px 24px #24212708
}
.implementation-notice-copy{
  display:flex;
  align-items:flex-start;
  gap:12px
}
.implementation-notice-icon{
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
  flex:0 0 24px;
  border-radius:50%;
  background:var(--accent);
  color:#fff;
  font-weight:700;
  font-size:.875rem
}
.implementation-notice strong{
  display:block;
  margin-bottom:2px;
  font-size:.98rem
}
.implementation-notice p{
  margin:0;
  color:var(--muted);
  font-size:.875rem
}
.implementation-notice-close{
  min-height:38px;
  padding:7px 14px;
  white-space:nowrap;
  border:1px solid #bcbcc3;
  border-radius:9px;
  background:#fff;
  color:var(--accent);
  font-size:.875rem;
  font-weight:600;
  text-decoration:none
}
.implementation-notice-close:hover{
  background:var(--soft);
  border-color:var(--accent)
}
[hidden]{
  display:none!important
}
h1,h2,h3,h4,p{
  margin-top:0
}
h1,h2,h3{
  line-height:1.2;
  letter-spacing:-.035em
}
h2{
  font-size:clamp(1.5rem,2.4vw,2rem);
  margin-bottom:16px
}
h3{
  font-size:1.15rem;
  margin-bottom:12px
}
h4{
  font-size:1rem;
  margin-bottom:18px
}
p{
  margin-bottom:16px
}
small,.hint,.muted{
  font-size:.875rem;
  color:var(--muted);
  line-height:1.6
}
.eyebrow{
  font-size:.75rem;
  font-weight:650;
  letter-spacing:.15em;
  color:var(--muted);
  margin-bottom:14px
}
em{
  font-style:normal;
  color:var(--accent)
}
.badge,.tag{
  display:inline-block;
  font-size:.75rem;
  font-weight:650;
  color:var(--accent);
  background:var(--tint);
  padding:5px 10px;
  border-radius:6px;
  line-height:1.45
}
.sectionhead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-bottom:24px
}
.sectionhead h2,.sectionhead h3{
  margin:0
}
.panel{
  background:white;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:28px;
  box-shadow:var(--shadow)
}
.site-header{
  max-width:1360px;
  margin:auto;
  padding:24px 36px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px
}
.brand-logo{
  display:block;
  position:relative;
  width:270px;
  height:54px;
  overflow:hidden;
  flex-shrink:0
}
.brand-logo img{
  position:absolute;
  width:112%;
  max-width:none;
  height:auto;
  left:-6%;
  top:50%;
  transform:translateY(-50%)
}
.site-header nav{
  display:flex;
  align-items:center;
  gap:26px;
  flex-wrap:wrap
}
.site-header nav a{
  font-size:.875rem;
  color:var(--ink);
  text-decoration:none;
  padding:8px 0
}
.site-header nav a:hover{
  color:var(--accent)
}
.site-header nav a:nth-child(2){
  border-bottom:2px solid var(--accent)
}
main{
  max-width:1360px;
  margin:auto;
  padding:0 36px 56px
}
.hero{
  display:grid;
  grid-template-columns:1fr 1fr;
  min-height:470px;
  align-items:center;
  position:relative;
  margin-bottom:28px;
  gap:20px
}
.hero-copy{
  padding:26px 0 30px;
  z-index:1
}
.hero h1{
  font-size:clamp(2.25rem,4.25vw,3.65rem);
  line-height:1.08;
  letter-spacing:-.055em;
  max-width:630px;
  margin-bottom:24px
}
.hero-copy>p:not(.eyebrow):not(.hero-note){
  max-width:560px;
  font-size:1.075rem;
  color:var(--muted)
}
.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin:26px 0 20px
}
.hero-actions .button{
  padding:14px 22px;
  min-height:52px
}
.hero-note{
  font-size:.8125rem;
  color:var(--muted)
}
.hero-visual{
  position:relative;
  align-self:stretch;
  min-height:430px;
  border-radius:18px;
  overflow:hidden;
  background:#e9e9eb
}
.hero-visual>img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:66% center;
  position:absolute
}
.demo-card{
  position:absolute;
  top:28px;
  left:28px;
  background:#ffffffed;
  padding:20px 24px;
  border:1px solid #fff;
  border-radius:14px;
  box-shadow:0 12px 35px #24212712;
  max-width:285px
}
.demo-card p{
  margin:10px 0 0;
  font-size:.875rem
}
.demo-card strong{
  display:block;
  color:var(--accent);
  font-size:2.3rem;
  letter-spacing:-.05em
}
.demo-card small{
  display:block;
  font-size:.75rem;
  max-width:220px
}
.calculator{
  background:#fff;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  border-radius:18px;
  padding:32px;
  scroll-margin-top:24px
}
.stepper{
  display:flex;
  border-bottom:1px solid var(--line);
  padding:0 0 22px;
  margin-bottom:26px;
  gap:8px
}
.stepper button{
  flex:1;
  justify-content:flex-start;
  border:0;
  padding:10px;
  background:transparent;
  font-size:.8125rem;
  gap:10px;
  min-width:0
}
.stepper span{
  display:grid;
  place-items:center;
  flex-shrink:0;
  width:30px;
  height:30px;
  background:#ededf0;
  color:var(--muted);
  border-radius:50%
}
.stepper b{
  font-weight:600
}
.stepper [aria-current=step]{
  color:var(--accent);
  background:var(--tint)
}
.stepper [aria-current=step] span{
  background:var(--accent);
  color:white
}
.entry-choice{
  padding:0;
  border:0;
  margin:0 0 22px
}
.entry-choice legend{
  font-size:.875rem;
  color:var(--muted);
  margin-bottom:14px
}
.entry-options{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px
}
.entry-options label{
  display:flex;
  align-items:center;
  gap:16px;
  padding:23px;
  border:1px solid var(--line);
  border-radius:11px;
  background:linear-gradient(125deg,#f3f3f5,#fff);
  cursor:pointer;
  position:relative;
  min-height:98px
}
.entry-options label:has(input:checked){
  border-color:var(--accent);
  background:var(--tint);
  box-shadow:inset 0 -3px var(--accent)
}
.entry-options input{
  width:18px;
  height:18px;
  margin:0;
  flex-shrink:0
}
.entry-options strong{
  font-size:1rem;
  display:block
}
.entry-options small{
  display:block;
  margin-top:4px
}
.route-icon{
  font-size:2.25rem;
  color:var(--accent);
  line-height:1
}
.entry-options label:has(input:focus-visible){
  outline:3px solid var(--accent);
  outline-offset:3px
}
label{
  display:block;
  font-size:.875rem;
  font-weight:600
}
input,select,textarea{
  width:100%;
  min-width:0;
  min-height:48px;
  border:1px solid #c9c9cf;
  border-radius:8px;
  background:white;
  padding:10px 12px;
  color:var(--ink);
  margin-top:7px;
  font-size:1rem
}
input::placeholder{
  color:#7a7a81
}
input[type=checkbox],input[type=radio]{
  width:19px;
  height:19px;
  min-height:0;
  accent-color:var(--accent)
}
input:disabled,select:disabled{
  background:var(--soft);
  color:var(--muted)
}
.search-form{
  display:flex;
  gap:14px;
  align-items:flex-end;
  margin:26px 0
}
.search-form label{
  flex:1
}
.search-form input{
  height:54px
}
.search-form button{
  height:54px;
  min-width:120px
}
.filters,.refinements,.fiscal-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px
}
.refinements{
  margin-top:20px
}
.accordion{
  border:1px solid var(--line);
  border-radius:10px;
  padding:16px 20px;
  margin:18px 0;
  background:#fff
}
.accordion summary{
  cursor:pointer;
  font-size:.9375rem;
  font-weight:600;
  color:var(--ink)
}
.accordion summary span{
  font-weight:400;
  color:var(--muted);
  font-size:.8125rem;
  margin-left:12px
}
.accordion[open] summary{
  margin-bottom:20px
}
.accordion p:last-child{
  margin-bottom:0
}
.check{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin:18px 0
}
.check input{
  flex-shrink:0;
  margin:2px 0 0
}
.check small{
  display:block;
  font-weight:400;
  margin-top:5px
}
.quick{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:16px 0
}
.stage-actions{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  margin-top:28px;
  padding-top:24px;
  border-top:1px solid var(--line)
}
.stage-actions p{
  margin:0
}
.selected-tray{
  padding:16px 18px;
  background:var(--soft);
  border-radius:10px;
  margin-bottom:24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px
}
.selected-tray>div{
  display:flex;
  gap:10px;
  flex-wrap:wrap
}
.selected-chip{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:.8125rem;
  background:white;
  border:1px solid var(--line);
  padding:5px 8px 5px 12px;
  border-radius:8px
}
.selected-chip button{
  padding:0;
  min-height:32px;
  width:32px;
  border:0;
  background:transparent;
  font-size:1.2rem
}
.notice{
  padding:16px 20px;
  background:var(--tint);
  border-left:3px solid var(--accent);
  border-radius:0 8px 8px 0;
  font-size:.875rem;
  line-height:1.6
}
.notice button{
  display:block
}
.document-progress{
  display:flex;
  gap:20px;
  list-style:none;
  padding:0;
  color:var(--muted);
  font-size:.8125rem;
  margin:20px 0
}
.document-progress [aria-current=step]{
  color:var(--accent);
  font-weight:700
}
.dropzone{
  display:flex;
  position:relative;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:210px;
  padding:28px;
  border:1.5px dashed #adadb5;
  border-radius:12px;
  background:#fafafb;
  cursor:pointer;
  text-align:center;
  margin-bottom:12px
}
.dropzone>span:first-child{
  font-size:2.5rem;
  color:var(--accent)
}
.dropzone>strong{
  font-size:1.1rem
}
.dropzone>span{
  color:var(--accent)
}
.dropzone>small{
  margin-top:12px
}
.dropzone input{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0;
  cursor:pointer;
  margin:0
}
.dropzone:focus-within,.dropzone.drag-over{
  outline:3px solid var(--accent);
  outline-offset:4px;
  background:var(--tint)
}
.filelist{
  list-style:none;
  padding:0;
  margin:16px 0
}
.filelist li{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 0;
  border-bottom:1px solid var(--line)
}
.filelist span{
  overflow-wrap:anywhere;
  min-width:0
}
.filelist button{
  flex-shrink:0
}
#ocrStatus:empty{
  display:none
}
#ocrStatus{
  font-size:.875rem;
  background:var(--soft);
  padding:15px;
  border-radius:8px
}
#docConflicts:not(:empty){
  background:#fff5e8;
  border-left:3px solid #956128;
  padding:16px;
  margin-bottom:18px
}
.document-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:18px 0
}
.document-actions button{
  font-size:.8125rem
}
.resulthead{
  display:flex;
  align-items:center;
  justify-content:space-between
}
.resulthead p{
  margin:0
}
.results{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin:18px 0
}
.result{
  border:1px solid var(--line);
  border-radius:12px;
  padding:22px;
  display:flex;
  flex-direction:column;
  gap:20px;
  align-items:flex-start
}
.result.selected{
  border-color:var(--accent);
  background:var(--tint)
}
.result strong{
  display:block;
  font-size:1rem;
  line-height:1.45;
  margin:10px 0
}
.result small{
  display:block;
  font-size:.8125rem;
  margin-top:5px
}
.result button{
  margin-top:auto;
  width:100%
}
.matchwarning{
  color:#865a28!important
}
#matchStatus{
  font-weight:600;
  margin:15px 0
}
#question:empty,#interpretation:empty{
  display:none
}
#question span{
  width:100%;
  font-size:.875rem
}
.pagination{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:16px;
  margin:20px 0
}
.vehicle-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:18px;
  margin:24px 0
}
.vehicle-grid article{
  border:1px solid var(--line);
  border-radius:12px;
  padding:24px
}
.vehicle-grid h3{
  margin-top:12px;
  line-height:1.4
}
.vehicle-grid dl{
  font-size:.875rem
}
.vehicle-grid dd{
  margin:0 0 12px;
  font-weight:600
}
.vehicle-grid dt{
  color:var(--muted)
}
.vehicle-grid .textbutton{
  padding-left:0
}
.common-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:26px
}
.common-grid section+section{
  border-left:1px solid var(--line);
  padding-left:26px
}
.common-grid label{
  margin-bottom:18px
}
.twocol{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px
}
.scenario-common{
  margin:24px 0 30px;
  background:#fafafb
}
.fiscal{
  margin:18px 0
}
.fiscal .hint{
  max-width:900px
}
.fiscal [role=status]{
  padding:16px;
  background:var(--tint);
  border-radius:9px;
  font-size:.875rem;
  margin-top:20px
}
.fiscal a{
  font-size:.8125rem
}
.summary-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin:24px 0
}
.summary-grid>div{
  background:var(--soft);
  padding:20px;
  border-radius:12px
}
.summary-grid small{
  display:block
}
.summary-grid strong{
  display:block;
  font-size:1.1rem;
  margin-top:5px
}
#error:not(:empty){
  padding:20px;
  background:#fff1f0;
  color:#8d2525;
  border:1px solid #e7b7b7;
  border-radius:10px
}
#error:empty{
  display:none
}
.result-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(270px,1fr));
  gap:18px;
  align-items:start
}
.result-grid>.panel{
  grid-column:1/-1
}
.card{
  background:white;
  border:1px solid var(--line);
  border-top:3px solid var(--accent);
  border-radius:14px;
  padding:24px;
  box-shadow:var(--shadow);
  min-width:0
}
.cardtop{
  display:flex;
  justify-content:space-between;
  gap:10px
}
.cardtop h3{
  font-size:1.2rem;
  line-height:1.35;
  margin:12px 0
}
.cardtop button{
  border:0;
  min-width:36px;
  padding:0;
  height:36px;
  min-height:36px
}
.numbers{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin:24px 0
}
.numbers>div{
  background:var(--soft);
  padding:14px;
  border-radius:9px
}
.numbers>div:first-child{
  grid-column:1/-1;
  background:var(--tint);
  padding:22px 18px
}
.numbers small{
  display:block;
  font-size:.75rem;
  letter-spacing:.04em
}
.numbers strong{
  display:block;
  font-size:1.35rem;
  letter-spacing:-.035em;
  overflow-wrap:anywhere
}
.numbers>div:first-child strong{
  font-size:clamp(1.9rem,2.8vw,2.9rem);
  color:var(--accent)
}
.formula{
  font-size:.875rem;
  padding:14px;
  background:var(--soft);
  border-radius:8px;
  overflow-wrap:anywhere
}
.tax{
  font-size:.875rem;
  margin:18px 0
}
.tax b{
  color:#8d4c25
}
.card a{
  font-size:.8125rem
}
.chart{
  margin-top:22px
}
.barrow{
  margin:20px 0
}
.barlabel{
  display:flex;
  justify-content:space-between;
  gap:20px;
  font-size:.875rem;
  margin-bottom:8px
}
.bartrack{
  height:12px;
  background:#eeeef1;
  border-radius:5px
}
.barfill{
  height:100%;
  border-radius:5px;
  background:var(--accent)
}
.barrow:nth-child(2) .barfill{
  background:#68686e
}
.barrow:nth-child(3) .barfill{
  background:#aaaab0
}
.benefits{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:32px;
  padding:40px 16px
}
.benefit-icon{
  display:grid;
  place-items:center;
  width:58px;
  height:58px;
  border-radius:50%;
  background:#ededf0;
  color:var(--accent);
  font-size:1.8rem;
  margin-bottom:18px
}
.benefits h3{
  font-size:1.1rem
}
.benefits p{
  font-size:.875rem;
  color:var(--muted);
  margin:0
}
.how{
  margin:0 0 40px
}
.how ol{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
  list-style:none;
  padding:0;
  margin:24px 0 0
}
.how li{
  display:flex;
  gap:15px
}
.how li+li{
  border-left:1px solid var(--line);
  padding-left:24px
}
.how li>span{
  flex-shrink:0;
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  background:var(--soft);
  border-radius:50%;
  color:var(--accent);
  font-weight:700
}
.how h3{
  font-size:1rem;
  letter-spacing:-.02em
}
.how p{
  font-size:.875rem;
  color:var(--muted);
  margin:0
}
.source-heading{
  padding:0 4px 22px
}
.source-heading p{
  margin-bottom:8px
}
.sources{
  margin-top:20px;
  scroll-margin-top:24px
}
.sourcegrid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px
}
.sourcegrid p,.sourcegrid a,.sources details{
  font-size:.875rem
}
.sources details{
  border-top:1px solid var(--line);
  padding-top:20px;
  margin-top:22px
}
.sources summary{
  cursor:pointer;
  font-weight:600;
  margin-bottom:12px
}
.site-footer{
  max-width:1288px;
  margin:auto;
  border-top:1px solid var(--line);
  padding:30px 0;
  display:flex;
  justify-content:space-between;
  gap:32px;
  font-size:.875rem
}
.site-footer .brand-logo{
  width:240px;
  height:50px;
  margin-bottom:15px
}
.site-footer strong{
  display:block;
  font-size:.875rem
}
.site-footer address{
  font-style:normal;
  color:var(--muted);
  margin:12px 0
}
.site-footer small{
  display:block;
  font-size:.75rem
}
.footer-links{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  align-content:flex-start;
  max-width:450px
}
.footer-links a,.footer-links button{
  font-size:.8125rem
}
.footer-links button{
  padding:0;
  min-height:0
}
.legal-header{
  max-width:1288px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:28px 0;
  gap:24px
}
.legal-main{
  max-width:980px;
  margin:auto;
  padding:40px 30px 70px
}
.legal-main h1{
  font-size:2.5rem
}
.legal-main h2{
  font-size:1.5rem;
  margin-top:32px
}
.legal-main address{
  font-style:normal
}
.legal-meta{
  font-size:.875rem;
  color:var(--muted)
}
.legal-note{
  border-left:3px solid var(--accent);
  padding:15px;
  background:var(--tint)
}
dialog{
  max-width:660px;
  width:calc(100% - 32px);
  max-height:85dvh;
  overflow:auto;
  border:1px solid var(--line);
  border-radius:16px;
  padding:30px;
  color:var(--ink)
}
dialog::backdrop{
  background:#222126aa
}
#selectionError{
  color:#982525
}
#selectionDialog h2{
  font-size:1.5rem
}
.cookie-consent{
  position:fixed;
  z-index:30;
  right:24px;
  bottom:24px;
  width:min(540px,calc(100% - 32px));
  max-height:80dvh;
  overflow:auto;
  background:white;
  border:1px solid var(--line);
  border-radius:16px;
  padding:24px;
  box-shadow:0 18px 65px #22212630
}
.cookie-consent h2{
  font-size:1.2rem
}
.cookie-consent p{
  font-size:.875rem
}
.cookie-actions{
  display:flex;
  gap:12px;
  margin-top:18px
}
.cookie-actions button,.cookie-actions .primary{
  flex:1;
  background:white;
  border:1px solid var(--accent);
  color:var(--accent)
}
code{
  background:var(--soft);
  padding:3px 5px
}
@media(max-width:1050px){
  .site-header{
    padding:22px 26px;
    flex-wrap:wrap
  }
  .site-header nav{
    gap:22px
  }
  .hero{
    min-height:420px
  }
  .hero-visual{
    min-height:420px
  }
  .hero h1{
    font-size:2.7rem
  }
  .demo-card{
    left:18px;
    top:20px;
    padding:16px
  }
  .demo-card strong{
    font-size:2rem
  }
  .common-grid{
    grid-template-columns:1fr 1fr
  }
  .common-grid section:last-child{
    grid-column:1/-1;
    border:0;
    padding:20px 0 0;
    border-top:1px solid var(--line)
  }
  .filters,.fiscal-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .site-footer,.legal-header{
    margin-inline:30px
  }
  .how ol{
    grid-template-columns:1fr 1fr
  }
  .how li:nth-child(3){
    border-left:0;
    padding-left:0
  }
  .stepper button{
    gap:6px;
    padding:8px
  }
  .stepper b{
    font-size:.75rem
  }
}
@media(max-width:760px){
  main{
    padding:0 18px 36px
  }
  .implementation-notice{
    margin:10px 18px 0;
    align-items:flex-start;
    flex-direction:column;
    gap:12px
  }
  .implementation-notice-close{
    align-self:flex-start
  }
  .site-header{
    padding:18px;
    gap:12px
  }
  .site-header nav{
    width:100%;
    gap:18px;
    flex-wrap:nowrap;
    overflow:auto;
    white-space:nowrap;
    padding-bottom:8px
  }
  .brand-logo{
    width:250px;
    height:50px
  }
  .hero{
    grid-template-columns:1fr;
    gap:0
  }
  .hero-copy{
    padding:20px 6px
  }
  .hero h1{
    font-size:2.6rem;
    max-width:600px
  }
  .hero-visual{
    min-height:320px
  }
  .hero-visual>img{
    object-position:70% 65%
  }
  .demo-card{
    max-width:230px;
    top:16px;
    left:16px;
    padding:12px 16px
  }
  .demo-card strong{
    font-size:1.8rem
  }
  .demo-card small{
    font-size:.75rem
  }
  .calculator{
    padding:22px 18px
  }
  .sectionhead{
    align-items:flex-start;
    flex-wrap:wrap;
    gap:12px
  }
  .stepper{
    gap:2px
  }
  .stepper button{
    flex-direction:column;
    text-align:center;
    padding:8px 3px;
    justify-content:flex-start
  }
  .stepper b{
    font-size:.75rem;
    line-height:1.3
  }
  .stepper span{
    width:26px;
    height:26px;
    font-size:.75rem
  }
  .entry-options{
    grid-template-columns:1fr;
    gap:12px
  }
  .entry-options label{
    min-height:88px;
    padding:18px
  }
  .selected-tray{
    display:block
  }
  .selected-tray>.textbutton{
    padding-left:0;
    margin-top:10px
  }
  .results{
    grid-template-columns:1fr
  }
  .common-grid{
    grid-template-columns:1fr
  }
  .common-grid section+section{
    border:0;
    padding:20px 0 0;
    border-top:1px solid var(--line)
  }
  .common-grid section:last-child{
    grid-column:auto
  }
  .fiscal,.scenario-common{
    padding:20px
  }
  .benefits{
    grid-template-columns:1fr 1fr;
    gap:24px;
    padding:30px 6px
  }
  .sourcegrid{
    grid-template-columns:1fr
  }
  .site-footer{
    display:block;
    margin:0 24px
  }
  .footer-links{
    margin-top:24px
  }
  .summary-grid{
    grid-template-columns:1fr
  }
  .stage-actions{
    align-items:stretch;
    flex-wrap:wrap
  }
  .stage-actions>button{
    flex:1
  }
  .stage-actions>p{
    width:100%
  }
  .accordion summary span{
    display:block;
    margin:5px 0 0
  }
  .document-progress{
    gap:12px;
    font-size:.75rem
  }
  .result-grid{
    grid-template-columns:1fr
  }
  .numbers>div:first-child strong{
    font-size:2.5rem
  }
  .barlabel{
    flex-wrap:wrap;
    gap:4px
  }
  .legal-header{
    margin:0 20px
  }
  .legal-header .brand-logo{
    width:200px
  }
  .legal-header>a:last-child{
    font-size:.8125rem
  }
}
@media(max-width:450px){
  .hero h1{
    font-size:2.2rem
  }
  .hero-actions{
    display:grid;
    grid-template-columns:1fr
  }
  .search-form{
    flex-wrap:wrap
  }
  .search-form label{
    flex-basis:100%
  }
  .search-form button{
    width:100%
  }
  .filters,.refinements,.fiscal-grid,.twocol{
    grid-template-columns:1fr
  }
  .how ol{
    grid-template-columns:1fr
  }
  .how li+li{
    border:0;
    padding:0
  }
  .benefits h3{
    font-size:1rem
  }
  .document-progress{
    gap:8px
  }
  .document-progress li{
    flex:1
  }
  .filelist li{
    align-items:flex-start;
    flex-wrap:wrap
  }
  .stage-actions button{
    flex-basis:100%
  }
  .cookie-consent{
    right:16px;
    bottom:16px
  }
  .cookie-actions{
    flex-wrap:wrap
  }
  .cookie-actions button{
    flex-basis:100%
  }
}
@media(prefers-reduced-motion:reduce){
  *{
    scroll-behavior:auto!important;
    transition:none!important
  }
}
@media print{
  .site-header,.hero,.stepper,.entry-choice,.selected-tray,.stage-actions,.benefits,.how,.cookie-consent,button{
    display:none!important
  }
  .calculator{
    border:0;
    padding:0
  }
  .card{
    break-inside:avoid;
    box-shadow:none
  }
  .result-grid{
    display:block
  }
  .card{
    margin:16px 0
  }
  .site-footer{
    font-size:10pt
  }
}
