:root { --fg: #000; --bg: #fff; --muted: #666; --line: #e5e5e5; --soft: #f4f4f4; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
main { max-width: 680px; margin: 0 auto; padding: 96px 20px 64px; }

header h1 { font-size: 44px; line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 12px; font-weight: 700; }
header .sub { font-size: 18px; color: var(--muted); margin: 0; max-width: 520px; }

.people { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 32px 0 24px; }
.step { width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid var(--fg); background: var(--bg); color: var(--fg); font-size: 32px; line-height: 1; cursor: pointer; display: grid; place-items: center; -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; }
.step:hover { background: var(--fg); color: var(--bg); }
.step:active { transform: scale(0.96); }
.step:disabled { opacity: 0.25; cursor: default; background: var(--bg); color: var(--fg); }
.count { min-width: 150px; text-align: center; }
.count output { display: block; font-size: 88px; line-height: 1; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.count .label { display: block; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 6px; }

.summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; }
.stat { text-align: center; }
.stat b { display: block; font-size: 24px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

.cta { margin: 28px 0 40px; text-align: center; }
.buy { display: block; width: 100%; padding: 20px 24px; background: var(--fg); color: var(--bg); text-decoration: none; font-size: 19px; font-weight: 600; border-radius: 14px; letter-spacing: -0.01em; }
.buy:hover { background: #222; }
.row2 { margin-top: 10px; }
.cta.top { margin: 0 0 8px; }
.summary { margin-top: 28px; }
.ghost { width: 100%; padding: 14px; background: var(--bg); color: var(--fg); border: 1.5px solid var(--line); border-radius: 14px; font: inherit; font-size: 15px; cursor: pointer; }
.ghost:hover { border-color: var(--fg); }
a.ghost { display: block; box-sizing: border-box; text-decoration: none; margin-top: 10px; text-align: center; }
.fine { font-size: 13px; color: var(--muted); margin: 14px auto 0; max-width: 460px; }

.plan { margin-top: 28px; }
.plan svg { display: block; width: 100%; height: auto; overflow: visible; }
.plan svg { -webkit-mask-image: linear-gradient(to right, transparent, #000 16%), linear-gradient(to bottom, transparent, #000 22%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 16%), linear-gradient(to bottom, transparent, #000 22%); mask-composite: intersect; }
.plan polygon { fill: #fff; stroke: #cfcfcf; stroke-width: 1; stroke-linejoin: round; }
.plan .ln { fill: none; stroke: #cfcfcf; stroke-width: 1; stroke-linecap: round; }
.plan .pack polygon { fill: #111; stroke: #555; stroke-width: .6; }
.plan .pack .l { fill: #222; } .plan .pack .r { fill: #000; }
.plan .pack { filter: drop-shadow(0 2px 6px rgba(0,0,0,.18)); }
.plan .lead { fill: none; stroke: #cfcfcf; stroke-width: 1; }
.plan .dot { fill: #111; }
.plan .cap { font-size: 12px; font-weight: 600; fill: #111; }
.plan .sub2 { font-size: 11px; fill: #6b6b6b; }
.plan .drop { stroke: #cfcfcf; stroke-width: 1; stroke-dasharray: 2 3; }
.plan .mattress { transform: translateY(-26px); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.plan svg:hover .mattress { transform: translateY(-40px); }
.plan .pack { transition: transform .6s cubic-bezier(.2,.8,.2,1); }
@media (prefers-reduced-motion: reduce) { .plan .mattress { transition: none; } }
.plan .fine { margin-top: 10px; }
.list h2, .notes h2, .plan h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 32px 0 6px; font-weight: 600; }
.item { display: grid; grid-template-columns: 28px 56px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.item input[type=checkbox] { width: 20px; height: 20px; margin: 0; accent-color: #000; cursor: pointer; }
.item .qty { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.item .qty small { font-size: 12px; font-weight: 500; color: var(--muted); }
.item .name { font-weight: 600; text-decoration: none; }
.item .name:hover { text-decoration: underline; }
.item .size { font-size: 13px; color: var(--fg, #111); margin-top: 3px; font-variant-numeric: tabular-nums; }
.item .meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.item .meta .life { white-space: nowrap; }
.item .price { font-variant-numeric: tabular-nums; text-align: right; }
.item .price small { display: block; font-size: 12px; color: var(--muted); }
.item.off { opacity: 0.35; }
.item.off .name { text-decoration: line-through; }

.notes ul { padding-left: 18px; color: #333; margin: 0; }
.notes li { margin: 8px 0; }

footer { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* Corner pills (same as uselocalflow.app): quiet until hovered. */
.corner { position: fixed; top: 16px; z-index: 10; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 12px; border-radius: 999px; font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; background: #f1f1f1; color: #000; opacity: 0.45; transition: opacity 0.35s ease, background 0.2s ease; }
.corner:hover, .corner:focus-visible { opacity: 1; background: #e6e6e6; }
.corner.left { left: 20px; }
.corner.right { right: 20px; }
.corner svg { flex: none; }

@media (max-width: 600px) {
  .summary { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  main { padding: 72px 18px 48px; }
  header h1 { font-size: 36px; }
  header .sub { font-size: 16px; }
  .people { gap: 14px; margin: 32px 0 24px; }
  .step { width: 56px; height: 56px; font-size: 28px; }
  .count { min-width: 120px; }
  .count output { font-size: 72px; }
  .stat b { font-size: 20px; }
  .stat span { font-size: 11px; }
  .buy { font-size: 17px; padding: 18px 20px; }
  .item { grid-template-columns: 24px 44px 1fr; gap: 10px; }
  .item .price { grid-column: 3; text-align: left; margin-top: -6px; }
  .item .price small { display: inline; margin-left: 6px; }
  .corner { top: 10px; height: 28px; font-size: 12px; }
  .corner.left { left: 10px; }
  .corner.right { right: 10px; }
}
