/* One screen plane: hardware, interface and quote cards share the same perspective. */
.customer-tablet-scene {
  /* The revealed device physically covers the stationary hero copy. */
  position: fixed; inset: 0; z-index: 2;
  height: 100svh; overflow: clip; pointer-events: none; visibility: hidden;
  opacity: 0; font-family: 'Pretendard', sans-serif;
}
.customer-tablet-scene[data-visible] { visibility: visible; }
.customer-tablet-viewport { position: absolute; inset: 0; }
.customer-tablet-position {
  position: absolute; width: 650px; aspect-ratio: 1562 / 1200;
  transform: translate(-50%, -50%); perspective: var(--tablet-perspective, 1100px);
}
.customer-tablet-object {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(var(--tablet-rx, 0deg)) rotateY(var(--tablet-ry, 0deg)) rotateZ(var(--tablet-rz, 0deg));
  will-change: transform;
}
.customer-tablet-canvas {
  position: absolute; width: 1562px; height: 1200px;
  transform: scale(var(--tablet-scale, 1)); transform-origin: 0 0;
  transform-style: preserve-3d;
}
/* While the device moves or resizes, keep its screens as ready-made pictures
   instead of redrawing every frame at the new size (the redraw caused short
   stalls, then jumps). At rest it redraws once, sharp. */
.customer-tablet-scene:not([data-floating]) :is(.customer-tablet-canvas, .customer-tablet-base, .customer-tablet-body) { will-change: transform; }
.customer-tablet-body, .customer-tablet-base, .customer-quote-card {
  position: absolute; inset: 0; display: block; width: 1562px; height: 1200px;
  max-width: none;
}
.customer-tablet-body { opacity: calc(1 - var(--hardware-reveal, 0)); }
.customer-tablet-hardware {
  position: absolute; inset: 0; transform-style: preserve-3d;
  /* Keep an opaque shell underneath the fading source photo so the departing
     copy cannot ghost through the bezel during the material handoff. */
}
/* Separate metal and glass planes give the rim real thickness under yaw.
   No floating drop shadow: the physical edge carries the depth cue. */
.tablet-shell-back, .tablet-shell-mid, .tablet-shell-front {
  /* Screen inset is exactly 34 px on every side; corner radii are concentric. */
  position: absolute; left: 173px; top: 150px; width: 1216px; height: 899px;
  border-radius: 84px;
}
/* Silver-blue aluminium body (after the Toss phone): a visible metal rim
   around the black glass, and real side thickness that shows on the edge
   turned toward the viewer. */
.tablet-shell-back {
  transform: translateZ(-60px);
  background: linear-gradient(120deg, #dfe4eb, #9ea8b8 30%, #77818f 62%, #b9c1ce 86%, #e6eaf0);
  box-shadow: inset 0 0 0 2px #eef1f5, inset 0 -8px 0 #828b9b;
}
/* Stacked planes fill the 60 px side band so the body reads as one solid slab. */
.tablet-shell-mid {
  transform: translateZ(-15px);
  background: linear-gradient(100deg, #e4e8ef, #a7b0bf 22%, #c3cad6 70%, #f0f2f6);
  box-shadow: inset 0 0 0 1px #f5f7fa;
}
.tablet-shell-mid.is-core { transform: translateZ(-30px); background: linear-gradient(100deg, #d9dee6, #9aa4b4 22%, #b6bfcc 70%, #e7eaef); }
.tablet-shell-mid.is-deep { transform: translateZ(-45px); background: linear-gradient(100deg, #ced4dd, #8f99a9 22%, #aab3c1 70%, #dde1e8); }
.tablet-shell-front {
  /* Screen inset is exactly 34 px on every side; corner radii are concentric. */
  position: absolute; left: 173px; top: 150px; width: 1216px; height: 899px;
  border-radius: 84px;
}
/* Silver-blue aluminium body (after the Toss phone): a visible metal rim
   around the black glass, and real side thickness that shows on the edge
   turned toward the viewer. */
.tablet-shell-back {
  transform: translateZ(-34px);
  background: linear-gradient(120deg, #e8ecf2, #a9b2c1 30%, #7f899a 62%, #c4cbd7 86%, #eef1f6);
  box-shadow: inset 0 0 0 2px #f3f5f9, inset 0 -6px 0 #8a93a3;
}
.tablet-shell-mid {
  transform: translateZ(-17px);
  background: linear-gradient(100deg, #e1e6ee, #9da7b8 22%, #bcc4d1 70%, #eef1f5);
  box-shadow: inset 0 0 0 1px #f5f7fa;
}
.tablet-shell-front {
  background: linear-gradient(125deg, #2a2d33, #121317 18%, #08090b 50%, #16181c 84%, #0d0e11);
  border: 7px solid #c9d0db;
  box-shadow: 0 0 0 1.5px #98a2b3, inset 0 0 0 1.5px #6d7788, inset 0 0 0 5px #0b0c0f;
}
.tablet-shell-front::after {
  content: ''; position: absolute; inset: -5px; border-radius: 82px; pointer-events: none;
  border-top: 2px solid rgba(255, 255, 255, .75);
  border-left: 2px solid rgba(255, 255, 255, .45);
  border-right: 1px solid rgba(255, 255, 255, .25);
  background: linear-gradient(125deg, rgba(255, 255, 255, .08), transparent 26%, transparent 80%, rgba(181, 194, 208, .05));
}
/* Real-device details: a small front camera, and flush buttons that rise
   only ~2 px from the metal at mid-thickness, tinted like the body. */
.tablet-camera {
  position: absolute; left: 776px; top: 163px; width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #3d4b58 0 12%, #11161c 45%, #1b1d22 75%);
  box-shadow: 0 0 0 1.5px #1a1c20;
}
.tablet-button, .tablet-volume {
  position: absolute; transform: translateZ(-30px);
  background: #b4bcc8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(70, 78, 92, .25);
}
.tablet-button { left: 1140px; top: 146px; width: 96px; height: 6px; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #8d97a6, #c9d0da 55%, #a3acba); box-shadow: 0 0 0 .75px rgba(60, 68, 82, .35); }
.tablet-volume {
  left: 1386px; top: 262px; width: 6px; height: 64px; border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, #8d97a6, #c9d0da 55%, #a3acba);
  box-shadow: 0 0 0 .75px rgba(60, 68, 82, .35);
}
.tablet-volume.is-down { top: 340px; }
.customer-tablet-screen {
  position: absolute; left: 207px; top: 184px; width: 1148px; height: 831px;
  border-radius: 50px; overflow: hidden; background: white;
  box-shadow: 0 0 0 1px #060708;
}
.customer-tablet-screen::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit; opacity: var(--hardware-reveal, 0);
  background: linear-gradient(125deg, rgba(213,222,234,.10), rgba(255,255,255,.25) 21%, transparent 51%, transparent 72%, rgba(204,214,228,.07));
  box-shadow: inset 0 1px 2px rgba(0,0,0,.12);
}
.customer-tablet-screen-plane { position: absolute; left: -207px; top: -184px; width: 1562px; height: 1200px; }
.customer-tablet-quotes { position: absolute; inset: 0; opacity: 0; }
.customer-tablet-cards {
  position: absolute; inset: 0; opacity: 0;
  /* Like the supplied artwork, the active card can lift over the right rim.
     The settled list remains cropped at the screen's bottom edge. */
  transform: translateZ(28px);
  clip-path: inset(0 0 185px 0);
}
.customer-quote-card { opacity: 0; transform-origin: 0 0; will-change: transform, opacity; }
.customer-tablet-history {
  position: absolute; left: 207px; top: 184px; width: 1148px; height: 831px;
  z-index: 14; border-radius: 50px; overflow: hidden; background: #fff;
  opacity: 0; visibility: hidden; will-change: transform, opacity;
}
.customer-tablet-history::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(125deg, rgba(213,222,234,.06), rgba(255,255,255,.14) 21%, transparent 51%, transparent 72%, rgba(204,214,228,.04));
  box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
}
.customer-history-artboard {
  position: absolute; left: 56.121px; top: 0; width: 865px; height: 694px;
  transform: scale(1.19740634); transform-origin: 0 0;
}
.customer-history-surface {
  position: absolute; left: 31.743px; top: 93.827px; width: 811px; height: 567.846px;
  border: 1px solid #e9e5ed; border-radius: 25.5px; background: #fff;
}
.customer-history-overview, .customer-history-purchases, .customer-history-grid {
  position: absolute; inset: 0; display: block; width: 865px; height: 694px; max-width: none;
}
.customer-history-purchases { will-change: transform; }
.customer-history-grid > * { opacity: 0; transform-box: fill-box; transform-origin: center; }
.customer-history-recommendation {
  position: absolute; left: 50.243px; top: 420px; width: 776px; height: 80px;
  display: flex; align-items: center; gap: 13px; padding: 18px 53px 18px 11px;
  border-radius: 16px; border: 1px solid #dfccfa; background: #f5efff;
  color: #282330; opacity: 0; transform-origin: 50% 100%; will-change: transform, opacity;
}
.customer-history-icon {
  display: grid; place-items: center; width: 42px; height: 44px; flex: 0 0 42px;
  background: #eaddfc; border-radius: 12px; color: #7721d5;
}
.customer-history-icon svg { width: 20px; height: 24px; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.customer-history-item { min-width: 0; }
.customer-history-item-title { display: flex; align-items: center; gap: 8px; height: 18px; }
.customer-history-item-title strong, .customer-history-next strong { font-size: 14px; line-height: 18px; font-weight: 600; letter-spacing: -.2px; color: #282330; }
.customer-history-item-title span { padding: 3px 6px; border-radius: 5px; background: #e9d8ff; color: #7721d5; font-size: 10px; line-height: 12px; font-weight: 500; }
.customer-history-item p { margin: 8px 0 0; font-size: 12px; line-height: 16px; font-weight: 400; color: #77717f; letter-spacing: 0; }
.customer-history-next { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin-left: auto; }
.customer-history-next span { font-size: 12px; line-height: 16px; font-weight: 400; color: #7721d5; }
.customer-tablet-evidence {
  position: absolute; left: 207px; top: 184px; width: 1148px; height: 831px;
  z-index: 15; border-radius: 50px; overflow: hidden;
  background: #f8f9fb; color: #282330; text-align: left; opacity: 0; visibility: hidden;
  will-change: opacity;
}
.customer-tablet-evidence::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(125deg, rgba(213,222,234,.06), rgba(255,255,255,.14) 21%, transparent 51%, transparent 72%, rgba(204,214,228,.04));
  box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
}
/* Evidence = a PDF preview: toolbar, page thumbnails and A4 pages. */
.customer-tablet-evidence { background: #e9ebef; letter-spacing: -.03em; }
.pdf-toolbar {
  position: absolute; inset: 0 0 auto 0; height: 72px; display: flex; align-items: center; gap: 14px;
  padding: 0 36px 0 40px; background: #fff; border-bottom: 1px solid #e6e8ec; color: #2b2f36; font-size: 19px;
}
.pdf-badge { padding: 5px 9px; border-radius: 7px; background: #e5484d; color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 0; }
.pdf-name { font-weight: 600; }
.pdf-pages { margin-left: auto; color: #8b95a1; font-variant-numeric: tabular-nums; }
.pdf-pages b { color: #2b2f36; font-weight: 600; }
.pdf-zoom { padding: 7px 14px; border-radius: 9px; background: #f2f4f6; color: #4e5968; font-size: 16px; }
.pdf-download { padding: 8px 16px; border-radius: 9px; background: #2b2f36; color: #fff; font-size: 16px; font-weight: 500; }
.pdf-rail {
  position: absolute; left: 0; top: 72px; bottom: 0; width: 200px; padding: 28px 0;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  background: #f6f7f9; border-right: 1px solid #e6e8ec;
}
.pdf-thumb { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: 0; }
.pdf-thumb-page { position: relative; width: 110px; height: 156px; overflow: hidden; background: #fff; border-radius: 3px; box-shadow: 0 0 0 1px #e1e4e8; transition: box-shadow 200ms ease; }
.pdf-thumb.is-current .pdf-thumb-page { box-shadow: 0 0 0 3px #7d0ee8; }
.pdf-thumb figcaption { font-size: 14px; color: #6b7684; }
.pdf-thumb figcaption b { margin-right: 6px; color: #2b2f36; font-weight: 600; }
.pdf-stage { position: absolute; left: 200px; top: 72px; right: 0; bottom: 0; overflow: hidden; }
/* One A4 page (496 × 702). The thumbnails reuse the same markup, scaled. */
.pdf-page {
  position: absolute; left: 50%; top: 30px; width: 496px; height: 702px; margin: 0 0 0 -248px;
  padding: 44px 40px; background: #fff; color: #1f2329; text-align: left;
  font-size: 10.5px; line-height: 1.45; letter-spacing: -.02em;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .04), 0 2px 10px rgba(0, 0, 0, .06); opacity: 0;
}
.pdf-page.pdf-mini { left: 0; top: 0; margin: 0; opacity: 1; box-shadow: none; transform: scale(.2218); transform-origin: 0 0; }
.customer-tablet-evidence .pdf-page p { max-width: none; margin: 0; text-wrap: initial; }
.pdf-title { margin: 0 0 22px; text-align: center; font-size: 26px; font-weight: 600; letter-spacing: .35em; }
.customer-tablet-evidence .pdf-page .pdf-sub { margin: -12px 0 16px; text-align: center; font-size: 10px; color: #6b7684; }
.pdf-head { display: grid; grid-template-columns: 1fr 1.2fr; gap: 14px; align-items: start; margin-bottom: 14px; }
.pdf-head.pdf-two { grid-template-columns: 1fr 1fr; gap: 8px; }
.customer-tablet-evidence .pdf-to p { margin-bottom: 4px; font-size: 10px; }
.pdf-to b { font-size: 12.5px; font-weight: 600; }
.customer-tablet-evidence .pdf-to .pdf-note { margin-top: 12px; }
.pdf-party, .pdf-items, .pdf-sign { border-collapse: collapse; font-size: 8.5px; line-height: 1.35; }
.pdf-party { width: 100%; }
.pdf-party th, .pdf-party td { min-width: 0; padding: 3px 4px; border: 1px solid #9aa1ab; text-align: left; vertical-align: middle; font-weight: 400; }
.pdf-party th { width: 16px; background: #f3f4f6; text-align: center; font-weight: 500; line-height: 1.15; }
.pdf-party td:nth-child(odd):not([colspan]) { background: #f8f9fb; color: #4e5968; white-space: nowrap; }
.pdf-party tr:not(:first-child) td:first-child { background: #f8f9fb; color: #4e5968; white-space: nowrap; }
.pdf-seal {
  display: inline-grid; place-items: center; width: 26px; height: 26px; margin: -8px 0 -8px 3px;
  border: 1.5px solid #e03b3b; border-radius: 50%; color: #e03b3b; font-size: 6.5px; font-style: normal;
  font-weight: 600; line-height: 1.05; text-align: center; transform: rotate(-12deg); vertical-align: middle; opacity: .85;
}
.pdf-sum { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; padding: 8px 10px; border: 1.5px solid #2b2f36; }
.pdf-sum b { font-weight: 600; }
.pdf-sum small { color: #6b7684; font-size: 9px; }
.pdf-items { width: 100%; font-size: 9px; }
.pdf-items th, .pdf-items td { min-width: 0; height: 20px; padding: 4px 5px; border: 1px solid #b9bfc7; text-align: center; vertical-align: middle; font-weight: 400; }
.pdf-items th { background: #f3f4f6; font-weight: 500; }
.pdf-items .l { text-align: left; }
.pdf-items .r { text-align: right; font-variant-numeric: tabular-nums; }
.pdf-items .pdf-total td { background: #f8f9fb; font-weight: 600; }
.pdf-compare .pdf-pick td { background: #f5efff; color: #5b16a8; font-weight: 600; }
.customer-tablet-evidence .pdf-page .pdf-remark { margin-top: 10px; font-size: 9px; color: #6b7684; }
.pdf-reason { margin-top: 16px; padding: 12px 14px; border: 1px solid #d6dae0; }
.pdf-reason h6 { margin: 0 0 6px; font-size: 11px; font-weight: 600; }
.customer-tablet-evidence .pdf-reason p { margin-bottom: 3px; font-size: 9.5px; }
.pdf-sign { margin: 18px 0 0 auto; font-size: 9px; }
.pdf-sign td { min-width: 0; width: 52px; padding: 3px; border: 1px solid #9aa1ab; text-align: center; vertical-align: middle; }
.pdf-sign tr:last-child td { height: 34px; }
.pdf-sign-mark { display: inline-block; padding: 3px 4px; border: 1px solid #e03b3b; border-radius: 50%; color: #e03b3b; font-size: 7px; font-style: normal; transform: rotate(-8deg); }
.pdf-receive { display: flex; justify-content: flex-end; gap: 18px; margin-top: 14px; font-size: 9.5px; color: #4e5968; }
.customer-evidence-saved {
  position: absolute; left: 0; right: 0; bottom: 26px; width: max-content; margin: 0 auto;
  display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px;
  background: rgba(25, 31, 40, .92); color: #fff; font-size: 16px; line-height: 1.4; opacity: 0;
}
.customer-evidence-saved svg { width: 18px; height: 18px; color: #c9a4ff; }
.customer-tablet-stock {
  position: absolute; inset: 0;
  --payment-scale: 1.985761; --payment-center-y: 599.5px;
  --stock-dial-angle: 0deg; --stock-status-step: 2;
}
.customer-tablet-stock .stock-panel__heading { left: 334px; }
.customer-tablet-stock .stock-panel__chip { background: #ffebee; color: #ce3e50; }
.customer-tablet-stock .stock-dial { width: 1249.6px; left: 1288px; }
/* The angled tablet keeps its bezel; the expander (below) takes over the
   screen when the section turns to the business side. */
/* The floating screen sits above the feature stage's grid lines. */
.customer-tablet-scene { z-index: 4; }
/* The screen frame that grows into the business section's black surface. */
.customer-tablet-expander { position: absolute; z-index: 1; left: 0; top: 0; visibility: hidden; will-change: left, top, width, height; }
/* Leave a real gutter between the list and the revealed device. */
.home-content[data-scroll-motion] .audience-panels { width: min(480px, 43%); grid-template-columns: minmax(0, 1fr); }
.home-content[data-scroll-motion] .audience-panel { min-width: 0; }
.home-content[data-scroll-motion] .feature-list { width: 100%; min-width: 0; }
.home-content[data-scroll-motion] .hero-stage { z-index: 1; }
.home-content[data-scroll-motion] .feature-stage { z-index: 3; }
/* Shift only the customer composition; later business/map positions remain
   tied to their existing column as the customer audience departs. */
.home-content[data-scroll-motion] :is(#services-title, .audience-panels) {
  position: relative;
  left: calc(var(--customer-layout-shift, 0px) * (1 - var(--audience-position, 0)) + var(--business-layout-shift, 0px) * var(--audience-position, 0) * (1 - var(--opportunity-position, 0)));
}
.home-content[data-scroll-motion] .hero-lead {
  transform: none;
}
.home-content[data-customer-handoff] .hero-stage,
.home-content[data-customer-handoff] #home-title > .type-line { overflow: visible; }
@media (min-width: 761px) and (max-height: 800px) {
  .home-content #services-title { margin-bottom: 40px; }
  .home-content .feature-item h3 { font-size: 22px; }
  .home-content .feature-trigger { padding-block: 20px calc(20px - 10px * var(--feature-active, 1)); }
  .home-content .feature-detail__content { padding-bottom: 20px; }
  .home-content .feature-cta { min-height: 40px; margin-top: 16px; padding-block: 4px; }
}
@media (max-width: 760px) {
  .home-content { --hero-inset: 20px; --content-inset: 20px; }
  .home-content[data-scroll-motion] .audience-panels { width: 100%; }
  .home-content #services-title { margin-bottom: 22px; }
  .home-content .feature-item h3 { font-size: 18px; }
  .home-content .feature-trigger { padding-block: 13px calc(13px - 6px * var(--feature-active, 1)); }
  .home-content #services .feature-detail p { font-size: 14px; line-height: 1.5; }
  .home-content .feature-detail__content { padding-bottom: 12px; }
  .home-content .feature-cta { margin-top: 12px; min-height: 38px; padding: 6px 8px 6px 16px; font-size: 14px; gap: 16px; }
  .home-content .feature-cta__arrow { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce), print {
  .customer-tablet-scene { display: none; }
  .home-content .audience-panels { width: 100%; }
  .home-content[data-scroll-motion] :is(#services-title, .audience-panels) { left: 0; }
  .home-content[data-scroll-motion] .hero-lead { transform: none; }
}

/* Very soft ambience (after Toss): a faint lavender light behind the tablet
   and a still, detached floor shadow, so the device seems to hover. */
.customer-tablet-glow, .customer-tablet-floor { position: absolute; display: block; pointer-events: none; opacity: var(--tablet-ambient, 0); }
.customer-tablet-glow {
  inset: -32% -30% -36% -24%;
  background: radial-gradient(ellipse 48% 42% at 54% 56%, rgba(196, 176, 255, .22), rgba(214, 200, 255, .08) 55%, transparent 74%);
}
.customer-tablet-floor {
  left: 24%; right: 16%; top: 93%; height: 9%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(52, 46, 74, .14), rgba(52, 46, 74, .05) 55%, transparent);
  filter: blur(10px);
}
/* Only the device drifts; its shadow stays put. */
@media (prefers-reduced-motion: no-preference) {
  .customer-tablet-scene[data-floating] .customer-tablet-object { animation: tablet-float 5.6s ease-in-out infinite; }
}
@keyframes tablet-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }

/* Screens change like app pages: each new page slides in from the screen's
   right edge, clipped by the bezel, over the previous one. */
.customer-tablet-pages {
  position: absolute; left: 207px; top: 184px; width: 1148px; height: 831px;
  border-radius: 50px; overflow: hidden; transform: translateZ(.5px);
}
.customer-tablet-pages > .customer-tablet-history,
.customer-tablet-pages > .customer-tablet-evidence { left: 0; top: 0; border-radius: 0; will-change: transform; }

/* 하이세모 handoff: the screen dims to the section's charcoal before the zoom. */
.customer-tablet-screen-off { position: absolute; inset: 0; z-index: 40; background: #343434; opacity: 0; pointer-events: none; }
