/* ==========================================================================
   아이머니 3D — 3D 프린팅 출력 의뢰
   ========================================================================== */

:root {
  color-scheme: light;

  --brand: #5257ff;
  --brand-600: #3e43ea;
  --brand-700: #2f33c4;
  --brand-50: #f0f0ff;
  --brand-100: #e1e2ff;
  --brand-200: #c5c7ff;

  --ink: #0b0b14;
  --ink-2: #262836;
  --muted: #5f6274;
  --subtle: #8b8e9e;
  --line: #e4e5ee;
  --line-2: #eeeff5;

  --bg: #ffffff;
  --bg-soft: #f6f7fb;

  --danger: #e0362b;
  --danger-600: #c22a20;
  --danger-50: #fff4f2;
  --danger-100: #ffdcd7;

  --ok: #12a150;
  --ok-50: #eafaf0;

  --radius: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --shadow-sm: 0 1px 2px rgba(11, 11, 20, .04), 0 2px 6px rgba(11, 11, 20, .04);
  --shadow-md: 0 14px 34px -18px rgba(24, 26, 70, .22), 0 2px 6px rgba(11, 11, 20, .04);
  --shadow-lg: 0 40px 90px -40px rgba(44, 48, 160, .45);

  --container: 1180px;
  --gutter: 24px;
  --header-h: 72px;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: hidden;
}

img, svg, canvas, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.mono { font-family: var(--mono); font-feature-settings: "zero" 0; letter-spacing: -.01em; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* Logo mark colours (used via <use href="#mark">) */
.mk-a { fill: var(--mk-a, var(--brand)); }
.mk-b { fill: var(--mk-b, var(--ink)); }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 22px;
  border-radius: 12px; border: 1px solid transparent;
  font-weight: 700; font-size: 15.5px; letter-spacing: -.01em; white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-sm { --h: 40px; padding: 0 16px; font-size: 14.5px; border-radius: 10px; }
.btn-lg { --h: 56px; padding: 0 26px; font-size: 16.5px; border-radius: 14px; }

.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 10px 24px -10px rgba(82, 87, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-primary:hover { background: var(--brand-600); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--brand-200); color: var(--brand-700); }
.btn-light { background: #fff; color: var(--brand-700); }
.btn-light:hover { background: var(--brand-50); }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; color: var(--brand-600);
  border-bottom: 1.5px solid var(--brand-200); padding-bottom: 2px;
  transition: border-color .2s, color .2s;
}
.text-link svg { width: 16px; height: 16px; }
.text-link:hover { color: var(--brand-700); border-color: var(--brand); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }

.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { width: 34px; height: auto; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -.03em; }
.brand-name b { color: var(--brand); margin-left: 4px; font-weight: 800; }
.brand-invert { --mk-b: #fff; color: #fff; }
.brand-invert .brand-name b { color: #8d90ff; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 12px; border-radius: 10px;
  font-size: 15px; font-weight: 600; color: var(--ink-2);
  transition: background-color .2s, color .2s;
}
.nav a:hover { background: rgba(82, 87, 255, .08); color: var(--brand-700); }
.nav a.is-active { color: var(--brand-700); }

.nav-toggle {
  display: none; width: 44px; height: 44px; margin-left: 4px; border: 0; background: transparent;
  border-radius: 10px; cursor: pointer; position: relative;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu { border-top: 1px solid var(--line); background: #fff; }
.mobile-menu nav { display: flex; flex-direction: column; padding-top: 10px; padding-bottom: 18px; }
.mobile-menu a:not(.btn) { padding: 14px 4px; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--line-2); }
.mobile-menu .btn { margin-top: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 96px;
  background:
    radial-gradient(1200px 520px at 85% 10%, rgba(82, 87, 255, .13), transparent 60%),
    radial-gradient(800px 400px at 0% 100%, rgba(82, 87, 255, .07), transparent 60%),
    linear-gradient(180deg, #f7f7fd 0%, #ffffff 100%);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(82, 87, 255, .16) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--brand-100); box-shadow: var(--shadow-sm);
  font-family: var(--mono); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; color: var(--brand-700);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(82, 87, 255, .6); animation: ping 2s infinite; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(82, 87, 255, .55); }
  70% { box-shadow: 0 0 0 8px rgba(82, 87, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(82, 87, 255, 0); }
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(36px, 5.2vw, 62px);
  line-height: 1.16; letter-spacing: -.045em; font-weight: 800;
}
.hero h1 .hl {
  background: linear-gradient(92deg, var(--brand) 0%, #7a6cff 55%, var(--brand-600) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin-top: 22px; max-width: 520px; font-size: clamp(16px, 1.5vw, 18.5px); color: var(--muted); line-height: 1.7; }
.lead strong { color: var(--ink); font-weight: 700; white-space: nowrap; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-facts {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
}
.hero-facts > div { padding-right: 26px; margin-right: 26px; border-right: 1px solid var(--line); }
.hero-facts > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero-facts dt { font-size: 13px; color: var(--subtle); font-weight: 600; }
.hero-facts dd { margin-top: 4px; font-size: 17px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.hero-facts dd small { font-size: 12px; margin-left: 3px; color: var(--muted); font-weight: 700; }

.hero-visual {
  position: relative; aspect-ratio: 1 / .92; min-height: 360px;
  border-radius: 30px;
  background:
    radial-gradient(70% 60% at 50% 38%, #ffffff 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(160deg, #eef0ff 0%, #f4f5fb 55%, #e9ebf6 100%);
  border: 1px solid rgba(82, 87, 255, .14);
  box-shadow: var(--shadow-lg), inset 0 1px 0 #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-fallback { display: none; position: absolute; inset: 0; margin: auto; width: 46%; height: auto; }
.hero-visual.is-fallback .hero-fallback { display: block; }
.hero-visual.is-fallback canvas, .hero-visual.is-fallback .hud, .hero-visual.is-fallback .hud-progress { display: none; }

.hud { position: absolute; left: 18px; right: 18px; display: flex; justify-content: space-between; gap: 8px; pointer-events: none; z-index: 2; }
.hud-top { top: 18px; }
.hud-bottom { bottom: 18px; }
.hud-chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 12px; border-radius: 10px;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 4px 14px -6px rgba(30, 32, 80, .25);
  font-size: 12.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap;
}
.hud-chip.mono { font-size: 12px; letter-spacing: .02em; }
.hud-chip b { color: var(--brand-700); }
.hud-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: ping-ok 1.6s infinite; }
.hud-pulse.is-done { background: var(--brand); animation: none; }
@keyframes ping-ok {
  0% { box-shadow: 0 0 0 0 rgba(18, 161, 80, .5); }
  70% { box-shadow: 0 0 0 7px rgba(18, 161, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(18, 161, 80, 0); }
}
.hud-swatch { width: 14px; height: 14px; border-radius: 50%; background: var(--brand); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); transition: background-color .4s; }
.hud-progress { position: absolute; left: 18px; right: 18px; top: 58px; height: 3px; border-radius: 3px; background: rgba(82, 87, 255, .12); overflow: hidden; z-index: 2; }
.hud-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), #8b82ff); border-radius: inherit; }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section-soft { background: var(--bg-soft); }

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin: 0 0 32px; text-align: left; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 700; letter-spacing: .14em; color: var(--brand-600);
}
.kicker span { padding: 3px 8px; border-radius: 6px; background: var(--brand-50); color: var(--brand-700); letter-spacing: .04em; }
.kicker.light { color: rgba(255, 255, 255, .85); }
.kicker.light span { background: rgba(255, 255, 255, .16); color: #fff; }
.section-head h2 { margin-top: 14px; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.22; letter-spacing: -.04em; font-weight: 800; }
.section-head > p:not(.kicker) { margin-top: 14px; color: var(--muted); font-size: 17px; }
.section-head strong { color: var(--ink); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.footnote { margin-top: 18px; text-align: center; color: var(--subtle); font-size: 14px; }
.footnote::before { content: "※ "; }
.footnote.left { text-align: left; }

/* ---------- Spec ---------- */
.spec-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.spec-size {
  grid-column: 1 / -1; padding: 36px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-rows: auto auto 1fr;
  column-gap: 40px; row-gap: 20px;
}
.spec-size .sizer { display: contents; }
.spec-size-head { grid-column: 1; grid-row: 1; }
.spec-size .sizer-fields { grid-column: 1; grid-row: 2; }
.spec-size .sizer-result { grid-column: 1; grid-row: 3; align-self: start; }
.spec-size .sizer-stage { grid-column: 2; grid-row: 1 / span 3; }
.spec-card { padding: 28px; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.spec-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-100); }
.spec-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand-50); color: var(--brand); margin-bottom: 18px;
}
.spec-icon svg { width: 24px; height: 24px; }
.spec-label { font-size: 14px; font-weight: 700; color: var(--subtle); }
.spec-value { margin-top: 4px; font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.spec-value.mono { font-size: 16px; letter-spacing: -.03em; line-height: 1.9; white-space: nowrap; }
.spec-desc { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.spec-big { margin-top: 6px; font-size: clamp(30px, 3.4vw, 40px); font-weight: 700; letter-spacing: -.04em; line-height: 1.1; color: var(--ink); }
.spec-big span { font-size: .45em; margin-left: 6px; color: var(--brand); letter-spacing: 0; }

.sizer { display: grid; gap: 18px; }
.sizer-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.field {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: 10px 14px 10px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field:focus-within { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(82, 87, 255, .12); }
.field span { font-size: 12.5px; font-weight: 700; color: var(--subtle); }
.field input {
  width: 100%; padding: 0; padding-right: 30px; border: 0; background: transparent; outline: none;
  font-family: var(--mono); font-size: 20px; font-weight: 700; letter-spacing: -.02em;
  -moz-appearance: textfield; appearance: textfield;
}
.field input::-webkit-outer-spin-button, .field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field em { position: absolute; right: 14px; bottom: 13px; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--subtle); font-family: var(--mono); }

.sizer-stage {
  border-radius: 16px; background:
    linear-gradient(180deg, #fafaff, #f3f4fb);
  border: 1px dashed var(--brand-100);
  padding: 18px; display: grid; place-items: center; min-height: 260px;
}
.iso { width: 100%; max-width: 420px; height: 280px; overflow: visible; }
.iso line, .iso polyline { vector-effect: non-scaling-stroke; }
.iso .vol-hidden { stroke: #b9bce0; stroke-width: 1; stroke-dasharray: 3 4; fill: none; }
.iso .vol-edge { stroke: #8f93d6; stroke-width: 1.3; fill: none; }
.iso .vol-floor { fill: rgba(82, 87, 255, .06); }
.iso .vol-label { font-family: var(--mono); font-size: 13px; font-weight: 700; fill: #8f93d6; }
.iso .obj-top { fill: #8f93ff; }
.iso .obj-l { fill: #5257ff; }
.iso .obj-r { fill: #3c40d6; }
.iso .obj-edge { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: .8; }
.iso.is-over .obj-top { fill: #ff8a80; }
.iso.is-over .obj-l { fill: #e8473b; }
.iso.is-over .obj-r { fill: #bf2f25; }

.sizer-result {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: 14px; font-size: 14.5px; line-height: 1.55;
  background: var(--ok-50); color: #0d6b37; border: 1px solid #c6efd6;
}
.sizer-result.is-over { background: var(--danger-50); color: var(--danger-600); border-color: var(--danger-100); }
.sizer-result b { display: block; font-size: 15.5px; color: inherit; }
.sizer-result .r-ico { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--ok); font-weight: 800; font-size: 13px; margin-top: 1px; }
.sizer-result.is-over .r-ico { background: var(--danger); }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.price-card {
  position: relative; padding: 26px 22px 22px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-100); }
.price-hours { display: flex; align-items: baseline; gap: 4px; font-size: 17px; font-weight: 700; color: var(--ink-2); }
.price-hours b { font-size: 44px; line-height: 1; letter-spacing: -.05em; color: var(--ink); }
.price-amount { margin-top: 18px; font-size: 15px; font-weight: 700; color: var(--muted); }
.price-amount span { font-size: 26px; font-weight: 700; color: var(--brand-600); letter-spacing: -.03em; margin-right: 2px; }
.price-rate { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--subtle); font-weight: 600; }
.price-rate b { font-size: 13.5px; color: var(--ink-2); }
.rate-bar { margin-top: 10px; height: 6px; border-radius: 6px; background: var(--line-2); overflow: hidden; }
.rate-bar i { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--brand-200), var(--brand)); transition: width 1s var(--ease); }

.price-card.is-featured {
  background: linear-gradient(170deg, #5257ff 0%, #3c40e6 100%);
  border-color: transparent; color: #fff;
  box-shadow: 0 30px 60px -30px rgba(82, 87, 255, .8);
}
.price-card.is-featured .price-hours, .price-card.is-featured .price-hours b { color: #fff; }
.price-card.is-featured .price-amount { color: rgba(255, 255, 255, .8); }
.price-card.is-featured .price-amount span { color: #fff; }
.price-card.is-featured .price-rate { border-color: rgba(255, 255, 255, .25); color: rgba(255, 255, 255, .75); }
.price-card.is-featured .price-rate b { color: #fff; }
.price-card.is-featured .rate-bar { background: rgba(255, 255, 255, .2); }
.price-card.is-featured .rate-bar i { background: #fff; }
.badge {
  position: absolute; top: -12px; right: 16px;
  padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 800;
  background: var(--ink); color: #fff; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .5);
}

.calc { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; }
.calc-input { padding: 34px; }
.tool-title { font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.tool-desc { margin-top: 6px; color: var(--muted); font-size: 15px; }
.stepper { display: flex; align-items: stretch; gap: 10px; margin-top: 24px; }
.stepper button {
  width: 56px; flex-shrink: 0; border-radius: 14px; border: 1px solid var(--line); background: #fff;
  font-size: 24px; font-weight: 500; cursor: pointer; transition: border-color .2s, color .2s, background-color .2s;
}
.stepper button:hover { border-color: var(--brand-200); color: var(--brand-600); background: var(--brand-50); }
.stepper-field {
  flex: 1; display: flex; align-items: baseline; justify-content: center; gap: 6px;
  height: 64px; padding: 0 16px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.stepper-field:focus-within { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(82, 87, 255, .12); }
.stepper-field input {
  width: 4.2ch; text-align: right; border: 0; background: transparent; outline: none; padding: 0;
  font-family: var(--mono); font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 62px;
  -moz-appearance: textfield; appearance: textfield;
}
.stepper-field input::-webkit-outer-spin-button, .stepper-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-field span { font-weight: 700; color: var(--muted); }

.range { width: 100%; margin-top: 22px; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 6px; outline: none;
  background: linear-gradient(90deg, var(--brand) 0 var(--p, 20%), var(--line) var(--p, 20%) 100%); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); box-shadow: 0 4px 10px -2px rgba(82, 87, 255, .5); cursor: pointer; }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); box-shadow: 0 4px 10px -2px rgba(82, 87, 255, .5); cursor: pointer; }
.range:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 6px; }
.range-scale { display: flex; justify-content: space-between; margin-top: 10px; font-size: 11.5px; color: var(--subtle); }

.calc-result {
  padding: 34px; display: flex; flex-direction: column; align-items: flex-start;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(82, 87, 255, .12), transparent 60%),
    var(--brand-50);
  border-left: 1px solid var(--brand-100);
}
.calc-label { font-size: 13.5px; font-weight: 700; color: var(--brand-700); }
.calc-combo { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; min-height: 38px; }
.combo-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 10px;
  background: #fff; border: 1px solid var(--brand-100); font-weight: 700; font-size: 15px;
  animation: pop .35s var(--ease);
}
.combo-chip .x { color: var(--subtle); font-family: var(--mono); font-size: 13px; }
.combo-plus { align-self: center; color: var(--brand-600); font-weight: 800; }
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
.calc-total { margin-top: 18px; font-size: 18px; font-weight: 800; color: var(--ink-2); }
.calc-total span { font-size: clamp(36px, 4vw, 46px); color: var(--ink); letter-spacing: -.04em; margin-right: 4px; }
.calc-meta { margin-top: 4px; color: var(--muted); font-size: 14.5px; }
.calc-meta b { color: var(--ink-2); }
.calc-result .btn { margin-top: auto; }
.calc-result .calc-meta + .btn { margin-top: 24px; }

/* ---------- Color ---------- */
.color-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.case-list { display: grid; gap: 12px; }
.case-list li {
  display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 16px;
  background: var(--bg-soft); border: 1px solid var(--line-2);
}
.case-ico {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font-family: var(--mono); font-size: 12.5px; font-weight: 700; color: var(--brand-700); background: #fff; border: 1px solid var(--brand-100);
}
.case-list b { font-size: 16.5px; letter-spacing: -.02em; }
.case-list p { margin-top: 2px; color: var(--muted); font-size: 14.5px; }

.swatch-board {
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  padding: 26px; border-radius: 28px;
  background:
    radial-gradient(rgba(82, 87, 255, .14) 1px, transparent 1.2px) 0 0 / 18px 18px,
    linear-gradient(160deg, #eef0ff, #f6f7fb);
  border: 1px solid var(--brand-100);
}
.tile {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 26px 12px 14px; border-radius: 18px; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.tile:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: var(--shadow-md); }
.tile svg { width: 72%; height: auto; filter: drop-shadow(0 8px 8px rgba(20, 22, 50, .14)); }
.tile figcaption { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.tile.is-picked { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(82, 87, 255, .15), var(--shadow-sm); }
.tile.is-picked figcaption { color: var(--brand-700); }
.board-note { grid-column: 1 / -1; text-align: center; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.board-note span { color: var(--subtle); font-weight: 500; margin-left: 4px; }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.step {
  position: relative; padding: 26px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 40px; right: -14px; width: 14px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--brand-200) 0 4px, transparent 4px 7px);
}
.step-no {
  display: inline-grid; place-items: center; width: 36px; height: 30px; border-radius: 8px;
  background: var(--brand); color: #fff; font-size: 13px; font-weight: 700;
}
.step h3 { margin-top: 18px; font-size: 18px; letter-spacing: -.03em; }
.step p { margin-top: 8px; font-size: 14.5px; color: var(--muted); line-height: 1.6; }

.prep-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; margin-top: 40px; }
.prep { padding: 34px; }
.prep h3, .notice h3 { font-size: 21px; letter-spacing: -.03em; }
.prep-sub { margin-top: 4px; color: var(--muted); font-size: 15px; }
.checklist { margin-top: 20px; display: grid; gap: 2px; }
.checklist li {
  position: relative; display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr); gap: 14px;
  padding: 13px 0 13px 34px; border-bottom: 1px solid var(--line-2); font-size: 15px;
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 14px; width: 20px; height: 20px; border-radius: 6px;
  background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%235257ff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  border: 1px solid var(--brand-100);
}
.checklist b { font-weight: 700; }
.checklist span { color: var(--muted); }

.notice {
  padding: 34px; background: var(--danger-50); border-color: var(--danger-100);
  box-shadow: none;
}
.notice-head { display: flex; align-items: center; gap: 12px; }
.notice-ico {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(160deg, #ff5a4c, #d62a1e); color: #fff; font-weight: 900; font-size: 19px;
  box-shadow: 0 8px 18px -8px rgba(224, 54, 43, .8);
}
.notice h3 { color: var(--danger-600); }
.notice-list { margin-top: 18px; display: grid; gap: 12px; }
.notice-list li { position: relative; padding-left: 18px; font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.notice-list li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--danger); }
.notice-list b { color: var(--danger-600); font-weight: 800; }
.notice-list em { font-style: normal; font-weight: 800; color: var(--danger-600); }

/* ---------- Order ---------- */
.order { background: linear-gradient(180deg, #fff 0%, #f7f7fd 100%); }
.order-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.order-aside { position: sticky; top: calc(var(--header-h) + 32px); }
.order-points { display: grid; gap: 12px; margin-bottom: 26px; }
.order-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.order-points li span {
  flex-shrink: 0; width: 30px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-700); font-size: 11.5px; font-weight: 700; margin-top: 1px;
}
.order-points b { color: var(--danger); }

.mail-box {
  display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 26px; padding: 20px; border-radius: 16px;
  background: #fff; border: 1px solid var(--brand-100); box-shadow: var(--shadow-sm);
}
.mail-ico { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.mail-ico svg { width: 22px; height: 22px; }
.mail-title { font-weight: 800; font-size: 16px; letter-spacing: -.02em; }
.mail-desc { margin-top: 4px; font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.mail-desc b { color: var(--ink-2); }
.mail-addr {
  display: inline-flex; align-items: center; margin-top: 12px; padding: 8px 12px; border-radius: 10px;
  background: var(--brand); color: #fff; font-size: 14px; font-weight: 700; word-break: break-all;
  transition: background-color .2s;
}
.mail-addr:hover { background: var(--brand-600); }
.inline-mail { color: var(--brand-600); font-weight: 700; border-bottom: 1px solid var(--brand-200); word-break: break-all; }
.inline-mail:hover { border-color: var(--brand); }
.footer-mail { margin-top: 6px; }
.footer-mail a { color: #fff; font-weight: 600; margin-left: 6px; border-bottom: 1px solid rgba(255, 255, 255, .3); }

.form-frame {
  border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.form-bar {
  display: flex; align-items: center; gap: 14px; height: 50px; padding: 0 18px;
  background: #fbfbfe; border-bottom: 1px solid var(--line);
}
.form-dots { display: flex; gap: 6px; }
.form-dots i { width: 10px; height: 10px; border-radius: 50%; background: #dcdde7; }
.form-dots i:first-child { background: var(--brand); }
.form-title { font-size: 14px; font-weight: 700; color: var(--ink-2); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-secure { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; color: var(--subtle); }
.form-frame iframe { width: 100%; height: clamp(640px, 82vh, 1040px); border: 0; background: #eeeeff; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq-list { display: grid; gap: 10px; }
.faq-list details {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.faq-list details[open] { border-color: var(--brand-100); box-shadow: var(--shadow-md); }
.faq-list summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 20px 56px 20px 22px; font-size: 16.5px; font-weight: 700; letter-spacing: -.02em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 8px;
  background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 8l4 4 4-4' fill='none' stroke='%235f6274' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .3s var(--ease), background-color .2s;
}
.faq-list details[open] summary::after { transform: rotate(180deg); background-color: var(--brand-50); }
.faq-list details p { padding: 0 22px 22px; color: var(--muted); font-size: 15.5px; line-height: 1.7; }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 112px; background: var(--bg-soft); }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 52px 56px; border-radius: 30px; color: #fff;
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(255, 255, 255, .22), transparent 60%),
    radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1.2px) 0 0 / 20px 20px,
    linear-gradient(135deg, #5257ff 0%, #3a3edf 100%);
  box-shadow: 0 40px 80px -40px rgba(82, 87, 255, .8);
}
.cta-inner h2 { margin-top: 12px; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.04em; line-height: 1.25; }
.cta-inner p:not(.kicker) { margin-top: 8px; color: rgba(255, 255, 255, .82); }

/* ---------- Footer ---------- */
.site-footer { background: #0b0b14; color: rgba(255, 255, 255, .62); padding: 56px 0 40px; font-size: 14px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: start; }
.footer-brand p { margin-top: 12px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav a { color: rgba(255, 255, 255, .8); font-weight: 600; }
.footer-nav a:hover { color: #fff; }
.copyright { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }

/* ---------- Mobile CTA ---------- */
.mobile-cta {
  position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40;
  display: none; align-items: center; justify-content: center; height: 54px; border-radius: 14px;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 16.5px;
  box-shadow: 0 18px 36px -12px rgba(82, 87, 255, .85);
  transform: translateY(140%); transition: transform .35s var(--ease);
}
.mobile-cta.is-visible { transform: none; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .nav { display: none; }
  .nav-toggle { display: block; }
  .header-cta { margin-left: auto; }

  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { max-width: 680px; }
  .hero-visual { aspect-ratio: 16 / 10; }

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

  .price-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .price-card { grid-column: span 2; }
  .price-card:nth-child(4), .price-card:nth-child(5) { grid-column: span 3; }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:last-child { grid-column: 1 / -1; }
  .step::after { display: none; }

  .color-grid, .order-grid, .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .order-aside { position: static; }
  .prep-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; --header-h: 64px; }
  .header-cta { display: none; }
  .nav-toggle { margin-left: auto; }
  .brand-mark { width: 30px; }
  .brand-name { font-size: 18px; }

  .hero { padding: calc(var(--header-h) + 36px) 0 64px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-facts { grid-template-columns: 1fr 1fr; gap: 16px 0; }
  .hero-facts > div:nth-child(2) { border-right: 0; margin-right: 0; padding-right: 0; }
  .hero-facts > div:nth-child(3) { grid-column: 1 / -1; }
  .hero-visual { aspect-ratio: 1 / 1; min-height: 0; border-radius: 22px; }
  .hud { left: 12px; right: 12px; }
  .hud-top { top: 12px; }
  .hud-bottom { bottom: 12px; }
  .hud-progress { left: 12px; right: 12px; top: 50px; }
  .hud-chip { height: 30px; padding: 0 10px; font-size: 11.5px; }
  .hud-chip.mono { font-size: 11px; }

  .section { padding: 76px 0; }
  .section-head { margin-bottom: 36px; text-align: left; }
  .section-head > p:not(.kicker) { font-size: 16px; }
  .footnote { text-align: left; }

  .spec-grid { grid-template-columns: 1fr; }
  .spec-size, .spec-card { padding: 24px 20px; }
  .spec-size { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 16px; }
  .spec-size-head, .spec-size .sizer-fields, .spec-size .sizer-result, .spec-size .sizer-stage { grid-column: 1; grid-row: auto; }
  .sizer-fields { gap: 8px; }
  .field { padding: 9px 10px; }
  .field input { font-size: 17px; padding-right: 26px; }
  .field em { right: 10px; bottom: 11px; font-size: 11.5px; }
  .iso { height: 200px; }
  .sizer-stage { min-height: 200px; }

  .price-grid { grid-template-columns: 1fr; gap: 10px; }
  .price-card, .price-card:nth-child(4), .price-card:nth-child(5) { grid-column: auto; }
  .price-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; padding: 18px 18px 16px; align-items: center; }
  .price-hours { grid-row: 1 / span 2; min-width: 76px; }
  .price-hours b { font-size: 38px; }
  .price-amount { margin-top: 0; text-align: right; }
  .price-amount span { font-size: 23px; }
  .price-rate { margin-top: 2px; padding-top: 0; border-top: 0; justify-content: flex-end; gap: 6px; }
  .rate-bar { grid-column: 1 / -1; margin-top: 12px; }
  .badge { top: -10px; right: 14px; }

  .calc { grid-template-columns: 1fr; margin-top: 28px; }
  .calc-input, .calc-result { padding: 24px 20px; }
  .calc-result { border-left: 0; border-top: 1px solid var(--brand-100); }
  .calc-result .btn { width: 100%; }

  .swatch-board { padding: 16px; gap: 10px; border-radius: 22px; }
  .tile { padding: 18px 8px 10px; border-radius: 14px; gap: 10px; }
  .tile figcaption { font-size: 11.5px; }

  .steps { grid-template-columns: 1fr; gap: 10px; }
  .step { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 20px; }
  .step-no { grid-row: 1 / span 2; }
  .step h3 { margin-top: 2px; font-size: 17px; }
  .step p { margin-top: 4px; }

  .prep, .notice { padding: 24px 20px; }
  .checklist li { grid-template-columns: 1fr; gap: 2px; padding-left: 32px; }

  .form-frame { border-radius: 18px; margin: 0 -4px; }
  .form-frame iframe { height: 78vh; min-height: 560px; }

  .faq-list summary { padding: 18px 52px 18px 18px; font-size: 15.5px; }
  .faq-list details p { padding: 0 18px 18px; font-size: 15px; }

  .cta-band { padding-bottom: 76px; }
  .cta-inner { flex-direction: column; align-items: stretch; padding: 34px 24px; border-radius: 22px; }
  .cta-inner .btn { width: 100%; }

  .footer-inner { grid-template-columns: 1fr; }
  .site-footer { padding-bottom: 96px; }
  .mobile-cta { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
