:root {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Noto Sans KR", Arial, sans-serif;
  color: #1d1d1f;
  background: #f5f5f7;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  --blue: #0071e3;
  --secondary: #6e6e73;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
.icon { flex-shrink: 0; vertical-align: middle; stroke-width: 1.6; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 20px; top: -100px; z-index: 5; padding: 14px 20px; background: #1d1d1f; color: white; border-radius: 10px; }
.skip-link:focus { top: 10px; }
.navigation { background: #fafafccc; border-bottom: 1px solid #0000000a; }
.navigation nav { max-width: 1040px; padding: 0 28px; height: 60px; margin: auto; display: flex; align-items: center; justify-content: space-between; position: relative; }
.wordmark { display: flex; align-items: center; gap: 7px; font-size: 20px; font-weight: 650; letter-spacing: -.8px; }
.wordmark .icon { width: 18px; height: 18px; stroke-width: 2; }
.nav-domain { position: absolute; left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--secondary); letter-spacing: -.1px; }
.signature { font-size: 12px; color: var(--secondary); }
main { flex: 1; width: 100%; padding: 0 24px 64px; }
.hero { text-align: center; padding: 76px 0 38px; }
.eyebrow { font-size: 21px; font-weight: 600; letter-spacing: -.6px; margin: 0 0 14px; }
h1 { font-size: clamp(34px, 5.5vw, 60px); line-height: 1.18; letter-spacing: -3px; font-weight: 700; margin: 0; word-break: keep-all; }
.hero-copy { font-size: 18px; line-height: 1.65; letter-spacing: -.5px; color: var(--secondary); margin: 23px 0 0; word-break: keep-all; }
.workspace { width: min(100%, 600px); margin: auto; }
.composer { padding: 32px; background: #fff; border-radius: 24px; box-shadow: 0 4px 24px #00000004, 0 1px 2px #00000003; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 12px; letter-spacing: -.2px; }
.input-wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 17px; border: 1px solid #d2d2d7; border-radius: 12px; background: white; transition: border-color .16s, box-shadow .16s; }
.input-wrap > .icon { width: 20px; height: 20px; color: #86868b; }
.input-wrap:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px #0071e329; }
.input-wrap:has([aria-invalid=true]) { border-color: #b3261e; }
input[type=url] { width: 100%; min-width: 0; height: 58px; padding: 0; color: #1d1d1f; background: transparent; font-size: 17px; outline: none; border: 0; letter-spacing: -.2px; }
input::placeholder { color: #86868b; }
.clear-button { display: grid; place-items: center; border: 0; border-radius: 50%; background: #e8e8ed; color: #6e6e73; width: 21px; height: 21px; flex-shrink: 0; padding: 3px; }
.clear-button .icon { width: 13px; height: 13px; stroke-width: 2; }
.mode-list { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 3px; padding: 4px; border: 0; border-radius: 11px; background: #f0f0f3; margin: 23px 0 0; min-width: 0; }
.mode-row { display: flex; align-items: center; justify-content: center; position: relative; cursor: pointer; min-height: 37px; border-radius: 8px; color: #515154; font-size: 13px; font-weight: 500; letter-spacing: -.2px; transition: background .16s, box-shadow .16s; }
.mode-row input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mode-row:has(input:checked) { background: #fff; color: #1d1d1f; box-shadow: 0 1px 4px #00000012, 0 0 0 .5px #00000004; }
.mode-row:has(input:focus-visible) { outline: 3px solid #0071e380; outline-offset: 2px; }
.mode-row:hover { color: #1d1d1f; }
.mode-description { text-align: center; font-size: 12px; color: var(--secondary); line-height: 1.6; margin: 12px 0 25px; min-height: 20px; word-break: keep-all; }
.primary-button { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; padding: 12px 20px; background: var(--blue); color: #fff; border: 0; border-radius: 999px; font-size: 15px; font-weight: 500; letter-spacing: -.2px; transition: background .16s, transform .16s; }
.primary-button:hover { background: #0077ed; }
.primary-button:active { transform: scale(.99); background: #006edb; }
.primary-button:disabled { opacity: .65; }
.primary-button > .icon { width: 17px; height: 17px; }
.spinner { display: none; width: 16px; height: 16px; border: 2px solid #ffffff66; border-top-color: white; border-radius: 50%; animation: spin .75s linear infinite; }
.primary-button[aria-busy=true] .spinner { display: block; }
.primary-button[aria-busy=true] > .icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
#form-feedback:empty { display: none; }
.message { border-radius: 10px; padding: 12px 14px; font-size: 13px; line-height: 1.6; margin: 0 0 18px; }
.error { background: #fff2f1; color: #a52620; }
.workspace-note { margin: 23px 0 0; text-align: center; font-size: 12px; color: #86868b; letter-spacing: -.2px; }
.results { background: #fff; padding: 32px; margin-top: 16px; border-radius: 24px; scroll-margin-top: 24px; box-shadow: 0 4px 24px #00000004, 0 1px 2px #00000003; animation: arrive .3s ease-out; }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.result-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 30px; }
.success-icon { color: #248a3d; display: grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid currentColor; border-radius: 50%; }
.success-icon .icon { width: 14px; height: 14px; stroke-width: 2; }
h2 { font-size: 19px; font-weight: 600; letter-spacing: -.6px; margin: 0; line-height: 1.5; }
.result-label { display: block; color: var(--secondary); font-size: 12px; }
.short-url { display: block; font-size: clamp(20px, 3.5vw, 28px); line-height: 1.5; letter-spacing: -.9px; font-weight: 600; margin: 9px 0 22px; overflow-wrap: anywhere; }
.short-code { display: inline-block; }
.action-row { display: flex; align-items: center; gap: 22px; }
.copy-button, .download-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 9px 17px; border: 0; border-radius: 999px; font-size: 12px; background: #f0f0f3; color: #1d1d1f; white-space: nowrap; transition: background .16s; }
.copy-button:hover, .download-button:hover { background: #e6e6eb; }
.copy-button .icon, .download-button .icon, .text-link .icon { width: 15px; height: 15px; }
.text-link { display: inline-flex; align-items: center; gap: 5px; color: var(--blue); font-size: 12px; min-height: 38px; }
.text-link:hover { text-decoration: underline; }
.qr-card { display: flex; align-items: center; gap: 30px; padding-top: 28px; }
.short-result + .qr-card { margin-top: 28px; border-top: 1px solid #ededf0; }
.result-heading + .qr-card { padding-top: 0; }
.qr-frame { width: 150px; flex-shrink: 0; border: 1px solid #ebebef; border-radius: 16px; padding: 8px; background: white; }
.qr-frame img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.qr-info { min-width: 0; }
h3 { font-size: 16px; font-weight: 600; letter-spacing: -.4px; margin: 0; line-height: 1.6; word-break: keep-all; }
.qr-info p { font-size: 12px; line-height: 1.7; color: var(--secondary); margin: 6px 0 16px; word-break: keep-all; }
.original-result { margin-top: 28px; padding-top: 23px; border-top: 1px solid #ededf0; }
.original-row { display: flex; align-items: center; gap: 10px; margin-top: 5px; }
.original-row > a { flex: 1; min-width: 0; font-size: 12px; line-height: 1.7; color: var(--secondary); overflow-wrap: anywhere; }
.original-row > a:hover { text-decoration: underline; }
.icon-button { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border: 0; border-radius: 50%; color: var(--secondary); background: transparent; }
.icon-button:hover { background: #f5f5f7; }
.icon-button .icon { width: 16px; height: 16px; }
footer { max-width: 984px; width: calc(100% - 56px); margin: 0 auto; display: flex; justify-content: space-between; gap: 15px; padding: 20px 0 25px; border-top: 1px solid #d2d2d75c; font-size: 11px; color: #86868b; letter-spacing: -.1px; }
.toast { position: fixed; bottom: 28px; left: 50%; z-index: 10; width: max-content; max-width: calc(100% - 32px); padding: 13px 21px; background: #1d1d1ff5; color: #fff; border: 1px solid #ffffff1a; box-shadow: 0 8px 30px #00000015; border-radius: 999px; font-size: 13px; line-height: 1.5; opacity: 0; transform: translate(-50%, 10px); pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
:focus-visible { outline: 3px solid #0071e380; outline-offset: 4px; }
#results-title:focus { outline: none; }
@media (min-width: 1400px) { .hero { padding-top: 100px; padding-bottom: 45px; } }
@media (max-width: 600px) {
  .navigation nav { height: 54px; padding: 0 22px; }
  .wordmark { font-size: 19px; }
  .nav-domain { display: none; }
  main { padding: 0 20px 50px; }
  .hero { padding: 58px 0 30px; }
  .eyebrow { font-size: 18px; margin-bottom: 15px; }
  h1 { font-size: clamp(31px, 7.8vw, 44px); letter-spacing: -1.9px; }
  .hero-copy { font-size: 15px; line-height: 1.75; letter-spacing: -.4px; margin-top: 19px; }
  .composer, .results { padding: 24px; border-radius: 22px; }
  .input-wrap { padding: 0 13px; gap: 9px; min-height: 56px; }
  input[type=url] { font-size: 16px; height: 54px; }
  .mode-list { margin-top: 21px; }
  .mode-row { font-size: 12px; min-height: 36px; }
  .mode-description { font-size: 11px; margin-bottom: 22px; }
  .qr-card { gap: 18px; }
  .qr-frame { width: 115px; border-radius: 13px; }
  h3 { font-size: 14px; }
  .qr-info p { font-size: 11px; }
  .download-button { padding: 9px 12px; font-size: 11px; }
  .short-url { font-size: 22px; letter-spacing: -.6px; }
  footer { width: calc(100% - 44px); font-size: 10px; }
}
@media (max-width: 370px) {
  main { padding-inline: 16px; }
  .composer, .results { padding: 20px; }
  .hero-copy { font-size: 14px; }
  .qr-card { flex-direction: column; align-items: center; text-align: center; gap: 17px; }
  .qr-frame { width: 170px; }
  .short-url { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
