/* BitLabels — "label paper" aesthetic: warm kraft paper, ink navy, Bitcoin-orange accent */
:root {
  --ink: #0f1b2d;
  --ink-2: #2b3a52;
  --muted: #5d6b80;
  --paper: #f7f2e8;
  --card: #fffdf8;
  --line: #e3dccd;
  --brand: #f7931a;        /* Bitcoin orange: fills, buttons (with navy text) */
  --brand-dark: #b45309;   /* readable orange for text and links on light backgrounds */
  --brand-hover: #e8850f;
  --brand-soft: #fff0dc;
  --warn: #b54708;
  --warn-soft: #fff4e5;
  --err: #c92a2a;
  --err-soft: #ffe8e8;
  --radius: 14px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper);
  line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-dark); }
img, svg { display: block; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(247, 242, 232, .9);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.brand b { color: var(--brand-dark); }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--ink); }
@media (max-width: 640px) { .nav a:not(.btn) { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 0; cursor: pointer; font: inherit;
  font-weight: 700; text-decoration: none; transition: transform .08s, background .15s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #1b2d4a; }
.btn-brand { background: var(--brand); color: var(--ink); box-shadow: 0 6px 18px rgba(247, 147, 26, .3); }
.btn-brand:hover { background: var(--brand-hover); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-sm { padding: 8px 14px; font-size: .9rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero-art { display: none; } }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-family: var(--mono); font-size: .8rem;
  text-transform: uppercase; letter-spacing: .08em; color: var(--brand-dark); background: var(--brand-soft);
  padding: 6px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -.035em; margin: 18px 0 16px; }
.hero h1 em { font-style: normal; color: var(--brand-dark); }
.hero p.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 34em; margin: 0 0 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; color: var(--muted); font-size: .92rem; }
.trust span::before { content: "✓"; color: var(--brand); font-weight: 800; margin-right: 6px; }

/* label illustration */
.hero-art { position: relative; height: 420px; }
.label-card { position: absolute; background: #fff; border: 2px solid var(--ink); border-radius: 10px;
  padding: 18px; width: 290px; box-shadow: 10px 10px 0 var(--ink); font-family: var(--mono); font-size: .78rem; }
.label-card.one { top: 20px; left: 40px; transform: rotate(-4deg); }
.label-card.two { top: 150px; left: 130px; transform: rotate(3deg); box-shadow: 10px 10px 0 var(--brand); }
.label-card .row { display: flex; justify-content: space-between; border-bottom: 1.5px dashed var(--line); padding: 6px 0; }
.label-card .big { font-family: var(--sans); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.barcode { height: 46px; margin-top: 10px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px); }
.paid-stamp { position: absolute; right: 14px; bottom: 50px; transform: rotate(-12deg); border: 3px solid var(--brand);
  color: var(--brand-dark); font-family: var(--sans); font-weight: 900; padding: 4px 10px; border-radius: 6px; letter-spacing: .06em; }

/* ---------- sections ---------- */
section { padding: 56px 0; }
.section-title { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.03em; margin: 0 0 8px; }
.section-sub { color: var(--muted); margin: 0 0 32px; max-width: 40em; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--mono); color: var(--brand-dark);
  font-weight: 700; font-size: .85rem; }
.step h3 { margin: 8px 0 6px; font-size: 1.08rem; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- quote form ---------- */
.ship { background: var(--ink); color: #fff; border-radius: 28px; padding: 44px; margin: 0 20px; }
@media (max-width: 640px) { .ship { padding: 26px 18px; margin: 0; border-radius: 0; } }
.ship .section-sub { color: #b9c4d6; }
.panel { background: var(--card); color: var(--ink); border-radius: var(--radius); padding: 26px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 820px) { .grid-2 { grid-template-columns: 1fr; } }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 800; font-size: 1.05rem; margin-bottom: 12px; display: flex; gap: 8px; align-items: center; }
legend .tag { font-family: var(--mono); font-size: .72rem; background: var(--brand-soft); color: var(--brand-dark);
  padding: 3px 8px; border-radius: 6px; }
.fields { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.f { grid-column: span 6; display: flex; flex-direction: column; gap: 4px; }
.f.s3 { grid-column: span 3; } .f.s2 { grid-column: span 2; } .f.s4 { grid-column: span 4; } .f.s1 { grid-column: span 1; }
@media (max-width: 520px) { .f.s1, .f.s2, .f.s3, .f.s4 { grid-column: span 6; } }
label { font-size: .82rem; font-weight: 600; color: var(--ink-2); }
input, select { font: inherit; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.hint { font-size: .78rem; color: var(--muted); }
.parcel-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 20px; }
@media (max-width: 720px) { .parcel-row { grid-template-columns: 1fr 1fr; } }
.form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; }

/* rates */
.rates { display: grid; gap: 10px; margin-top: 10px; }
.rate { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px;
  border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; transition: border-color .12s; }
.rate:hover { border-color: var(--ink-2); }
.rate input { width: 18px; height: 18px; accent-color: var(--brand); }
.rate.selected { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.rate .carrier { font-weight: 800; }
.rate .svc { color: var(--muted); font-size: .9rem; }
.rate .price { font-family: var(--mono); font-weight: 800; font-size: 1.15rem; }
.badge { font-family: var(--mono); font-size: .7rem; background: var(--brand); color: var(--ink); padding: 2px 7px;
  border-radius: 5px; margin-left: 6px; vertical-align: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin-top: 16px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); }

/* alerts */
.alert { padding: 12px 14px; border-radius: 10px; font-size: .93rem; margin-top: 14px; }
.alert-err { background: var(--err-soft); color: var(--err); }
.alert-warn { background: var(--warn-soft); color: var(--warn); }
.alert-ok { background: var(--brand-soft); color: var(--brand-dark); }
.hidden { display: none !important; }
.test-banner { background: var(--warn-soft); color: var(--warn); text-align: center; font-size: .88rem;
  padding: 8px 12px; border-bottom: 1px solid #f5d0a9; font-weight: 600; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 10px; max-width: 820px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
summary::after { content: "+"; font-family: var(--mono); color: var(--brand-dark); font-size: 1.2rem; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--ink-2); }

/* ---------- order page ---------- */
.order-box { max-width: 640px; margin: 48px auto; background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 32px; }
.status-pill { display: inline-block; font-family: var(--mono); font-size: .8rem; padding: 5px 10px;
  border-radius: 999px; background: var(--line); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.status-pill.ok { background: var(--brand-soft); color: var(--brand-dark); }
.status-pill.wait { background: var(--warn-soft); color: var(--warn); }
.status-pill.bad { background: var(--err-soft); color: var(--err); }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; margin: 22px 0; font-size: .95rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; word-break: break-all; }
.mono { font-family: var(--mono); }
.spinner { width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent;
  border-radius: 50%; display: inline-block; animation: spin .8s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- legal / prose ---------- */
.prose { max-width: 760px; margin: 40px auto 80px; }
.prose h1 { letter-spacing: -.03em; } .prose h2 { margin-top: 2em; font-size: 1.25rem; }
.prose li { margin: 4px 0; }

/* ---------- table (admin) ---------- */
table { width: 100%; border-collapse: collapse; font-size: .88rem; background: var(--card); }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; margin-top: 40px; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-2); margin-left: 16px; }

/* fixes */
.nav a.btn-primary { color: #fff; }
.nav a.btn-primary:hover { color: #fff; }
.parcel-row .f { grid-column: auto; }
.weight-tip { margin: 4px 0 0; display: flex; gap: 8px; align-items: flex-start; }
.weight-tip::before { content: "⚖"; font-size: 1.05rem; line-height: 1.3; }

/* ---------- region / units toggles ---------- */
.region-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px dashed var(--line); }
.region-title { font-weight: 800; }
.seg { display: inline-flex; background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: .92rem; color: var(--ink-2); }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 1px; }
.seg-sm span { padding: 5px 12px; font-size: .82rem; }
.pkg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.pkg-head legend { margin: 0; }
.pkg-type { margin-top: 16px; max-width: 460px; }
.parcel-row .f.locked input { background: var(--paper); color: var(--muted); }
.req { color: var(--err); }

/* ---------- customs ---------- */
.customs { margin-top: 24px; padding: 18px; border: 1.5px dashed var(--brand); border-radius: 12px; background: var(--brand-soft); }
.customs legend { padding: 0 6px; }

.terms-note { font-size: .82rem; color: var(--muted); text-align: right; margin: 12px 0 0; }
@media (max-width: 640px) { .terms-note { text-align: left; } }
section[id] { scroll-margin-top: 80px; }

/* ---------- shared header/footer ---------- */
.site-header { min-height: 69px; }
.nav a[aria-current="page"]:not(.btn) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.site-footer { margin-top: 60px; padding: 44px 0 26px; background: var(--card); }
.site-footer .wrap { display: grid; }
.footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand p { margin: 8px 0 0; color: var(--muted); }
.footer-col h4 { margin: 0 0 10px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-family: var(--mono); }
.footer-col a { display: block; margin: 0 0 8px; color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.footer-col a:hover { color: var(--brand-dark); text-decoration: underline; }
.footer-bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.site-footer .footer-col a { margin-left: 0; }

/* ---------- homepage FAQ teaser ---------- */
.teaser { display: flex !important; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px 32px; }

/* ---------- inner pages ---------- */
.page-hero { padding: 54px 0 10px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.03em; margin: 0 0 10px; }
.page-hero p { color: var(--ink-2); max-width: 44em; margin: 0; font-size: 1.08rem; }
.faq-group { margin: 34px 0 0; max-width: 860px; }
.faq-group h2 { font-size: 1.15rem; margin: 0 0 12px; }
.tool-card { max-width: 720px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; margin-top: 26px; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.inline-form .f { flex: 1 1 280px; }
.timeline { list-style: none; margin: 18px 0 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 20px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--line); }
.timeline li:first-child::before { background: var(--brand); border-color: var(--brand); }
.timeline .t-when { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.timeline .t-what { font-weight: 700; }
.timeline .t-where { color: var(--ink-2); font-size: .92rem; }
.carrier-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.result-list { display: grid; gap: 10px; margin-top: 16px; }
.result-item { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fff; }
.site-footer .footer-brand a.brand { margin-left: 0; }
@media (max-width: 640px) {
  .site-header .wrap { height: auto; flex-wrap: wrap; gap: 8px; padding: 10px 0; }
  .site-header .nav { width: 100%; overflow-x: auto; gap: 18px; padding-bottom: 4px; }
  .site-header .nav a:not(.btn) { display: inline-block; white-space: nowrap; font-size: .9rem; }
  .site-header .nav .btn { margin-left: auto; white-space: nowrap; }
}
.site-header .nav { margin-left: auto; margin-right: 22px; }
@media (max-width: 640px) {
  .site-header .header-cta { margin-left: auto; order: 2; }
  .site-header .nav { order: 3; margin: 0; }
}

/* ---------- customs item lines ---------- */
.items-head, .item-row { display: grid; grid-template-columns: 2.2fr 1.1fr .6fr 1fr 1.3fr 34px; gap: 8px; align-items: end; }
.items-head { margin-top: 14px; font-size: .78rem; font-weight: 700; color: var(--ink-2); }
.items-head a { font-weight: 600; }
.item-row { margin-top: 6px; }
.item-row .rm { width: 34px; height: 42px; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; color: var(--muted); font-size: 1.1rem; }
.item-row .rm:hover { color: var(--err); border-color: var(--err); }
.items-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .items-head { display: none; }
  .item-row { grid-template-columns: 1fr 1fr; padding: 10px; border: 1px dashed var(--line); border-radius: 10px; background: #fff; }
  .item-row > *:first-child { grid-column: 1 / -1; }
  .item-row input::placeholder { color: var(--muted); }
}
#filing-panel { margin-top: 18px; }

.hv-callout { margin: 40px 0 10px; background: var(--ink); color: #fff; border-radius: 24px; padding: 34px; display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; align-items: center; }
.hv-callout a { color: var(--brand); } .hv-callout h2 { margin: 12px 0 8px; font-size: 1.6rem; letter-spacing: -.02em; }
.hv-callout li { margin: 6px 0; color: #dfe6f0; } .hv-callout p { color: #dfe6f0; }
.hv-steps { display: grid; gap: 10px; }
.hv-steps div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); border-radius: 12px; padding: 12px 14px; }
.hv-steps b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: var(--ink); margin-right: 8px; }
@media (max-width: 820px) { .hv-callout { grid-template-columns: 1fr; padding: 24px; } }
