/* ==========================================================================
   STORY Flyers — /order/ — Apple-grade flyer-only checkout
   White canvas · Cabinet Grotesk + Satoshi · Lime accent ONLY on selected/CTA
   ========================================================================== */

/* ── Local design tokens (scoped to .order-page; nav inherits global tokens) ── */
.order-page {
  --ink: #1d1d1f;
  --ink-muted: #86868b;
  --ink-faint: #6e6e73;
  --canvas: #ffffff;
  --canvas-soft: #fbfbfd;
  --canvas-tint: #f5f5f7;
  --hairline: #d2d2d7;
  --hairline-soft: #e8e8ed;
  --lime: #c8ff00;
  --lime-hover: #b8ef00;
  --lime-ink: #1d1d1f;
  --error: #d70015;

  --font-d: 'Cabinet Grotesk', 'Inter', system-ui, sans-serif;
  --font-b: 'Satoshi', 'Inter', system-ui, sans-serif;

  --ease-apple: cubic-bezier(.25,.46,.45,.94);
  --ease-out:   cubic-bezier(.16,1,.3,1);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --max-w: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-gap: clamp(72px, 11vw, 128px);
}

/* Override main-site dark body for the order page */
body.order-page {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-b);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  letter-spacing: -0.005em;
}
.order-page * { box-sizing: border-box; }
.order-page img, .order-page video { max-width: 100%; display: block; }
.order-page button { font: inherit; color: inherit; cursor: pointer; }
.order-page a { color: inherit; }

/* Keep global nav (dark glass) white-text on top of white order page */
.order-page .nav__logo { color: #fff; }
.order-page .nav__link { color: rgba(255,255,255,0.78); }
.order-page .nav__link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.order-page .nav__link--accent { color: #c8ff00; }
.order-page .nav__link--accent:hover { color: #c8ff00; }
.order-page .nav__cta { color: #1d1d1f; background: #fff; }
.order-page .nav__cta:hover { background: rgba(255,255,255,0.88); }
.order-page :focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.order-hero {
  padding: calc(72px + clamp(56px, 10vw, 120px)) var(--gutter) clamp(48px, 7vw, 88px);
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: left;
}
.order-hero-title {
  font-family: var(--font-d);
  font-weight: 300;
  font-size: clamp(44px, 7.4vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 18px;
}
.order-hero-sub {
  font-family: var(--font-b);
  font-weight: 400;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.45;
  color: var(--ink-faint);
  max-width: 640px;
  letter-spacing: -0.01em;
  margin: 0;
}

/* ── Layout ───────────────────────────────────────────────────────────────── */
.order-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(72px, 10vw, 128px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 1024px) {
  .order-layout { grid-template-columns: 1fr; gap: 0; }
}

.order-main { min-width: 0; }

/* ── Steps ────────────────────────────────────────────────────────────────── */
.order-step {
  padding-bottom: var(--section-gap);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.order-step.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.order-step:last-child { padding-bottom: clamp(40px, 6vw, 80px); }

.step-head {
  margin-bottom: clamp(32px, 4vw, 48px);
}
.step-label {
  font-family: var(--font-b);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  text-transform: none;
  margin: 0 0 10px;
}
.step-title {
  font-family: var(--font-d);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0;
}

/* ── Step 1: Product Cards ────────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 1.6vw, 24px);
}
@media (max-width: 720px) {
  .product-grid { grid-template-columns: 1fr; }
}

.product-card {
  position: relative;
  background: var(--canvas);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition:
    transform .2s var(--ease-apple),
    border-color .25s var(--ease-apple),
    box-shadow .25s var(--ease-apple);
  outline: none;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--hairline);
}
.product-card:focus-visible {
  border-color: var(--ink);
}
.product-card.selected {
  border-color: var(--lime);
  box-shadow: 0 0 0 1px var(--lime) inset;
}

/* Product media (image/video) — full flyer on soft canvas, rounded corners on both card AND flyer */
.product-media {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: #f5f5f7;
  padding: 14px;
  border-radius: 16px;
}
.product-media img,
.product-media video {
  position: absolute;
  inset: 14px;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  object-fit: contain;
  border-radius: 16px;
  transition: transform .8s var(--ease-out);
}
.product-card:hover .product-media img,
.product-card:hover .product-media video { transform: scale(1.015); }

.product-video { background: #000; }

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: var(--lime);
  color: var(--lime-ink);
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.01em;
  padding: 6px 12px;
  border-radius: 999px;
}

.product-check {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--lime-ink);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .2s var(--ease-apple), transform .25s var(--ease-apple);
  pointer-events: none;
}
.product-check svg { width: 16px; height: 16px; }
.product-card.selected .product-check {
  opacity: 1;
  transform: scale(1);
}

/* Product body */
.product-body {
  padding: 22px 24px 18px;
}
.product-headline {
  margin-bottom: 16px;
}
.product-name {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0 0 4px;
}
.product-tagline {
  font-family: var(--font-b);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-muted);
  margin: 0;
  letter-spacing: -0.005em;
}

.product-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.product-price {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.product-pill {
  font-family: var(--font-b);
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-faint);
  background: var(--canvas-tint);
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: 0.005em;
}
.product-revisions {
  font-family: var(--font-b);
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-muted);
  margin-left: auto;
}

/* Expand toggle */
.product-expand-toggle {
  width: 100%;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--hairline-soft);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-b);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-faint);
  letter-spacing: -0.005em;
  transition: color .2s var(--ease-apple), background .2s var(--ease-apple);
}
.product-expand-toggle:hover { color: var(--ink); background: var(--canvas-soft); }
.product-expand-toggle .expand-arrow {
  width: 10px;
  height: auto;
  transition: transform .25s var(--ease-apple);
}
.product-card.expanded .expand-arrow { transform: rotate(180deg); }

/* Expanded content */
.product-expanded-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease-apple), opacity .3s var(--ease-apple);
  border-top: 1px solid transparent;
  background: var(--canvas-soft);
}
.product-card.expanded .product-expanded-content {
  max-height: 800px;
  opacity: 1;
  border-top-color: var(--hairline-soft);
}

.product-tabs {
  display: flex;
  gap: 4px;
  padding: 16px 16px 0;
  flex-wrap: wrap;
}
.product-tab-btn {
  background: transparent;
  border: 0;
  padding: 8px 12px;
  font-family: var(--font-b);
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-muted);
  border-radius: 999px;
  transition: color .2s var(--ease-apple), background .2s var(--ease-apple);
}
.product-tab-btn:hover { color: var(--ink); }
.product-tab-btn.active {
  background: var(--ink);
  color: var(--canvas);
}

.product-tab-panel {
  display: none;
  padding: 18px 24px 22px;
}
.product-tab-panel.active { display: block; }

.example-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.example-thumb {
  aspect-ratio: 4/5;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--canvas-tint);
}
.example-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.tab-note {
  font-family: var(--font-b);
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-faint);
  margin: 0;
}
.tab-note strong { color: var(--ink); font-weight: 600; }

.included-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.included-list li {
  font-family: var(--font-b);
  font-weight: 400;
  font-size: 14px;
  color: var(--ink-faint);
  padding-left: 22px;
  position: relative;
  line-height: 1.45;
}
.included-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 14px; height: 8px;
  border-left: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(-45deg);
  border-radius: 1px;
}

.expand-select-btn {
  display: block;
  margin: 6px 24px 22px;
  padding: 14px 18px;
  background: var(--ink);
  color: var(--canvas);
  border: 0;
  border-radius: 999px;
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: background .2s var(--ease-apple);
  width: calc(100% - 48px);
}
.expand-select-btn:hover { background: #000; }

/* ── Step 2: Size ─────────────────────────────────────────────────────────── */
.size-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 720px) {
  .size-grid { grid-template-columns: repeat(2, 1fr); }
}
.size-card {
  background: var(--canvas);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-md);
  padding: 24px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: border-color .25s var(--ease-apple), transform .2s var(--ease-apple), background .25s var(--ease-apple);
}
.size-card:hover {
  border-color: var(--hairline);
  transform: translateY(-2px);
}
.size-card[aria-pressed="true"] {
  border-color: var(--lime);
  box-shadow: 0 0 0 1px var(--lime) inset;
}

.size-preview {
  width: 100%;
  height: 84px;
  display: grid;
  place-items: center;
}
.size-rect {
  display: block;
  background: var(--ink);
  border-radius: 4px;
  transition: background .2s var(--ease-apple);
}
.size-preview[data-shape="square"]   .size-rect { width: 60px; height: 60px; }
.size-preview[data-shape="portrait"] .size-rect { width: 56px; height: 70px; }
.size-preview[data-shape="landscape"] .size-rect { width: 80px; height: 42px; }
.size-preview[data-shape="story"]    .size-rect { width: 40px; height: 72px; }

.size-card[aria-pressed="true"] .size-rect {
  background: var(--lime);
  box-shadow: 0 0 0 1.5px var(--ink) inset;
}

.size-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.size-name {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.size-ratio {
  font-family: var(--font-b);
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-muted);
}

/* ── Step 3: Add-ons ──────────────────────────────────────────────────────── */
.addon-list {
  display: grid;
  gap: 10px;
}
.addon-card {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 16px;
  background: var(--canvas);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  cursor: pointer;
  transition: border-color .2s var(--ease-apple), background .2s var(--ease-apple);
}
.addon-card:hover { border-color: var(--hairline); }
.addon-card.checked {
  border-color: var(--lime);
  box-shadow: 0 0 0 1px var(--lime) inset;
}

.addon-checkbox {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 1.5px solid var(--hairline);
  background: var(--canvas);
  display: grid; place-items: center;
  transition: background .2s var(--ease-apple), border-color .2s var(--ease-apple);
}
.addon-checkbox svg {
  width: 14px; height: 14px;
  color: var(--lime-ink);
  opacity: 0;
  transition: opacity .15s var(--ease-apple);
}
.addon-card.checked .addon-checkbox {
  background: var(--lime);
  border-color: var(--lime);
}
.addon-card.checked .addon-checkbox svg { opacity: 1; }

.addon-info { min-width: 0; }
.addon-name {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.addon-desc {
  font-family: var(--font-b);
  font-weight: 400;
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.4;
}
.addon-price {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.005em;
}

/* Stepper variant for extra revisions — no checkbox click toggle */
.addon-card--stepper { cursor: default; }
.addon-card--stepper .addon-checkbox { display: none; }
.addon-card--stepper { grid-template-columns: 1fr auto; }
.addon-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  overflow: hidden;
  background: var(--canvas);
}
.addon-step-btn {
  background: transparent;
  border: 0;
  width: 36px; height: 36px;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  display: grid; place-items: center;
  transition: background .15s var(--ease-apple);
}
.addon-step-btn:hover:not(:disabled) { background: var(--canvas-tint); }
.addon-step-btn:disabled { color: var(--hairline); cursor: not-allowed; }
.addon-step-val {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  min-width: 28px;
  text-align: center;
  padding: 0 4px;
}

/* ── Step 4 + 5: Forms ────────────────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
}

.form-label {
  font-family: var(--font-b);
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0;
}
.form-label .req { color: var(--error); margin-left: 2px; }
.form-label .opt {
  margin-left: 6px;
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-muted);
  font-style: normal;
}

.form-input,
.form-textarea {
  width: 100%;
  height: 56px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 0 18px;
  font-family: var(--font-b);
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.005em;
  transition: border-color .15s var(--ease-apple), box-shadow .15s var(--ease-apple);
  -webkit-appearance: none;
  appearance: none;
}
.form-textarea {
  height: auto;
  min-height: 120px;
  padding: 16px 18px;
  resize: vertical;
  line-height: 1.5;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--ink-muted); }
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 4px rgba(200, 255, 0, 0.25);
}
.form-input.error,
.form-textarea.error {
  border-color: var(--error);
}
.field-error {
  display: none;
  font-family: var(--font-b);
  font-weight: 500;
  font-size: 12.5px;
  color: var(--error);
}
.form-field.has-error .field-error { display: block; }

/* date input cosmetics */
.form-input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
}

/* ── Right Sidebar ────────────────────────────────────────────────────────── */
.order-sidebar {
  position: sticky;
  top: calc(72px + 16px);
  align-self: start;
}
.sidebar-inner {
  background: var(--canvas);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
}
.sidebar-title {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0 0 20px;
}
.sidebar-empty {
  font-family: var(--font-b);
  font-size: 14px;
  color: var(--ink-muted);
  padding: 18px 0;
  border-top: 1px solid var(--hairline-soft);
}

.sidebar-lines {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 14px;
}
.sidebar-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  padding-top: 14px;
  border-top: 1px solid var(--hairline-soft);
}
.sidebar-line:first-child { border-top: 0; padding-top: 0; }
.sidebar-line-name {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.005em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sidebar-line-sub {
  font-family: var(--font-b);
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 2px;
}
.sidebar-line-price {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.005em;
  white-space: nowrap;
  text-align: right;
}
.sidebar-line-remove {
  background: transparent;
  border: 0;
  color: var(--ink-muted);
  font-size: 16px;
  width: 22px; height: 22px;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  transition: background .15s var(--ease-apple), color .15s var(--ease-apple);
  margin-left: 4px;
}
.sidebar-line-remove:hover { background: var(--canvas-tint); color: var(--ink); }

.sidebar-totals {
  border-top: 1px solid var(--hairline);
  padding-top: 18px;
  margin-bottom: 22px;
}
.sidebar-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 4px 0;
  font-family: var(--font-b);
  font-size: 14px;
  color: var(--ink-faint);
}
.sidebar-total-row--grand {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline-soft);
  color: var(--ink);
}
.sidebar-total-row--grand span:first-child {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 15px;
}
.sidebar-total-row--grand span:last-child {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  transition: color .2s var(--ease-apple);
}
.sidebar-total-row--grand span.updating { color: var(--lime-ink); }

.sidebar-deposit {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--canvas-tint);
  border-radius: 10px;
  font-family: var(--font-b);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-faint);
}
.sidebar-deposit strong { color: var(--ink); font-weight: 600; }

/* CTA */
.proceed-btn {
  width: 100%;
  height: 56px;
  background: var(--lime);
  color: var(--lime-ink);
  border: 0;
  border-radius: 999px;
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.005em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .2s var(--ease-apple), transform .15s var(--ease-apple);
  position: relative;
}
.proceed-btn:hover { background: var(--lime-hover); }
.proceed-btn:active { transform: scale(0.985); }
.proceed-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.proceed-btn-spinner {
  display: none;
  width: 20px; height: 20px;
  animation: spin 0.8s linear infinite;
}
.proceed-btn.loading .proceed-btn-label { opacity: 0; }
.proceed-btn.loading .proceed-btn-spinner {
  display: block;
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.sidebar-secured {
  margin-top: 14px;
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  font-family: var(--font-b);
  font-size: 12px;
  color: var(--ink-muted);
}
.sidebar-secured svg { width: 11px; height: 13px; }

.sidebar-help {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline-soft);
  font-family: var(--font-b);
  font-size: 13px;
  color: var(--ink-muted);
  text-align: center;
}
.sidebar-help a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  margin-left: 4px;
}
.sidebar-help a:hover { text-decoration: underline; }

/* Hide desktop sidebar on mobile */
@media (max-width: 1024px) {
  .order-sidebar { display: none; }
}

/* ── Mobile Bottom Bar ───────────────────────────────────────────────────── */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--hairline-soft);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0));
  gap: 10px;
  align-items: center;
}
.mobile-view-summary {
  background: transparent;
  border: 0;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-b);
  color: var(--ink);
}
.mobile-view-summary svg { width: 10px; height: 8px; color: var(--ink-muted); }
.mobile-total-label {
  font-family: var(--font-b);
  font-size: 12px;
  color: var(--ink-muted);
}
.mobile-total {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.mobile-proceed-btn {
  margin-left: auto;
  flex: 0 0 auto;
  height: 48px;
  padding: 0 22px;
  background: var(--lime);
  color: var(--lime-ink);
  border: 0;
  border-radius: 999px;
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
  transition: background .2s var(--ease-apple);
}
.mobile-proceed-btn:hover { background: var(--lime-hover); }

@media (max-width: 1024px) {
  .mobile-bar { display: flex; }
  body.order-page { padding-bottom: 84px; }
}

/* ── Bottom Sheet ─────────────────────────────────────────────────────────── */
.bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease-apple), visibility 0s .3s;
  z-index: 95;
}
.bottom-sheet-overlay.open {
  opacity: 1;
  visibility: visible;
  transition: opacity .3s var(--ease-apple);
}
.bottom-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 96;
  background: var(--canvas);
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  padding: 18px 22px calc(22px + env(safe-area-inset-bottom, 0));
  transform: translateY(100%);
  transition: transform .35s var(--ease-apple);
  max-height: 86vh;
  overflow-y: auto;
}
.bottom-sheet.open { transform: translateY(0); }
.bottom-sheet-handle {
  width: 36px; height: 4px;
  background: var(--hairline);
  border-radius: 2px;
  margin: 0 auto 16px;
}
.bottom-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.bottom-sheet-title {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.018em;
  margin: 0;
}
.bottom-sheet-close {
  background: transparent;
  border: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-faint);
  transition: background .15s var(--ease-apple), color .15s var(--ease-apple);
}
.bottom-sheet-close:hover { background: var(--canvas-tint); color: var(--ink); }
.bottom-sheet-close svg { width: 18px; height: 18px; }

.bottom-sheet .proceed-btn { margin-top: 18px; }

/* ── Fine print / Legal block ─────────────────────────────────────────────── */

/* Full version (under contact step) */
.legal-block {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  margin-top: 64px;
  margin-bottom: 32px;
  padding-top: 36px;
}
.legal-heading {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 22px;
}
.legal-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}
.legal-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.legal-list li:first-child { border-top: 0; padding-top: 0; }
.legal-list li:last-child { padding-bottom: 0; }
.legal-list li strong {
  font-family: var(--font-b);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.legal-list li span {
  font-family: var(--font-b);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-muted);
  letter-spacing: -0.005em;
}
.legal-foot {
  font-family: var(--font-b);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 0;
  letter-spacing: -0.003em;
}
.legal-foot a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color .15s var(--ease-apple), background .15s var(--ease-apple);
}
.legal-foot a:hover {
  color: var(--lime-ink);
  background: var(--lime);
  text-decoration: none;
  padding: 1px 4px;
  border-radius: 3px;
}

@media (max-width: 720px) {
  .legal-block { margin-top: 40px; margin-bottom: 24px; padding-top: 28px; }
  .legal-heading { font-size: 20px; margin-bottom: 18px; }
  .legal-list li { grid-template-columns: 96px 1fr; gap: 14px; padding: 16px 0; }
}

/* Compact version (right rail) */
.legal-block--compact {
  margin-top: 22px;
  margin-bottom: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--hairline-soft);
}
.legal-block--compact .legal-heading {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.legal-block--compact .legal-list { margin-bottom: 14px; }
.legal-block--compact .legal-list li {
  grid-template-columns: 84px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.legal-block--compact .legal-list li strong { font-size: 12px; }
.legal-block--compact .legal-list li span {
  font-size: 12px;
  line-height: 1.5;
}
.legal-block--compact .legal-foot { font-size: 11.5px; }

/* Sheet version (mobile bottom sheet — full content, tighter) */
.legal-block--sheet {
  margin: 24px 0 18px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}
.legal-block--sheet .legal-heading {
  font-size: 18px;
  margin-bottom: 14px;
}
.legal-block--sheet .legal-list li {
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 14px 0;
}
.legal-block--sheet .legal-list li strong,
.legal-block--sheet .legal-list li span {
  font-size: 12.5px;
  line-height: 1.5;
}

/* ── Reduced Motion ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .order-page * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .order-step { opacity: 1; transform: none; }
}
