/* First Flight 마케팅 사이트
 *
 * 색·서체는 실제 Flutter 앱에서 그대로 가져왔다(1차 근거:
 * first-flight/lib/core/design_system/app_colors.dart 의 AppColors.light
 * + first-flight/design/README.md). 스크린샷 눈대중 아님.
 * 앱이 리브랜딩되면 이 :root 토큰도 같이 갱신할 것.
 *
 * 모티프는 하나 — 보딩패스(너머에서 상속). 이 앱은 승객이 아니라 승무원 쪽
 * 문서를 쓴다: 오늘의 기록 = LOG ENTRY, 면접 복기 = FLIGHT REPORT,
 * 공고 = DEPARTURES. 스탬프·국기 등 다른 은유는 섞지 않는다.
 *
 * 너머 사이트는 앱의 다크 팔레트를 골랐다. 이쪽은 라이트를 쓴다 —
 * 형제로 읽히되 한눈에 구별되게 하려는 의도적 선택이다.
 */

:root {
  color-scheme: light;

  /* app_colors.dart · AppColors.light */
  --bg: #e9eef3;          /* background (stock) */
  --surface: #ffffff;     /* surface */
  --surface-soft: #f1f4f8; /* surfaceMuted */
  --line: #c5cfda;        /* border */
  --ink: #1f2a44;         /* textPrimary · brandInk */
  --muted: #5e6b7e;       /* textSecondary */
  --faint: #5b687c;       /* textTertiary */

  /* 티켓은 테마와 무관하게 밝은 종이 — 앱의 TicketColors */
  --paper: #ffffff;
  --paper-soft: #f1f4f8;
  --paper-line: #c5cfda;
  --paper-ink: #1f2a44;
  --paper-mute: #5e6b7e;

  --gate: #e0a100;        /* 게이트 앰버 — CTA 한 곳에만 */
  --on-gate: #1f2a44;

  /* 공고 상태 — 액센트와 분리된 시맨틱 */
  --open: #207a4c;
  --closing: #b4342e;

  /* 전광판 플랩 — 앱 아이콘과 같은 값 */
  --flap: #101828;
  --seam: #070c16;
  --bone: #f0ebe4;

  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard",
    "Malgun Gothic", system-ui, sans-serif;

  --wrap: 1040px;
  --radius: 4px; /* 사이니지는 각지게 — 앱 AppSpacing.radiusSm */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.25; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: 20px;
}

/* ── 사이니지 활자(라틴 전용) ─────────────────────────────
   번들 폰트에 한글 글리프가 없다. 한국어를 이 클래스에 넣으면
   시스템 폰트로 조용히 폴백해 자간만 벌어진 채 남는다. */
.sign {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── 헤더 ─────────────────────────────────────────────── */
.site-header {
  border-bottom: 2px solid var(--ink);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.1em;
}
.brand img { width: 30px; height: 30px; border-radius: 6px; display: block; }
.site-nav { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
.site-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  padding-block: 2px;
}
.site-nav a:hover { color: var(--ink); box-shadow: inset 0 -2px 0 var(--gate); }

/* ── 히어로 ───────────────────────────────────────────── */
.hero { padding-block: 64px 56px; }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: center;
}
.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 4px 10px;
  border-radius: var(--radius);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 800;
  margin-block: 18px 16px;
}
.hero .lede { color: var(--muted); font-size: 1.05rem; max-width: 46ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }
.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
}
.btn-gate { background: var(--gate); color: var(--on-gate); border-color: var(--gate); }
.btn-ghost { background: transparent; color: var(--ink); }
.cta-note { font-size: 0.85rem; color: var(--faint); }

/* ── 전광판(히어로 그래픽) ─────────────────────────────── */
.board {
  background: var(--ink);
  border-radius: 8px;
  padding: 26px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.board-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid #38455f;
  padding-bottom: 10px;
}
.board-head .sign { color: var(--bone); font-size: 1rem; }
.board-head .mono { color: #8d99ad; }
.flaps { display: flex; gap: 8px; justify-content: center; }
.flap {
  position: relative;
  width: 62px;
  height: 84px;
  background: var(--flap);
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 3.6rem;
  line-height: 1;
  color: var(--bone);
}
/* 이음선 — 글자 위를 지나야 플랩으로 읽힌다 */
.flap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  transform: translateY(-50%);
  background: var(--seam);
}
.board-strip { height: 7px; border-radius: 2px; background: var(--gate); }
.board-rows { display: flex; flex-direction: column; gap: 9px; }
.board-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #a9b8d6;
}
.board-row b {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--bone);
  width: 30px;
}
.board-row span { flex: 1; }
.board-row i { font-style: normal; font-family: var(--display); font-weight: 800; font-size: 0.95rem; }
.board-row i.closing { color: #e77b73; }

/* ── 섹션 공통 ────────────────────────────────────────── */
.section { padding-block: 56px; border-top: 1px solid var(--line); }
.section-head { margin-bottom: 32px; }
.section-head h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 10px; max-width: 58ch; }

/* ── 기능 카드 ────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature-card {
  background: var(--surface);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-card .sign { font-size: 0.92rem; color: var(--ink); }
.feature-card h3 { font-size: 1.02rem; font-weight: 700; }
.feature-card p { color: var(--muted); font-size: 0.93rem; }

/* ── 하루 루프 ────────────────────────────────────────── */
.loop { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.loop-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.loop-step .mono { color: var(--gate); }
.loop-step h3 { font-size: 0.98rem; font-weight: 700; }
.loop-step p { font-size: 0.9rem; color: var(--muted); }

/* ── 원칙 ─────────────────────────────────────────────── */
.principles { display: grid; gap: 18px; }
.principle {
  border-left: 3px solid var(--gate);
  background: var(--surface);
  padding: 18px 22px;
  border-radius: var(--radius);
}
.principle h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.principle p { color: var(--muted); font-size: 0.93rem; }

/* ── FAQ · 지원 ───────────────────────────────────────── */
.faq-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-list details { background: var(--surface); }
.faq-list summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 0.97rem;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 0 20px 18px; color: var(--muted); font-size: 0.93rem; }

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.support-form { display: grid; gap: 16px; margin-top: 18px; max-width: 520px; }
.support-form label { display: grid; gap: 6px; font-size: 0.88rem; font-weight: 700; }
.support-form select,
.support-form input,
.support-form textarea {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--ink);
}
.support-form textarea { resize: vertical; }
.support-form button {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius);
  background: var(--gate);
  color: var(--on-gate);
  cursor: pointer;
  justify-self: start;
}
.support-form button[disabled] { opacity: 0.55; cursor: progress; }
.form-note { font-size: 0.85rem; color: var(--faint); }
#form-status { font-size: 0.9rem; font-weight: 600; min-height: 1.2em; }
#form-status.ok { color: var(--open); }
#form-status.err { color: var(--closing); }

/* ── 방침 문서 ────────────────────────────────────────── */
.policy { max-width: 72ch; }
.policy h2 { font-size: 1.15rem; font-weight: 800; margin-top: 38px; }
.policy h2:first-of-type { margin-top: 0; }
.policy p, .policy li { color: var(--muted); font-size: 0.95rem; }
.policy p { margin-top: 12px; }
.policy ul { margin-top: 12px; padding-left: 20px; }
.policy li { margin-bottom: 6px; }
.policy table { border-collapse: collapse; width: 100%; margin-top: 16px; font-size: 0.9rem; }
.policy th, .policy td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.policy th { background: var(--surface-soft); font-weight: 700; color: var(--ink); }
.policy td { color: var(--muted); }
.notice {
  border: 1px solid var(--gate);
  background: #fdf6e3;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 20px;
}
.notice p { color: var(--ink); font-size: 0.92rem; margin: 0; }

.breadcrumb { font-size: 0.85rem; color: var(--faint); margin-bottom: 14px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.page-head { padding-block: 48px 8px; }
.page-head h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; }
.page-head p { color: var(--muted); margin-top: 12px; max-width: 58ch; }

/* ── 푸터 ─────────────────────────────────────────────── */
.site-footer {
  border-top: 2px solid var(--ink);
  margin-top: 64px;
  padding-block: 28px 40px;
  font-size: 0.87rem;
  color: var(--muted);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.footer-links { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .board { max-width: 320px; }
  .site-nav { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
