:root {
  --paper: #FFFCF7;
  --surface: #FFFFFF;
  --sand: #F3E9DB;
  --sand-soft: #F8F1E7;
  --ink: #493327;
  --ink-hover: #35241B;
  --text: #382C26;
  --muted: #64574E;
  --red: #B8493E;
  --red-hover: #9A392F;
  --line: #E5DACF;
  --line-strong: #D2C2B0;
  --error: #9B231B;
  --error-bg: #FDF2F1;
  --error-border: #F3C6C3;
  --shadow-sm: 0 4px 16px -4px rgba(73, 51, 39, 0.07);
  --shadow-md: 0 12px 28px -8px rgba(73, 51, 39, 0.12);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.58;
  color: var(--text);
  background-color: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after {
  box-sizing: border-box;
}

::selection {
  background-color: var(--sand);
  color: var(--ink);
}

@view-transition {
  navigation: auto;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--text);
  font-size: 0.9375rem;
  overflow-x: hidden;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

button, a, input, select, summary {
  touch-action: manipulation;
}

button, a, summary {
  cursor: pointer;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

button {
  border: 0;
  background: none;
}

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

[hidden] {
  display: none !important;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3 {
  font-family: 'Bricolage Grotesque', Georgia, 'Times New Roman', serif;
  color: var(--ink);
  margin: 0;
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 3.2vw, 2.5rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.5rem, 2.2vw, 1.75rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.0625rem;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

p, li, dd, dt {
  margin: 0;
  line-height: 1.58;
  max-width: 62ch;
  text-wrap: pretty;
}

.num,
input[type="number"],
.summary dd,
#step-label {
  font-variant-numeric: tabular-nums;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2.5px solid var(--red);
  outline-offset: 3px;
}

/* 100%-Zoom Calibrated Container */
.wrap {
  width: calc(100% - 64px);
  max-width: 1060px;
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 100;
  background-color: var(--surface);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 8px;
  border: 2px solid var(--red);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* Warm Espresso Announcement Bar */
.announcement {
  background-color: var(--ink);
  color: var(--paper);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 7px 16px;
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  text-align: center;
}

.announcement .dot {
  opacity: 0.6;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--paper);
  border-bottom: 1px solid var(--line);
}

.top {
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  gap: 6px;
}

.brand-mark {
  position: relative;
  width: 68px;
  height: 34px;
  overflow: hidden;
  display: block;
  flex-shrink: 0;
}

.brand-mark img {
  position: absolute;
  max-width: none;
  width: 84px;
  height: auto;
  left: -8px;
  top: -9px;
  mix-blend-mode: multiply;
}

.wordmark {
  font-family: 'Bricolage Grotesque', Georgia, serif;
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.wordmark > span {
  color: var(--red);
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

nav a {
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  padding: 6px 2px;
  transition: color 150ms var(--ease-out);
  white-space: nowrap;
}

nav a[aria-current="page"] {
  color: var(--red);
}

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

/* Calibrated Buttons */
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 18px;
  border-radius: 10px;
  background-color: var(--red);
  color: var(--surface);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  line-height: 1.3;
  box-shadow: var(--shadow-sm);
  transition: transform 120ms var(--ease-out), background-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}

.button.dark {
  background-color: var(--ink);
}

.button-outline {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 18px;
  border-radius: 10px;
  background-color: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  line-height: 1.3;
  transition: transform 120ms var(--ease-out), background-color 150ms var(--ease-out), border-color 150ms var(--ease-out);
}

.button:active,
.button-outline:active,
.studio-pill:active,
.preset-btn:active,
.jump-pill:active,
.option:active,
.box-item-toggle:active {
  transform: scale(0.98);
}

@media (hover: hover) and (pointer: fine) {
  nav a:hover {
    color: var(--red);
  }
  .button:hover {
    background-color: var(--red-hover);
    box-shadow: var(--shadow-md);
  }
  .button.dark:hover {
    background-color: var(--ink-hover);
  }
  .button-outline:hover {
    background-color: var(--sand-soft);
    border-color: var(--ink);
  }
  .studio-pill:hover {
    border-color: var(--ink);
    background-color: var(--sand-soft);
  }
  .category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--line-strong);
  }
  .jump-pill:hover {
    background-color: var(--sand);
    border-color: var(--ink);
  }
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  gap: 32px;
  align-items: center;
  padding-top: 28px;
  padding-bottom: 36px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero .lead {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.58;
  color: var(--muted);
  max-width: 50ch;
  margin-top: 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.hero-cta,
.hero-secondary {
  min-height: 42px;
  padding: 10px 20px;
  font-size: 0.9375rem;
}

.hero-benefits {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.hero-benefits .benefit {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 8px;
}

.hero-benefits .icon {
  width: 24px;
  height: 24px;
  color: var(--red);
}

.hero-benefits .benefit-title {
  display: block;
  font-family: 'Bricolage Grotesque', Georgia, 'Times New Roman', serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
}

.hero-benefits p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.45;
}

.hero-photo {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background-color: var(--sand-soft);
}

.hero-photo > img {
  width: 100%;
  max-height: 410px;
  object-fit: cover;
  object-position: center;
}

/* Quick Profile (Hundpasset) */
.quick-profile-stage {
  margin-top: 20px;
  scroll-margin-top: 84px;
}

.mascot-peeker {
  display: flex;
  justify-content: center;
  margin-bottom: -14px;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.mascot-peeker img {
  width: 176px;
  height: auto;
  aspect-ratio: 1.5;
  object-fit: cover;
  object-position: center top;
}

.quick-profile {
  background-color: var(--sand);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 26px;
  position: relative;
  z-index: 1;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.section-heading p {
  margin-top: 4px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.profile-meta-pill {
  background-color: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
}

.quick-profile form {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 16px;
  align-items: stretch;
}

.photo-upload {
  border: 1.5px dashed var(--line-strong);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 14px 10px;
  position: relative;
  background-color: var(--paper);
  cursor: pointer;
  min-height: 140px;
  transition: border-color 150ms var(--ease-out), background-color 150ms var(--ease-out);
}

.photo-upload:focus-within {
  outline: 2.5px solid var(--red);
  outline-offset: 3px;
  border-color: var(--red);
}

.photo-upload input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.photo-upload strong {
  font-size: 0.875rem;
  color: var(--ink);
}

.photo-upload small {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.35;
}

#quick-photo-preview img {
  height: 56px;
  width: 56px;
  border-radius: 10px;
  object-fit: cover;
}

.icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--ink);
}

.quick-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.quick-fields label {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.quick-fields input,
.quick-fields select {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background-color: var(--surface);
  margin-top: 5px;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  min-height: 40px;
}

.quick-fields .button {
  align-self: end;
  min-height: 40px;
}

.file-error {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--error);
  background-color: var(--error-bg);
  border: 1px solid var(--error-border);
  padding: 10px 14px;
  border-radius: 8px;
  margin-top: 8px;
}

.file-error:empty {
  display: none;
}

#quick-error {
  grid-column: 1 / -1;
}

/* Product Categories (5-Card Grid) */
.categories {
  margin-top: 48px;
  scroll-margin-top: 84px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 6px 2px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.category-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background-color: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 150ms var(--ease-out), box-shadow 150ms var(--ease-out), border-color 150ms var(--ease-out);
}

.category-photo {
  aspect-ratio: 1;
  background-image: url('category-photos.png');
  background-size: 500% auto;
  background-position: var(--pos) 46%;
  background-repeat: no-repeat;
  background-color: var(--sand-soft);
}

.category-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
  padding: 14px 12px;
}

.category-copy h3 {
  font-size: 1.0625rem;
  color: var(--ink);
}

.category-copy p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 4px;
  flex: 1;
}

.soft-link {
  background-color: var(--sand);
  color: var(--ink);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  margin-top: 12px;
}

/* Interactive Box Studio (Warm Sand & White — Zero Green) */
.studio-section {
  margin-top: 48px;
  scroll-margin-top: 84px;
}

.studio-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: start;
}

.studio-controls {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}

.studio-lead {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-top: 6px;
  margin-bottom: 18px;
}

.studio-control-group {
  margin-bottom: 16px;
}

.studio-control-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.875rem;
}

.studio-control-header strong {
  color: var(--ink);
}

.studio-hint {
  color: var(--muted);
  font-weight: 600;
}

.weight-slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.slider-bound {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.weight-range {
  flex: 1;
  accent-color: var(--red);
  height: 6px;
  cursor: pointer;
}

.studio-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.studio-pill {
  flex: 1;
  min-width: 100px;
  padding: 8px 12px;
  border-radius: 8px;
  background-color: var(--paper);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  transition: transform 120ms var(--ease-out), background-color 140ms var(--ease-out), border-color 140ms var(--ease-out);
}

.studio-pill[aria-pressed="true"] {
  background-color: var(--sand);
  color: var(--ink);
  border-color: var(--red);
  font-weight: 700;
}

.studio-cta-row {
  margin-top: 20px;
}

.studio-preview {
  background-color: var(--sand-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}

.studio-preview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.studio-preview-header h3 {
  font-size: 1.0625rem;
  color: var(--ink);
}

.studio-preview-header p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 2px;
}

.studio-tag {
  background-color: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
}

.studio-items-list {
  display: grid;
  margin: 8px 0;
}

.studio-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  width: 100%;
}

.studio-item-row:last-child {
  border-bottom: 0;
}

.studio-item-row[aria-pressed="false"] {
  opacity: 0.55;
}

.studio-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.studio-check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background-color: var(--red);
  color: var(--surface);
  display: grid;
  place-items: center;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}

.studio-item-row[aria-pressed="false"] .studio-check {
  background-color: var(--surface);
  color: var(--muted);
  border: 1px solid var(--line-strong);
}

.studio-item-info strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--ink);
}

.studio-item-info span {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
}

.studio-item-cat {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  flex-shrink: 0;
}

.studio-preview-footer {
  padding-top: 10px;
  font-size: 0.875rem;
  color: var(--muted);
}

/* How It Works */
.how {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 28px;
  margin-top: 48px;
  align-items: stretch;
  background-color: var(--sand-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  scroll-margin-top: 84px;
}

.lifestyle {
  position: relative;
  background-image: url('lifestyle-photos.png');
  background-repeat: no-repeat;
  min-height: 250px;
}

.play-photo {
  background-size: auto 200%;
  background-position: 38% top;
}

.rest-photo {
  background-size: auto 200%;
  background-position: center bottom;
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 0;
}

.how-content {
  padding: 26px 26px 26px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.how-lead {
  margin-top: 6px;
  font-size: 0.9375rem;
  color: var(--muted);
}

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

.steps li {
  min-width: 0;
}

.step-icon {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.step-icon > span {
  background-color: var(--red);
  color: var(--surface);
  border-radius: 999px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.step-icon .icon {
  width: 28px;
  height: 28px;
  color: var(--ink);
}

.steps h3 {
  font-size: 1.0625rem;
  margin-bottom: 4px;
}

.steps p {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Benefits Row */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.benefit-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border-radius: 12px;
  background-color: var(--surface);
  border: 1px solid var(--line);
}

.benefit-icon-wrap {
  flex-shrink: 0;
  padding-top: 2px;
}

.benefit-icon-wrap .icon {
  width: 26px;
  height: 26px;
  color: var(--red);
}

.benefit-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 4px;
}

.benefit-card p {
  font-size: 0.875rem;
  color: var(--muted);
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  margin-top: 48px;
  scroll-margin-top: 84px;
}

.faq-intro {
  margin-top: 6px;
  margin-bottom: 14px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 10px;
  background-color: var(--surface);
  overflow: hidden;
}

.faq summary {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--red);
  line-height: 1;
}

.faq details[open] summary::after {
  content: '−';
}

.faq details p {
  font-size: 0.9375rem;
  padding: 0 16px 14px;
  color: var(--muted);
}

.photo-caption {
  width: 100%;
  background-color: var(--surface);
  border-top: 1px solid var(--line);
  padding: 14px 18px;
}

.photo-caption strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--ink);
}

.photo-caption span {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 2px;
}

/* Bottom CTA */
.bottom-cta {
  margin-top: 48px;
  background-color: var(--sand);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 26px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.cta-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-icon .icon {
  width: 32px;
  height: 32px;
  color: var(--red);
}

.bottom-cta h2 {
  font-size: 1.375rem;
}

.bottom-cta p {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-top: 2px;
}

.bottom-cta .button {
  margin-left: auto;
  flex-shrink: 0;
}

/* Footer */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 48px;
  padding: 22px 0 32px;
  border-top: 1px solid var(--line);
}

.footer .wordmark {
  font-size: 1.375rem;
}

.footer .brand-mark {
  width: 58px;
  height: 30px;
}

.footer .brand-mark img {
  width: 72px;
  left: -6px;
  top: -7px;
}

.footer nav {
  gap: 18px;
}

.footer nav a,
.footer-tagline {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Guided 4-Step Onboarding & Summary (#onboarding) */
#onboarding {
  max-width: 1000px;
  margin-inline: auto;
  padding: 28px 24px 60px;
}

.flow-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.flow-top-right {
  background-color: var(--sand);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--ink);
}

.flow-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 36px;
  align-items: start;
}

.flow-aside {
  padding: 4px 0;
}

.flow-aside h2 {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.flow-aside > p {
  font-size: 0.9375rem;
  color: var(--muted);
}

.profile-preview {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
  padding: 14px;
  background-color: var(--sand-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background-color: var(--sand);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  overflow: hidden;
  color: var(--red);
  border: 1px solid var(--line-strong);
}

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

.profile-preview-text {
  min-width: 0;
  flex: 1;
}

.profile-preview strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.profile-preview span {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 2px;
  overflow-wrap: anywhere;
}

#step-list {
  padding: 0;
  margin: 0 0 20px;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 0.875rem;
}

#step-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

#step-list li::before {
  counter-increment: step;
  content: counter(step);
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-strong);
  background-color: var(--surface);
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

#step-list .active {
  font-weight: 700;
  color: var(--ink);
}

#step-list .active::before {
  background-color: var(--red);
  color: var(--surface);
  border-color: var(--red);
}

#step-list .done {
  color: var(--ink);
}

#step-list .done::before {
  content: '✓';
  background-color: var(--sand);
  color: var(--ink);
  border-color: var(--line-strong);
}

.flow-trust-box {
  padding: 14px;
  border-radius: 10px;
  background-color: var(--sand);
  border: 1px solid var(--line);
}

.flow-trust-box strong {
  display: block;
  font-size: 0.875rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.flow-trust-box p {
  font-size: 0.875rem;
  color: var(--muted);
}

.flow-panel {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.progress {
  height: 6px;
  background-color: var(--sand);
  margin-bottom: 22px;
  border-radius: 999px;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  width: 100%;
  background-color: var(--red);
  transform: scaleX(0.25);
  transform-origin: left center;
  transition: transform 200ms var(--ease-out);
}

#step-title {
  font-size: 1.5rem;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}

.intro {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.field {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  margin: 14px 0;
}

.field .hint {
  font-weight: 400;
  color: var(--muted);
}

.field input {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  margin-top: 6px;
  background-color: var(--paper);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  min-height: 40px;
}

.field small {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 6px;
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

fieldset {
  border: 0;
  margin: 16px 0;
  padding: 0;
}

legend {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background-color: var(--paper);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms var(--ease-out), background-color 140ms var(--ease-out), border-color 140ms var(--ease-out);
}

.option:has(input:checked) {
  background-color: var(--sand);
  border-color: var(--red);
  color: var(--ink);
}

.option input {
  accent-color: var(--red);
}

.flow-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  gap: 12px;
}

.quiet {
  padding: 8px 12px;
  border-radius: 8px;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}

#form-error {
  color: var(--error);
  background-color: var(--error-bg);
  border: 1px solid var(--error-border);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 12px;
}

#form-error:empty {
  display: none;
}

.flow-footer-meta {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.demo-note {
  font-size: 0.875rem;
  text-align: center;
  color: var(--muted);
}

.preset-switcher {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.preset-btn {
  padding: 5px 12px;
  border-radius: 999px;
  background-color: var(--sand-soft);
  border: 1px solid var(--line);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

/* Summary View Inside #onboarding */
.summary {
  margin: 14px 0 20px;
  border-top: 1px solid var(--line);
}

.summary > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  border-bottom: 1px solid var(--line);
  padding: 10px 4px;
  gap: 12px;
  font-size: 0.9375rem;
}

.summary dt {
  color: var(--muted);
  font-weight: 600;
}

.summary dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.recommendation {
  padding: 18px;
  background-color: var(--sand-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.9375rem;
}

.recommendation strong {
  display: block;
  font-size: 1.0625rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.rec-box-list {
  display: grid;
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.box-item-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  width: 100%;
}

.box-item-toggle[aria-pressed="false"] {
  opacity: 0.55;
}

.box-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.box-item-check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background-color: var(--red);
  color: var(--surface);
  display: grid;
  place-items: center;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}

.box-item-toggle[aria-pressed="false"] .box-item-check {
  background-color: var(--surface);
  color: var(--muted);
  border: 1px solid var(--line-strong);
}

.box-item-info strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--ink);
}

.box-item-info span {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Product Catalog Page (products.html) */
.product-page {
  padding-top: 28px;
  padding-bottom: 24px;
}

.catalog-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 36px;
}

.catalog-hero .lead {
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 58ch;
  margin-top: 12px;
}

.catalog-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.jump-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background-color: var(--surface);
  border: 1px solid var(--line-strong);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  transition: transform 120ms var(--ease-out), background-color 140ms var(--ease-out), border-color 140ms var(--ease-out);
}

.catalog-summary-card {
  background-color: var(--sand);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}

.catalog-summary-card h2 {
  font-size: 1.375rem;
  margin-bottom: 10px;
}

.catalog-check-list {
  padding-left: 18px;
  margin: 0 0 18px;
  display: grid;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--muted);
}

.catalog-check-list strong {
  color: var(--ink);
}

.catalog {
  display: grid;
  gap: 20px;
}

.catalog-section {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 22px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  scroll-margin-top: 84px;
}

.catalog-media .category-photo {
  border-radius: 10px;
  height: 100%;
  min-height: 190px;
}

.catalog-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.category-tag {
  background-color: var(--sand);
  color: var(--ink);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
}

.catalog-body > p {
  max-width: 62ch;
  color: var(--muted);
  margin-bottom: 14px;
}

.sample-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.sample-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
}

.sample-item h3 {
  font-size: 1.0625rem;
}

.sample-item p {
  font-size: 0.875rem;
  color: var(--muted);
  flex: 1;
}

.item-meta {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 4px;
}

.catalog-note {
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
}

/* Sticky Mobile Conversion Bar (hidden on desktop, fixed bottom on <768px) */
.mobile-sticky-bar {
  display: none;
}

/* Responsive Breakpoints */
@media (max-width: 1020px) {
  .hero,
  .studio-card,
  .how,
  .faq,
  .catalog-hero,
  .catalog-section {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .how-content {
    padding: 22px;
  }

  .quick-profile form {
    grid-template-columns: 1fr;
  }

  .benefits,
  .sample-items {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .top {
    flex-wrap: wrap;
    gap: 10px;
  }

  nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    overflow-x: auto;
  }

  h1 {
    font-size: 1.875rem;
  }

  h2,
  .flow-aside h2 {
    font-size: 1.375rem;
  }

  .hero {
    padding-top: 18px;
    padding-bottom: 28px;
    gap: 20px;
  }

  .hero-benefits,
  .quick-fields,
  .steps {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-card:last-child {
    grid-column: 1 / -1;
  }

  .studio-controls,
  .studio-preview,
  .quick-profile,
  .flow-panel,
  .bottom-cta,
  .catalog-section {
    padding: 18px 16px;
  }

  .bottom-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .bottom-cta .cta-icon {
    display: none;
  }

  .bottom-cta .button {
    margin-left: 0;
    width: 100%;
  }

  .flow-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .flow-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .summary > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  body {
    padding-bottom: 68px;
  }

  .mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background-color: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }

  .mobile-sticky-bar span {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ink);
  }
}

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