/* Phương — one site for every app. Black/white first, one accent second. */

:root {
  --canvas: #f5f7f9;
  --surface: #ffffff;
  --ink: #111315;
  --ink-soft: #5b6167;
  --line: #e4e8ec;
  --accent: #2f62e8;
  --accent-soft: #eaf0ff;
  --radius: 14px;
  --max: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0e1012;
    --surface: #16191c;
    --ink: #f2f4f6;
    --ink-soft: #9aa2aa;
    --line: #24292e;
    --accent: #7ea0ff;
    --accent-soft: #151d31;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Pretendard",
    "Apple SD Gothic Neo", "Noto Sans KR", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.01em;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Header */

header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}

.bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand span { color: var(--accent); }

nav { margin-left: auto; display: flex; align-items: center; gap: 14px; }

nav a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
}
nav a:hover { color: var(--ink); text-decoration: none; }

/* Language switcher */

.langs {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.langs button {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 10px;
  cursor: pointer;
}
.langs button + button { border-left: 1px solid var(--line); }
.langs button:hover { color: var(--ink); }
.langs button.on { background: var(--accent); color: #fff; }

/* Content */

main { padding: 48px 0 72px; }

h1 {
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

h2 {
  font-size: 18px;
  letter-spacing: -0.02em;
  margin: 36px 0 8px;
}

h3 { font-size: 16px; letter-spacing: -0.02em; margin: 24px 0 4px; }

p, li { color: var(--ink); }

.meta { color: var(--ink-soft); font-size: 14px; margin: 0 0 32px; }

ul { padding-left: 20px; }
li { margin: 4px 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 24px 0;
}

.card p:first-child { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.note {
  background: var(--accent-soft);
  border: none;
}

/* Home */

.hero { padding: 24px 0 8px; }

.hero h1 { font-size: 40px; }

.tagline {
  font-size: 19px;
  color: var(--ink-soft);
  margin: 0 0 28px;
}

.features { display: grid; gap: 14px; margin: 32px 0; }

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.feature h3 {
  margin: 0 0 4px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.feature p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* App cards */

.apps { display: grid; gap: 14px; margin: 20px 0 32px; }

.app {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.app-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }

.app-head h3 { margin: 0; font-size: 17px; }

.app-head .where {
  color: var(--ink-soft);
  font-size: 13px;
  margin-left: auto;
}

.app p { margin: 6px 0 0; color: var(--ink-soft); font-size: 15px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; }

.tags li {
  list-style: none;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 12px;
  color: var(--ink-soft);
}

/* Table — what each app collects */

.scroller { overflow-x: auto; margin: 16px 0 24px; }

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 460px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
}

th, td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

thead th { font-size: 13px; color: var(--ink-soft); font-weight: 600; }

tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

tbody th { font-weight: 500; }

td.yes { color: var(--ink); }
td.no { color: var(--ink-soft); }

.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 999px;
}
.cta:hover { text-decoration: none; opacity: 0.9; }

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  color: var(--ink-soft);
  font-size: 14px;
}

footer .wrap { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
footer a { color: var(--ink-soft); }
footer .spacer { margin-left: auto; }

[hidden] { display: none !important; }

/* The brand, three links and three language buttons stop fitting on one line
   somewhere above iPhone width — the bar wraps rather than pushing the page
   sideways. */
@media (max-width: 560px) {
  h1 { font-size: 27px; }
  .hero h1 { font-size: 32px; }
  .bar { flex-wrap: wrap; row-gap: 10px; gap: 12px; }
  nav { width: 100%; margin-left: 0; justify-content: space-between; gap: 10px; }
  .app-head .where { margin-left: 0; width: 100%; }
  table { min-width: 380px; }
}
