:root {
  color-scheme: light;
  --ink: #141414;
  --ink-soft: #2b2b27;
  --muted: #63635d;
  --line: #e6e6dc;
  --line-strong: #d4d4c8;
  --paper: #fbfaf4;
  --surface: #ffffff;
  --green: #16a34a;
  --green-dark: #0b6f3a;
  --green-tint: #ecfdf1;
  --pink: #f43f72;
  --pink-dark: #d81f55;
  --yellow: #ffd84d;
  --blue: #4cc9f0;
  --lavender: #d9d6ff;
  --black: #0d0d0d;
  --shadow-sm: 0 4px 14px rgba(20, 20, 20, 0.06);
  --shadow: 0 18px 40px rgba(20, 20, 20, 0.1);
  --shadow-lg: 0 30px 70px rgba(20, 20, 20, 0.16);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
}

button,
a,
label {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
canvas,
svg {
  display: block;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  font-family: Archivo, Inter, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.018em;
  line-height: 1.02;
  text-transform: none;
}

.hero h1 {
  text-transform: none;
  letter-spacing: -0.022em;
  line-height: 0.98;
}

.view[hidden] {
  display: none;
}

[hidden] {
  display: none !important;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.promise-bar {
  overflow: hidden;
  background: var(--black);
  color: #fff;
}

.promise-track {
  display: flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
  padding: 9px 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: none;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.promise-track span[aria-hidden="true"] {
  color: var(--yellow);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .promise-track {
    animation: none;
    justify-content: center;
    width: 100%;
  }
}

.nav-shell {
  width: min(var(--maxw), 100%);
  min-height: 72px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Archivo, sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 44px;
  height: 44px;
  display: block;
  flex: 0 0 44px;
  line-height: 0;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-transform: none;
}

.nav-links a {
  position: relative;
  padding: 6px 0;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  width: 42px;
  height: 42px;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  background: var(--surface);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease);
}

.icon-button:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.icon-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.nav-cta {
  min-height: 42px;
  padding: 0 18px;
}

/* ---------------------------------------------------------------- buttons */

.primary-button,
.ghost-button,
.wide-button,
.add-button,
.select-button,
.upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-family: Inter, sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  text-transform: none;
  transition: transform 0.18s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease),
    border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.primary-button,
.wide-button,
.add-button,
.upload-button {
  border: 1px solid var(--black);
  color: #fff;
  background: var(--black);
}

.primary-button:hover,
.wide-button:hover,
.add-button:hover,
.upload-button:hover {
  background: #2a2a2a;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.primary-button:active,
.wide-button:active,
.add-button:active {
  transform: translateY(0);
}

.primary-button svg,
.upload-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-button.big,
.ghost-button.big {
  min-height: 56px;
  padding: 0 28px;
  font-size: 15px;
}

.primary-button.light {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--ink);
}

.primary-button.light:hover {
  background: #ffe27a;
}

.ghost-button,
.select-button {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: var(--surface);
}

.ghost-button:hover,
.select-button:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.upload-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.wide-button {
  width: 100%;
}

/* ---------------------------------------------------------------- type bits */

.eyebrow {
  margin: 0 0 12px;
  color: var(--pink);
  font-family: Archivo, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.7);
}

.stars {
  color: var(--yellow);
  letter-spacing: 2px;
  font-size: 15px;
  -webkit-text-stroke: 0.4px rgba(20, 20, 20, 0.35);
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(140% 160% at 18% 0%, #fff7e0 0%, var(--paper) 60%);
}

.hero-inner {
  width: min(var(--maxw), 100%);
  margin: 0 auto;
  padding: 28px 28px 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px 40px;
  align-items: center;
}

.hero-copy {
  max-width: 640px;
}

h1 {
  font-size: 40px;
  line-height: 1.0;
}

.hero-actions {
  display: grid;
  gap: 14px;
  justify-items: end;
  align-content: center;
}

h1 .hl {
  color: var(--pink);
}

.hero-lede {
  margin-top: 10px;
  max-width: 560px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.5;
}

.hero-cta-row {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-trust {
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-pill {
  position: relative;
  padding: 9px 14px 9px 32px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 600;
}

.trust-pill::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: translateY(-65%) rotate(-45deg);
}

/* ---------------------------------------------------------------- sections shell */

.how-band,
.feature-band,
.showcase-band,
.reviews-band,
.promise-band {
  width: min(var(--maxw), 100%);
  margin: 0 auto;
  padding: 80px 28px;
}

.section-heading {
  max-width: 760px;
}

.section-heading.center {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.section-heading h2,
.shop-header h2,
.reviews-head h2 {
  font-size: 46px;
}

/* ---------------------------------------------------------------- fit promise */

.promise-band {
  border-top: 1px solid var(--line);
}

.promise-band .section-heading {
  max-width: 720px;
}

.promise-intro {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.55;
}

.promise-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.promise-card {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.promise-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.promise-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--green-tint);
  border: 1px solid #bee3ca;
}

.promise-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--green-dark);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.promise-card h3 {
  font-size: 20px;
  margin-bottom: 9px;
}

.promise-card p {
  color: var(--muted);
  line-height: 1.5;
  font-size: 14.5px;
}

.promise-chips {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.promise-chips span {
  position: relative;
  padding: 9px 14px 9px 32px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 600;
}

.promise-chips span::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: translateY(-65%) rotate(-45deg);
}

/* ---------------------------------------------------------------- how it works */

.how-band {
  padding-top: 30px;
}

.steps {
  margin: 46px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.step {
  position: relative;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.step-num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--yellow);
  font-family: Archivo, sans-serif;
  font-size: 22px;
  font-weight: 900;
}

.step h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
  line-height: 1.5;
  font-size: 15px;
}

.how-cta {
  margin-top: 34px;
  text-align: center;
}

/* ---------------------------------------------------------------- features */

.feature-band {
  width: 100%;
  max-width: none;
  background: var(--yellow);
  border-top: 1px solid rgba(20, 20, 20, 0.12);
  border-bottom: 1px solid rgba(20, 20, 20, 0.12);
}

.feature-band .section-heading,
.feature-band .feature-grid {
  width: min(var(--maxw), 100%);
  margin-inline: auto;
}

.feature-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  padding: 26px 22px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.feature-card:hover {
  transform: translateY(-4px);
  background: #fff;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  background: #fff;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--ink-soft);
  line-height: 1.45;
  font-size: 14px;
}

/* ---------------------------------------------------------------- showcase */

/* Products sit directly under the hero — keep the gap tight. */
.showcase-band {
  padding-top: 22px;
  padding-bottom: 56px;
}

.shop-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
}

.showcase-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.showcase-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.showcase-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.showcase-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f5f5ee;
}

.showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.showcase-card:hover .showcase-media img {
  transform: scale(1.05);
}

.ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border: 1px solid rgba(20, 20, 20, 0.08);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(4px);
  font-family: Inter, sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.ribbon.alt {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
}

.showcase-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
}

.showcase-rating {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-tint);
  border: 1px solid #cde8d6;
  color: var(--green-dark);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0;
  -webkit-text-stroke: 0;
}

.showcase-rating::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.showcase-rating span {
  color: var(--muted);
  font-size: 12px;
}

.showcase-body h3 {
  font-size: 19px;
}

.showcase-meta {
  color: var(--muted);
  font-size: 13px;
}

.showcase-foot {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price {
  font-family: Archivo, sans-serif;
  font-size: 19px;
  font-weight: 900;
}

.showcase-foot .select-button {
  min-height: 40px;
  padding: 0 14px;
  font-size: 12px;
}

/* ---------------------------------------------------------------- reviews */

.reviews-band {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.reviews-stat {
  margin-top: 26px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--green-tint);
  border: 1px solid #bee3ca;
}

.reviews-stat strong {
  display: block;
  font-family: Archivo, sans-serif;
  font-size: 46px;
  font-weight: 900;
  color: var(--green-dark);
  line-height: 1;
}

.reviews-stat span {
  color: var(--green-dark);
  font-weight: 600;
  font-size: 14px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

blockquote {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

blockquote .stars {
  margin-bottom: 12px;
}

blockquote p {
  color: var(--ink-soft);
  line-height: 1.5;
  font-size: 15px;
}

cite {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.footer-grid {
  width: min(var(--maxw), 100%);
  margin: 0 auto;
  padding: 56px 28px 36px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 30px;
}

.footer-brand p {
  margin-top: 16px;
  max-width: 280px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

.footer-col h4 {
  font-size: 13px;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-news p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.news-form {
  display: flex;
  gap: 8px;
}

.news-form input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.news-form input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

.news-form .primary-button {
  padding: 0 18px;
}

.footer-base {
  width: min(var(--maxw), 100%);
  margin: 0 auto;
  padding: 18px 28px 30px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

/* ================================================================ STUDIO */

.studio-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 26px 28px 80px;
}

.studio-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

body[data-view="results"] .studio-shell,
body[data-view="product"] .studio-shell {
  padding-top: 32px;
}

body[data-view="product"] .studio-intro,
body[data-view="product"] .checker-panel,
body[data-view="product"] #matches,
body[data-view="product"] .studio-steps {
  display: none;
}

body[data-view="results"] .studio-intro,
body[data-view="results"] .checker-panel,
body[data-view="results"] #productDetail,
body[data-view="results"] .studio-steps {
  display: none;
}

body[data-view="product"] .detail-section {
  margin-top: 0;
}

body[data-view="results"] .shop-section {
  margin-top: 0;
}

body[data-view="studio"] #productDetail {
  display: none;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 700;
  font-size: 14px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.back-button:hover {
  border-color: var(--ink);
  transform: translateX(-2px);
}

.back-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.studio-steps {
  display: none;
}

.studio-steps span {
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.studio-steps span.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.studio-intro {
  max-width: 600px;
  margin: 0 auto 24px;
  text-align: center;
}

.studio-intro h1 {
  font-size: 44px;
}

.studio-lede {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
}

.upload-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.upload-privacy svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--green-dark);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.upload-example {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfbf7;
}

.upload-example img {
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.upload-example strong {
  display: block;
  margin-bottom: 4px;
  font-family: Archivo, sans-serif;
  font-size: 14px;
}

.upload-example p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.upload-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 13.5px;
}

.link-button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-button:hover {
  color: var(--pink-dark);
}

.checker-panel {
  max-width: 460px;
  margin: 0 auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.checker-topline {
  display: none;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.checker-topline h2 {
  font-size: 26px;
}

.status-pill {
  flex: 0 0 auto;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid #bee3ca;
  color: var(--green-dark);
  background: var(--green-tint);
  font-family: Archivo, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: none;
}

.upload-zone {
  margin-top: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.upload-zone:hover {
  border-color: transparent;
  background: transparent;
}

.upload-zone p,
.checker-settings,
.checker-actions,
.scan-metrics,
.canvas-grid,
#jumpToMatches {
  display: none;
}

.upload-zone p,
.field span,
.scan-metrics span,
.scan-metrics small,
.canvas-title small,
.product-meta,
.shop-summary,
.order-note {
  color: var(--muted);
}

.upload-button svg {
  width: 20px;
  height: 20px;
}

.checker-panel .upload-button {
  width: min(100%, 330px);
  min-height: 60px;
  padding: 0 24px;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
}

.checker-settings {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(130px, 0.7fr) minmax(160px, 1fr);
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  font-family: Archivo, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: none;
}

select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

select:focus-visible,
.upload-button:focus-within {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--pink);
}

.checker-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.scan-metrics {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.scan-metrics div {
  min-width: 0;
  padding: 16px 16px;
  display: grid;
  gap: 5px;
  border-right: 1px solid var(--line);
}

.scan-metrics div:last-child {
  border-right: 0;
}

.scan-metrics span {
  font-family: Archivo, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: none;
}

.scan-metrics strong {
  min-height: 32px;
  font-family: Archivo, sans-serif;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.scan-metrics small {
  min-height: 18px;
  font-size: 12px;
}

.canvas-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.canvas-block {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.canvas-title {
  min-height: 46px;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.canvas-title span {
  font-family: Archivo, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: none;
}

.canvas-title small {
  font-size: 12px;
}

.canvas-wrap {
  position: relative;
  height: 260px;
  background:
    linear-gradient(45deg, #f1f1eb 25%, transparent 25%),
    linear-gradient(-45deg, #f1f1eb 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f1f1eb 75%),
    linear-gradient(-45deg, transparent 75%, #f1f1eb 75%);
  background-color: #fbfbf7;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  background-size: 24px 24px;
}

canvas {
  width: 100%;
  height: 100%;
  touch-action: none;
}

.empty-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 16px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  pointer-events: none;
}

.empty-state svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.5;
}

.hidden {
  display: none;
}

.checker-panel .wide-button {
  margin-top: 18px;
}

.checker-panel .checker-topline,
.checker-panel .upload-zone p,
.checker-panel .checker-settings,
.checker-panel .checker-actions,
.checker-panel .scan-metrics,
.checker-panel .canvas-grid,
.checker-panel #jumpToMatches {
  display: none;
}

/* ---------------------------------------------------------------- shop / matches */

.shop-section,
.detail-section {
  margin-top: 40px;
}

#matches {
  scroll-margin-top: 130px;
}

.shop-summary {
  max-width: 430px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 14px;
}

.product-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.product-empty {
  grid-column: 1 / -1;
  min-height: 180px;
  padding: 28px;
  display: grid;
  align-content: center;
  gap: 10px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.product-empty h3 {
  font-size: 24px;
}

.product-empty p {
  max-width: 440px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.product-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.commerce-card {
  cursor: default;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.product-card:focus-visible,
.showcase-card:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.product-card .product-media img {
  transition: transform 0.5s var(--ease);
}

.product-card:hover .product-media img {
  transform: scale(1.04);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.product-rating .stars {
  font-size: 13px;
  letter-spacing: 1px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: Archivo, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink);
}

.card-link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s var(--ease);
}

.product-card:hover .card-link svg {
  transform: translateX(3px);
}

.card-actions {
  align-items: center;
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f5f5f0;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-badge {
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--pink);
  font-family: Archivo, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: none;
}

.product-badge.alt {
  color: var(--ink);
  background: var(--yellow);
}

.product-body {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.product-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.product-title-row h3 {
  font-size: 18px;
}

.product-meta {
  min-height: 40px;
  font-size: 13px;
  line-height: 1.4;
}

.product-selected-size {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfbf7;
  color: var(--ink-soft);
  font-family: Archivo, sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: none;
}

.size-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.size-chip {
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #f9faf6;
  font-family: Archivo, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

.size-chip.recommended {
  border-color: var(--green);
  color: var(--green-dark);
  background: var(--green-tint);
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.commerce-card .card-actions {
  grid-template-columns: 1fr;
}

.card-actions .select-button,
.card-actions .add-button {
  min-height: 42px;
  padding: 0 12px;
  font-size: 12px;
}

.commerce-card .add-button {
  min-height: 46px;
  font-size: 13px;
}

/* ---------------------------------------------------------------- detail */

.detail-empty {
  min-height: 240px;
  padding: 30px;
  display: grid;
  align-content: center;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.detail-empty h2 {
  font-size: 26px;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 700;
  font-size: 14px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.detail-back:hover {
  border-color: var(--ink);
  transform: translateX(-2px);
}

.detail-back svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.detail-gallery {
  display: flex;
  flex-direction: column;
  background: #f5f5ee;
  border-right: 1px solid var(--line);
}

.detail-hero {
  position: relative;
  flex: 1;
  min-height: 380px;
}

.detail-hero img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.detail-discount {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-family: Archivo, sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.detail-copy {
  padding: 30px;
  display: grid;
  gap: 16px;
  align-content: start;
}

.detail-copy h2 {
  font-size: 32px;
}

.detail-description {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
}

.detail-rating {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.detail-rating .stars {
  font-size: 16px;
}

.detail-price {
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-price .price {
  font-size: 28px;
}

.detail-price s {
  color: var(--muted);
  font-size: 17px;
}

.save-pill {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--green-tint);
  border: 1px solid #bee3ca;
  color: var(--green-dark);
  font-family: Archivo, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
}

.detail-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.detail-block-head h3 {
  font-size: 16px;
}

.size-guide {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.detail-buy {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex: 0 0 auto;
}

.qty-stepper button {
  width: 46px;
  height: 100%;
  min-height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  background: var(--surface);
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  transition: background 0.18s var(--ease);
}

.qty-stepper button:hover {
  background: #f3f3ec;
}

.qty-value {
  min-width: 40px;
  text-align: center;
  font-family: Archivo, sans-serif;
  font-size: 16px;
  font-weight: 800;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  line-height: 46px;
}

.detail-buy .wide-button {
  flex: 1;
  margin-top: 0;
}

.detail-assurance {
  color: var(--muted);
  font-size: 13px;
}

.size-hint {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.detail-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.detail-trust div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
}

.detail-trust svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--green-dark);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.benefit-list li {
  position: relative;
  padding: 11px 12px 11px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfbf7;
  font-size: 13px;
  font-weight: 600;
}

.benefit-list li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: translateY(-60%) rotate(-45deg);
}

.detail-size-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.detail-size {
  min-height: 66px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #f9faf6;
  text-align: left;
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.detail-size:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.detail-size strong,
.detail-size span,
.detail-size em {
  display: block;
}

.detail-size strong {
  font-family: Archivo, sans-serif;
  font-size: 17px;
}

.detail-size span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.detail-size em {
  margin-top: 8px;
  color: var(--green-dark);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: none;
}

.detail-size.recommended {
  border-color: var(--green);
  background: var(--green-tint);
}

.detail-size.warn:not(.selected) em {
  color: #9a5a00;
}

.detail-size.roomy:not(.selected) em {
  color: #5c55a5;
}

.detail-size.selected {
  border-color: var(--black);
  color: #fff;
  background: var(--black);
}

.detail-size.selected span,
.detail-size.selected em {
  color: rgba(255, 255, 255, 0.74);
}

.fit-callout {
  padding: 15px;
  border: 1px solid #bee3ca;
  border-radius: var(--radius-sm);
  background: var(--green-tint);
  color: var(--green-dark);
  font-weight: 700;
  line-height: 1.45;
}

.fit-callout div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.fit-callout span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #bee3ca;
  font-family: Archivo, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: none;
  white-space: nowrap;
}

.fit-report {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfbf7;
}

.fit-report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.fit-report-head h3 {
  font-size: 16px;
}

.fit-report-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.fit-report-head > strong {
  font-family: Archivo, sans-serif;
  font-size: 28px;
  line-height: 1;
}

.fit-bars {
  display: grid;
  gap: 10px;
}

.fit-bars div {
  display: grid;
  grid-template-columns: 96px 1fr 54px;
  align-items: center;
  gap: 10px;
}

.fit-bars span,
.fit-bars b {
  font-size: 12px;
  font-weight: 800;
}

.fit-bars span {
  color: var(--muted);
}

.fit-bars meter {
  width: 100%;
  height: 10px;
}

.detail-specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.detail-specs div {
  min-height: 76px;
  padding: 11px;
  display: grid;
  align-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfbf7;
}

.detail-specs span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: none;
}

.detail-specs strong {
  font-family: Archivo, sans-serif;
  font-size: 15px;
}

/* ---------------------------------------------------------------- checkout */

.checkout-panel {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  justify-content: flex-end;
  background: rgba(20, 20, 20, 0.42);
  backdrop-filter: blur(2px);
}

.checkout-panel.open {
  display: flex;
  animation: fade 0.2s var(--ease);
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.checkout-card {
  width: min(440px, 100%);
  height: 100%;
  position: relative;
  padding: 30px;
  overflow: auto;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: slidein 0.3s var(--ease);
}

@keyframes slidein {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
}

.close-button {
  position: absolute;
  top: 20px;
  right: 20px;
}

.checkout-card h2 {
  font-size: 28px;
}

.checkout-body {
  margin-top: 20px;
  display: grid;
  gap: 14px;
}

.checkout-line {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfbf7;
}

.checkout-line img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.checkout-line h3 {
  font-size: 19px;
  margin-bottom: 6px;
}

.checkout-fit {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #bee3ca;
  border-radius: var(--radius-sm);
  background: var(--green-tint);
  color: var(--green-dark);
}

.checkout-fit span,
.checkout-fit strong {
  display: block;
}

.checkout-fit span {
  margin-bottom: 4px;
  font-family: Archivo, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: none;
}

.checkout-fit strong {
  font-size: 14px;
}

.checkout-quantity {
  width: max-content;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}

.checkout-quantity button {
  width: 42px;
  height: 40px;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.checkout-quantity span {
  min-width: 42px;
  text-align: center;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-family: Archivo, sans-serif;
  font-weight: 800;
  line-height: 40px;
}

.checkout-form {
  display: grid;
  gap: 14px;
}

.checkout-section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfbf7;
}

.checkout-section h3 {
  margin-bottom: 14px;
  font-size: 17px;
}

.checkout-field {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.checkout-field:last-child {
  margin-bottom: 0;
}

.checkout-field input,
.checkout-field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  outline: 0;
}

.checkout-field textarea {
  min-height: 88px;
  resize: vertical;
}

.checkout-field input:focus,
.checkout-field textarea:focus,
.payment-option:focus-visible {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.14);
}

.checkout-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.payment-options {
  display: grid;
  gap: 10px;
}

.payment-option {
  width: 100%;
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}

.payment-option:hover {
  border-color: var(--line-strong);
}

.payment-option.selected {
  border-color: var(--green);
  background: var(--green-tint);
}

.payment-option strong,
.payment-option span {
  display: block;
}

.payment-option strong {
  font-family: Archivo, sans-serif;
  font-size: 14px;
}

.payment-option span {
  color: var(--muted);
  font-size: 13px;
}

.checkout-summary {
  display: grid;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.checkout-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.checkout-summary .checkout-total {
  padding: 8px 0 0;
  border: 0;
  color: var(--ink);
  font-size: 21px;
}

.checkout-success {
  padding: 13px;
  border: 1px solid #bee3ca;
  border-radius: var(--radius-sm);
  background: var(--green-tint);
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 700;
}

.checkout-success strong,
.checkout-success span {
  display: block;
}

.checkout-success strong {
  margin-bottom: 4px;
  font-family: Archivo, sans-serif;
  font-size: 15px;
}

.checkout-total {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: Archivo, sans-serif;
  font-size: 21px;
  font-weight: 900;
}

.checkout-card .wide-button {
  margin-top: 18px;
}

.order-note {
  margin-top: 14px;
  font-size: 13px;
}

.order-note.error {
  color: var(--pink-dark);
  font-weight: 800;
}

/* ----------------------------------------------------------- size prompt */

body.prompt-open {
  overflow: hidden;
}

.fit-prompt {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(20, 20, 20, 0.5);
  backdrop-filter: blur(4px);
}

.fit-prompt.open {
  display: grid;
  animation: fade 0.2s var(--ease);
}

.fit-prompt-card {
  width: min(430px, 100%);
  position: relative;
  padding: 28px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 8px 8px 0 var(--ink);
}

.fit-prompt.is-upload .fit-prompt-card {
  width: min(500px, 100%);
}

.fit-prompt-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.fit-prompt-mark {
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
}

.fit-prompt-mark img {
  width: 100%;
  height: 100%;
}

.fit-prompt-card h2 {
  max-width: 330px;
  margin-top: 8px;
  font-size: 32px;
}

.fit-prompt-card > p:not(.eyebrow) {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.55;
}

.fit-prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.fit-prompt-actions .primary-button,
.fit-prompt-actions .ghost-button {
  min-height: 48px;
}

.fit-prompt-upload {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.fit-prompt-upload[hidden] {
  display: none !important;
}

.fit-prompt-steps {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
  counter-reset: fit-step;
}

.fit-prompt-steps li {
  position: relative;
  min-height: 34px;
  padding-left: 46px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
  counter-increment: fit-step;
}

.fit-prompt-steps li::before {
  content: counter(fit-step);
  width: 30px;
  height: 30px;
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-family: Archivo, sans-serif;
  font-size: 13px;
  font-weight: 900;
}

.fit-prompt-upload-button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(20, 20, 20, 0.14);
}

.fit-prompt-upload-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.fit-prompt-upload-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fit-prompt-upload-button:hover,
.fit-prompt-upload-button:focus-within {
  background: #000;
  transform: translateY(-1px);
}

.fit-prompt-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

/* ================================================================ responsive */

@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-actions {
    justify-items: start;
  }

  .hero-trust {
    justify-content: flex-start;
  }

  .nav-links {
    display: none;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .showcase-grid,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-band {
    grid-template-columns: 1fr;
  }

  .promise-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-gallery {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .detail-hero,
  .detail-hero img {
    min-height: 320px;
  }
}

@media (max-width: 720px) {
  .nav-shell,
  .hero-inner,
  .how-band,
  .feature-band .section-heading,
  .feature-band .feature-grid,
  .showcase-band,
  .reviews-band,
  .footer-grid,
  .footer-base,
  .studio-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav-cta {
    display: none;
  }

  .logo-word {
    display: none;
  }

  .how-band,
  .feature-band,
  .showcase-band,
  .reviews-band {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .review-grid,
  .feature-grid,
  .showcase-grid,
  .product-grid,
  .footer-grid,
  .checker-settings,
  .scan-metrics,
  .canvas-grid,
  .benefit-list,
  .detail-size-grid,
  .checkout-field-row {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 42px;
  }

  .section-heading h2,
  .shop-header h2,
  .reviews-head h2 {
    font-size: 32px;
  }

  .studio-intro h1 {
    font-size: 34px;
  }

  .detail-copy h2 {
    font-size: 28px;
  }

  .detail-specs {
    grid-template-columns: repeat(2, 1fr);
  }

  .fit-bars div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .fit-callout div,
  .fit-report-head {
    display: grid;
  }

  .upload-zone {
    grid-template-columns: 1fr;
  }

  .review-grid {
    grid-template-columns: 1fr;
  }

  .shop-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .checker-panel {
    padding: 18px;
  }

  .checkout-card {
    padding: 24px 18px;
  }

  .studio-bar {
    flex-wrap: wrap;
  }

  .footer-base {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .feature-grid,
  .showcase-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .benefit-list,
  .detail-size-grid {
    grid-template-columns: 1fr 1fr;
  }

  .detail-trust {
    grid-template-columns: 1fr;
  }
}
