:root {
  color-scheme: light;
  --paper: #f7f8f2;
  --ink: #193e34;
  --muted: #4a6055;
  --rule: #cbd4c8;
  --lime: #a7c465;
  font: 16px/1.5 Inter, Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: #38644d; }
:focus-visible { outline: 3px solid #aa670c; outline-offset: 3px; }
.frame { max-width: 1176px; min-height: 100vh; min-height: 100svh; margin: auto; padding: 0 clamp(20px,5vw,68px); display: flex; flex-direction: column; }
.masthead { display: flex; align-items: center; padding: 27px 0; border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; gap: .75rem; align-items: center; font-size: 1.06rem; font-weight: 700; text-decoration: none; }
.brand img { border-radius: 12px; }
.intro { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: clamp(56px,9vh,118px) 0; }
h1, h2 { margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem,7.3vw,6.25rem); letter-spacing: -.066em; line-height: 1.03; font-weight: 650; }
h1 span { color: #798e48; }
.intro > p, .account-intro > p { font-size: clamp(1.05rem,2vw,1.35rem); line-height: 1.6; max-width: 47ch; margin: 27px 0 0; color: var(--muted); }
.foot { padding: clamp(22px,3vw,37px) 0; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; }
.foot p { color: var(--muted); font-size: .85rem; margin: 0 0 3px; }
.mail { font-size: 1.2rem; }
.foot-link { color: var(--muted); font-size: .88rem; }
.account { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); align-items: start; gap: clamp(24px,6vw,90px); flex: 1; padding: clamp(40px,7vw,80px) 0; }
.account h1 { font-size: clamp(2.6rem,6.7vw,5.25rem); }
.account-intro > p { font-size: 1.05rem; max-width: 37ch; }
.card { min-width: 0; background: #fff; padding: clamp(20px,3vw,36px); border: 1px solid var(--rule); border-radius: 18px; }
h2 { font-size: 1.65rem; line-height: 1.2; letter-spacing: -.04em; }
.card p { color: var(--muted); }
form { margin-top: 22px; }
form > label { display: block; font-size: .95rem; font-weight: 600; margin: 15px 0 5px; }
form label span { font-size: .82rem; font-weight: 450; color: var(--muted); }
form input:not([type="checkbox"]) { width: 100%; background: #fff; border: 1px solid #8a9b91; color: var(--ink); font: inherit; padding: .6rem .8rem; border-radius: 6px; }
form button { display: block; width: 100%; background: var(--ink); color: #fff; border: 0; border-radius: 7px; padding: .82rem; font: inherit; font-weight: 600; cursor: pointer; margin-top: 22px; }
form button:hover { background: #275b48; }
form button:disabled { opacity: .63; cursor: wait; }
.statement { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; }
.statement input { accent-color: var(--ink); margin: 4px 0 0; width: 17px; height: 17px; flex: none; }
.statement label { font-size: .9rem; }
.links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; font-size: .94rem; }
#account-status { color: #88370f; margin-bottom: 0; font-size: .92rem; }
#account-status:empty { display: none; }
.policy { max-width: 52rem; padding: clamp(38px,6vw,80px) 0; }
.policy h1 { font-size: clamp(2.3rem,5vw,3.8rem); margin-bottom: 32px; }
.policy h2 { margin: 2rem 0 .6rem; font-size: 1.45rem; }
.policy p { color: var(--muted); }
@media (max-width: 700px) {
  .masthead { padding: 18px 0; }
  .brand img { width: 36px; height: 36px; border-radius: 9px; }
  .account { grid-template-columns: minmax(0,1fr); gap: 22px; }
  .account-intro br { display: none; }
  .account-intro h1 { font-size: 2.45rem; }
  .account-intro > p { margin-top: 12px; }
}
@media (max-width: 380px) {
  .foot { align-items: start; flex-direction: column; }
  .card { padding: 18px; }
}
.open-work { display: block; text-align: center; padding: .82rem; color: white; background: var(--ink); text-decoration: none; font-weight: 600; border-radius: 7px; }
.open-work:hover { color: #fff; background: #275b48; }
.pairing { padding: 18px 0; margin-top: 20px; border-block: 1px solid var(--rule); }
.pairing summary { cursor: pointer; font-weight: 600; }
.pairing p { font-size: .94rem; }
.logout { margin: 18px 0 0; }
.logout button { width: auto; margin: 0; padding: 4px 0; background: transparent; color: var(--ink); text-decoration: underline; }
#account-status.success { color: var(--ink); }

.estimate-guide { width: min(100%, 50rem); margin: clamp(42px,8vw,95px) auto; }
.estimate-guide h1 { font-size: clamp(2.35rem,6.6vw,4.7rem); letter-spacing: -.055em; }
.guide-lead { max-width: 61ch; color: var(--muted); font-size: clamp(1.05rem,2vw,1.3rem); line-height: 1.55; }
.estimate-guide section { margin: clamp(30px,5vw,48px) 0; }
.estimate-guide h2 { font-size: clamp(1.45rem,3vw,2rem); }
.estimate-guide section > p { max-width: 68ch; }
.guide-example { padding: clamp(16px,4vw,36px); border: 1px solid var(--rule); border-radius: 14px; background: #fff; }
.guide-example .guide-math { border-left: 3px solid var(--lime); padding-left: 12px; font-size: clamp(1.05rem,2.4vw,1.45rem); }
.guide-example table { width: 100%; border-collapse: collapse; text-align: left; }
.guide-example caption { margin: 15px 0 7px; text-align: left; font-weight: 650; }
.guide-example th, .guide-example td { padding: .6rem .45rem .6rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.guide-example thead th { color: var(--muted); font-size: .85rem; }
.guide-example tbody th { width: 62%; font-weight: 500; }
.guide-terms dt { margin-top: 1.15rem; font-weight: 700; }
.guide-terms dd { margin: .25rem 0; color: var(--muted); }
.guide-related { border-top: 1px solid var(--rule); padding-top: 1.2rem; }

.front .masthead { justify-content: space-between; gap: 20px; }
.front-nav { display: flex; gap: clamp(14px, 3vw, 36px); align-items: center; }
.front-nav a { font-size: .94rem; font-weight: 550; text-decoration: none; }
.front-nav a:hover { text-decoration: underline; }
.front-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); align-items: center; gap: clamp(24px, 6vw, 78px); padding: clamp(46px, 6.5vw, 84px) 0; }
.front h1 { font-size: clamp(2.42rem, 4.55vw, 3.75rem); line-height: 1.02; letter-spacing: -.055em; font-weight: 680; }
.front h1 em { font-style: normal; color: #527452; }
.front-lead > p { font-size: clamp(1.05rem, 1.6vw, 1.23rem); line-height: 1.55; color: var(--muted); max-width: 46ch; margin: 24px 0; }
.front-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 7px; padding: 11px 20px; background: var(--ink); color: #fff; font-weight: 650; text-decoration: none; }
.front-cta:hover { background: #2a5342; color: #fff; }
.estimate-sample { overflow: hidden; border: 1px solid #c1ccbd; border-radius: 14px; background: #fff; margin: 0; box-shadow: 0 7px 25px rgba(30, 60, 42, .07); }
.estimate-sample figcaption { background: #214638; padding: 16px clamp(17px, 2vw, 28px) 18px; color: #fff; }
.estimate-sample figcaption span { display: block; color: #d3e2be; font-size: .85rem; font-weight: 600; }
.estimate-sample figcaption strong { display: block; font-size: clamp(1.38rem, 2.45vw, 2rem); line-height: 1.18; letter-spacing: -.035em; margin-top: 3px; }
.estimate-image { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; object-position: center 62%; }
.estimate-sample dl { margin: 0; padding: 0 clamp(17px, 2vw, 28px); }
.estimate-sample dl > div { display: grid; grid-template-columns: 6rem 1fr; gap: 8px; padding: 12px 0; font-size: .9rem; line-height: 1.4; }
.estimate-sample dl > div + div { border-top: 1px solid #dfe4dc; }
.estimate-sample dt { color: var(--muted); }
.estimate-sample dd { margin: 0; font-weight: 560; }
.front-section { border-top: 1px solid var(--rule); padding: clamp(38px, 5.3vw, 66px) 0; scroll-margin-top: 20px; }
.front-section h2 { font-size: clamp(1.8rem, 3.35vw, 2.9rem); line-height: 1.08; letter-spacing: -.047em; }
.front-section h3 { margin: 0; font-size: clamp(1.16rem, 1.7vw, 1.42rem); line-height: 1.25; letter-spacing: -.026em; }
.front-section p { margin: 10px 0 0; line-height: 1.55; color: var(--muted); }
.front-process { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 40px); margin-top: 27px; }
.front-process section { border-left: 3px solid #a9bb95; padding-left: 15px; }
.front-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(24px, 6vw, 80px); }
.front-trades { display: grid; gap: 19px; }
.front-trades > div + div, .front-faq details + details { border-top: 1px solid var(--rule); padding-top: 17px; }
.front-trades p { margin: 5px 0 0; }
.front-trades h3 a { text-decoration-color: #9bab8e; }
.front-trades h3 a:hover { text-decoration-color: currentColor; }
.front-faq details { padding-bottom: 16px; }
.front-faq details:last-child { padding-bottom: 0; }
.front-faq summary { cursor: pointer; font-weight: 650; line-height: 1.5; list-style: none; display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.front-faq summary::-webkit-details-marker { display: none; }
.front-faq summary::after { content: "+"; color: #406946; font-size: 1.3rem; line-height: 1.15; font-weight: 500; }
.front-faq details[open] summary::after { content: "−"; }
.front-foot .mail { font-size: clamp(1.5rem, 3vw, 2rem); }
@media (max-width: 780px) {
  .front-hero { grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 23px; }
  .estimate-sample dl > div { grid-template-columns: auto 1fr; }
  .front-process { gap: 15px; }
}
@media (max-width: 650px) {
  .front-hero, .front-split, .front-process { grid-template-columns: minmax(0,1fr); }
  .front-hero { padding: 24px 0 18px; gap: 20px; }
  .front h1 { font-size: clamp(2.3rem, 8vw, 3.3rem); max-width: 17ch; }
  .front-lead > p { margin: 17px 0 20px; }
  .estimate-image { max-height: 220px; }
  .front-process { gap: 21px; margin-top: 20px; }
  .front-split { gap: 22px; }
  .front-nav { gap: 14px; }
  .front-nav a { font-size: .88rem; }
}
@media (max-width: 389px) {
  .front .masthead { gap: 10px; }
  .front .brand { gap: 6px; font-size: .95rem; }
  .front-nav { gap: 9px; }
  .front-nav a { font-size: .81rem; }
}

.front-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.front-login { display: inline-flex; min-height: 44px; align-items: center; font-weight: 650; }
.customer-note { font-size: .96rem; line-height: 1.5; color: var(--muted); margin: 0 0 24px; border-left: 3px solid #a9bb95; padding-left: 12px; }
.master-entry { flex: 1; width: min(100%, 34rem); margin: clamp(24px, 5vw, 64px) auto; }
.master-entry h1 { font-size: clamp(2.1rem, 5vw, 3.25rem); letter-spacing: -.05em; }
.master-entry .entry-intro { color: var(--muted); line-height: 1.5; margin: 12px 0 22px; overflow-wrap: anywhere; }
.master-entry .entry-intro:empty { margin-bottom: 20px; }
.master-entry .card { padding: clamp(18px, 3.6vw, 32px); }
.master-entry section > p:first-child { margin-top: 0; }
.master-entry section > form:first-child { margin-top: 0; }
.master-entry form > label:first-child { margin-top: 0; }
.master-entry form [hidden], .master-entry [hidden] { display: none; }
.master-entry #activation-code-field label { display: block; font-size: .95rem; font-weight: 600; margin-bottom: 5px; }
.master-entry .input-hint { font-size: .9rem; line-height: 1.45; color: var(--muted); margin: 6px 0 0; }
.master-entry .member-actions + .input-hint { margin-top: 15px; }
.member-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.member-actions #orders-link { grid-column: 1 / -1; margin: 0; background: #c7df85; color: #153c33; border: 1px solid #9db777; }
.member-actions #orders-link:hover { background: #b7d66a; }
.secondary-button { display: inline-flex; align-items: center; justify-content: center; text-align: center; border: 1px solid #728774; border-radius: 7px; color: var(--ink); background: white; text-decoration: none; padding: .8rem; font: inherit; font-weight: 600; cursor: pointer; }
.secondary-button:hover { background: #f0f5ed; color: var(--ink); }
.secondary-button:disabled { opacity: .63; cursor: wait; }
@media (max-width: 530px) { .member-actions { grid-template-columns: minmax(0, 1fr); } }

.trade-picker { padding: 0; border: 0; margin: 18px 0 0; min-width: 0; }
.trade-picker legend, #other-trade-field label { padding: 0; font-size: .95rem; font-weight: 600; }
.trade-picker .input-hint { margin-top: 2px; }
.trade-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 7.3rem), 1fr)); gap: 6px; margin: 8px 0 0; }
.trade-options label { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 6px 8px; border: 1px solid var(--rule); border-radius: 7px; font-size: .9rem; line-height: 1.25; cursor: pointer; }
.trade-options input { width: 16px; height: 16px; flex: none; margin: 0; accent-color: var(--ink); }
.trade-options label:has(input:checked) { background: #edf3e6; border-color: #70836f; }
#other-trade-field { margin-top: 10px; }
#other-trade-field label { display: block; margin-bottom: 5px; }
@media (max-width: 389px) {
  .front-actions { gap: 8px 12px; }
  .front-cta { padding-inline: 12px; }
  .estimate-sample figcaption { padding: 10px 16px; }
  .front-hero { padding-top: 20px; }
}
.remember-choice { margin: 12px 0 0; }
.remember-choice label span { display: block; margin-top: 2px; }
.receipt-code { padding: .8rem 1rem; margin: 18px 0; border: 1px solid #c3d0bb; border-left: 4px solid #789363; border-radius: 6px; background: #f3f6ee; }
.receipt-code > span { display: block; font-size: .9rem; }
.receipt-code strong { display: block; font: 650 clamp(1.45rem, 3.4vw, 2rem)/1.4 ui-monospace, monospace; letter-spacing: .1em; }
.receipt-code p { margin: .25rem 0 0; font-size: .94rem; }
.receipt-check { border: 0; width: 100%; font: inherit; font-weight: 650; cursor: pointer; }
.receipt-check:disabled { opacity: .63; cursor: wait; }
.receipt-options { padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--rule); }
.receipt-options summary { cursor: pointer; font-weight: 600; }
.receipt-options p, .receipt-options .links { font-size: .94rem; }
.receipt-options .links { margin-top: 8px; }
.text-button { border: 0; padding: 3px 0; background: transparent; color: var(--ink); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: .22em; }
.forget-receipt { color: var(--muted); font-size: .86rem; margin-top: 18px; }
