/**
 * taxi-shortcuts-customer.html · taxi-shortcuts-driver.html
 * OMNI-NEXUS KCTA TOUR 배포용 — 고객/기사 톤 분리, 동일 구조
 */
:root {
  --td-font: 'Pretendard', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --td-radius: 1.25rem;
  --td-radius-sm: 0.875rem;
  --td-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --td-shadow-hover: 0 12px 40px rgba(15, 23, 42, 0.1);
}

body.deploy-customer {
  --td-accent: #004e7c;
  --td-accent-mid: #0a6d8f;
  --td-accent-soft: rgba(0, 78, 124, 0.08);
  --td-accent-glow: rgba(0, 78, 124, 0.12);
  --td-hero-from: #f0f9ff;
  --td-hero-to: #e0f2fe;
  --td-badge-bg: linear-gradient(135deg, #004e7c 0%, #0a6d8f 100%);
}

body.deploy-driver {
  --td-accent: #b45309;
  --td-accent-mid: #c2410c;
  --td-accent-soft: rgba(180, 83, 9, 0.1);
  --td-accent-glow: rgba(180, 83, 9, 0.15);
  --td-hero-from: #fffbeb;
  --td-hero-to: #fef3c7;
  --td-badge-bg: linear-gradient(135deg, #b45309 0%, #9a3412 100%);
}

* {
  box-sizing: border-box;
}

body.deploy-customer,
body.deploy-driver {
  margin: 0;
  font-family: var(--td-font);
  color: #0f172a;
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.deploy-customer {
  background: linear-gradient(165deg, #f8fafc 0%, #e2e8f0 40%, #f1f5f9 100%);
}

body.deploy-driver {
  background: linear-gradient(165deg, #fafaf9 0%, #f5f5f4 45%, #fef3c7 100%);
}

.vhide {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.td-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.td-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: -0.03em;
  color: var(--td-accent);
}

.td-brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: var(--td-badge-bg);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1rem;
}

.td-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.td-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #334155;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  min-height: 44px;
  touch-action: manipulation;
  transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.td-nav a:hover,
.td-nav a:focus-visible {
  border-color: var(--td-accent);
  color: var(--td-accent);
  box-shadow: 0 0 0 3px var(--td-accent-soft);
  outline: none;
}

.td-nav a .td-nav-ico {
  font-size: 1.125rem;
  line-height: 1;
}

.td-shell {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3.5rem;
}

.td-badge {
  display: table;
  margin: 0 auto 1rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--td-badge-bg);
  box-shadow: 0 4px 14px var(--td-accent-glow);
}

.td-h1 {
  font-size: clamp(1.5rem, 5vw, 1.875rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.2;
  text-align: center;
  margin: 0 0 0.75rem;
  color: #0f172a;
}

.td-lead {
  font-size: 0.9375rem;
  color: #475569;
  margin: 0 0 1.25rem;
  text-align: center;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.td-url-card {
  background: linear-gradient(135deg, var(--td-hero-from) 0%, var(--td-hero-to) 100%);
  border: 1px solid rgba(0, 78, 124, 0.12);
  border-radius: var(--td-radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  text-align: center;
  box-shadow: var(--td-shadow);
}

body.deploy-driver .td-url-card {
  border-color: rgba(180, 83, 9, 0.2);
}

.td-url-card code {
  display: block;
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: clamp(0.75rem, 2.8vw, 0.875rem);
  font-weight: 700;
  color: var(--td-accent);
  word-break: break-all;
  line-height: 1.45;
}

.td-url-meta {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: #64748b;
  font-weight: 600;
}

.td-notice {
  border-radius: var(--td-radius-sm);
  padding: 1rem 1rem 1rem 1.125rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #78350f;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #d97706;
  box-shadow: var(--td-shadow);
}

.td-notice strong {
  color: #92400e;
}

.td-device-label {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  text-align: center;
  margin-bottom: 0.5rem;
}

.td-device-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.td-device-pick button {
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 4.25rem;
  min-height: 3.75rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--td-radius-sm);
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.td-device-pick button:hover {
  border-color: #cbd5e1;
}

.td-device-pick button[aria-pressed='true'] {
  background: var(--td-accent);
  border-color: var(--td-accent);
  color: #fff;
  box-shadow: 0 4px 16px var(--td-accent-glow);
}

.td-device-pick button .td-d-ico {
  font-size: 1.375rem;
  line-height: 1;
}

.td-device-pick button .td-d-txt {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.td-help-mob {
  border-radius: var(--td-radius-sm);
  padding: 0.875rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  color: #57534e;
  background: #fff;
  border: 1px solid #e7e5e4;
  box-shadow: var(--td-shadow);
}

body.deploy-customer .td-help-mob {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #475569;
}

.td-peer {
  border-radius: var(--td-radius-sm);
  padding: 0.875rem 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: #64748b;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: var(--td-shadow);
}

.td-peer a {
  color: var(--td-accent);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.td-peer a:hover {
  border-bottom-color: var(--td-accent);
}

.td-section-title {
  font-size: clamp(1.125rem, 4vw, 1.375rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--td-radius-sm);
  text-align: center;
  color: #fff;
  background: var(--td-badge-bg);
  box-shadow: 0 6px 20px var(--td-accent-glow);
}

.td-section-intro {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0 0 1rem;
  text-align: center;
}

.td-role-block {
  margin-bottom: 2rem;
  scroll-margin-top: 1rem;
}

.td-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--td-radius);
  padding: 1.125rem 1rem;
  margin-bottom: 0.875rem;
  box-shadow: var(--td-shadow);
  transition: box-shadow 0.25s;
}

.td-card:hover {
  box-shadow: var(--td-shadow-hover);
}

.td-card-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.td-card-head .td-ico {
  font-size: 1.75rem;
  line-height: 1;
}

.td-card-head .td-card-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.02em;
}

.td-dl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (min-width: 520px) {
  .td-dl-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.td-dl-cell {
  background: #f8fafc;
  border-radius: var(--td-radius-sm);
  padding: 0.5rem;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4rem;
  transition: background 0.2s, border-color 0.2s;
}

.td-dl-cell:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.td-dl-cell a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  min-height: 3rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.625rem;
  font-size: 1.5rem;
  line-height: 1;
  text-decoration: none;
  touch-action: manipulation;
  transition: transform 0.15s, filter 0.2s;
}

.td-dl-cell a:hover {
  transform: scale(1.06);
}

.td-dl-cell a:active {
  transform: scale(0.98);
}

a.td-dl-win {
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  box-shadow: 0 2px 0 #0c4a6e, 0 4px 12px rgba(3, 105, 161, 0.35);
}

a.td-dl-mac {
  background: linear-gradient(180deg, #7c3aed 0%, #5b21b6 100%);
  color: #fff;
  box-shadow: 0 2px 0 #4c1d95, 0 4px 12px rgba(91, 33, 182, 0.35);
}

a.td-dl-any {
  background: linear-gradient(180deg, #0d9488 0%, #0f766e 100%);
  color: #fff;
  box-shadow: 0 2px 0 #115e59, 0 4px 12px rgba(15, 118, 110, 0.35);
}

a.td-go-mob {
  background: #ecfdf5;
  color: #047857;
  border: 2px solid #34d399;
  font-size: 1.375rem;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

.td-dl-plus {
  font-size: 0.625rem !important;
  opacity: 0.95;
  margin-left: 1px;
  vertical-align: super;
}

.dl-target[hidden] {
  display: none !important;
}

.td-foot {
  font-size: 0.8125rem;
  color: #94a3b8;
  margin-top: 0.75rem;
  line-height: 1.5;
  text-align: center;
}

.td-foot a {
  color: var(--td-accent);
  font-weight: 700;
  text-decoration: none;
}

.td-foot a:hover {
  text-decoration: underline;
}

.td-foot code {
  font-size: 0.75em;
  background: #f1f5f9;
  padding: 0.15rem 0.35rem;
  border-radius: 0.25rem;
}
