/* TRUMAP — shared tokens, reset, header, footer and buttons (all pages) */

:root {
  --bg: #ffffff;
  --ink: #0b0d12;
  --ink-2: #3b404c;
  --muted: #687080;
  --surface: #f2f4f7;
  --surface-2: #e4e8ee;
  --accent: #2859fa;          /* the deep end of the app icon's gradient */
  --accent-press: #1d48e6;
  --night: #0b0d12;
  --on-dark: #ffffff;
  --on-dark-2: rgba(255, 255, 255, .74);

  --gutter: clamp(20px, 2.6vw, 40px);
  --maxw: 1440px;
  --header-h: 64px;
  --radius: 28px;

  --fs-small: 14px;
  --fs-body: clamp(16px, 1.2vw, 18px);
  --fs-statement: clamp(20px, 1.9vw, 30px);
  --fs-display: clamp(36px, 5.6vw, 88px);
  --fs-poster: clamp(56px, 10.4vw, 168px);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui,
    "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

@media (max-width: 719px) {
  :root { --header-h: 56px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff;
  font-size: var(--fs-small); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); }
.bar { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: block; flex: none; }
.brand img { height: 26px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 15px; font-weight: 600; color: var(--ink-2); text-decoration: none;
  transition: color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { font-weight: 700; }

@media (max-width: 719px) {
  .bar { gap: 14px; }
  .brand img { height: 22px; }
  .nav { gap: 16px; }
  .nav a { font-size: 14px; }
  .nav .nav-home { display: none; }
  .bar .nav-cta { height: 36px; padding: 0 14px; font-size: 14px; }
}
@media (max-width: 389px) {
  .bar .nav-cta { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 24px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: 16px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: transform .45s var(--ease-out), background-color .2s;
}
.btn:hover { transform: translateY(-2px) scale(1.04); background: var(--accent-press); }
.btn:active { transform: scale(.98); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 15px; }

/* Store buttons */
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  height: 60px; padding: 0 28px 0 22px; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none;
  transition: transform .45s var(--ease-out), background-color .2s;
}
.store svg { width: 24px; height: 24px; flex: none; fill: currentColor; }
.store-name { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.store:hover { transform: translateY(-3px) scale(1.04); }
.store:active { transform: scale(.98); }
@media (max-width: 719px) {
  .store-row { gap: 10px; }
  .store { height: 56px; padding: 0 20px 0 16px; gap: 10px; }
}
.store--light { background: #fff; color: var(--ink); }

/* Footer */
.site-footer { background: var(--bg); padding: clamp(56px, 7vw, 96px) 0 40px; }
.foot {
  display: grid; gap: 28px 40px;
  grid-template-columns: 1fr;
  font-size: 15px; color: var(--ink-2);
}
.foot-brand img { height: 34px; width: auto; }
.foot-info p { line-height: 1.7; }
.foot-info a, .foot-links a { text-decoration: none; }
.foot-info a:hover, .foot-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.foot-links strong { color: var(--ink); font-weight: 800; }
.foot-links span { color: var(--muted); }
.foot-copy { color: var(--muted); font-size: var(--fs-small); }

@media (min-width: 960px) {
  .foot { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .foot-brand { grid-column: 1 / span 4; }
  .foot-info { grid-column: 5 / span 4; }
  .foot-links { grid-column: 9 / -1; justify-content: flex-end; }
  .foot-copy { grid-column: 1 / -1; padding-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
