:root {
  --ink: #10242b;
  --muted: #52666b;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --teal: #0d6d68;
  --teal-dark: #07504d;
  --teal-soft: #e1f1ed;
  --gold: #e8a23a;
  --gold-soft: #fff1d8;
  --line: #d9e2df;
  --danger: #a23a2a;
  --radius: 18px;
  --shadow: 0 18px 55px rgba(16, 36, 43, .10);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-dark); text-underline-offset: .2em; }
a:hover { color: var(--teal); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -6rem;
  z-index: 999;
  padding: .75rem 1rem;
  background: var(--ink);
  color: white;
  border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 2rem), 780px); margin-inline: auto; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--soft { background: var(--teal-soft); }
.section--dark { background: var(--ink); color: white; }
.section--gold { background: var(--gold-soft); }
.eyebrow {
  margin: 0 0 .75rem;
  color: var(--teal);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.section--dark .eyebrow { color: #83d5cc; }
h1, h2, h3 {
  margin: 0 0 .8rem;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
  letter-spacing: -.025em;
}
h1 { font-size: clamp(2.75rem, 7vw, 5.8rem); max-width: 13ch; }
h2 { font-size: clamp(2rem, 4.5vw, 3.6rem); max-width: 17ch; }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1.15rem; }
.lead { color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.3rem); max-width: 62ch; }
.section--dark .lead { color: #c9d9d7; }
.small { font-size: .9rem; }
.muted { color: var(--muted); }
.kicker { font-weight: 750; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(16, 36, 43, .08);
  background: rgba(251, 250, 246, .94);
  backdrop-filter: blur(14px);
}
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); font-weight: 850; text-decoration: none; }
.brand svg { width: 43px; height: 43px; }
.brand-name { font-size: 1.15rem; letter-spacing: -.02em; }
.main-nav { display: flex; align-items: center; gap: .3rem; }
.main-nav a { padding: .65rem .78rem; color: var(--ink); font-size: .94rem; font-weight: 700; text-decoration: none; border-radius: 999px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--teal-soft); color: var(--teal-dark); }
.nav-toggle { display: none; border: 1px solid var(--line); background: white; border-radius: 10px; padding: .55rem .7rem; font-weight: 750; color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: .78rem 1.15rem;
  border: 2px solid var(--teal);
  border-radius: 999px;
  background: var(--teal);
  color: white;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--teal-dark); border-color: var(--teal-dark); color: white; box-shadow: 0 10px 25px rgba(13,109,104,.18); }
.btn--ghost { background: transparent; color: var(--teal-dark); }
.btn--ghost:hover { color: white; }
.btn--light { background: white; border-color: white; color: var(--ink); }
.btn--light:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 1.7rem; }

.hero { position: relative; overflow: hidden; padding: clamp(4rem, 9vw, 8rem) 0 5rem; }
.hero::before {
  content: "";
  position: absolute;
  width: 45rem;
  height: 45rem;
  right: -22rem;
  top: -26rem;
  border: 8rem solid var(--teal-soft);
  border-radius: 50%;
  opacity: .8;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.hero h1 span { color: var(--teal); }
.hero-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 30px;
  background: var(--ink);
  box-shadow: var(--shadow);
}
.hero-card::before, .hero-card::after { content: ""; position: absolute; border-radius: 50%; }
.hero-card::before { width: 330px; height: 330px; top: -120px; right: -80px; background: var(--teal); }
.hero-card::after { width: 270px; height: 270px; bottom: -120px; left: -80px; background: var(--gold); }
.hero-card__content { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; padding: 2rem; color: white; }
.hero-card__badge { align-self: flex-start; padding: .45rem .75rem; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; background: rgba(255,255,255,.12); font-weight: 750; }
.hero-card__icon { width: 132px; height: 132px; margin: auto; opacity: .96; }
.hero-card__bottom { max-width: 25ch; font-weight: 700; }

.trust-bar { border-block: 1px solid var(--line); background: white; }
.trust-list { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 1.3rem 0; list-style: none; }
.trust-list li { display: flex; align-items: center; justify-content: center; gap: .55rem; padding: .4rem 1rem; border-right: 1px solid var(--line); text-align: center; font-size: .94rem; font-weight: 750; }
.trust-list li:last-child { border-right: 0; }
.dot { width: .65rem; height: .65rem; flex: 0 0 auto; border-radius: 50%; background: var(--gold); }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.2rem; }
.section-head > :last-child { max-width: 42rem; }
.grid { display: grid; gap: 1.25rem; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 7px 26px rgba(16,36,43,.05); }
.card__icon { display: grid; width: 48px; height: 48px; place-items: center; margin-bottom: 1.2rem; border-radius: 14px; background: var(--gold-soft); color: var(--ink); font-size: 1.4rem; font-weight: 900; }
.card p:last-child { margin-bottom: 0; }
.category-card { min-height: 250px; display: flex; flex-direction: column; justify-content: space-between; }
.category-card:nth-child(even) .card__icon { background: var(--teal-soft); }
.tag { display: inline-flex; padding: .32rem .62rem; border-radius: 999px; background: var(--teal-soft); color: var(--teal-dark); font-size: .8rem; font-weight: 800; }

.steps { counter-reset: step; }
.step { position: relative; padding: 0 0 2rem 5rem; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; display: grid; width: 3.3rem; height: 3.3rem; place-items: center; border-radius: 50%; background: var(--teal); color: white; font-family: Georgia,serif; font-size: 1.4rem; font-weight: 800; }
.step:not(:last-child)::after { content: ""; position: absolute; left: 1.62rem; top: 3.5rem; bottom: .2rem; width: 2px; background: var(--line); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 6rem); align-items: center; }
.feature-box { padding: clamp(1.5rem, 4vw, 3rem); border-radius: 28px; background: var(--teal-dark); color: white; box-shadow: var(--shadow); }
.feature-box h2 { color: white; }
.feature-box ul { margin: 1.4rem 0 0; padding: 0; list-style: none; }
.feature-box li { display: flex; gap: .75rem; padding: .8rem 0; border-top: 1px solid rgba(255,255,255,.18); }
.feature-box li::before { content: "✓"; color: #8ee0d4; font-weight: 900; }

.banner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(1.5rem, 4vw, 3rem); border-radius: 28px; background: var(--gold-soft); }
.banner h2 { font-size: clamp(1.8rem, 4vw, 3rem); }

.page-hero { padding: clamp(3.5rem, 7vw, 6rem) 0; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, var(--teal-soft), var(--paper) 65%); }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
.prose h2 { margin-top: 2.6rem; font-size: 2rem; }
.prose h3 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .65rem; }
.notice { padding: 1.2rem 1.4rem; border-left: 5px solid var(--gold); border-radius: 8px 16px 16px 8px; background: var(--gold-soft); }

.condition-table { width: 100%; border-collapse: collapse; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.condition-table th, .condition-table td { padding: 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.condition-table th { background: var(--teal-dark); color: white; }
.condition-table tr:last-child td { border-bottom: 0; }

details { border-bottom: 1px solid var(--line); background: white; }
details:first-child { border-top: 1px solid var(--line); }
summary { cursor: pointer; padding: 1.25rem .25rem; font-weight: 800; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--teal); font-size: 1.4rem; }
details[open] summary::after { content: "−"; }
details > div { padding: 0 .25rem 1.2rem; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 1.5rem; }
.contact-card { padding: 2rem; border-radius: 24px; background: var(--ink); color: white; }
.contact-card a { color: #9ae1d8; }
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: .35rem; font-weight: 750; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: .72rem .8rem; border: 1px solid #adbfbb; border-radius: 10px; background: white; color: var(--ink); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { min-height: 1.6rem; color: var(--teal-dark); font-weight: 700; }

.inventory-empty { padding: clamp(2rem, 6vw, 4rem); border: 2px dashed #a9c5bf; border-radius: 28px; background: white; text-align: center; }
.inventory-empty svg { width: 100px; margin: 0 auto 1.2rem; color: var(--teal); }

.site-footer { padding: 3.5rem 0 1.5rem; background: var(--ink); color: #d9e5e3; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .7fr; gap: 2rem; }
.site-footer .brand { color: white; }
.site-footer h3 { color: white; font-family: inherit; font-size: 1rem; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: .45rem 0; }
.site-footer a { color: #d9e5e3; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.8rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .85rem; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 70px; left: 1rem; right: 1rem; display: none; flex-direction: column; align-items: stretch; padding: .8rem; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow); }
  .main-nav[data-open="true"] { display: flex; }
  .main-nav a { padding: .8rem 1rem; }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-card { min-height: 340px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: 1fr; }
  .trust-list { grid-template-columns: repeat(2, 1fr); }
  .trust-list li:nth-child(2) { border-right: 0; }
  .trust-list li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-head, .banner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .container, .narrow { width: min(calc(100% - 1.25rem), var(--max)); }
  .brand-name { font-size: 1.02rem; }
  .hero { padding-top: 3rem; }
  .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .trust-list { grid-template-columns: 1fr; }
  .trust-list li { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-list li:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .condition-table, .condition-table tbody, .condition-table tr, .condition-table td { display: block; width: 100%; }
  .condition-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .condition-table tr { border-bottom: 1px solid var(--line); }
  .condition-table td { border: 0; }
  .condition-table td::before { content: attr(data-label); display: block; color: var(--teal-dark); font-size: .78rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  .site-header, .site-footer, .actions, .nav-toggle { display: none !important; }
  body { background: white; color: black; }
  .section, .page-hero { padding: 1.5rem 0; }
}

/* GlucoSpare diabetic-supply buyback experience */
.site-header--dark { background: rgba(16, 36, 43, .97); border-bottom-color: rgba(255,255,255,.1); }
.brand--light { color: white; }
.brand--light:hover { color: white; }
.brand > span { display: flex; flex-direction: column; line-height: 1.1; }
.brand-sub { margin-top: .22rem; color: #a8c7c3; font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.main-nav--dark a { color: #e9f1f0; }
.main-nav--dark a:hover, .main-nav--dark a[aria-current="page"] { background: rgba(255,255,255,.12); color: white; }
.main-nav--dark .nav-cta { margin-left: .4rem; padding-inline: 1rem; background: white; color: var(--ink); }
.main-nav--dark .nav-cta:hover, .main-nav--dark .nav-cta[aria-current="page"] { background: var(--gold); color: var(--ink); }
.nav-toggle--dark { border-color: rgba(255,255,255,.25); background: transparent; color: white; }

.buyback-hero { padding: clamp(4rem,8vw,7.5rem) 0 clamp(4rem,7vw,6rem); background: white; }
.buyback-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2.5rem,7vw,7rem); align-items: center; }
.buyback-hero h1 { font-size: clamp(3rem,7vw,6rem); }
.buyback-hero h1 span { color: var(--teal); }
.supply-illustration { position: relative; min-height: 470px; display: grid; place-items: center; overflow: hidden; border-radius: 34px; background: linear-gradient(145deg,#eef8f6,#fff4df); }
.supply-illustration::before { content:""; position:absolute; width:310px; height:310px; border:70px solid rgba(13,109,104,.09); border-radius:50%; top:-130px; right:-100px; }
.supply-illustration::after { content:""; position:absolute; width:180px; height:180px; border-radius:50%; background:rgba(232,162,58,.18); bottom:-70px; left:-50px; }
.supply-illustration svg { position: relative; z-index:2; width:min(82%,420px); }
.trust-line { display:flex; flex-wrap:wrap; gap:.75rem 1.4rem; margin:1.3rem 0 0; padding:0; list-style:none; color:var(--muted); font-size:.92rem; font-weight:700; }
.trust-line li::before { content:"✓"; margin-right:.4rem; color:var(--teal); font-weight:900; }

.process-row { display:grid; grid-template-columns:repeat(5,1fr); gap:1rem; counter-reset:process; }
.process-card { position:relative; padding:1.35rem; border:1px solid var(--line); border-radius:18px; background:white; }
.process-card::before { counter-increment:process; content:counter(process); display:grid; width:2.4rem; height:2.4rem; place-items:center; margin-bottom:1rem; border-radius:50%; background:var(--teal); color:white; font-weight:900; }
.process-card:not(:last-child)::after { content:"→"; position:absolute; right:-.85rem; top:1.65rem; z-index:2; color:var(--gold); font-size:1.3rem; font-weight:900; }

.supply-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.25rem; }
.supply-card { min-height:260px; padding:1.6rem; border:1px solid var(--line); border-radius:22px; background:white; }
.supply-card__mark { display:grid; width:54px; height:54px; place-items:center; margin-bottom:1.1rem; border-radius:16px; background:var(--teal-soft); color:var(--teal-dark); font-weight:900; }
.supply-card ul { margin:.8rem 0 0; padding-left:1.1rem; color:var(--muted); }

.proof-panel { display:grid; grid-template-columns:.9fr 1.1fr; gap:2rem; align-items:center; padding:clamp(2rem,5vw,4rem); border-radius:30px; background:var(--ink); color:white; }
.proof-panel h2 { color:white; }
.proof-panel .lead { color:#c9d9d7; }
.proof-list { display:grid; grid-template-columns:1fr 1fr; gap:.8rem; margin:0; padding:0; list-style:none; }
.proof-list li { padding:1rem; border:1px solid rgba(255,255,255,.18); border-radius:14px; background:rgba(255,255,255,.06); }
.proof-list strong { display:block; color:#92ddd4; }

.quote-layout { display:grid; grid-template-columns:1.15fr .85fr; gap:1.5rem; align-items:start; }
.quote-builder, .quote-summary { padding:clamp(1.4rem,4vw,2.3rem); border:1px solid var(--line); border-radius:24px; background:white; box-shadow:var(--shadow); }
.quote-summary { position:sticky; top:100px; box-shadow:none; background:var(--teal-soft); }
.quote-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.quote-form-grid .field--wide { grid-column:1/-1; }
.quote-items { margin:1rem 0; padding:0; list-style:none; }
.quote-item { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.85rem 0; border-bottom:1px solid #b9d0cb; }
.quote-item span { display:block; color:var(--muted); font-size:.88rem; }
.quote-item button { border:0; background:transparent; color:var(--danger); font-weight:800; cursor:pointer; }
.quote-empty { padding:1rem; border:1px dashed #91b8b0; border-radius:12px; color:var(--muted); text-align:center; }
.check-row { display:flex; gap:.7rem; align-items:flex-start; margin:1rem 0; }
.check-row input { width:1.2rem; height:1.2rem; margin-top:.25rem; flex:0 0 auto; }
.count-badge { display:inline-grid; min-width:1.8rem; height:1.8rem; place-items:center; border-radius:999px; background:var(--teal); color:white; font-size:.82rem; }

.eligibility { display:grid; grid-template-columns:1fr 1fr; gap:1.25rem; }
.eligibility-card { padding:1.5rem; border-radius:20px; background:white; border:1px solid var(--line); }
.eligibility-card--yes { border-top:6px solid var(--teal); }
.eligibility-card--no { border-top:6px solid var(--danger); }
.eligibility-card ul { padding-left:1.2rem; }

.legal-note { margin:1.5rem 0 0; padding-top:1rem; border-top:1px solid rgba(255,255,255,.12); color:#9db1ae; font-size:.75rem; line-height:1.5; }
.footer-grid--wide { grid-template-columns:1.5fr .7fr .7fr .7fr; }

@media (max-width:1000px) {
  .process-row { grid-template-columns:repeat(3,1fr); }
  .process-card::after { display:none; }
  .supply-grid { grid-template-columns:repeat(2,1fr); }
  .footer-grid--wide { grid-template-columns:1.3fr 1fr 1fr; }
}
@media (max-width:900px) {
  .main-nav--dark { background:var(--ink); border-color:rgba(255,255,255,.15); }
  .main-nav--dark .nav-cta { margin-left:0; }
  .buyback-hero__grid, .proof-panel, .quote-layout { grid-template-columns:1fr; }
  .supply-illustration { min-height:370px; }
  .quote-summary { position:static; }
}
@media (max-width:680px) {
  .process-row, .supply-grid, .quote-form-grid, .eligibility, .proof-list { grid-template-columns:1fr; }
  .quote-form-grid .field--wide { grid-column:auto; }
  .footer-grid--wide { grid-template-columns:1fr; }
  .brand-sub { display:none; }
  .buyback-hero { padding-top:3rem; }
  .supply-illustration { min-height:300px; }
}
