/* ==========================================================================
   schinven.kr — 모바일 학생증 2.0
   The ivLis STUDIO design language (ivlis.kr): white pages, flat colours (no gradients), bold Pretendard type,
   Toss-style pills and bento cards, springy motion. One page holds four views: landing, create/edit, import
   and the card itself. Colours used for small text are the darker steps so everything passes WCAG AA.
   ========================================================================== */

:root {
  --grey50: #f9fafb; --grey100: #f2f4f6; --grey200: #e5e8eb; --grey300: #d1d6db; --grey400: #b0b8c1;
  --grey500: #8b95a1; --grey600: #6b7684; --grey700: #4e5968; --grey800: #333d4b; --grey900: #191f28;
  --blue50: #e8f3ff; --blue100: #c9e2ff; --blue200: #90c2ff; --blue300: #64a8ff; --blue500: #3182f6;
  --blue550: #2170e8; --blue700: #1b64da; --blue800: #1957c2;
  --green50: #e9f9f1; --green500: #03b26c; --green700: #027a4a;
  --red50: #ffeeee; --red100: #ffdede; --red500: #f04452; --red700: #d22030;
  --yellow50: #fff4d6; --yellow500: #ffc342; --yellow800: #7a5200;
  --mint: #3fd3a8; --naver: #03c75a;

  --f: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;

  --nav-h: 64px; --gutter: clamp(20px, 5vw, 72px); --maxw: 1180px;
  --r-xl: 32px; --r-l: 24px; --r-m: 18px; --r-s: 14px;
  --shadow-s: 0 2px 10px rgba(2, 32, 71, .07); --shadow-m: 0 14px 34px rgba(2, 32, 71, .11); --shadow-l: 0 34px 80px rgba(2, 32, 71, .17);
  --ease-out: cubic-bezier(.22, 1, .36, 1); --spring: cubic-bezier(.34, 1.4, .64, 1); --bounce: cubic-bezier(.34, 1.8, .64, 1);
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    /* damped springs (ζ≈.55 → 13% overshoot, ζ≈.36 → 30% overshoot), same curves as ivlis.kr */
    --spring: linear(0, 0.05, 0.173, 0.335, 0.51 10%, 0.676, 0.821, 0.938, 1.025 20%, 1.083, 1.115, 1.126, 1.122 30%, 1.108, 1.088, 1.066, 1.045 40%, 1.026, 1.01, 0.999, 0.991 50%, 0.986, 0.984, 0.984, 0.986 60%, 0.988, 0.991, 0.994, 0.996 70%, 0.998, 1, 1.001, 1.002 80%, 1.002, 1.001, 1);
    --bounce: linear(0, 0.041, 0.15, 0.305, 0.485 8.3%, 0.671, 0.848, 1.002, 1.126 16.7%, 1.217, 1.273, 1.296, 1.292 25%, 1.265, 1.223, 1.171, 1.115 33.3%, 1.062, 1.013, 0.973, 0.943 41.7%, 0.923, 0.913, 0.912, 0.918 50%, 0.929, 0.944, 0.96, 0.977 58.3%, 0.992, 1.004, 1.014, 1.021 66.7%, 1.025, 1.026, 1.025, 1.022 75%, 1.018, 1.013, 1.008, 1.004 83.3%, 1, 0.997, 0.994, 0.993 91.7%, 0.992, 0.993, 1);
  }
}

/* ---------------------------------------------------------------- reset + base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: #fff; color: var(--grey900); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: calc(var(--nav-h) + var(--sat) + 16px); }
body { min-height: 100vh; min-height: 100dvh; font-family: var(--f); font-size: 17px; line-height: 1.6; word-break: keep-all; overflow-wrap: break-word; overflow-x: clip; -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
b, strong { font-weight: 700; }
fieldset { border: 0; min-width: 0; }
::selection { background: var(--blue100); color: var(--grey900); }
:focus-visible { outline: 3px solid var(--blue300); outline-offset: 3px; border-radius: 10px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 400; padding: 12px 18px; border-radius: 12px; background: var(--grey900); color: #fff; font-weight: 700; transition: top .3s var(--ease-out); }
.skip:focus { top: calc(16px + var(--sat)); }
.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }
main:focus { outline: none; }
.inline-ic { display: inline-block; width: 1.15em; height: 1.15em; margin: 0 2px; vertical-align: -.2em; color: var(--blue700); }

/* views — boot.js picks the first one before paint, app.js switches them */
.view { display: none; }
html[data-view="landing"] #v-landing, html[data-view="create"] #v-create,
html[data-view="import"] #v-import, html[data-view="card"] #v-card { display: block; }
html[data-view="card"], html[data-view="card"] body { background: var(--grey100); }
html:not(.has-card) [data-if="card"], html.has-card [data-if="nocard"],
html:not(.standalone) [data-if="standalone"], html.standalone [data-if="browser"] { display: none !important; }
/* Views fade in with opacity only: a transform (even a finished, filling one) would make the view the containing
   block of its position:fixed children (nav, the wizard's bottom button) and pin them to the page. Only the inner
   content slides, without fill-mode, so nothing is left behind once it lands. */
.view.is-entering { animation: viewIn .45s var(--ease-out); }
.view.is-entering .hero__copy, .view.is-entering .wiz, .view.is-entering .imp, .view.is-entering .k { animation: viewUp .6s var(--ease-out); }
@keyframes viewIn { from { opacity: 0; } }
@keyframes viewUp { from { transform: translateY(14px); } }

/* ---------------------------------------------------------------- pills (Toss style: label + dark round arrow) */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 52px; padding: 0 8px 0 22px; border-radius: 999px; background: var(--grey100); color: var(--grey900); font-size: 17px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; transition: transform .6s var(--bounce), background-color .2s, box-shadow .3s; }
.pill:hover { background: var(--grey200); }
.pill:active { transform: scale(.93); transition: transform .12s var(--ease-out); }
.pill__icon { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--grey900); color: #fff; transition: transform .6s var(--bounce); }
.pill__icon svg { width: 18px; height: 18px; }
.pill:hover .pill__icon { transform: translateX(3px) rotate(-8deg) scale(1.06); }
.pill--white { background: #fff; }
.pill--white:hover { background: var(--grey50); box-shadow: 0 10px 26px rgba(0, 27, 55, .18); }
.pill--lg { height: 62px; padding: 0 10px 0 28px; font-size: 20px; }
.pill--lg .pill__icon { width: 44px; height: 44px; }
.pill--line { padding: 0 24px; background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85); font-size: 19px; }
.pill--line:hover { background: rgba(255, 255, 255, .14); }
.pill--plain { gap: 8px; padding: 0 20px; }
.pill--plain svg { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- buttons (app screens) */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 22px; border-radius: 16px; background: var(--grey100); color: var(--grey800); font-size: 17px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; text-align: center; -webkit-user-select: none; user-select: none; transition: transform .5s var(--bounce), background-color .2s, color .2s, opacity .2s; }
.btn:active { transform: scale(.96); transition: transform .1s var(--ease-out), background-color .2s; }
.btn svg { flex-shrink: 0; width: 20px; height: 20px; }
.btn--primary { background: var(--blue550); color: #fff; }
.btn--primary:hover { background: var(--blue700); }
.btn--grey:hover { background: var(--grey200); }
.btn--ghost { background: transparent; color: var(--grey700); }
.btn--ghost:hover { background: var(--grey100); }
.btn--danger { background: var(--red50); color: var(--red700); }
.btn--danger:hover { background: var(--red100); }
.btn--naver { background: var(--naver); color: var(--grey900); }
.btn--naver:hover { background: #02b351; }
.naver-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: #fff; color: var(--naver); }
.naver-n svg { width: 12px; height: 12px; }
.btn--sm { min-height: 44px; padding: 0 16px; border-radius: 12px; font-size: 15px; }
.btn--sm svg { width: 18px; height: 18px; }
.btn--xl { width: 100%; min-height: 58px; border-radius: 18px; font-size: 18px; }
.btn.is-busy { color: transparent !important; pointer-events: none; }
.btn.is-busy::after { content: ''; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .8s linear infinite; }
.btn--grey.is-busy::after, .btn--ghost.is-busy::after { border-color: var(--grey300); border-top-color: var(--grey700); }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--blue100); border-top-color: var(--blue550); animation: spin .8s linear infinite; }
.stack { display: grid; gap: 10px; }
.stack--row { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.link { color: var(--blue700); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--grey700); transition: background-color .2s, transform .5s var(--bounce); }
.link-btn:hover { background: var(--grey200); }
.link-btn:active { transform: scale(.92); }
.link-btn svg { width: 16px; height: 16px; }
.link-btn.is-spin svg { animation: spin .8s linear infinite; }
.icon-btn { flex-shrink: 0; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--grey800); transition: background-color .2s, transform .5s var(--bounce); }
.icon-btn:hover { background: var(--grey100); }
.icon-btn:active { transform: scale(.88); transition-duration: .1s; }
.icon-btn svg { width: 24px; height: 24px; }
.icon-btn--grey { background: var(--grey100); }

/* ---------------------------------------------------------------- inputs */
.input { display: block; width: 100%; height: 56px; padding: 0 18px; border: 0; border-radius: 16px; background: var(--grey100); color: var(--grey900); font-size: 18px; font-weight: 600; letter-spacing: -.01em; outline: none; box-shadow: inset 0 0 0 2px transparent; -webkit-appearance: none; appearance: none; transition: box-shadow .2s, background-color .2s; }
.input::placeholder { color: var(--grey600); font-weight: 500; opacity: 1; }
.input:focus { background-color: #fff; box-shadow: inset 0 0 0 2px var(--blue500); }
.input[aria-invalid="true"] { background-color: var(--red50); box-shadow: inset 0 0 0 2px var(--red500); }
.input[readonly] { color: var(--grey700); background-color: var(--grey50); box-shadow: inset 0 0 0 1.5px var(--grey200); }
.input::-webkit-date-and-time-value { text-align: left; }
.input--mono { font-family: var(--mono); letter-spacing: .02em; }
.input--code { height: 68px; font-family: var(--mono); font-size: 30px; font-weight: 700; letter-spacing: .32em; text-align: center; }
select.input { padding-right: 46px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234e5968' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 20px; }

/* ==========================================================================
   LANDING
   ========================================================================== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding-top: var(--sat); background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); transition: transform .7s var(--spring), box-shadow .3s; }
.nav.is-hidden { transform: translateY(-104%); transition: transform .45s var(--ease-out), box-shadow .3s; }
.nav.is-scrolled { box-shadow: 0 1px 0 var(--grey200); }
.nav__in { height: var(--nav-h); max-width: 1440px; margin: 0 auto; padding: 0 clamp(20px, 6vw, 96px); display: flex; align-items: center; gap: 16px; }
.brand { flex-shrink: 0; display: inline-flex; align-items: center; gap: 10px; font-size: 19px; line-height: 1; letter-spacing: -.025em; white-space: nowrap; transition: transform .6s var(--bounce); }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand b { font-weight: 800; }
.brand:hover { transform: rotate(-3deg) scale(1.04); }
.nav__links { display: flex; gap: 4px; margin: 0 auto; }
.nav__links a { padding: 8px 14px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--grey700); transition: background-color .2s, color .2s; }
.nav__links a:hover { background: var(--grey100); color: var(--grey900); }
.nav__links a.is-active { color: var(--blue700); }
.nav__act { flex-shrink: 0; display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav__ghost, .nav__cta { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 10px; font-size: 15px; font-weight: 700; white-space: nowrap; transition: transform .5s var(--bounce), background-color .2s; }
.nav__ghost { color: var(--grey700); }
.nav__ghost:hover { background: var(--grey100); }
.nav__cta { background: var(--grey900); color: #fff; }
.nav__cta:hover { background: var(--grey800); }
.nav__ghost:active, .nav__cta:active { transform: scale(.92); transition-duration: .1s; }

/* hero — a blue stage like the portfolio's, with the real card component in a phone */
.hero { padding: calc(var(--nav-h) + var(--sat)) 16px 0; }
.stage { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); align-items: center; gap: clamp(28px, 4vw, 64px); min-height: max(640px, calc(100svh - var(--nav-h) - var(--sat) - 16px)); padding: clamp(48px, 6vw, 96px) clamp(24px, 6vw, 96px); border-radius: var(--r-xl); background: var(--blue500); color: #fff; overflow: hidden; }
.hero__copy { position: relative; z-index: 2; min-width: 0; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 12px; border-radius: 999px; background: #fff; color: var(--grey900); font-size: 15px; font-weight: 700; }
.hero__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue500); animation: dot 1.6s var(--ease-out) infinite; }
@keyframes dot { 0% { box-shadow: 0 0 0 0 rgba(49, 130, 246, .5); } 80%, 100% { box-shadow: 0 0 0 8px rgba(49, 130, 246, 0); } }
.hero__title { margin: 22px 0 20px -.04em; font-size: clamp(50px, 6.6vw, 100px); font-weight: 800; line-height: 1.08; letter-spacing: -.045em; }
.hero__title .w { display: inline-block; }
.js .hero__title .w { animation: wordIn 1s var(--bounce) both; animation-delay: var(--d, 0s); }
@keyframes wordIn { from { opacity: 0; transform: translateY(40%) scale(.6) rotate(-6deg); } }
.hero__title .w--pop { position: relative; z-index: 0; padding: 0 .12em; color: var(--grey900); }
.hero__title .w--pop::before { content: ''; position: absolute; z-index: -1; top: .1em; right: -.02em; bottom: .02em; left: -.02em; border-radius: .22em; background: var(--yellow500); transform: rotate(-3deg); }
.hero__sub { max-width: 24em; font-size: clamp(19px, 1.7vw, 23px); font-weight: 700; line-height: 1.5; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(26px, 3.6vh, 38px); }
.hero__cta .pill--line { height: 62px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.hero__chips li { padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--grey800); font-size: 14px; font-weight: 700; }

.stickers { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; pointer-events: none; }
.st { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); }
.st i { display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border-radius: 14px; background: var(--c, #fff); color: var(--t, var(--grey900)); font-size: 16px; font-weight: 800; font-style: normal; white-space: nowrap; transform: rotate(var(--r, 0deg)); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .09), 0 10px 24px rgba(0, 27, 55, .16); animation: bob 6s ease-in-out infinite; animation-delay: var(--dl, 0s); }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.st--meal i { --c: var(--yellow500); }
.st--d i { --t: var(--red700); }
.st--tt i { --c: var(--grey900); --t: #fff; }
.st--off i { --c: var(--mint); }

.hero__demo { position: relative; z-index: 2; display: grid; place-items: center; }
.phone { position: relative; width: min(100%, 320px); aspect-ratio: 9 / 18.8; padding: 10px; border-radius: 50px; background: #0d1117; box-shadow: 0 0 0 2px #c9d1da, 0 0 0 6px #eef1f4, 0 0 0 7px #d5dbe2, var(--shadow-l); transform: rotate(4deg); }
.js .phone { animation: phoneIn 1.2s .35s var(--spring) both; }
@keyframes phoneIn { from { opacity: 0; transform: translateY(60px) rotate(12deg) scale(.9); } }
.phone__screen { position: relative; height: 100%; overflow: hidden; border-radius: 40px; background: var(--grey100); }
.phone__island { position: absolute; left: 50%; top: 20px; width: 31%; height: 26px; margin-left: -15.5%; border-radius: 20px; background: #000; }
.demo { height: 100%; display: flex; flex-direction: column; gap: 9px; padding: 56px 13px 13px; color: var(--grey900); }
.demo__bar { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 4px 2px; }
.demo__bar b { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.demo__bar span { font-size: 12px; font-weight: 700; color: var(--grey700); }
.demo__tile { padding: 11px 14px; border-radius: 16px; background: #fff; }
.demo__label { font-size: 11px; font-weight: 800; color: var(--blue700); }
.demo__menu { font-size: 14px; font-weight: 700; letter-spacing: -.01em; }

/* sections */
.sec { padding: clamp(96px, 12vw, 160px) 0 0; }
.sec__head { margin-bottom: clamp(36px, 5vw, 60px); }
.eyebrow { margin-bottom: 14px; font-size: 17px; font-weight: 700; color: var(--blue700); letter-spacing: -.01em; }
.h2 { font-size: clamp(32px, 4.2vw, 54px); font-weight: 700; line-height: 1.3; letter-spacing: -.025em; }
.lead { margin-top: 16px; max-width: 34em; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.65; color: var(--grey600); }
.js [data-reveal] { opacity: 0; transform: translateY(40px) scale(.97); transition: opacity .6s var(--ease-out), transform 1s var(--spring); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fc { position: relative; display: flex; flex-direction: column; min-height: 330px; padding: clamp(24px, 2.6vw, 34px); border-radius: var(--r-xl); background: var(--grey100); overflow: hidden; }
.fc--wide { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 28px; }
.fc--blue { background: var(--blue550); color: #fff; }
.fc--yellow { background: var(--yellow50); }
.fc--dark { background: var(--grey900); color: #fff; }
.fc--green { background: var(--green50); }
.fc__label { font-size: 15px; font-weight: 700; color: var(--grey700); }
.fc--blue .fc__label, .fc--blue .fc__desc { color: #fff; }
.fc--dark .fc__label, .fc--dark .fc__desc { color: rgba(255, 255, 255, .82); }
.fc--yellow .fc__label { color: var(--yellow800); }
.fc--green .fc__label { color: var(--green700); }
.fc__title { margin-top: 6px; font-size: clamp(24px, 2.3vw, 30px); font-weight: 800; line-height: 1.3; letter-spacing: -.025em; }
.fc__desc { margin-top: 10px; max-width: 26em; font-size: 16px; line-height: 1.6; color: var(--grey700); }
.fc__vis { display: grid; place-items: center; }
.scanmock { position: relative; width: 100%; max-width: 360px; padding: 26px 22px; border-radius: 22px; background: #fff; box-shadow: 0 18px 40px rgba(0, 27, 55, .25); transform: rotate(-3deg); transition: transform .8s var(--bounce); }
.fc:hover .scanmock { transform: rotate(0) scale(1.03); }
.scanmock .bc__svg { width: 100%; height: 110px; }
.scanmock__laser { position: absolute; left: 14px; right: 14px; top: 50%; height: 3px; border-radius: 3px; background: var(--red500); box-shadow: 0 0 12px var(--red500); animation: laser 2.4s ease-in-out infinite; }
@keyframes laser { 0%, 100% { transform: translateY(-44px); } 50% { transform: translateY(40px); } }
.dishmock, .ttmock { display: grid; gap: 7px; margin-top: auto; padding-top: 22px; }
.dishmock li, .ttmock li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: #fff; font-size: 15px; font-weight: 700; }
.dishmock li { justify-content: space-between; }
.dishmock b { font-size: 12px; font-weight: 700; color: var(--grey700); }
.dishmock .is-warn { box-shadow: inset 0 0 0 2px var(--red500); }
.dishmock .is-warn b { color: var(--red700); }
.ttmock b { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; background: var(--grey100); font-size: 13px; }
.ttmock .is-now { box-shadow: inset 0 0 0 2px var(--blue500); }
.ttmock .is-now b { background: var(--blue550); color: #fff; }
.offmock { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding: 10px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: 15px; font-weight: 700; }
.offmock i { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow500); }
.codemock { display: flex; gap: 6px; margin-top: auto; padding-top: 22px; }
.codemock span { flex: 1; max-width: 46px; aspect-ratio: 3 / 4; display: grid; place-items: center; border-radius: 12px; background: #fff; font-family: var(--mono); font-size: 24px; font-weight: 800; }

.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.how__item { padding: 28px; border-radius: var(--r-l); background: var(--grey100); }
.how__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--grey900); color: #fff; font-size: 20px; font-weight: 800; }
.how__item h3 { margin-top: 18px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.how__item p { margin-top: 6px; font-size: 16px; color: var(--grey700); }

.faq { display: grid; gap: 10px; }
.qa { border-radius: var(--r-m); background: var(--grey100); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-radius: var(--r-m); font-size: 18px; font-weight: 700; letter-spacing: -.015em; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ''; flex-shrink: 0; width: 11px; height: 11px; border-right: 2.5px solid var(--grey600); border-bottom: 2.5px solid var(--grey600); transform: translateY(-3px) rotate(45deg); transition: transform .5s var(--bounce); }
.qa[open] summary::after { transform: translateY(2px) rotate(225deg); }
.qa__a { padding: 0 22px 22px; font-size: 16px; line-height: 1.7; color: var(--grey700); }
.qa__a p + p { margin-top: 8px; }

.sec--cta { padding-bottom: clamp(40px, 6vw, 80px); }
.cta { display: grid; justify-items: center; padding: clamp(44px, 6vw, 84px) 24px; border-radius: var(--r-xl); background: var(--grey900); color: #fff; text-align: center; }
.cta__title { font-size: clamp(34px, 4.6vw, 60px); font-weight: 800; line-height: 1.2; letter-spacing: -.035em; }
.cta__sub { margin: 14px 0 28px; font-size: 19px; font-weight: 600; color: rgba(255, 255, 255, .82); }

.footer { padding: 32px 0 calc(44px + var(--sab)); font-size: 14px; color: var(--grey600); }
.footer__in { display: grid; gap: 6px; padding-top: 26px; border-top: 1px solid var(--grey200); }
.footer__brand { margin-bottom: 4px; font-size: 22px; font-weight: 250; color: var(--grey900); letter-spacing: -.03em; }
.footer__brand b { font-weight: 800; }
.footer a { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   ID CARD — one component for the landing demo, the wizard preview and the card screen.
   Sized in em and scaled to its container (cqi), so it keeps the proportions of a real card.
   ========================================================================== */
.idwrap, .look__card, #c-preview, .demo { container-type: inline-size; }
.idc {
  --bg: var(--blue550); --fg: #fff; --soft: rgba(255, 255, 255, .16); --photo: rgba(255, 255, 255, .24); --sil: #fff;
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: .9em;
  aspect-ratio: 1.586; padding: 1.2em 1.3em 1.05em; border-radius: 1.35em; background: var(--bg); color: var(--fg);
  font-size: 16px; font-size: clamp(11px, 4.7cqi, 18px); box-shadow: 0 .9em 1.9em rgba(2, 32, 71, .2);
  transition: background-color .5s var(--ease-out), color .3s;
}
.idc::before { content: ''; position: absolute; z-index: -1; right: -2.6em; top: -3.2em; width: 10.5em; height: 10.5em; border-radius: 50%; background: var(--soft); }
.idc::after { content: ''; position: absolute; z-index: -1; left: -2em; bottom: -5.4em; width: 8em; height: 8em; border-radius: 50%; background: var(--soft); }
.idc[data-color="purple"] { --bg: #5b47e0; }
.idc[data-color="green"] { --bg: var(--green700); }
.idc[data-color="dark"] { --bg: var(--grey900); --soft: rgba(255, 255, 255, .09); --photo: rgba(255, 255, 255, .14); }
.idc[data-color="coral"] { --bg: #ff6259; --fg: var(--grey900); --soft: rgba(255, 255, 255, .24); --photo: rgba(255, 255, 255, .42); }
.idc[data-color="yellow"] { --bg: var(--yellow500); --fg: var(--grey900); --soft: rgba(255, 255, 255, .32); --photo: rgba(255, 255, 255, .5); }
.idc__top { display: flex; align-items: center; justify-content: space-between; gap: .6em; }
.idc__school { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95em; font-weight: 800; letter-spacing: -.02em; }
.idc__tag { flex-shrink: 0; padding: .3em .62em; border-radius: .5em; background: var(--soft); font-size: .64em; font-weight: 800; letter-spacing: .08em; }
.idc__body { flex: 1; display: flex; align-items: center; gap: 1em; min-height: 0; }
.idc__photo { flex-shrink: 0; height: 100%; max-height: 7.4em; aspect-ratio: 3 / 4; overflow: hidden; display: grid; place-items: end center; border-radius: .8em; background: var(--photo); }
.idc__photo svg { width: 82%; fill: var(--sil); }
.idc__photo img { width: 100%; height: 100%; object-fit: cover; }
.idc__info { min-width: 0; }
.idc__name { font-size: 1.8em; font-weight: 800; line-height: 1.15; letter-spacing: -.03em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.idc__meta { margin-top: .3em; font-size: .98em; font-weight: 700; }
.idc__no { margin-top: .12em; font-size: .84em; font-weight: 600; font-variant-numeric: tabular-nums; }
.idc__foot { display: flex; align-items: center; justify-content: space-between; gap: .6em; font-size: .78em; font-weight: 700; font-variant-numeric: tabular-nums; }
.idc__shine { position: absolute; z-index: -1; top: -60%; left: 0; width: 18%; height: 220%; background: rgba(255, 255, 255, .13); transform: translateX(-160%) rotate(20deg); animation: shine 6s var(--ease-out) infinite; pointer-events: none; }
@keyframes shine { 0%, 62% { transform: translateX(-160%) rotate(20deg); } 100% { transform: translateX(760%) rotate(20deg); } }
.idc.is-pop { animation: cardPop .9s var(--bounce); }
@keyframes cardPop { 0% { transform: scale(.94) rotate(-2deg); } 100% { transform: none; } }

/* "live" chip: a ticking clock shows the card is on a real screen, not a screenshot */
.live { display: inline-flex; align-items: center; gap: .5em; padding: .32em .72em .32em .58em; border-radius: 999px; background: var(--soft, rgba(255, 255, 255, .16)); font-variant-numeric: tabular-nums; }
.live i { flex-shrink: 0; width: .62em; height: .62em; border-radius: 50%; background: currentColor; animation: livePing 1.8s var(--ease-out) infinite; }
.live--dark { --soft: var(--grey100); color: var(--grey900); }
.live--dark i { background: var(--green500); animation-name: livePingG; }
@keyframes livePing { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); } 70%, 100% { box-shadow: 0 0 0 .55em rgba(255, 255, 255, 0); } }
@keyframes livePingG { 0% { box-shadow: 0 0 0 0 rgba(3, 178, 108, .5); } 70%, 100% { box-shadow: 0 0 0 7px rgba(3, 178, 108, 0); } }

/* barcode panel */
.bc { display: grid; justify-items: center; gap: 6px; padding: 18px 18px 14px; border-radius: var(--r-l); background: #fff; }
.bc__tap { display: block; width: 100%; padding: 8px 0 4px; border-radius: 12px; transition: transform .5s var(--bounce); }
.bc__tap:active { transform: scale(.97); transition-duration: .1s; }
.bc__svg { display: block; width: 100%; height: 96px; shape-rendering: crispEdges; }
.bc__num { font-family: var(--mono); font-size: 17px; font-weight: 700; letter-spacing: .1em; color: var(--grey900); text-align: center; word-break: break-all; }
.bc__hint { font-size: 13px; font-weight: 600; color: var(--grey600); text-align: center; }
.bc--demo { gap: 2px; padding: 10px 12px 8px; border-radius: 16px; }
.bc--demo .bc__svg { height: 50px; }
.bc--demo .bc__num { font-size: 11px; }
.bc--empty { gap: 12px; padding: 26px 20px; font-weight: 600; color: var(--grey700); text-align: center; }

/* segmented control */
.seg { display: inline-flex; max-width: 100%; padding: 3px; border-radius: 12px; background: var(--grey100); }
.seg button { min-width: 0; height: 34px; padding: 0 14px; border-radius: 9px; font-size: 14px; font-weight: 700; color: var(--grey700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background-color .2s, color .2s, transform .5s var(--bounce); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--grey900); box-shadow: var(--shadow-s); }
.seg button:active { transform: scale(.9); }
.seg--sm button { height: 30px; padding: 0 11px; font-size: 13px; }

/* ==========================================================================
   APP CHROME + CREATE / EDIT WIZARD
   ========================================================================== */
.bar { position: sticky; top: 0; z-index: 50; padding-top: var(--sat); background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); }
.bar__in { height: 56px; max-width: 1180px; margin: 0 auto; padding: 0 10px; display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; align-items: center; }
.bar__btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: var(--grey800); transition: background-color .2s, transform .5s var(--bounce); }
.bar__btn:hover { background: var(--grey100); }
.bar__btn:active { transform: scale(.88); transition-duration: .1s; }
.bar__btn svg { width: 24px; height: 24px; }
.bar__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; font-size: 17px; font-weight: 700; }
.bar__meta { padding-right: 8px; text-align: right; font-size: 14px; font-weight: 700; color: var(--grey600); font-variant-numeric: tabular-nums; }
.prog { height: 3px; background: var(--grey100); }
.prog i { display: block; width: 100%; height: 100%; background: var(--blue500); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform .8s var(--spring); }

.wiz { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
.wiz__main { max-width: 560px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) 0 calc(150px + var(--sab)); }
.wiz__preview { display: none; }
.step { display: none; }
.step.is-on { display: block; animation: stepIn .7s var(--spring) both; }
.step.is-on.is-back { animation-name: stepBack; }
@keyframes stepIn { from { opacity: 0; transform: translateX(40px); } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-40px); } }
.step__eyebrow { margin-bottom: 8px; font-size: 15px; font-weight: 700; color: var(--blue700); }
.q { font-size: clamp(26px, 3.2vw, 34px); font-weight: 800; line-height: 1.32; letter-spacing: -.03em; }
.q:focus { outline: none; }
.q__desc { margin-top: 10px; font-size: 17px; line-height: 1.6; color: var(--grey600); }
.q__hint { margin-top: 14px; font-size: 15px; color: var(--grey600); }
.step > .btn, .step > .stack { margin-top: 28px; }
.field { margin-top: 28px; }
.field__label { display: block; margin-bottom: 10px; font-size: 15px; font-weight: 700; color: var(--grey700); }
.field__label .opt { margin-left: 4px; font-weight: 600; color: var(--grey600); }
.field__hint { margin-top: 8px; font-size: 14px; color: var(--grey600); }
.note { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--grey100); font-size: 15px; font-weight: 600; color: var(--grey800); }
.note--warn { background: var(--red50); color: var(--red700); }

.found { margin-top: 24px; padding: 20px 22px; border-radius: var(--r-l); background: var(--grey100); }
.found b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.found span { display: block; margin-top: 2px; font-size: 16px; font-weight: 600; color: var(--grey700); }
.found .tag { display: inline-block; margin-top: 10px; padding: 4px 10px; border-radius: 8px; background: var(--yellow50); color: var(--yellow800); font-size: 13px; font-weight: 700; }

.search { position: relative; margin-top: 24px; }
.search__icon { position: absolute; left: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px; color: var(--grey600); pointer-events: none; }
.input--search { padding-left: 50px; }
.input--search::-webkit-search-cancel-button { -webkit-appearance: none; }
.results { display: grid; gap: 8px; margin-top: 14px; }
.result { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; padding: 16px 18px; border-radius: 18px; background: var(--grey100); text-align: left; transition: background-color .2s, box-shadow .2s, transform .5s var(--bounce); }
.result:hover { background: var(--grey200); }
.result:active { transform: scale(.98); transition-duration: .1s; }
.result[aria-pressed="true"] { background: var(--blue50); box-shadow: inset 0 0 0 2px var(--blue500); }
.result__name { font-size: 18px; font-weight: 700; letter-spacing: -.015em; }
.result__sub { grid-column: 1; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--grey700); }
.result__kind { grid-column: 2; grid-row: 1 / 3; padding: 4px 9px; border-radius: 8px; background: #fff; font-size: 13px; font-weight: 700; color: var(--grey700); }
.result.is-skel { height: 76px; animation: skel 1.1s ease-in-out infinite alternate; }
@keyframes skel { from { opacity: .5; } to { opacity: 1; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); }
.chip { min-width: 62px; height: 50px; padding: 0 16px; border-radius: 14px; background: var(--grey100); font-size: 17px; font-weight: 700; color: var(--grey800); font-variant-numeric: tabular-nums; transition: background-color .2s, color .2s, box-shadow .2s, transform .5s var(--bounce); }
.chip:hover { background: var(--grey200); }
.chip:active { transform: scale(.92); transition-duration: .1s; }
.chip[aria-pressed="true"] { background: var(--blue550); color: #fff; }
.chips--sm { margin-bottom: 10px; }
.chips--sm .chip { min-width: 0; height: 40px; padding: 0 14px; border-radius: 12px; font-size: 15px; }
.stepper { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; gap: 8px; max-width: 320px; }
.stepper__btn { height: 56px; display: grid; place-items: center; border-radius: 16px; background: var(--grey100); color: var(--grey800); transition: background-color .2s, transform .5s var(--bounce); }
.stepper__btn:hover { background: var(--grey200); }
.stepper__btn:active { transform: scale(.9); transition-duration: .1s; }
.stepper__btn svg { width: 22px; height: 22px; }
.stepper__input { text-align: center; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* barcode editors */
.bcs { display: grid; gap: 14px; margin-top: 24px; }
.bced { padding: 18px; border-radius: var(--r-l); background: var(--grey100); }
.bced__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.bced__title { font-size: 16px; font-weight: 800; }
.bced__tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-bottom: 10px; }
.bced__tools .btn { background: #fff; }
.bced__tools .btn:hover { background: var(--grey50); }
.bced .input { background-color: #fff; }
.bced__grid { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 8px; }
.bced__label { margin-bottom: 8px; }
.bced__prev { display: grid; justify-items: center; gap: 6px; min-height: 92px; margin-top: 10px; padding: 14px; border-radius: 16px; background: #fff; }
.bced__prev .bc__svg { height: 70px; }
.bced__msg { font-size: 14px; font-weight: 600; color: var(--grey600); text-align: center; }
.bced__msg.is-bad { color: var(--red700); }
.c-bc-add { margin-top: 12px; }

.look__card { margin-top: 22px; }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.sw { position: relative; display: block; cursor: pointer; }
.sw input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.sw span { display: block; width: 46px; height: 46px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); transition: transform .5s var(--bounce), box-shadow .2s; }
.sw input:checked + span { box-shadow: 0 0 0 3px #fff, 0 0 0 5.5px var(--grey900); transform: scale(1.05); }
.sw input:focus-visible + span { outline: 3px solid var(--blue300); outline-offset: 6px; }
.photo-row { display: flex; flex-wrap: wrap; gap: 8px; }
.summary { margin-top: 28px; border-radius: var(--r-l); background: var(--grey100); padding: 6px 18px; }
.summary div { display: grid; grid-template-columns: 5.5em minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 52px; border-bottom: 1px solid var(--grey200); }
.summary div:last-child { border-bottom: 0; }
.summary dt { font-size: 14px; font-weight: 700; color: var(--grey700); }
.summary dd { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 700; }
.summary button { padding: 6px 10px; border-radius: 9px; font-size: 14px; font-weight: 700; color: var(--blue700); }
.summary button:hover { background: var(--grey200); }
.consent { display: flex; gap: 12px; margin-top: 18px; padding: 16px 18px; border-radius: var(--r-m); box-shadow: inset 0 0 0 1.5px var(--grey200); cursor: pointer; }
.consent input { flex-shrink: 0; width: 24px; height: 24px; margin-top: 1px; accent-color: var(--blue550); }
.consent b { display: block; font-size: 16px; }
.consent small { display: block; margin-top: 3px; font-size: 14px; line-height: 1.55; color: var(--grey700); }
.consent.is-bad { box-shadow: inset 0 0 0 2px var(--red500); background: var(--red50); }

.step--done { padding-top: 12px; text-align: center; }
.step--done .q__desc { max-width: 24em; margin-left: auto; margin-right: auto; }
.done__badge { position: relative; width: 96px; height: 96px; margin: 0 auto 26px; display: grid; place-items: center; border-radius: 50%; background: var(--green500); color: #fff; animation: badgeIn 1s var(--bounce) both; }
.done__badge svg { width: 46px; height: 46px; }
.done__badge i { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: var(--c, var(--blue500)); opacity: 0; animation: burst 1s .25s var(--ease-out) both; }
.done__badge i:nth-of-type(1) { --a: -90deg; --c: var(--yellow500); }
.done__badge i:nth-of-type(2) { --a: -30deg; --c: var(--blue500); }
.done__badge i:nth-of-type(3) { --a: 30deg; --c: #ff6259; }
.done__badge i:nth-of-type(4) { --a: 90deg; --c: var(--mint); }
.done__badge i:nth-of-type(5) { --a: 150deg; --c: var(--yellow500); }
.done__badge i:nth-of-type(6) { --a: 210deg; --c: var(--blue500); }
@keyframes badgeIn { from { transform: scale(.3) rotate(-30deg); opacity: 0; } }
@keyframes burst { 0% { opacity: 1; transform: rotate(var(--a)) translateX(30px) scale(.4); } 100% { opacity: 0; transform: rotate(var(--a)) translateX(92px) scale(1); } }

.wiz__foot { position: fixed; left: 0; right: 0; bottom: var(--kb, 0px); z-index: 60; padding: 12px 0 calc(12px + var(--sab)); background: rgba(255, 255, 255, .96); box-shadow: 0 -1px 0 var(--grey200); transition: bottom .15s; }
.wiz__foot-in { max-width: calc(560px + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wiz__error { font-size: 15px; font-weight: 700; color: var(--red700); text-align: center; }
.wiz__error:not(:empty) { margin-bottom: 10px; }
.wiz__foot.is-off { display: none; }

/* ==========================================================================
   IMPORT
   ========================================================================== */
.imp { max-width: calc(560px + var(--gutter) * 2); margin: 0 auto; padding: clamp(28px, 5vw, 56px) var(--gutter) calc(64px + var(--sab)); }
.imp > .q { margin-bottom: 26px; }
.imp__status { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 16px 18px; border-radius: var(--r-m); background: var(--blue50); font-weight: 700; color: var(--blue800); }
.imp__card { margin-top: 12px; padding: 22px; border-radius: var(--r-l); background: var(--grey100); }
.imp__h { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.imp__p { margin: 6px 0 16px; font-size: 15px; line-height: 1.6; color: var(--grey700); }
.imp__card .input { background-color: #fff; }
.imp__card .btn--naver { width: 100%; }
.imp__form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.imp__form .btn { min-height: 56px; }
.imp__form .input--code { height: 56px; font-size: 24px; letter-spacing: .24em; }
.imp__old summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; list-style: none; font-size: 17px; }
.imp__old summary::-webkit-details-marker { display: none; }
.imp__old summary::after { content: ''; flex-shrink: 0; width: 10px; height: 10px; border-right: 2.5px solid var(--grey600); border-bottom: 2.5px solid var(--grey600); transform: translateY(-3px) rotate(45deg); transition: transform .5s var(--bounce); }
.imp__old[open] summary::after { transform: translateY(2px) rotate(225deg); }
.imp__old .imp__form { margin-top: 16px; }
.imp__err { margin-top: 16px; font-size: 15px; font-weight: 700; color: var(--red700); }

/* ==========================================================================
   CARD SCREEN
   ========================================================================== */
.appbar { position: sticky; top: 0; z-index: 50; padding-top: var(--sat); background: rgba(242, 244, 246, .94); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); }
.appbar__in { height: 60px; max-width: 1080px; margin: 0 auto; padding: 0 12px 0 var(--gutter); display: flex; align-items: center; gap: 10px; }
.appbar__title { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.appbar__title b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.appbar__title span { flex-shrink: 0; font-size: 14px; font-weight: 700; color: var(--grey700); }
.net { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px 0 9px; border-radius: 999px; background: var(--grey900); color: #fff; font-size: 13px; font-weight: 700; }
.net i { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow500); }

.k { max-width: 1080px; margin: 0 auto; padding: 6px var(--gutter) calc(48px + var(--sab)); display: grid; gap: 16px; }
.k__col { min-width: 0; display: grid; gap: 12px; align-content: start; }
.idwrap .idc { animation: cardIn .9s var(--spring) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(24px) scale(.96); } }

.banners { display: grid; gap: 8px; }
.banners:empty { display: none; }
#k-tips .banner { background: #fff; }
.banner { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border-radius: var(--r-m); background: #fff; font-size: 15px; font-weight: 600; color: var(--grey800); animation: popIn .7s var(--bounce) both; }
.banner__tx { flex: 1; min-width: 0; }
.banner__tx b { display: block; font-size: 16px; color: var(--grey900); }
.banner .btn { flex-shrink: 0; }
.banner--blue { background: var(--blue50); }
.banner--blue .btn { background: var(--blue550); color: #fff; }
.banner--warn { background: var(--red50); }
.banner--warn b { color: var(--red700); }
.banner__x { flex-shrink: 0; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--grey600); }
.banner__x:hover { background: rgba(0, 0, 0, .05); }
.banner__x svg { width: 18px; height: 18px; }
@keyframes popIn { from { opacity: 0; transform: translateY(10px) scale(.9); } }

.today { display: grid; gap: 12px; }
.today__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 2px 0; }
.today__h { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.days { position: relative; display: flex; gap: 6px; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { position: relative; flex-shrink: 0; width: 52px; height: 64px; display: grid; place-items: center; align-content: center; gap: 1px; border-radius: 16px; background: #fff; scroll-snap-align: start; transition: background-color .2s, color .2s, transform .5s var(--bounce); }
.day:active { transform: scale(.9); transition-duration: .1s; }
.day small { font-size: 12px; font-weight: 700; color: var(--grey700); }
.day b { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; }
.day.is-today small { color: var(--blue700); }
.day.is-off b, .day.is-off small { color: var(--grey600); }
.day.has-ev::after { content: ''; position: absolute; bottom: 7px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--red500); }
.day[aria-pressed="true"] { background: var(--grey900); color: #fff; }
.day[aria-pressed="true"] small { color: rgba(255, 255, 255, .85); }
.day[aria-pressed="true"].has-ev::after { background: var(--yellow500); }
.day--gap { width: 10px; background: none; pointer-events: none; }

.tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.tile { min-width: 0; padding: 20px; border-radius: var(--r-l); background: #fff; }
.tile__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.tile__head h3 { font-size: 17px; font-weight: 800; letter-spacing: -.015em; }
.tile__meta { font-size: 13px; font-weight: 700; color: var(--grey600); font-variant-numeric: tabular-nums; }
.tile .seg { margin-bottom: 12px; }
.tile__foot { margin-top: 8px; font-size: 13px; color: var(--grey600); }
.empty { padding: 14px 0 6px; font-size: 15px; font-weight: 600; color: var(--grey600); }
.dishes { display: grid; gap: 2px; }
.dish { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.dish__name { min-width: 0; }
.dish__al { font-size: 12px; font-weight: 700; color: var(--grey600); font-variant-numeric: tabular-nums; }
.dish.is-warn { margin: 2px -10px; padding: 7px 10px; border-radius: 12px; background: var(--red50); }
.dish.is-warn .dish__al { color: var(--red700); }
.dish__warn { flex-shrink: 0; margin-left: auto; padding: 2px 8px; border-radius: 7px; background: #fff; font-size: 12px; font-weight: 800; color: var(--red700); }
.periods { display: grid; gap: 4px; counter-reset: p; }
.period { display: flex; align-items: center; gap: 12px; padding: 6px 0; font-size: 17px; font-weight: 600; }
.period b { flex-shrink: 0; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--grey100); font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.period.is-blank { color: var(--grey600); }
.events { display: grid; gap: 2px; }
.event { display: grid; grid-template-columns: 4.6em minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0; }
.event__date { font-size: 14px; font-weight: 700; color: var(--grey700); font-variant-numeric: tabular-nums; }
.event__name { min-width: 0; font-size: 16px; font-weight: 700; }
.event__d { padding: 3px 8px; border-radius: 8px; background: var(--grey100); font-size: 12px; font-weight: 800; color: var(--grey800); font-variant-numeric: tabular-nums; }
.event.is-soon .event__d { background: var(--red50); color: var(--red700); }
.event.is-off .event__name::after { content: '쉬는 날'; display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: var(--green50); color: var(--green700); font-size: 12px; font-weight: 800; line-height: 1.5; white-space: nowrap; vertical-align: 1px; }
.memo { display: block; width: 100%; min-height: 104px; padding: 14px 16px; border: 0; border-radius: 16px; background: var(--grey100); font-size: 16px; line-height: 1.6; resize: vertical; outline: none; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .2s, background-color .2s; }
.memo:focus { background: #fff; box-shadow: inset 0 0 0 2px var(--blue500); }
.memo::placeholder { color: var(--grey600); }
.src { padding: 0 4px; font-size: 13px; color: var(--grey700); text-align: center; }
.sk { display: block; height: 16px; margin: 10px 0; border-radius: 8px; background: var(--grey100); animation: skel 1.1s ease-in-out infinite alternate; }
.sk:nth-child(2) { width: 72%; }
.sk:nth-child(3) { width: 54%; }

/* scan mode — plain white, the barcode as large as the screen allows */
.scan { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 200; display: flex; flex-direction: column; padding: calc(10px + var(--sat)) 16px calc(16px + var(--sab)); background: #fff; animation: scanIn .45s var(--ease-out) both; }
@keyframes scanIn { from { opacity: 0; transform: scale(1.04); } }
.scan__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.scan__who { min-width: 0; padding-left: 6px; }
.scan__who b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.scan__who span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 600; color: var(--grey700); }
.scan__stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; }
.scan__code { width: 100%; max-width: 760px; display: grid; justify-items: center; gap: 12px; }
.scan__code .bc__svg { height: min(42vh, 260px); }
.scan__num { font-family: var(--mono); font-size: 24px; font-weight: 700; letter-spacing: .14em; word-break: break-all; text-align: center; }
.scan.is-rot .scan__code { position: absolute; left: 50%; top: 50%; width: var(--rw, 80vh); max-width: none; transform: translate(-50%, -50%) rotate(90deg); }
.scan.is-rot .scan__code .bc__svg { height: min(calc(var(--rh, 80vw) - 64px), 320px); }
.scan__foot { display: grid; justify-items: center; gap: 12px; }
.scan__live { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--grey700); }
.scan .live { font-size: 14px; font-weight: 700; }
.scan .pill--plain[aria-pressed="true"] { background: var(--grey900); color: #fff; }

/* ==========================================================================
   SHEETS (bottom sheets on phones, centred dialogs on wide screens)
   ========================================================================== */
.sheet { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 300; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 12, 30, .46); animation: fadeIn .25s var(--ease-out) both; }
.sheet.is-closing { animation: fadeOut .22s var(--ease-out) both; }
.sheet.is-stacked { background: transparent; animation: none; }
.sheet.is-under > .sheet__panel { visibility: hidden; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.sheet__panel { width: 100%; max-width: 560px; max-height: calc(100% - 24px - var(--sat)); overflow-y: auto; overscroll-behavior: contain; padding: 10px 20px calc(22px + var(--sab)); border-radius: 28px 28px 0 0; background: #fff; box-shadow: var(--shadow-l); animation: sheetUp .6s var(--spring) both; }
.sheet.is-closing .sheet__panel { animation: sheetDown .25s var(--ease-out) both; }
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes sheetDown { to { transform: translateY(100%); } }
.sheet__panel::before { content: ''; display: block; width: 40px; height: 5px; margin: 0 auto 8px; border-radius: 3px; background: var(--grey300); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 -8px 8px 0; }
.sheet__head h2 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.sheet__desc { margin: 4px 0 16px; font-size: 15px; line-height: 1.6; color: var(--grey700); }
.sheet__foot { margin-top: 14px; font-size: 13px; color: var(--grey600); text-align: center; }
.sheet .stack { margin-top: 8px; }
.rows { display: grid; }
.row { width: 100%; display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 8px; border-radius: 14px; text-align: left; cursor: pointer; transition: background-color .2s; }
.row:hover { background: var(--grey100); }
.row__ic { flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--grey100); color: var(--grey800); }
.row__ic svg { width: 21px; height: 21px; }
.row__tx { min-width: 0; }
.row__tx b { display: block; font-size: 16px; }
.row__tx small { display: block; font-size: 13px; color: var(--grey700); }
.row--danger .row__ic { background: var(--red50); color: var(--red700); }
.row--danger b { color: var(--red700); }
.algrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 18px; }
.al { display: flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 12px; border-radius: 13px; background: var(--grey100); font-size: 15px; font-weight: 700; color: var(--grey800); transition: background-color .2s, color .2s, transform .5s var(--bounce); }
.al small { font-size: 12px; font-weight: 700; color: var(--grey700); font-variant-numeric: tabular-nums; }
.al:active { transform: scale(.92); transition-duration: .1s; }
.al[aria-pressed="true"] { background: var(--red50); color: var(--red700); box-shadow: inset 0 0 0 2px var(--red500); }
.al[aria-pressed="true"] small { color: var(--red700); }
.switch { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 16px; font-weight: 600; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__ui { position: relative; flex-shrink: 0; width: 50px; height: 30px; border-radius: 999px; background: var(--grey300); transition: background-color .25s; }
.switch__ui::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-s); transition: transform .5s var(--bounce); }
.switch input:checked + .switch__ui { background: var(--blue550); }
.switch input:checked + .switch__ui::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__ui { outline: 3px solid var(--blue300); outline-offset: 3px; }
.tsteps { display: grid; gap: 10px; margin: 6px 0 18px; counter-reset: t; }
.tsteps li { position: relative; padding-left: 36px; font-size: 16px; line-height: 1.55; color: var(--grey800); counter-increment: t; }
.tsteps li::before { content: counter(t); position: absolute; left: 0; top: 0; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 9px; background: var(--grey900); color: #fff; font-size: 14px; font-weight: 800; }
.inst { display: none; }
.sheet[data-os="ios"] .inst[data-os="ios"], .sheet[data-os="android"] .inst[data-os="android"], .sheet[data-os="desktop"] .inst[data-os="desktop"] { display: block; }
.sheet[data-os="ios"] ol.inst[data-os="ios"] { display: grid; }
.code6 { margin: 4px 0 14px; padding: 22px; border-radius: var(--r-l); background: var(--grey100); text-align: center; }
.code6__digits { font-family: var(--mono); font-size: clamp(38px, 11vw, 52px); font-weight: 800; letter-spacing: .16em; font-variant-numeric: tabular-nums; }
.code6__timer { margin-top: 4px; font-size: 15px; font-weight: 700; color: var(--grey700); font-variant-numeric: tabular-nums; }
.code6.is-expired .code6__digits { color: var(--grey400); text-decoration: line-through; }

.cam { position: relative; overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 12px; border-radius: var(--r-l); background: #0d1117; }
.cam video, .cam canvas { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100% !important; height: 100% !important; object-fit: cover; }
.cam canvas.drawingBuffer { display: none; }
.cam__guide { position: absolute; z-index: 2; left: 10%; right: 10%; top: 30%; bottom: 30%; border-radius: 14px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .38), inset 0 0 0 3px rgba(255, 255, 255, .92); }
.cam__laser { position: absolute; z-index: 3; left: 13%; right: 13%; top: 50%; height: 2px; background: var(--red500); box-shadow: 0 0 10px var(--red500); animation: laser2 1.8s ease-in-out infinite; }
@keyframes laser2 { 0%, 100% { transform: translateY(-26px); } 50% { transform: translateY(26px); } }
.cam.is-hit .cam__guide { box-shadow: 0 0 0 999px rgba(0, 0, 0, .38), inset 0 0 0 4px var(--green500); }
.cam__status { min-height: 1.6em; margin-bottom: 12px; font-size: 15px; font-weight: 600; color: var(--grey700); text-align: center; }

.toast { position: fixed; left: 50%; bottom: calc(28px + var(--sab)); z-index: 500; display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px); padding: 14px 18px; border-radius: 16px; background: var(--grey900); color: #fff; font-size: 15px; font-weight: 600; box-shadow: var(--shadow-m); opacity: 0; transform: translate(-50%, 24px) scale(.9); pointer-events: none; transition: opacity .25s, transform .7s var(--bounce); }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
html[data-view="create"] .toast { bottom: calc(110px + var(--sab)); }
.toast__act { flex-shrink: 0; padding: 6px 12px; border-radius: 10px; background: #fff; color: var(--grey900); font-size: 14px; font-weight: 800; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (min-width: 720px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--memo { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .wiz { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(40px, 6vw, 96px); align-items: start; }
  .wiz__main { max-width: none; margin: 0; }
  .wiz__preview { position: sticky; top: calc(84px + var(--sat)); display: grid; gap: 12px; padding-top: clamp(28px, 5vw, 56px); }
  .wiz__preview-label { font-size: 14px; font-weight: 700; color: var(--grey600); }
  .wiz__foot-in { max-width: 1080px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; column-gap: clamp(40px, 6vw, 96px); }
  .wiz__foot-in > * { grid-column: 1; }
  .wiz__error { text-align: left; }
  .look__card { display: none; }
  .phone { width: auto; height: clamp(520px, calc(100svh - var(--nav-h) - 170px), 660px); max-width: 100%; }
  .k { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 28px; padding-top: 18px; }
  .k__col--id { position: sticky; top: calc(76px + var(--sat)); }
  .days { margin: 0; padding: 2px 0 6px; }
  .sheet { align-items: center; padding: 24px; }
  .sheet__panel { border-radius: 28px; padding-bottom: 24px; animation-name: sheetPop; }
  .sheet.is-closing .sheet__panel { animation-name: fadeOut; }
  .sheet__panel::before { display: none; }
  @keyframes sheetPop { from { opacity: 0; transform: translateY(30px) scale(.94); } }
}
@media (max-width: 1023px) {
  .stage { grid-template-columns: minmax(0, 1fr); }
  .hero__demo { padding: 8px 0 12px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fc--wide { grid-column: 1 / -1; }
  .how { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  :root { --nav-h: 56px; }
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav__in { padding: 0 12px 0 18px; }
  .brand { font-size: 17px; }
  .brand img { width: 30px; height: 30px; }
  .nav__ghost { padding: 0 10px; }
  .hero { padding-left: 10px; padding-right: 10px; }
  .stage { min-height: 0; padding: 40px 22px 26px; border-radius: 26px; }
  .hero__eyebrow { font-size: 13px; padding: 7px 12px 7px 10px; }
  .hero__title { font-size: clamp(46px, 13.4vw, 64px); }
  .hero__sub { font-size: 19px; }
  .hero__cta .pill { flex: 1 1 auto; }
  .st--d, .st--off, .st--tt { display: none; }
  .st--meal { --x: 84% !important; --y: 3.4% !important; }
  .phone { width: min(84%, 300px); }
  .bento { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .fc { min-height: 0; border-radius: 26px; }
  .fc--wide { grid-template-columns: minmax(0, 1fr); }
  .qa summary { padding: 18px; font-size: 17px; }
  .qa__a { padding: 0 18px 18px; }
  .appbar__in { padding-left: 18px; }
  .bced__grid { grid-template-columns: minmax(0, 1fr); }
  .imp__form { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   REDUCED MOTION + PRINT
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
.reduced-motion [data-reveal] { opacity: 1 !important; transform: none !important; }
@media print {
  .nav, .appbar, .bar, .wiz__foot, .toast, .sheet, .scan { display: none !important; }
}

/* a sheet coming back after the one opened from it closes */
.sheet.is-return > .sheet__panel { animation: sheetReturn .5s var(--spring) both; }
@keyframes sheetReturn { from { opacity: 0; transform: translateY(24px); } }

/* Safari before 15 has no aspect-ratio: give the boxes that depend on it a fixed shape */
@supports not (aspect-ratio: 1 / 1) {
  .cam { height: 0; padding-bottom: 75%; }
  .phone { height: 620px; }
  .idc__photo { width: 5.55em; height: 7.4em; }
  .codemock span { height: 58px; }
}

/* A failed optional app download keeps the landing page and a useful retry action. */
.app-load-error { position: fixed; z-index: 10000; bottom: calc(20px + var(--sab)); left: 20px; right: 20px; max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--grey200); border-radius: 20px; background: #fff; box-shadow: var(--shadow-m); }
.app-load-error p { flex: 1; font-size: 14px; line-height: 1.5; color: var(--grey700); }
.app-load-error button { flex-shrink: 0; }
@media (max-width: 380px) { .app-load-error { flex-direction: column; align-items: stretch; } }
