/* nanuq.kr/chago r12 (2026-11-27): rendered phones and tablets (scripts/render) with the app's own screens (in-app
   captures of web f5e306e) mapped under their glass, and the app's motion vocabulary. Same file in /chago/ and /en/chago/.
   Loaded after site.css.
   Curves follow the app (index.css): settle = badge-pop · meter-bar-charge · meter-focus-ring, guide = the app's --ease,
   inout = the scan sweep. Solid fills and hairlines only: no gradients, no glows. */
:root {
  --settle: cubic-bezier(.22, 1, .36, 1);
  --guide: cubic-bezier(.2, .7, .2, 1);
  --inout: cubic-bezier(.42, 0, .58, 1);
  --app-bg: #1f1f1f;
}

/* ───────── Rigs: rendered hardware over the live app screen ─────────
   The hardware frame (canvas, or the poster until frames are in) has a transparent display; .rig-screen sits under it at
   the app's own CSS size and rig.mjs maps it onto the display with matrix3d. Phone 446 x 962 (440 x 956 display + 3 px
   under the bezel), tablet 1382 x 1038 (1376 x 1032). */
.rig { position: relative; aspect-ratio: var(--ra, 4 / 3); }
.rig-diag { --ra: 1100 / 1300; }
.rig-rec { --ra: 1500 / 1200; }
.rig-ops { --ra: 1700 / 1300; }
.rig-loop { --ra: 1600 / 1200; }
.rig-still { --ra: 1200 / 900; }
.rig > .rig-poster, .rig > canvas { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; z-index: 2; pointer-events: none; }
.rig > .rig-poster { object-fit: contain; }
.rig > canvas { display: none; }
.motion-on .rig.is-ready > canvas { display: block; }
.motion-on .rig.is-ready > .rig-poster { visibility: hidden; }
.rig-screen { position: absolute; left: 0; top: 0; z-index: 1; transform-origin: 0 0; overflow: hidden; background: var(--app-bg); visibility: hidden; backface-visibility: hidden; }
.rig-screen.is-placed { visibility: visible; }
.rig-screen.is-phone { width: 446px; height: 962px; border-radius: 58px; }
.rig-screen.is-tablet { width: 1382px; height: 1038px; border-radius: 41px; }
.rig-screen img { max-width: none; max-height: none; object-fit: fill; }
/* Phone: iOS status bar, the app's fixed header, scrolling page and fixed bottom bars (CSS px of the 440 x 894 viewport). */
.rs-phone { position: absolute; left: 3px; top: 3px; width: 440px; height: 956px; overflow: hidden; background: var(--app-bg); }
.rs-status { position: absolute; left: 0; top: 0; width: 440px; height: 62px; color: #fff; }
.rs-time { position: absolute; left: 50px; top: 20px; font-size: 17px; font-weight: 600; line-height: 22px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.rs-icons { position: absolute; right: 30px; top: 24px; width: 78px; height: 14px; overflow: visible; }
.rs-icons .f { fill: #fff; }
.rs-icons .s { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; }
.rs-icons rect.s { stroke-opacity: .45; }
.rs-view { position: absolute; left: 0; top: 62px; width: 440px; height: 894px; overflow: hidden; }
.rs-body { position: absolute; left: 0; top: calc(var(--head) * 1px); width: 440px; transform: translate3d(0, calc(var(--s) * -1px), 0); }
.rs-body > img, .rs-head, .rs-foot { display: block; width: 440px; height: auto; }
.rs-head { position: absolute; left: 0; top: 0; z-index: 2; }
.rs-foot { position: absolute; left: 0; bottom: 0; z-index: 2; }
/* Tablet: whole views; the report scrolls under its sticky header and floating bar. */
.rs-tablet { position: absolute; left: 3px; top: 3px; width: 1376px; height: 1032px; overflow: hidden; background: var(--app-bg); }
.rs-tablet > img, .ts > img { position: absolute; left: 0; top: 0; width: 1376px; height: auto; }
.ts { position: absolute; inset: 0; overflow: hidden; background: var(--app-bg); }
.ts-page { position: absolute; inset: 0; }
.ts-body { position: absolute; left: 0; width: 1376px; transform: translate3d(0, calc(var(--s) * -1px), 0); }
.ts-body img, .ts-head, .ts-foot { display: block; width: 1376px; height: auto; }
.ts-head { position: absolute; left: 0; top: 0; z-index: 2; }
.ts-foot { position: absolute; left: 0; bottom: 0; z-index: 2; }
.ts-line { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; margin-left: -2px; background: var(--cyan); opacity: 0; z-index: 6; transform: translate3d(var(--lx, 0px), 0, 0); }

/* ───────── Headlines: each line rises out of its own mask (motion.mjs wraps the lines) ───────── */
.scene-copy h2 .ln-mask { display: block; overflow: hidden; color: inherit; padding-bottom: .1em; margin-bottom: -.1em; }
.scene-copy h2 .ln-in { display: block; color: inherit; }
.motion-on .scene-copy h2 .ln-in { will-change: transform; }

/* ───────── 01 Scan: each photo settles with the app's check ───────── */
.tile-check {
  position: absolute; right: 9px; top: 9px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--green); opacity: 0; transform: scale(.84); pointer-events: none;
}
.tile-check::after { content: ''; position: absolute; left: 7px; top: 7px; width: 9px; height: 5px; border: 2px solid #0b1410; border-top: 0; border-right: 0; transform: rotate(-45deg); }
.shot-tile.is-set .tile-check, html:not(.motion-on) .tile-check { opacity: 1; transform: none; }
.motion-on .shot-tile.is-set .tile-check { animation: badge-pop .46s var(--settle) both; }
@keyframes badge-pop { 0% { opacity: 0; transform: scale(.84); } 60% { opacity: 1; transform: scale(1.05); } 100% { opacity: 1; transform: scale(1); } }
.scan-band::before { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 44px; background: rgba(27, 218, 243, .08); }
.model-chip .dot { transition: background-color .3s; }
.motion-on .model-chip:not(.is-done).is-scanning .dot { animation: live-pulse 2s var(--inout) infinite; }
.model-chip.is-done .dot { background: var(--green); }
@keyframes live-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .48; transform: scale(.84); } }

/* ───────── 02 Diagnosis: the app's first diagnosis page beside the score card ───────── */
.diag-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.rig-diag { height: min(100svh, 1040px); max-width: 100%; flex: none; }
.diag-visual .score-card { position: absolute; right: 0; bottom: 13%; width: min(300px, 46%); z-index: 3; }
.score-card::after { content: ''; position: absolute; inset: -5px; border-radius: 27px; border: 2px solid var(--cyan); opacity: 0; pointer-events: none; }
.motion-on .score-card.is-landed::after { animation: focus-ring .9s var(--settle) both; }
@keyframes focus-ring { 0% { opacity: 0; transform: scale(1.03); } 30% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
.score-bar span { transform-origin: 0 50%; }
.lv { display: inline-flex; align-items: center; gap: 7px; }
.lv-dash { display: inline-flex; gap: 2px; }
.lv-dash b { width: 4px; height: 10px; border-radius: 1px; background: currentColor; opacity: .26; }
.lv-high .lv-dash b { opacity: 1; }
.lv-mid .lv-dash b:nth-child(-n + 2) { opacity: 1; }
.motion-on .score-items li.is-in .lv { animation: badge-pop .46s var(--settle) both; }

/* ───────── 03 Recommend: course list in front, process behind, the AI pick ringed ───────── */
.rig-rec { position: absolute; inset: 0; margin: auto; height: 100%; max-width: 100%; }
.rec-ring {
  position: absolute; left: 16px; width: 408px; top: calc((var(--y) - 4) * 1px); height: calc((var(--h) + 8) * 1px);
  border: 2px solid var(--cyan); border-radius: 18px; opacity: 0; pointer-events: none;
}
.motion-on .rec-ring.is-on { animation: focus-ring 1.1s var(--settle) both; }
html:not(.motion-on) .rec-ring { opacity: 1; }
/* The AI tag stays flat beside the turned phone, at the ringed row (rig.mjs projects the row). */
.rig-rec .rec-tag {
  position: absolute; left: 0; top: 0; right: auto; z-index: 3; white-space: nowrap; visibility: hidden;
  transform: translate3d(calc(var(--tx, 0px) - 100% - 18px), calc(var(--ty, 0px) - 50%), 0);
}
.rig-rec .rec-tag.is-placed { visibility: visible; }
.rig-rec .rec-tag::after { content: ''; position: absolute; left: 100%; top: 50%; width: 16px; height: 2px; margin-top: -1px; background: var(--cyan); }

/* ───────── 04 After: the app's wipe handle and meter ───────── */
.cmp-handle {
  position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
  display: grid; place-items: center; background: var(--cyan); color: var(--on-cyan);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.cmp-handle svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gauge { margin-top: 2px; }
.g-ticks path { fill: none; stroke: var(--muted-2); stroke-width: 2; stroke-linecap: round; }
.g-labels text { fill: var(--muted); font-size: 15px; font-weight: 600; text-anchor: middle; font-family: var(--font); font-variant-numeric: tabular-nums; }
.g-track, .g-red, .g-fill { stroke-width: 11; }
.g-red { stroke: rgba(255, 106, 92, .42); }
.g-ghost { transform-origin: 110px 115px; transform: rotate(54deg); opacity: var(--ghost, 1); }
.g-ghost line { stroke: var(--fg); stroke-opacity: .32; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 3 5; }
.gauge-drop { transform-origin: 50% 50%; }
.motion-on .gauge-drop.is-on { animation: badge-pop .46s var(--settle) both; }
.motion-on .gauge-drop:not(.is-on) { opacity: 0; }

/* ───────── Bridge: the route lights up in order ───────── */
.route span { transition: color .5s var(--guide); }
.route span + span::before { display: inline-block; transition: transform .6s var(--settle), opacity .6s var(--settle); }
.js .route:not(.is-in) span { color: var(--muted-2); }
.js .route:not(.is-in) span + span::before { opacity: 0; transform: translateX(-10px); }
.route.is-in span:nth-child(2), .route.is-in span:nth-child(2)::before { transition-delay: .12s; }
.route.is-in span:nth-child(3), .route.is-in span:nth-child(3)::before { transition-delay: .24s; }
.route.is-in span:nth-child(4), .route.is-in span:nth-child(4)::before { transition-delay: .36s; }
.route.is-in span:nth-child(5), .route.is-in span:nth-child(5)::before { transition-delay: .48s; }

/* ───────── 05 Operations ───────── */
.ops-nav { position: relative; margin: 0 0 40px; }
.ops-nav .ops-index { position: relative; z-index: 1; margin: 0; }
.ops-ink {
  position: absolute; left: 0; top: 0; width: var(--iw, 0); height: var(--ih, 0); border-radius: 999px; background: var(--cyan);
  transform: translate3d(var(--ix, 0), var(--iy, 0), 0); opacity: 0;
}
.ops-nav.has-ink .ops-ink { opacity: 1; }
.ops-nav.is-live .ops-ink { transition: transform .5s var(--settle), width .5s var(--settle), height .5s var(--settle); }
.ops-nav.has-ink .ops-index li.is-on { background: transparent; }
html:not(.motion-on) .ops-nav { display: none; }

/* Payment: the report scrolls to the payment section, the toss button is pressed, the page settles to paid. */
.ts-press {
  position: absolute; z-index: 1; border-radius: 10px; background: var(--press, rgba(0, 0, 0, .2)); opacity: 0; pointer-events: none;
  transform: translate3d(0, calc(var(--s) * -1px), 0);
}
.ts-press i { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; border: 2px solid #fff; opacity: 0; }
.motion-on .ts-press.is-on { animation: press .62s var(--settle) both; }
.motion-on .ts-press.is-on i { animation: tap .62s var(--settle) both; }
@keyframes press { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
@keyframes tap { 0% { opacity: 0; transform: scale(1.5); } 30% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(.82); } }
.ts-done { position: absolute; z-index: 3; width: 0; height: 0; transform: translate3d(0, calc(var(--s) * -1px), 0); }
.ts-done::before { content: ''; position: absolute; left: -12px; top: -12px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--green); opacity: 0; }
.motion-on .ts-done.is-on::before { animation: done-ring .9s var(--settle) both; }
@keyframes done-ring { 0% { opacity: 0; transform: scale(.4); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(1.7); } }
.ts-pay .ts-pd { opacity: 0; }

/* Calendar: the booking drawer slides in over the dimmed calendar (drawer from x 936 of 1376). */
.ts-cal .cal-dim { clip-path: inset(0 440px 0 0); opacity: 0; }
.ts-cal .cal-drawer { clip-path: inset(0 0 0 936px); transform: translate3d(440px, 0, 0); }

/* Scene-by-scene mode shows one tablet still per step; the scrolling tablet is for the motion mode. */
.motion-on .ops-visual > .ops-shot { display: none; }
html:not(.motion-on) .rig-ops { display: none; }
.ops-shot .rig { width: 100%; }
/* .rig-ops is the first child of .ops-visual, so the five stills are children 2–6 (site.css counts from 1). */
html:not(.motion-on) .ops-shot:nth-child(2) { grid-row: 1; }
html:not(.motion-on) .ops-shot:nth-child(3) { grid-row: 2; }
html:not(.motion-on) .ops-shot:nth-child(4) { grid-row: 3; }
html:not(.motion-on) .ops-shot:nth-child(5) { grid-row: 4; }
html:not(.motion-on) .ops-shot:nth-child(6) { grid-row: 5; }
@media (max-width: 900px) {
  html:not(.motion-on) .ops-shot:nth-child(2) { grid-row: 2; }
  html:not(.motion-on) .ops-shot:nth-child(3) { grid-row: 4; }
  html:not(.motion-on) .ops-shot:nth-child(4) { grid-row: 6; }
  html:not(.motion-on) .ops-shot:nth-child(5) { grid-row: 8; }
  html:not(.motion-on) .ops-shot:nth-child(6) { grid-row: 10; }
}

/* ───────── 06 Loop: the dashboard's live schedule, then the ring closes into the seal ───────── */
.loop-shot { width: min(980px, 84vw, 92svh); }
.rig-ops { width: 108%; margin: 0 0 0 -10%; }
@media (min-width: 901px) { .scene-recommend .rec-visual { height: min(90svh, 880px); } }
.loop-shot .rig { width: 100%; }
.live-dot { position: absolute; left: calc(var(--x) / 1376 * 100%); top: calc(var(--y) / 1032 * 100%); width: 0; height: 0; }
.live-dot::before { content: ''; position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: rgb(36, 40, 43); }
.live-dot::after { content: ''; position: absolute; left: -3.3px; top: -3.3px; width: 6.6px; height: 6.6px; border-radius: 50%; background: var(--cyan); }
.motion-on .live-dot.is-on::after { animation: live-pulse 2s var(--inout) infinite; }
.seal-wrap { position: relative; display: grid; place-items: center; width: clamp(150px, 16vw, 230px); aspect-ratio: 1; }
.seal-wrap .seal { width: 100%; }
.seal-ring { position: absolute; inset: -12%; width: 124%; height: 124%; overflow: visible; opacity: 0; pointer-events: none; }
.seal-ring circle { fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: var(--ring, 0); transform: rotate(-90deg); transform-origin: 50% 50%; }

/* ───────── Local nav: the app console's sliding underline ───────── */
.ln-links { position: relative; }
.ln-links a.is-active { color: #fff; }
.ln-ink {
  position: absolute; left: 0; bottom: calc((100% - var(--header-h)) / 2); width: var(--w, 0); height: 2px; border-radius: 2px;
  background: var(--cyan); transform: translate3d(var(--x, 0), 0, 0); opacity: 0; pointer-events: none;
}
.ln-links.has-ink .ln-ink { opacity: 1; }
.ln-links.is-live .ln-ink { transition: transform .5s var(--settle), width .5s var(--settle), opacity .3s; }

/* ───────── Apply: segmented controls slide like the app's ───────── */
.segmented.has-thumb { position: relative; }
.segmented.has-thumb button { position: relative; z-index: 1; }
.segmented.has-thumb button[aria-checked='true'] { background: transparent; }
.seg-thumb {
  position: absolute; left: 0; top: 0; width: var(--w, 0); height: var(--h, 0); border-radius: 999px; background: var(--cyan);
  transform: translate3d(var(--x, 0), var(--y, 0), 0); opacity: 0; pointer-events: none; z-index: 0;
}
.segmented.has-thumb .seg-thumb.is-set { opacity: 1; }
.segmented.is-live .seg-thumb { transition: transform .45s var(--settle), width .45s var(--settle), opacity .2s; }

/* ───────── Motion-on ───────── */
.motion-on .rig-screen, .motion-on .rs-body, .motion-on .ts-body { will-change: transform; }
.plan-art .rig { height: 112%; width: auto; flex: none; margin-top: 4%; }
.plan-art-sw .rig > .rig-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.plan-art-sw .rig-screen img { position: absolute; inset: auto; left: 0; top: 0; width: 1376px; height: auto; object-fit: fill; }
/* r12f: the Software card shows a head-on tablet, cropped by the card to its top three quarters, playing the report's
   wipe lightbox: the 1st-scan screen (.wd-clip) lies over the 2nd-scan screen and its edge follows the handle. The clip
   and its picture move by opposite transforms, so the three moving parts stay on the compositor and in step.
   --wd-x = the handle's x on the 1376 px screen (the photo spans 199 … 1177). */
.rig-front { --ra: 1200 / 900; }
/* The art boxes keep 2:1 at every card width, so the tablet is always 88 % of the box wide with its top ~70 % in view. */
.plan-art { height: auto; aspect-ratio: 2 / 1; }
.plan-art .rig.rig-front { width: 88%; height: auto; margin-top: 4%; align-self: flex-start; }
.wipe-demo { --wd-x: 688px; }
.wd-clip { position: absolute; left: 0; top: 0; width: 1376px; height: 1032px; overflow: hidden; transform: translate3d(calc(var(--wd-x) - 1376px), 0, 0); }
.plan-art-sw .rig-screen .wd-clip > img { transform: translate3d(calc(1376px - var(--wd-x)), 0, 0); }
.wd-bar { position: absolute; left: -1px; top: 139.5px; width: 2px; height: 733px; background: #1bdaf3; transform: translate3d(var(--wd-x), 0, 0); }
.wd-knob { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; display: grid; place-items: center; border-radius: 50%; border: 2px solid #1bdaf3; background: rgba(20, 21, 22, .62); color: #1bdaf3; }
@keyframes wd-clip { 0%, 6% { transform: translate3d(-992px, 0, 0); } 47%, 56% { transform: translate3d(-385px, 0, 0); } 97%, 100% { transform: translate3d(-992px, 0, 0); } }
@keyframes wd-pic { 0%, 6% { transform: translate3d(992px, 0, 0); } 47%, 56% { transform: translate3d(385px, 0, 0); } 97%, 100% { transform: translate3d(992px, 0, 0); } }
@keyframes wd-bar { 0%, 6% { transform: translate3d(384px, 0, 0); } 47%, 56% { transform: translate3d(991px, 0, 0); } 97%, 100% { transform: translate3d(384px, 0, 0); } }
@media (prefers-reduced-motion: no-preference) {
  .motion-on .wd-clip { animation: wd-clip 7.2s cubic-bezier(.65, 0, .35, 1) infinite; }
  .motion-on .plan-art-sw .rig-screen .wd-clip > img { animation: wd-pic 7.2s cubic-bezier(.65, 0, .35, 1) infinite; }
  .motion-on .wd-bar { animation: wd-bar 7.2s cubic-bezier(.65, 0, .35, 1) infinite; }
}

/* ───────── Static (scene-by-scene) ───────── */
html:not(.motion-on) .scan-band::before { display: none; }

/* ───────── Responsive ───────── */
@media (max-width: 900px) {
  .rig-diag { height: min(56svh, 560px); }
  .diag-visual .score-card { right: 2%; bottom: 8%; }
}

@media (max-width: 700px) {
  .diag-visual { justify-content: flex-start; }
  .rig-diag { height: min(54svh, 520px); margin-left: -8%; }
  .diag-visual .score-card { position: absolute; right: 0; bottom: 6%; width: 54%; margin: 0; padding: 14px; }
  .score-card .score-num b { font-size: 34px; }
  .score-card .score-items li { font-size: 13px; gap: 6px; }
  .score-card .lv { padding: 3px 7px; gap: 5px; }
  .score-card .score-head { flex-wrap: wrap; gap: 0 8px; }
  .rig-rec .rec-tag { transform: translate3d(calc(var(--cx, 0px) - 50%), calc(var(--cy, 0px) - 100% - 10px), 0); font-size: 13px; padding: 8px 12px; }
  .rig-rec .rec-tag::after { display: none; }
  .g-labels { display: none; }
  .cmp-handle { width: 32px; height: 32px; margin: -16px 0 0 -16px; }
  .cmp-handle svg { width: 15px; height: 15px; }
  .ops-nav { margin-bottom: 18px; }
  .tile-check { right: 6px; top: 6px; width: 20px; height: 20px; }
  .tile-check::after { left: 5.5px; top: 5.5px; width: 8px; height: 4.5px; }
}
