:root {
  --ink: #24182b;
  --ink-soft: #57495d;
  --paper: #fffdf9;
  --paper-2: #f5f8f0;
  --green: #26753b;
  --green-bright: #88bf3f;
  --violet: #6d2b74;
  --violet-dark: #3e1648;
  --amber: #e59a25;
  --coral: #d95e45;
  --line: #ddd7df;
  --white: #fff;
  --shadow: 0 18px 50px rgba(45, 25, 49, 0.14);
  --radius: 8px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: var(--header-h); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Aptos", "Segoe UI Variable", "Segoe UI", sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
}
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 78px 0; }
.section-tight { padding: 52px 0; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; }
h1 { font-size: clamp(2.5rem, 7vw, 5.8rem); margin-bottom: 20px; font-weight: 850; }
h2 { font-size: clamp(2rem, 4.2vw, 3.8rem); margin-bottom: 18px; font-weight: 820; }
h3 { font-size: 1.16rem; margin-bottom: 10px; }
.lead { max-width: 700px; font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: var(--ink-soft); }

.site-header {
  position: fixed;
  z-index: 90;
  inset: 0 0 auto;
  height: var(--header-h);
  color: var(--white);
  background: rgba(29, 18, 34, 0.72);
  border-bottom: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(16px);
}
.site-header.light {
  color: var(--ink);
  background: rgba(255,253,249,.9);
  border-color: rgba(36,24,43,.12);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 850; }
.brand-mark {
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.75);
  background: #fff;
  border-radius: 50%;
  flex: 0 0 auto;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.brand-name { font-size: 1.02rem; white-space: nowrap; }
.header-nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.header-nav a { text-decoration: none; font-size: .92rem; font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; }

.btn {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 780;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, .icon-btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(229,154,37,.4);
  outline-offset: 2px;
}
.btn-primary { color: #fff; background: var(--violet); box-shadow: 0 10px 24px rgba(109,43,116,.24); }
.btn-primary:hover { background: var(--violet-dark); }
.btn-green { color: #fff; background: var(--green); box-shadow: 0 10px 24px rgba(38,117,59,.22); }
.btn-outline { color: inherit; border-color: currentColor; background: transparent; }
.btn-light { color: var(--ink); background: #fff; }
.btn-small { min-height: 38px; padding: 0 14px; font-size: .88rem; }
.icon-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; }

.choice-hero {
  min-height: 92vh;
  display: grid;
  align-items: end;
  color: #fff;
  position: relative;
  isolation: isolate;
  background: #302035 url("/static/images/hero-insoles.png") center / cover no-repeat;
}
.choice-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(32,18,37,.94) 0%, rgba(32,18,37,.62) 44%, rgba(32,18,37,.08) 78%);
}
.choice-content { padding: calc(var(--header-h) + 50px) 0 62px; }
.choice-content h1 { max-width: 800px; }
.choice-content .lead { color: rgba(255,255,255,.82); max-width: 610px; }
.choice-actions {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 330px));
  gap: 14px;
}
.choice-link {
  min-height: 116px;
  padding: 20px 22px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: var(--radius);
  background: rgba(255,255,255,.11);
  backdrop-filter: blur(12px);
  text-decoration: none;
  display: grid;
  grid-template-columns: 48px 1fr 24px;
  align-items: center;
  gap: 14px;
  transition: transform .2s ease, background .2s ease;
}
.choice-link:hover { transform: translateY(-4px); background: rgba(255,255,255,.2); }
.choice-link strong { display: block; font-size: 1.12rem; }
.choice-link small { display: block; margin-top: 4px; color: rgba(255,255,255,.72); }
.choice-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--amber); color: var(--ink); }
.choice-icon svg { width: 24px; }
.choice-arrow { font-size: 1.5rem; }

.trust-strip { background: var(--green); color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 23px 26px; border-right: 1px solid rgba(255,255,255,.22); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; font-size: 1.2rem; }
.trust-item span { font-size: .87rem; opacity: .78; }

.individual-hero {
  min-height: 86vh;
  display: grid;
  align-items: center;
  position: relative;
  color: var(--ink);
  background: #f7f0e6 url("/static/images/hero-insoles.png") center / cover no-repeat;
  isolation: isolate;
}
.individual-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(255,253,249,.98) 0%, rgba(255,253,249,.91) 36%, rgba(255,253,249,.18) 68%);
}
.individual-hero-content { padding-top: var(--header-h); max-width: 650px; }
.hero-price { margin: 22px 0 28px; display: flex; align-items: baseline; gap: 10px; }
.hero-price strong { font-size: 2.1rem; color: var(--violet); }
.hero-price span { color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.micro-proof { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 22px; font-size: .87rem; color: var(--ink-soft); }
.micro-proof span::before { content: "✓"; margin-right: 7px; color: var(--green); font-weight: 900; }

.intro-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 64px; align-items: center; }
.material-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.material-row { padding: 22px; background: var(--paper); display: grid; grid-template-columns: 54px 1fr; gap: 16px; }
.material-index { color: var(--amber); font-size: 1.5rem; font-weight: 850; }
.material-row p { margin: 0; color: var(--ink-soft); }

.benefits-band { background: var(--paper-2); border-block: 1px solid #e2e8dc; }
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 34px; }
.benefit-card { padding: 26px; min-height: 210px; border: 1px solid #dfe6d9; border-radius: var(--radius); background: #fff; }
.benefit-card svg { width: 30px; height: 30px; color: var(--green); margin-bottom: 30px; }
.benefit-card p { margin: 0; color: var(--ink-soft); font-size: .93rem; }

.model-band { color: #fff; background: #201626; overflow: hidden; }
.model-layout { min-height: 640px; display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: 22px; }
.model-copy { position: relative; z-index: 3; }
.model-copy .lead { color: rgba(255,255,255,.7); }
.model-stage { min-height: 640px; position: relative; margin-right: min(-4vw, -30px); }
#insole3d { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
#insole3d:active { cursor: grabbing; }
.model-fallback { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; color: rgba(255,255,255,.7); }
.model-hotspots { display: grid; gap: 10px; margin-top: 30px; }
.hotspot {
  width: 100%;
  padding: 13px 15px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 6px;
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}
.hotspot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); margin-top: 6px; }
.hotspot.active { border-color: var(--green-bright); background: rgba(136,191,63,.12); }
.hotspot strong { display: block; }
.hotspot span { color: rgba(255,255,255,.62); font-size: .84rem; }
.drag-note { margin-top: 14px; color: rgba(255,255,255,.5); font-size: .8rem; }

.process-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; }
.process-image { min-height: 620px; }
.process-image img { width: 100%; height: 100%; object-fit: cover; }
.process-copy { padding: 70px max(40px, 7vw); background: #f2e9de; }
.timeline { margin-top: 35px; display: grid; }
.timeline-item { position: relative; padding: 0 0 28px 46px; border-left: 1px solid rgba(36,24,43,.25); }
.timeline-item:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline-item::before { content: attr(data-step); position: absolute; left: -17px; top: -4px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--violet); font-weight: 850; }
.timeline-item p { margin: 0; color: var(--ink-soft); }

.reviews-grid { margin-top: 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.review { min-height: 240px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; display: flex; flex-direction: column; }
.stars { color: var(--amber); font-size: 1.08rem; }
.review blockquote { margin: 25px 0; font-size: 1.03rem; flex: 1; }
.review cite { color: var(--ink-soft); font-style: normal; font-size: .87rem; }

.cta-band { color: #fff; background: var(--green); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.cta-inner h2 { max-width: 700px; margin-bottom: 0; }

.site-footer { padding: 38px 0; color: rgba(255,255,255,.72); background: #1d1521; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { text-decoration: none; }

.chat-launcher {
  position: fixed;
  z-index: 110;
  right: 22px;
  bottom: 22px;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--violet);
  box-shadow: 0 18px 36px rgba(46,19,53,.3);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.chat-launcher svg { width: 28px; height: 28px; }
.chat-launcher[hidden] { display: none; }
.chat-panel {
  position: fixed;
  z-index: 120;
  right: 22px;
  bottom: 22px;
  width: min(410px, calc(100vw - 28px));
  height: min(690px, calc(100vh - 36px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  transform-origin: bottom right;
  transition: opacity .2s ease, transform .2s ease;
}
.chat-panel.closed { pointer-events: none; opacity: 0; transform: scale(.82) translate(24px, 24px); }
.chat-head { padding: 15px 16px; color: #fff; background: var(--violet-dark); display: flex; align-items: center; gap: 12px; }
.chat-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: var(--amber); color: var(--ink); }
.chat-title { flex: 1; }
.chat-title strong, .chat-title span { display: block; }
.chat-title span { font-size: .78rem; color: rgba(255,255,255,.68); }
.chat-close { color: #fff; background: transparent; border-color: rgba(255,255,255,.3); }
.chat-body { min-height: 0; overflow-y: auto; padding: 18px; background: #f8f6f8; }
.message { max-width: 88%; margin-bottom: 12px; padding: 11px 13px; border-radius: 8px; white-space: pre-wrap; font-size: .92rem; }
.message.assistant { background: #fff; border: 1px solid #e2dce4; }
.message.user { margin-left: auto; color: #fff; background: var(--green); }
.chat-actions { display: flex; flex-wrap: wrap; gap: 7px; margin: 4px 0 14px; }
.chat-chip { padding: 8px 11px; border: 1px solid var(--violet); border-radius: 999px; color: var(--violet); background: #fff; font-size: .82rem; font-weight: 750; cursor: pointer; }
.typing { display: inline-flex; gap: 4px; align-items: center; min-width: 52px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9d8da3; animation: typing 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .13s; }
.typing i:nth-child(3) { animation-delay: .26s; }
@keyframes typing { 0%, 70%, 100% { transform: translateY(0); opacity: .4; } 35% { transform: translateY(-5px); opacity: 1; } }
.chat-compose { padding: 12px; border-top: 1px solid var(--line); background: #fff; display: grid; grid-template-columns: 1fr 44px; gap: 8px; }
.chat-compose textarea { height: 44px; max-height: 110px; resize: none; padding: 10px 11px; border: 1px solid var(--line); border-radius: 6px; }
.chat-send { width: 44px; height: 44px; border: 0; border-radius: 50%; color: #fff; background: var(--violet); cursor: pointer; display: grid; place-items: center; }
.chat-send svg { width: 19px; }
.upload-card { margin: 4px 0 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.upload-card img { width: 100%; max-height: 165px; object-fit: cover; margin: 10px 0; border-radius: 4px; }
.upload-card p { margin-bottom: 10px; font-size: .88rem; }
.file-btn { width: 100%; }
.address-wrap { position: relative; margin: 5px 0 14px; }
.address-wrap input { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 6px; }
.address-results { border: 1px solid var(--line); border-top: 0; background: #fff; max-height: 220px; overflow-y: auto; }
.address-option { width: 100%; padding: 10px 12px; text-align: left; border: 0; border-bottom: 1px solid #eee9ef; background: #fff; cursor: pointer; }
.address-option:hover { background: var(--paper-2); }
.address-attribution { margin: 6px 0 0; color: #766a7b; font-size: .68rem; }

.modal {
  position: fixed;
  z-index: 200;
  inset: 0;
  padding: 20px;
  background: rgba(24,15,28,.72);
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
}
.modal[hidden] { display: none; }
.payment-box { width: min(470px, 100%); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.payment-top { padding: 24px; color: #fff; background: var(--violet-dark); display: flex; justify-content: space-between; align-items: center; }
.payment-body { padding: 28px; }
.payment-price { margin: 20px 0; padding: 18px 0; border-block: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; }
.payment-price strong { font-size: 2rem; color: var(--violet); }
.payment-note { color: var(--ink-soft); font-size: .85rem; }
.payment-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 24px; }

.magic-overlay { position: fixed; z-index: 230; inset: 0; display: grid; place-items: center; color: #fff; background: #201626; }
.magic-overlay[hidden] { display: none; }
.magic-content { width: min(760px, calc(100% - 34px)); text-align: center; }
.magic-photos { height: 240px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: center; position: relative; }
.magic-photo { aspect-ratio: 4/3; background: #fff center/cover no-repeat; border: 2px solid rgba(255,255,255,.5); animation: photoFold 2.5s forwards ease-in-out; }
.magic-insole { width: 150px; height: 300px; position: absolute; left: 50%; top: 50%; opacity: 0; transform: translate(-50%,-50%) scale(.4); border-radius: 52% 48% 45% 48% / 22% 26% 74% 78%; border: 9px solid var(--amber); background: repeating-linear-gradient(25deg, var(--violet) 0 8px, #853c8e 8px 12px); box-shadow: inset 16px -22px 0 rgba(136,191,63,.38), 0 0 70px rgba(229,154,37,.35); animation: insoleReveal 2.5s forwards ease-in-out; }
@keyframes photoFold { 0%,40% { opacity:1; transform:translate(0,0) scale(1); } 75%,100% { opacity:0; transform:translate(calc((1.5 - var(--i)) * 80px), 20px) scale(.3); } }
@keyframes insoleReveal { 0%,48% { opacity:0; transform:translate(-50%,-50%) scale(.35) rotate(-18deg); } 78%,100% { opacity:1; transform:translate(-50%,-50%) scale(1) rotate(7deg); } }
.magic-progress { height: 5px; margin: 24px auto 18px; background: rgba(255,255,255,.18); overflow: hidden; }
.magic-progress::after { content:""; display:block; width:100%; height:100%; background: var(--green-bright); transform-origin:left; animation: magicProgress 2.7s linear; }
@keyframes magicProgress { from { transform:scaleX(0); } to { transform:scaleX(1); } }

.business-hero { padding: calc(var(--header-h) + 72px) 0 72px; color: #fff; background: #2d1834; }
.business-hero-grid { display: grid; grid-template-columns: 1fr .85fr; gap: 70px; align-items: start; }
.business-hero h1 { font-size: clamp(2.6rem, 5vw, 4.9rem); }
.business-hero .lead { color: rgba(255,255,255,.72); }
.auth-panel { padding: 24px; color: var(--ink); background: #fff; border-radius: var(--radius); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); margin: -5px 0 22px; }
.auth-tab { padding: 12px; border: 0; border-bottom: 3px solid transparent; background: none; cursor: pointer; font-weight: 800; }
.auth-tab.active { color: var(--violet); border-bottom-color: var(--violet); }
.auth-form { display: grid; gap: 13px; }
.auth-form[hidden] { display: none; }
.field { display: grid; gap: 6px; }
.field label { font-size: .82rem; font-weight: 760; }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.field textarea { min-height: 95px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
.form-status { min-height: 22px; color: var(--coral); font-size: .84rem; }

.dashboard-body { background: #f4f5f2; }
.dashboard-shell { min-height: 100vh; display: grid; grid-template-columns: 240px 1fr; }
.dash-sidebar { position: sticky; top: 0; height: 100vh; padding: 24px 18px; color: #fff; background: #24162a; }
.dash-sidebar .brand { margin-bottom: 38px; }
.dash-nav { display: grid; gap: 6px; }
.dash-nav button, .dash-nav a { width: 100%; padding: 11px 12px; color: rgba(255,255,255,.72); border: 0; border-radius: 5px; background: transparent; text-align: left; text-decoration: none; cursor: pointer; }
.dash-nav .active, .dash-nav button:hover, .dash-nav a:hover { color: #fff; background: rgba(255,255,255,.1); }
.dash-main { min-width: 0; padding: 28px; }
.dash-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.dash-top h1 { font-size: 2rem; margin: 0; }
.dash-section { display: none; }
.dash-section.active { display: block; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-card { padding: 20px; border: 1px solid #dde0d9; border-radius: var(--radius); background: #fff; }
.stat-card span { color: var(--ink-soft); font-size: .82rem; }
.stat-card strong { display: block; margin-top: 8px; font-size: 1.65rem; }
.chart-panel, .table-panel, .tool-panel { margin-top: 16px; padding: 22px; border: 1px solid #dde0d9; border-radius: var(--radius); background: #fff; }
.chart-head { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 18px; }
.segment { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.segment button { min-height: 34px; padding: 0 11px; border: 0; border-right: 1px solid var(--line); background: #fff; cursor: pointer; font-size: .78rem; }
.segment button:last-child { border-right: 0; }
.segment button.active { color: #fff; background: var(--violet); }
.chart-canvas { width: 100%; height: 280px; display: block; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 10px; border-bottom: 1px solid #eceee9; text-align: left; font-size: .84rem; vertical-align: top; }
th { color: var(--ink-soft); font-weight: 760; }
.status-pill { display: inline-flex; padding: 5px 8px; border-radius: 999px; color: #265635; background: #e5f3e7; font-size: .74rem; font-weight: 800; }
.branch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.branch-card { padding: 20px; border: 1px solid #dde0d9; border-radius: var(--radius); background: #fff; }
.branch-card p { margin: 0; color: var(--ink-soft); font-size: .86rem; }
.support-layout { height: 560px; display: grid; grid-template-rows: 1fr auto; border: 1px solid var(--line); background: #fff; }
.support-messages { overflow-y: auto; padding: 18px; }
.support-compose { padding: 12px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.support-compose input { min-width: 0; padding: 10px; border: 1px solid var(--line); }

.admin-page { min-height: 100vh; padding: 34px; background: #f3f4f1; }
.admin-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 25px; }
.admin-header h1 { margin: 0; font-size: 2rem; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 16px; }
.admin-panel { padding: 20px; border: 1px solid #dde0d9; border-radius: var(--radius); background: #fff; }
.admin-search { display: flex; gap: 8px; margin-bottom: 16px; }
.admin-search input { flex: 1; min-width: 0; padding: 10px; border: 1px solid var(--line); }
.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: #231529; }
.login-box { width: min(390px, 100%); padding: 30px; background: #fff; border-radius: var(--radius); }
.login-box .brand { margin-bottom: 26px; }

@media (max-width: 980px) {
  .header-nav { display: none; }
  .menu-toggle { display: grid; margin-left: auto; }
  .choice-actions { grid-template-columns: minmax(0, 460px); }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.22); }
  .intro-layout, .model-layout, .business-hero-grid { grid-template-columns: 1fr; }
  .model-layout { min-height: auto; padding-top: 65px; }
  .model-stage { min-height: 520px; margin: 0 -20px; }
  .benefits-grid, .stats-grid { grid-template-columns: 1fr 1fr; }
  .process-layout { grid-template-columns: 1fr; }
  .process-image { min-height: 430px; }
  .reviews-grid, .branch-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-shell { grid-template-columns: 84px 1fr; }
  .dash-sidebar .brand-name, .dash-nav span { display: none; }
  .dash-sidebar .brand-mark { width: 48px; }
  .admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  :root { --header-h: 66px; }
  .container { width: min(100% - 26px, 1180px); }
  .section { padding: 54px 0; }
  h1 { font-size: 2.55rem; }
  h2 { font-size: 2.05rem; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-name { font-size: .91rem; }
  .header-inner { gap: 10px; }
  .header-actions .btn { min-height: 40px; padding: 0 12px; font-size: .78rem; }
  .choice-hero { min-height: 94vh; background-position: 62% center; }
  .choice-hero::before { background: linear-gradient(0deg, rgba(32,18,37,.96), rgba(32,18,37,.58)); }
  .choice-content { padding-bottom: 28px; }
  .choice-actions { margin-top: 26px; }
  .choice-link { min-height: 92px; grid-template-columns: 42px 1fr 18px; padding: 15px; }
  .choice-icon { width: 42px; height: 42px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item { padding: 18px 13px; }
  .individual-hero { min-height: 84vh; background-position: 62% center; }
  .individual-hero::before { background: linear-gradient(0deg, rgba(255,253,249,.98) 0%, rgba(255,253,249,.9) 47%, rgba(255,253,249,.18) 90%); }
  .individual-hero-content { padding-top: calc(var(--header-h) + 180px); }
  .hero-actions .btn { width: 100%; }
  .material-row { padding: 18px 15px; grid-template-columns: 42px 1fr; }
  .benefits-grid, .reviews-grid, .stats-grid, .branch-grid, .form-grid { grid-template-columns: 1fr; }
  .benefit-card { min-height: 170px; }
  .model-stage { min-height: 410px; }
  .process-image { min-height: 310px; }
  .process-copy { padding: 50px 20px; }
  .cta-inner, .footer-inner { align-items: flex-start; flex-direction: column; }
  .chat-panel { inset: 10px; width: auto; height: auto; }
  .chat-launcher { right: 14px; bottom: 14px; }
  .magic-photos { height: 200px; gap: 6px; }
  .magic-insole { width: 110px; height: 230px; }
  .business-hero { padding-top: calc(var(--header-h) + 40px); }
  .dashboard-shell { display: block; }
  .dash-sidebar { position: static; width: 100%; height: auto; display: flex; align-items: center; gap: 12px; overflow-x: auto; }
  .dash-sidebar .brand { margin: 0; }
  .dash-nav { display: flex; }
  .dash-nav button, .dash-nav a { width: auto; white-space: nowrap; }
  .dash-main { padding: 18px 12px 34px; }
  .dash-top { align-items: flex-start; }
  .chart-head { align-items: flex-start; flex-direction: column; }
  .chart-canvas { height: 230px; }
  .admin-page { padding: 20px 12px; }
  .admin-header { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
