/* ============================================================
   OWN STREET — styles
   Lovable 디자인(own-street-design)의 값을 그대로 옮긴 스타일
   Street-brand neo-brutalist: near-black ink, warm off-white paper,
   one vivid signal-orange accent. Thick borders, hard offset shadows.
   ============================================================ */

:root {
  --background: #F6F3ED;
  --foreground: #13161B;
  --card: #FCFAF6;
  --secondary: #EBE7E0;
  --muted-foreground: #4F5661;
  --accent: #F85003;
  --accent-foreground: #FDFCF8;
  --destructive: #DB0003;

  --font-display: "Anton", "Pretendard", system-ui, sans-serif;
  --font-sans: "Pretendard", "Archivo", system-ui, sans-serif;
  color-scheme: light;
}
@supports (color: oklch(0 0 0)) {
  :root {
    --background: oklch(0.965 0.008 85);
    --foreground: oklch(0.2 0.01 260);
    --card: oklch(0.985 0.005 85);
    --secondary: oklch(0.93 0.01 85);
    --muted-foreground: oklch(0.45 0.02 260);
    --accent: oklch(0.66 0.215 38);
    --accent-foreground: oklch(0.99 0.005 85);
    --destructive: oklch(0.55 0.24 27);
  }
}

*, *::before, *::after { box-sizing: border-box; border-color: var(--foreground); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}
p, h1, h2, ul { margin: 0; }
button, input { font: inherit; color: inherit; }
img, svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.font-display { font-family: var(--font-display); letter-spacing: 0.01em; font-weight: 400; }
.muted { color: var(--muted-foreground); }
.small { font-size: 14px; }
.strong { font-weight: 600; }

/* ---------- HERO / LOGIN ---------- */
.hero { border-bottom: 2px solid var(--foreground); }

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px;
}
.topbar-brand { font-size: 20px; line-height: 28px; letter-spacing: 0.025em; white-space: nowrap; }
.topbar-tag {
  font-size: 12px; line-height: 16px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted-foreground); white-space: nowrap;
}

.user-chip {
  display: inline-flex; align-items: center; gap: 8px; min-width: 0;
  border: 2px solid var(--foreground);
  background: var(--accent);
  padding: 6px 12px;
  box-shadow: 3px 3px 0 0 var(--foreground);
}
.chip-avatar {
  flex: none; width: 24px; height: 24px;
  display: grid; place-items: center; overflow: hidden;
  background: var(--accent-foreground); color: var(--accent);
  font-size: 12px;
}
.chip-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chip-name {
  font-size: 14px; line-height: 20px; font-weight: 600; color: var(--foreground);
  min-width: 0; max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chip-logout {
  margin-left: 4px; padding: 2px 0; border: 0; background: none; cursor: pointer;
  font-size: 12px; line-height: 16px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--accent-foreground);
  text-decoration: underline; text-underline-offset: 3px;
}

.hero-body { padding: 40px 16px 48px; }
.hero-slogan {
  font-size: 14px; line-height: 20px; text-transform: uppercase; letter-spacing: 0.3em;
  color: var(--accent);
}
.hero-title { margin-top: 12px; font-size: 60px; line-height: 0.9; }
.hero-lead { margin-top: 24px; max-width: 448px; font-size: 16px; line-height: 1.625; }
.hero-action { margin-top: 32px; }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  border: 2px solid var(--foreground);
  padding: 12px 24px;
  box-shadow: 4px 4px 0 0 var(--foreground);
  cursor: pointer;
  transition: transform .06s ease, box-shadow .06s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translate(4px, 4px); box-shadow: none; }
.btn-paper { background: var(--background); color: var(--foreground); }
.btn-paper:hover { background: var(--secondary); }
.btn-ink { background: var(--foreground); color: var(--background); }
.btn-label { font-size: 14px; line-height: 20px; text-transform: uppercase; letter-spacing: 0.05em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

.badge-accent {
  display: inline-flex; align-items: center;
  border: 2px solid var(--foreground);
  background: var(--accent);
  padding: 12px 24px;
  box-shadow: 4px 4px 0 0 var(--foreground);
  font-size: 14px; line-height: 20px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--accent-foreground);
  text-decoration: none;
}
.login-as { margin-top: 16px; font-size: 14px; color: var(--muted-foreground); overflow-wrap: anywhere; }
.login-as span { color: var(--foreground); font-weight: 600; }

.notice-box {
  max-width: 448px;
  border: 2px solid var(--foreground);
  background: var(--card);
  padding: 16px;
  box-shadow: 4px 4px 0 0 var(--foreground);
  display: grid; gap: 6px;
}
.auth-msg { margin-top: 16px; font-size: 14px; font-weight: 600; }

@media (min-width: 640px) {
  .topbar { padding: 12px 32px; }
  .hero-body { padding: 80px 32px; }
  .hero-title { font-size: 96px; }
}

/* ---------- Sections ---------- */
.section { border-bottom: 2px solid var(--foreground); padding: 56px 16px; }
@media (min-width: 640px) { .section { padding: 80px 32px; } }

.section-label { display: flex; align-items: baseline; gap: 12px; }
.section-num { font-size: 14px; line-height: 20px; color: var(--accent); }
.section-title { font-size: 24px; line-height: 32px; text-transform: uppercase; letter-spacing: 0.05em; }
@media (min-width: 640px) { .section-title { font-size: 30px; line-height: 36px; } }
.section-desc { margin-top: 12px; max-width: 448px; font-size: 14px; line-height: 1.625; color: var(--muted-foreground); }

/* ---------- Form ---------- */
.form { margin-top: 32px; max-width: 448px; display: grid; gap: 20px; }
.gate { font-size: 14px; line-height: 1.6; color: var(--muted-foreground); border-left: 4px solid var(--accent); padding-left: 10px; }
.gate strong { color: var(--foreground); }

.field { display: block; }
.field-label { font-size: 12px; line-height: 16px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-foreground); }
.own-input {
  display: block; width: 100%; margin-top: 6px;
  border: 2px solid var(--foreground);
  border-radius: 0;
  background: var(--card);
  color: var(--foreground);
  padding: 12px 14.4px;
  font-size: 16px;
  outline: none;
  -webkit-appearance: none; appearance: none;
}
.own-input:focus { box-shadow: 3px 3px 0 0 var(--accent); border-color: var(--foreground); }
.own-input::placeholder { color: var(--muted-foreground); }
.err { display: block; margin-top: 4px; font-size: 14px; color: var(--destructive); }

.consent { display: grid; gap: 6px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px; font-weight: 600; line-height: 1.4; position: relative; }
.check input { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: 0; opacity: 0; }
.check .box {
  flex: none; width: 24px; height: 24px;
  border: 2px solid var(--foreground);
  background: var(--card);
  display: grid; place-items: center;
}
.check input:checked + .box { background: var(--accent); }
.check input:checked + .box::after {
  content: ""; width: 7px; height: 12px;
  border: solid var(--accent-foreground); border-width: 0 3px 3px 0;
  transform: translateY(-1px) rotate(45deg);
}
.check input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent-info { margin-left: 34px; font-size: 13px; line-height: 1.6; color: var(--muted-foreground); }
.link {
  margin-top: 2px; padding: 0; border: 0; background: none; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--foreground);
  text-decoration: underline; text-underline-offset: 3px;
}

.btn-request {
  margin-top: 8px; width: 100%;
  border: 2px solid var(--foreground);
  background: var(--accent);
  color: var(--accent-foreground);
  padding: 16px 24px;
  box-shadow: 4px 4px 0 0 var(--foreground);
  font-size: 18px; line-height: 28px; text-transform: uppercase; letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform .06s ease, box-shadow .06s ease;
}
.btn-request:active:not(:disabled) { transform: translate(4px, 4px); box-shadow: none; }
.btn-request:disabled { opacity: .6; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .btn, .btn-request, .acc-sign { transition: none !important; } }

/* ---------- Price ---------- */
.price-box { padding: 2px 0; }
.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-name { font-size: 12px; line-height: 16px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-foreground); }
.price-amount { font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 700; letter-spacing: 0; color: var(--foreground); white-space: nowrap; }
.price-desc { margin-top: 2px; font-size: 13px; line-height: 1.6; color: var(--muted-foreground); }

/* ---------- Accordion ---------- */
.accordion {
  margin-top: 32px; max-width: 672px;
  border-top: 2px solid var(--foreground);
  border-bottom: 2px solid var(--foreground);
}
.accordion details + details { border-top: 2px solid var(--foreground); }
summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 4px; cursor: pointer; list-style: none;
}
summary::-webkit-details-marker { display: none; }
.acc-title { font-size: 18px; line-height: 28px; text-transform: uppercase; letter-spacing: 0.05em; }
.acc-sign { font-size: 20px; line-height: 1; transition: transform .15s ease; }
details[open] .acc-sign { transform: rotate(45deg); }
.acc-body { padding: 0 4px 24px; }

.size-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.size-chips span { border: 2px solid var(--foreground); padding: 8px 16px; font-family: var(--font-display); font-size: 18px; line-height: 28px; letter-spacing: 0.01em; }
.table-scroll { margin-top: 20px; overflow-x: auto; }
.size-table { width: 100%; border-collapse: collapse; border: 2px solid var(--foreground); font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums; }
.size-table caption { caption-side: top; text-align: left; font-size: 14px; font-weight: 600; padding-bottom: 8px; }
.size-table th, .size-table td { padding: 8px 12px; text-align: left; white-space: nowrap; }
.size-table th + th, .size-table td, .size-table tbody th + td { border-left: 2px solid var(--foreground); }
.size-table thead tr { border-bottom: 2px solid var(--foreground); background: var(--secondary); }
.size-table thead th { font-weight: 700; }
.size-table tbody tr + tr { border-top: 2px solid var(--foreground); }
.size-table tbody th { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.01em; }
@media (max-width: 479px) { .size-table th, .size-table td { padding: 8px 7px; } }
.acc-note { margin-top: 12px; font-size: 12px; line-height: 1.6; color: var(--muted-foreground); }

.bullets { list-style: none; padding: 0; display: grid; gap: 8px; font-size: 14px; line-height: 1.625; }
.bullets li::before { content: "• "; }

/* ---------- Footer ---------- */
.footer { padding: 48px 16px; }
@media (min-width: 640px) { .footer { padding: 48px 32px; } }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; line-height: 20px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-links a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.footer-links a:hover { color: var(--accent); }
.footer-links button { padding: 0; border: 0; background: none; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; min-height: 32px; }
.footer-links button:hover { color: var(--accent); }
.footer-copy {
  margin-top: 24px; border-top: 2px solid var(--foreground); padding-top: 16px;
  font-size: 12px; line-height: 16px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-foreground);
}

/* ---------- Modals ---------- */
.modal {
  width: calc(100% - 32px); max-width: 384px;
  max-height: calc(100dvh - 32px); overflow: auto;
  border: 2px solid var(--foreground);
  border-radius: 0;
  background: var(--background);
  color: var(--foreground);
  padding: 32px;
  box-shadow: 4px 4px 0 0 var(--foreground);
}
.modal-accent { box-shadow: 4px 4px 0 0 var(--accent); }
.modal-doc { max-width: 480px; }
.modal::backdrop { background: rgba(19, 22, 27, .4); }

.modal-kicker { display: flex; align-items: center; gap: 8px; color: var(--accent); }
.modal-kicker .dot { width: 12px; height: 12px; background: var(--accent); }
.modal-kicker .font-display { font-size: 12px; line-height: 16px; text-transform: uppercase; letter-spacing: 0.1em; }
.modal-kicker-error { color: var(--destructive); }
.modal-kicker-error .dot { background: var(--destructive); }

.modal-title { margin-top: 16px; font-size: 30px; line-height: 1.25; }
.modal-doc .modal-title { margin-top: 0; }
.modal-text { margin-top: 12px; font-size: 16px; line-height: 1.6; }
.modal-sub { margin-top: 16px; font-size: 14px; color: var(--muted-foreground); }
.modal .bullets { margin-top: 12px; }
.receipt { font-size: 36px; line-height: 40px; letter-spacing: 0.05em; user-select: all; }

.modal-actions { margin-top: 24px; display: grid; gap: 10px; }
.btn-modal {
  width: 100%;
  border: 2px solid var(--foreground);
  padding: 12px 24px;
  font-size: 14px; line-height: 20px; text-transform: uppercase; letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform .06s ease;
}
.btn-modal:active { transform: translate(4px, 4px); }
.btn-modal-ink { background: var(--foreground); color: var(--background); }
.btn-modal-line { background: var(--background); color: var(--foreground); }
.pay-box { margin-top: 20px; border-top: 2px solid var(--foreground); padding-top: 16px; display: grid; gap: 10px; justify-items: center; text-align: center; }
.pay-head { width: 100%; display: flex; align-items: baseline; justify-content: space-between; }
.pay-head .modal-sub { margin-top: 0; }
.pay-amount { font-size: 26px; line-height: 32px; letter-spacing: 0.02em; color: var(--accent); }
.pay-guide { width: 100%; text-align: left; font-size: 14px; line-height: 1.6; }
.pay-guide strong { font-weight: 700; }
.btn-kakaopay {
  width: 100%;
  display: block;
  border: 2px solid var(--foreground);
  background: #FEE500;
  color: #191600;
  padding: 12px 24px;
  box-shadow: 4px 4px 0 0 var(--foreground);
  font-size: 16px; font-weight: 700; line-height: 22px;
  text-decoration: none;
  transition: transform .06s ease, box-shadow .06s ease;
}
.btn-kakaopay:active { transform: translate(4px, 4px); box-shadow: none; }
.pay-qr { margin-top: 6px; width: 148px; height: 148px; border: 2px solid var(--foreground); background: #fff; padding: 4px; }
.pay-qr-note { font-size: 12px; color: var(--muted-foreground); }
.copy-msg { margin-top: 10px; font-size: 13px; color: var(--muted-foreground); }
.copy-msg:empty { display: none; }
