:root {
  --ink: #22182c;
  --muted: #6c6373;
  --paper: #ffffff;
  --canvas: #f7f5fa;
  --plum: #651a45;
  --plum-dark: #48102f;
  --pink: #ff5f7e;
  --pink-soft: #fff0f4;
  --line: #e6e0e9;
  --shadow: 0 18px 50px rgba(61, 27, 52, .09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 8% 2%, #ffe8ef 0, transparent 22rem), var(--canvas); }
button, textarea { font: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }

.topbar { max-width: 1240px; margin: 0 auto; padding: 22px 28px; display: flex; justify-content: space-between; align-items: center; }
.brand { color: var(--ink); text-decoration: none; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 42px; display: grid; place-items: center; border-radius: 8px; background: var(--plum); color: var(--pink); box-shadow: 5px 5px 0 var(--pink); transform: rotate(-5deg); }
.terms-link { color: var(--plum); font-weight: 700; text-underline-offset: 4px; }
.page-shell { max-width: 1240px; margin: 0 auto; padding: 24px 28px 80px; }
.intro { max-width: 720px; margin: 30px 0 34px; }
.eyebrow, .summary-kicker { color: var(--plum); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; margin: 0 0 8px; }
h1 { font-size: clamp(2.3rem, 6vw, 4.8rem); line-height: .98; letter-spacing: -.055em; margin: 0; max-width: 800px; }
.intro > p:last-child { font-size: 1.08rem; line-height: 1.6; color: var(--muted); max-width: 650px; }
.builder-layout { display: grid; grid-template-columns: minmax(0, 1fr) 365px; gap: 28px; align-items: start; }
.steps { display: grid; gap: 22px; }
.step-card, .summary-card { background: rgba(255,255,255,.93); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.step-card { padding: clamp(20px, 4vw, 34px); }
.step-heading { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 24px; }
.step-number { flex: 0 0 auto; width: 36px; height: 44px; display: grid; place-items: center; border-radius: 8px; background: var(--plum); color: white; font-weight: 900; box-shadow: 5px 5px 0 var(--pink); transform: rotate(-3deg); }
.step-heading h2, .summary-card h2, .terms h2, .dialog-head h2 { margin: 0; line-height: 1.1; letter-spacing: -.025em; }
.step-heading p { color: var(--muted); margin: 6px 0 0; line-height: 1.45; }
.field-title { margin: 26px 0 12px; font-size: 1rem; }
.choice-row { display: grid; gap: 12px; }
.choice-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-card { position: relative; min-width: 0; display: flex; align-items: center; gap: 14px; border: 1.5px solid var(--line); border-radius: 16px; padding: 16px; cursor: pointer; background: white; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; overflow: hidden; }
.choice-card:hover { transform: translateY(-2px); border-color: #b994aa; }
.choice-card:has(input:focus-visible) { outline: 3px solid rgba(101,26,69,.25); outline-offset: 3px; }
.choice-card:has(input:checked) { border-color: var(--plum); box-shadow: inset 0 0 0 1px var(--plum), 0 8px 22px rgba(101,26,69,.1); }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-copy { display: grid; gap: 4px; padding-right: 22px; }
.choice-copy strong { font-size: 1rem; }
.choice-copy small { color: var(--muted); font-size: .88rem; line-height: 1.35; }
.choice-check { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--plum); color: white; font-size: .75rem; opacity: 0; transform: scale(.7); transition: .18s ease; }
.choice-card:has(input:checked) .choice-check { opacity: 1; transform: scale(1); }
.video-button { margin-top: 16px; border: 0; background: var(--pink-soft); color: var(--plum); min-height: 48px; border-radius: 14px; padding: 10px 16px; font-weight: 800; cursor: pointer; }
.video-button:hover { background: #ffe1e9; }
.play-icon { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 6px; border-radius: 50%; background: var(--plum); color: white; font-size: .68rem; padding-left: 2px; }
.examples-button { width: 100%; text-align: left; line-height: 1.35; }
.photo-icon { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 6px; border-radius: 8px; background: var(--plum); color: white; font-size: .85rem; }
.layout-options .choice-card { align-items: center; min-height: 158px; }
.card-preview { flex: 0 0 92px; aspect-ratio: 400 / 557; border: 1px solid #b9b2bb; border-radius: 9px; background: white; padding: 0; position: relative; overflow: hidden; }
.card-preview b, .card-preview em { position: absolute; z-index: 2; color: #e11e39; font-family: Georgia, "Times New Roman", serif; line-height: .8; font-size: .92rem; font-style: normal; font-weight: 700; text-align: center; }
.card-preview b { top: 5%; left: 6%; }
.card-preview em { right: 6%; bottom: 5%; transform: rotate(180deg); }
.card-preview i { font-style: normal; }
.card-preview span { position: absolute; display: block; background: linear-gradient(145deg, #8ec5fc, #f9a8d4 55%, #fbd786); }
.card-preview.inset span { left: 16.5%; top: 18%; width: 67%; height: 64%; border-radius: 0; }
.card-preview.full span { inset: 0; border-radius: inherit; }
.card-preview.full b, .card-preview.full em { display: grid; place-content: center; width: 19.5%; height: 28%; padding: 0; background: white; }
.card-preview.full b { top: 0; left: 0; border-radius: 8px 0 10px 0; }
.card-preview.full em { right: 0; bottom: 0; border-radius: 8px 0 10px 0; }
.notice { margin-top: 16px; border-left: 4px solid var(--pink); background: var(--pink-soft); padding: 14px 16px; border-radius: 0 12px 12px 0; color: #57203b; line-height: 1.5; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.catalog-grid .choice-card { padding: 8px 8px 12px; display: block; }
.sheet-crop, .custom-art { display: block; position: relative; width: 100%; aspect-ratio: 5/7; border-radius: 11px; overflow: hidden; background: #f3eef4; }
.sheet-crop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.box-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.custom-art { border: 2px dashed #c7afbd; display: grid; place-items: center; align-content: center; gap: 6px; color: var(--plum); background: linear-gradient(135deg, #fff4f7, #f6efff); }
.custom-art b { font-size: 2.2rem; line-height: 1; }
.custom-art small { font-weight: 700; }
.catalog-label { display: block; line-height: 1.3; margin: 10px 4px 0; font-size: .88rem; min-height: 2.3em; }
.textarea-label { display: block; font-weight: 800; margin-bottom: 8px; }
textarea { width: 100%; min-height: 110px; resize: vertical; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; color: var(--ink); background: white; }
textarea:focus { outline: 3px solid rgba(101,26,69,.18); border-color: var(--plum); }
.summary-card { position: sticky; top: 20px; padding: 26px; border-top: 7px solid var(--pink); }
.summary-card h2 { font-size: 1.65rem; }
.summary-card dl { margin: 22px 0; display: grid; gap: 11px; }
.summary-card dl div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.summary-card dt { color: var(--muted); }
.summary-card dd { margin: 0; text-align: right; font-weight: 750; }
.price-panel { padding: 16px; background: var(--canvas); border-radius: 14px; display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.price-panel strong { text-align: right; }
.total-label, .price-panel .total { padding-top: 11px; border-top: 1px solid #d7cfdc; }
.price-panel .total { color: var(--plum); font-size: 1.14rem; }
.primary-button { width: 100%; border: 0; border-radius: 14px; background: var(--plum); color: white; padding: 15px 18px; margin-top: 16px; font-weight: 850; cursor: pointer; box-shadow: 0 8px 0 var(--plum-dark); transition: transform .15s ease, box-shadow .15s ease; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 10px 0 var(--plum-dark); }
.primary-button:active { transform: translateY(5px); box-shadow: 0 3px 0 var(--plum-dark); }
.copy-status { min-height: 1.4em; color: var(--plum); text-align: center; font-weight: 750; margin: 14px 0 0; }
.terms { margin-top: 88px; scroll-margin-top: 20px; }
.terms-intro { max-width: 620px; margin-bottom: 24px; }
.terms h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.terms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.terms-grid article { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.terms-grid article > span { color: var(--pink); font-weight: 900; font-size: .8rem; letter-spacing: .1em; }
.terms-grid h3 { margin: 9px 0 7px; }
.terms-grid p { color: var(--muted); line-height: 1.5; margin: 0; }
.video-dialog { width: min(820px, calc(100% - 28px)); border: 0; border-radius: 22px; padding: 0; box-shadow: 0 30px 100px rgba(24,11,25,.35); }
.video-dialog::backdrop { background: rgba(31,17,29,.75); backdrop-filter: blur(4px); }
.dialog-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding: 22px 24px 16px; }
.dialog-head button { border: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--canvas); color: var(--ink); cursor: pointer; font-size: 1.7rem; line-height: 1; }
.video-dialog video { width: 100%; display: block; max-height: 68vh; background: #111; }
.video-fallback { margin: 0; padding: 14px 24px 20px; color: var(--muted); }
.video-fallback a { color: var(--plum); font-weight: 750; }
.examples-dialog { width: min(980px, calc(100% - 28px)); max-height: calc(100vh - 28px); border: 0; border-radius: 22px; padding: 0; box-shadow: 0 30px 100px rgba(24,11,25,.35); }
.examples-dialog::backdrop { background: rgba(31,17,29,.75); backdrop-filter: blur(4px); }
.examples-gallery { padding: 0 24px 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.examples-gallery figure { margin: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--canvas); overflow: hidden; }
.examples-gallery img { display: block; width: 100%; height: min(54vh, 590px); object-fit: contain; background: #fff; }
.examples-gallery figcaption { padding: 13px 16px 15px; font-weight: 800; color: var(--plum); }
.examples-gallery .comparison-figure { grid-column: 1 / -1; }
.examples-gallery .comparison-figure img { height: auto; max-height: 520px; }

@media (max-width: 1050px) {
  .builder-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; order: 2; }
  .terms-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .topbar, .page-shell { padding-left: 16px; padding-right: 16px; }
  .topbar { padding-top: 16px; }
  .terms-link { font-size: .88rem; }
  .brand span:last-child { display: none; }
  .intro { margin-top: 18px; }
  h1 { font-size: 2.55rem; }
  .choice-row.two { grid-template-columns: 1fr; }
  .catalog-grid, .box-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .terms-grid { grid-template-columns: 1fr; }
  .step-heading { gap: 12px; }
  .step-card { border-radius: 19px; }
  .summary-card dl div { grid-template-columns: 82px 1fr; }
  .examples-gallery { grid-template-columns: 1fr; padding: 0 14px 16px; }
  .examples-gallery .comparison-figure { grid-column: auto; }
  .examples-gallery img { height: auto; max-height: none; }
}

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