:root {
  --blue: #1766d7;
  --ink: #111111;
  --body: #555555;
  --muted: #8a8a8a;
  --line: #e8e8e8;
  --dots: #d5d5d5;
  --surface: #f5f6f7;
  --link: #1b6cf2;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

a { color: var(--link); }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* Top bar */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 800; text-decoration: none; letter-spacing: -0.3px; }
.brand img { width: 26px; height: 26px; border-radius: 6px; }
.top nav a { color: var(--body); text-decoration: none; font-size: 15px; margin-left: 18px; }
.top nav a[aria-current] { color: var(--ink); font-weight: 700; }

/* Home */
.hero { text-align: center; padding: 72px 0 40px; }
.hero .icon { width: 112px; height: 112px; border-radius: 25px; display: block; margin: 0 auto 20px; }
.hero .name { margin: 0; color: var(--muted); font-size: 15px; font-weight: 600; }
.hero h1 { margin: 6px 0 10px; font-size: clamp(36px, 8vw, 56px); line-height: 1.15; font-weight: 800; letter-spacing: -0.04em; }
.hero .sub { margin: 0; color: var(--body); font-size: 18px; }
.stores { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 28px; }
.stores a { display: block; line-height: 0; }
.stores .apple { height: 48px; width: auto; }
/* Google's badge has transparent padding around it, so it is drawn larger to
   match the Apple badge. */
.stores .google { height: 71px; width: auto; margin: -11.7px; }
.more { display: inline-block; margin-top: 28px; color: var(--blue); font-weight: 700; font-size: 19px; text-decoration: none; }
.more span { display: inline-block; transition: transform .15s; }
.more:hover span { transform: translateX(4px); }

.small-team { text-align: center; color: var(--muted); font-size: 14px; margin: 120px 0 64px; }
/* Breaks only between the phrases on narrow screens. */
.small-team span { display: inline-block; }

/* Text pages */
.page { max-width: 720px; padding-top: 48px; padding-bottom: 80px; }
.page h1 { font-size: 32px; font-weight: 800; letter-spacing: -1px; margin: 0 0 8px; line-height: 1.25; }
.page h2 { font-size: 19px; font-weight: 700; margin: 40px 0 10px; }
.page p, .page li { color: var(--body); }
.page .lead { margin: 0 0 8px; }

.rows { margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rows dt { color: var(--body); }
.rows dd { margin: 0; font-weight: 600; text-align: right; }
.rows dd a { color: var(--ink); text-decoration: none; }

details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 16px; }

.steps { padding-left: 22px; }
.steps li { margin: 4px 0; }
.steps b { color: var(--ink); }

/* Features */
.features-page { max-width: 960px; }
.features { list-style: none; margin: 16px 0 0; padding: 0; }
.features li { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 40px 0; text-align: center; }
.features li div { order: -1; }
.features img { display: block; width: 100%; max-width: 320px; height: auto; border: 1px solid var(--line); border-radius: 28px; }
.features-page .features h2 { margin: 0 0 6px; font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.features p { margin: 0; font-size: 17px; }
.features-page .stores { margin-top: 72px; }
@media (min-width: 720px) {
  .features li { flex-direction: row; justify-content: center; gap: 72px; text-align: left; }
  .features li:nth-child(even) { flex-direction: row-reverse; }
  .features li div { order: 0; width: 300px; }
  .features img { max-width: 360px; }
  .features-page .features h2 { font-size: 36px; }
  .features p { font-size: 19px; }
}

/* Legal documents, built from frontend/assets/docs */
.doc h1 { margin-bottom: 24px; }
.doc h2 { font-size: 17px; }
.doc p { margin: 8px 0; }
.doc ol { padding-left: 22px; margin: 8px 0; }
.doc li { margin: 4px 0; }
.doc .sub { padding-left: 22px; }
.doc .table { overflow-x: auto; margin: 12px 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 14px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; color: var(--body); }
.doc th { background: var(--surface); color: var(--ink); font-weight: 600; white-space: nowrap; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 13px; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }
footer nav a { color: var(--body); text-decoration: none; }
footer p { margin: 0; }
