/* Get By In Korea — "Seoul night & jade" palette */
:root {
  --paper: #f7f6f1;
  --sage: #edf0e8;
  --card: #ffffff;
  --line: #dfe3da;
  --ink: #14213d;
  --muted: #5a6475;
  --alert: #f0532d;
  --alert-deep: #d63e1a;
  --gold: #f6b93b;
  --gold-soft: #fdeec4;
  --jade: #12876f;
  --jade-deep: #0c6b58;
  --mint: #d6f0e7;
  --blush: #fde4dc;
  --night: #14213d;
  --night-card: #1e2f52;
  --night-line: #2c3f66;
  --radius: 18px;
  --head: "Sora", "Noto Sans JP", "Noto Sans SC", system-ui, sans-serif;
  --body: "Manrope", "Noto Sans JP", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
.lang-ja { --head: "Sora", "Noto Sans JP", sans-serif; --body: "Manrope", "Noto Sans JP", sans-serif; }
.lang-zh { --head: "Sora", "Noto Sans SC", sans-serif; --body: "Manrope", "Noto Sans SC", sans-serif; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); letter-spacing: -0.02em; line-height: 1.15; }
.lang-ja h1, .lang-ja h2, .lang-ja h3, .lang-zh h1, .lang-zh h2, .lang-zh h3 { letter-spacing: 0; line-height: 1.3; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 20; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 780px; }
.center { text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(247, 246, 241, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1240px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 18px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: "Sora", sans-serif; font-weight: 800; font-size: 18px;
  text-decoration: none; white-space: nowrap;
}
.brand-badge {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: var(--gold);
}
.main-nav { display: flex; gap: 24px; margin: 0 auto; font-size: 15px; font-weight: 500; }
.main-nav a { text-decoration: none; color: #3a4558; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--jade); }

.lang-switch {
  display: flex; gap: 2px; padding: 4px;
  background: var(--sage); border-radius: 999px; flex: none;
}
.lang-switch a, .lang-switch span {
  padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  text-decoration: none; color: #4b5568; white-space: nowrap;
}
.lang-switch a:hover { background: #fff; }
.lang-on { background: var(--ink); color: #fff !important; }

.call-pill {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  background: var(--alert); color: #fff; text-decoration: none;
  padding: 9px 16px; border-radius: 999px;
  font-family: var(--mono); font-weight: 700; font-size: 15px;
}
.call-pill:hover { background: var(--alert-deep); }

.menu-btn, .mobile-menu { display: none; }

@media (max-width: 1080px) {
  .main-nav { gap: 16px; font-size: 14px; }
}
@media (max-width: 960px) {
  .main-nav, .call-pill, .lang-switch.desktop-only { display: none; }
  .menu-btn {
    display: grid; place-items: center; margin-left: auto;
    width: 44px; height: 44px; border: 0; background: transparent;
    color: var(--ink); cursor: pointer;
  }
  .menu-btn .icon { width: 28px; height: 28px; }
  .menu-btn .icon-close, .menu-btn[aria-expanded="true"] .icon-open { display: none; }
  .menu-btn[aria-expanded="true"] .icon-close { display: block; }
  .mobile-menu { display: block; padding: 4px 20px 20px; border-top: 1px solid var(--line); }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu nav { display: flex; flex-direction: column; }
  .mobile-menu nav a { padding: 11px 0; text-decoration: none; font-size: 17px; }
  .mobile-menu nav a[aria-current] { color: var(--jade); font-weight: 700; }
  .mobile-menu .lang-switch { margin: 12px 0 14px; }
  .mobile-menu .lang-switch a, .mobile-menu .lang-switch span { flex: 1; text-align: center; padding: 8px 10px; font-size: 14px; }
  .menu-call {
    display: flex; justify-content: center; align-items: center; gap: 10px;
    padding: 14px; border-radius: 999px; background: var(--alert); color: #fff;
    text-decoration: none; font-weight: 700;
  }
}

/* ---------- Buttons & labels ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 14px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--alert); color: #fff; }
.btn-red:hover { background: var(--alert-deep); }
.btn-light { background: #fff; color: var(--ink); }
.btn-green { background: var(--jade); color: #fff; }
.btn-green:hover { background: var(--jade-deep); }

.eyebrow, .mono-label {
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; margin: 0 0 10px;
}
.eyebrow.red { color: var(--alert-deep); }
.eyebrow.green { color: var(--jade); }
.mono-label { color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(86vh, 700px);
  display: flex; align-items: center;
  color: #fff; background: #1a1424;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(12,16,32,.9) 0%, rgba(12,16,32,.6) 40%, rgba(12,16,32,0) 78%),
    url("/hero.svg") center / cover no-repeat;
}
.hero-inner { position: relative; padding-top: 72px; padding-bottom: 72px; width: 100%; }
.pill-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: #2a1d00;
  font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; margin: 0 0 22px;
}
.pill-tag .icon { width: 14px; height: 14px; }
.hero h1 {
  margin: 0 0 18px; max-width: 14ch;
  font-size: clamp(40px, 6.8vw, 72px); font-weight: 800;
}
.lang-ja .hero h1, .lang-zh .hero h1 { max-width: 12em; font-size: clamp(34px, 5.6vw, 60px); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-lede { margin: 0 0 32px; max-width: 34em; font-size: 19px; color: rgba(255,255,255,.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.cream { background: var(--sage); }
.section.dark { background: var(--night); color: #fff; }
.section h2 { margin: 0; font-size: clamp(28px, 4.2vw, 42px); font-weight: 800; }
.section-head { margin-bottom: 36px; }
.section-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; }
.section-note { margin: 0; max-width: 30em; color: var(--muted); }
.section-note a { color: var(--ink); }
.section-sub { margin: 10px 0 40px; color: var(--muted); }
.section.dark .section-sub { color: #b9c3d8; }
.section-text { color: var(--muted); max-width: 30em; }
.max-h2 { max-width: 18em; margin-bottom: 36px !important; }

.tile {
  display: grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 14px;
}
.tile-pink { background: var(--blush); color: var(--alert-deep); }
.tile-mint { background: var(--mint); color: var(--jade-deep); }
.tile-gold { background: var(--gold-soft); color: #8a5b00; }

/* Emergency numbers */
.num-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.num-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.num-card:hover { border-color: var(--jade); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(20,33,61,.08); }
.num-text { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.num-title { font-weight: 700; font-size: 17px; }
.num-desc { font-size: 15px; color: var(--muted); line-height: 1.45; }
.num { font-family: var(--mono); font-weight: 700; font-size: 24px; line-height: 1.1; color: var(--ink); }

/* Topics */
.topic-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.topic {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 28px 16px; border-radius: var(--radius);
  background: var(--night-card); border: 1px solid var(--night-line);
  color: #fff; text-decoration: none; transition: border-color .15s, transform .15s;
}
a.topic:hover { border-color: var(--gold); transform: translateY(-2px); }
.topic-icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  background: var(--gold); color: var(--ink); margin-bottom: 6px;
}
.topic-title { font-family: var(--head); font-weight: 700; font-size: 17px; line-height: 1.25; }
.topic-desc { font-size: 14px; color: #b9c3d8; line-height: 1.45; }
.topic-soon { opacity: .6; }
.soon-tag { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); }

/* Lost & found */
.lost-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
.lost-img { display: block; width: 100%; height: auto; margin: 22px 0 0; border-radius: var(--radius); border: 1px solid var(--line); }
.lost-box {
  margin: 18px 0 22px; padding: 18px 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.lost-box ul { margin: 0; padding-left: 1.2em; }
.lost-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.info-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 26px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; transition: border-color .15s;
}
.info-card:hover { border-color: var(--jade); }
.info-card h3 { margin: 14px 0 0; font-size: 19px; }
.info-card p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.info-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 10px;
  font-family: var(--mono); font-weight: 700; font-size: 14px; color: var(--jade);
}

/* Passport steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); border-top: 5px solid var(--jade); }
.step-num { font-family: var(--mono); font-weight: 700; font-size: 40px; color: var(--jade); line-height: 1; }
.steps h3 { margin: 18px 0 8px; font-size: 19px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.tip {
  display: flex; gap: 12px; align-items: center;
  margin: 28px 0 0; padding: 18px 22px; border-radius: var(--radius);
  background: var(--gold-soft);
}
.more-link { margin: 20px 0 0; }
.more-link a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--jade); text-decoration: none; }

/* Calculator */
.calc {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
  max-width: 1020px; margin: 0 auto; text-align: left;
}
.calc-input, .calc-result { padding: 32px; border-radius: 24px; }
.calc-input { background: var(--card); border: 1px solid var(--line); }
.amount-box {
  display: flex; align-items: center; gap: 10px;
  border: 2px solid var(--ink); border-radius: 14px; padding: 12px 16px; background: #fff;
}
.won { font-family: var(--mono); color: var(--muted); }
.amount-box input {
  border: 0; outline: 0; width: 100%; background: transparent;
  font-family: "Sora", sans-serif; font-weight: 800; font-size: 26px; color: var(--ink);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.chips button {
  border: 0; cursor: pointer; padding: 8px 14px; border-radius: 999px;
  background: var(--sage); font-family: var(--mono); font-size: 14px; color: var(--ink);
}
.chips button:hover { background: var(--gold-soft); }
.calc-hint { margin: 0; font-size: 14px; color: var(--muted); }
.calc-result { background: var(--jade); color: #fff; }
.calc-result .mono-label { color: rgba(255,255,255,.8); }
.calc-big { margin: 4px 0 20px; font-family: "Sora", sans-serif; font-weight: 800; font-size: clamp(28px, 4vw, 42px); line-height: 1.15; }
.calc-rows { margin: 0; }
.calc-rows div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-top: 1px solid rgba(255,255,255,.25);
}
.calc-rows dt { margin: 0; }
.calc-rows dd { margin: 0; font-family: var(--mono); font-weight: 700; text-align: right; }
.calc-rows dd.plain { font-family: var(--body); }
.calc-note { margin: 14px 0 0; font-size: 13px; color: rgba(255,255,255,.85); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-family: var(--head); font-weight: 600; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-toggle { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--mint); }
.faq-toggle::before, .faq-toggle::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px;
  background: var(--jade-deep); transform: translate(-50%, -50%);
}
.faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .faq-toggle::after { display: none; }
.faq details p { margin: -8px 0 22px; color: var(--muted); }

/* ---------- Article pages ---------- */
.article-hero { background: var(--night); color: #fff; padding: 48px 0 40px; }
.crumbs { margin: 0 0 12px; font-family: var(--mono); font-size: 13px; color: #b9c3d8; }
.crumbs a { color: #b9c3d8; }
.article-hero h1 { margin: 0 0 12px; font-size: clamp(30px, 4.8vw, 46px); font-weight: 800; }
.article-hero .checked { color: var(--gold); }
.checked { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.article { padding-top: 40px; padding-bottom: 72px; }
.article h2 { margin: 44px 0 10px; font-size: 27px; font-weight: 800; }
.article h3 { margin: 26px 0 6px; font-size: 20px; }
.article a { color: var(--jade-deep); text-underline-offset: 3px; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin: 6px 0; }
.plain-page h1 { margin: 0 0 16px; font-size: clamp(30px, 4.8vw, 44px); font-weight: 800; }

.now {
  margin: 8px 0; padding: 22px 24px;
  background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--alert);
  border-radius: var(--radius);
}
.now h2 { margin: 0 0 8px; font-size: 21px; color: var(--alert-deep); }
.now ol { margin: 0; }

.table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 16px; background: #fff; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { background: var(--sage); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
td a { white-space: nowrap; font-family: var(--mono); }

.say { margin: 14px 0; padding: 18px 20px; background: var(--gold-soft); border-radius: var(--radius); }
.say-label { margin: 0 0 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #6b4b00; }
.say-ko { margin: 0; font-size: 23px; font-weight: 700; line-height: 1.45; font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
.say-en { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

.note { margin: 18px 0; padding: 16px 18px; background: var(--sage); border-radius: 14px; color: var(--muted); font-size: 15px; }

.still-stuck {
  display: flex; gap: 18px; align-items: flex-start;
  margin-top: 48px; padding: 24px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.still-stuck h2 { margin: 0 0 6px; font-size: 21px; }
.still-stuck p { margin: 0; }

.article .calc { grid-template-columns: 1fr; margin: 20px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #cfd6e4; padding: 64px 20px 32px; }
.footer-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 36px; }
.footer-brand { margin: 0 0 10px; font-family: "Sora", sans-serif; font-weight: 800; font-size: 22px; color: #fff; }
.footer-text { margin: 0; max-width: 24em; color: #b9c3d8; }
.footer-head { margin: 0 0 14px; font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1240px; margin: 48px auto 0; padding-top: 22px; border-top: 1px solid var(--night-line);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: #9aa6bf;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #cfd6e4; text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .topic-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .num-grid { grid-template-columns: 1fr 1fr; }
  .lost-grid, .faq-grid, .calc { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .num-grid, .lost-cards, .steps { grid-template-columns: 1fr; }
  .topic-grid { grid-template-columns: 1fr 1fr; }
  .hero { min-height: auto; }
  .hero-bg {
    background:
      linear-gradient(180deg, rgba(12,16,32,.55) 0%, rgba(12,16,32,.85) 70%),
      url("/hero.svg") 70% center / cover no-repeat;
  }
  .hero-inner { padding-top: 56px; padding-bottom: 64px; }
  .hero-lede { font-size: 17px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; width: 100%; padding: 14px 20px; }
  .calc-input, .calc-result { padding: 24px; }
}
