/* Shared by every page under site/: landing, support, privacy and terms.
   Element styles come first so the legal pages need no classes; the classes further down are for the
   landing and support pages. System fonts only, no external files. Colors follow app/src/components/theme.ts
   (text colors are the AA ones from CONTRACT C11; #3D7BFF only on black). */

:root {
  color-scheme: light;
  --ink: #1F2A44;
  --sub: #5B6475;
  --tertiary: #6B7280;
  --line: #E6E9EE;
  --bg: #F7F8FA;
  --card: #FFFFFF;
  --bus: #2563EB;
  --subway: #0E7A43;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  word-break: keep-all; /* Korean wraps between words, not inside them */
  overflow-wrap: anywhere;
}

header, main, footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

header { padding-top: 20px; font-weight: 800; }
header a { color: var(--ink); text-decoration: none; }
main { padding-top: 24px; padding-bottom: 48px; }

h1 { font-size: 2rem; line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 12px; }
h2 { font-size: 1.3rem; line-height: 1.4; letter-spacing: -0.01em; margin: 44px 0 12px; }
h3 { font-size: 1.05rem; line-height: 1.4; margin: 0 0 6px; }
p, ul, ol { margin: 0 0 12px; }
ul, ol { padding-left: 1.4em; }
li + li { margin-top: 6px; }

a { color: var(--bus); text-underline-offset: 2px; }
a:focus-visible { outline: 3px solid var(--bus); outline-offset: 2px; border-radius: 4px; }

small { color: var(--tertiary); }

/* Legal tables: scroll sideways on a narrow phone instead of squeezing the columns. */
table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 0.94rem;
  line-height: 1.55;
}
th, td {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  min-width: 7em;
}
th { font-weight: 700; }

footer {
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  color: var(--tertiary);
  font-size: 0.875rem;
  line-height: 1.6;
}
footer p { margin: 0 0 6px; }
footer nav { margin-bottom: 12px; }
footer nav a { display: inline-block; margin-right: 16px; padding: 4px 0; }

/* Landing */

.hero { padding: 24px 0 8px; }
.hero h1 { font-size: 2.6rem; margin-top: 24px; }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--ink); }
.meta { color: var(--tertiary); }

/* A drawing of the island for the hero, not a screenshot. Bus blue sits on black only. */
.island {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px 10px 12px;
  border-radius: 999px;
  background: #000000;
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.island .dot { width: 24px; height: 24px; border-radius: 50%; background: #3D7BFF; }
.island .time { color: #3D7BFF; font-variant-numeric: tabular-nums; }

.badge {
  display: inline-block;
  margin: 8px 0 12px;
  padding: 12px 22px;
  border-radius: 12px;
  background: #000000;
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: none;
}

.cards {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.cards li {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
}
.cards p { margin: 0; color: var(--sub); }

.steps li::marker { font-weight: 800; color: var(--bus); }
.steps b { display: block; }

/* The 'first use' box that goes on every guide (PRODUCTION-PLAN 4). */
.box {
  margin: 20px 0;
  padding: 16px 20px;
  border-radius: 16px;
  background: #EAF1FF;
}
.box-title { margin: 0 0 6px; font-weight: 800; }
.box ol { margin: 0; }

.notice {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}
.notice p { margin: 0; }
