/* SSEM browser extension websites (JSON Editor, Markdown Editor) — static, no external fonts or scripts. */
:root {
  --blue: #1a6bff;
  --cyan: #00b5ff;
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #eef2fa;
  --text: #0e1526;
  --muted: #566074;
  --border: #dfe5f0;
  --warn-bg: #fff6e5;
  --warn-border: #f2c26b;
  --warn-text: #6b4a00;
  --ok: #14925a;
  --link: #0f5ad9;
  --focus: #0f5ad9;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(14, 21, 38, 0.06), 0 8px 24px rgba(14, 21, 38, 0.06);
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0d13;
    --surface: #131822;
    --surface-2: #1a2130;
    --text: #e9edf5;
    --muted: #9ba6b8;
    --border: #252d3c;
    --warn-bg: #2a2110;
    --warn-border: #7a5a1c;
    --warn-text: #f3d596;
    --ok: #3cc98a;
    --link: #5b9bff;
    --focus: var(--cyan);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: break-word;
}

a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, .button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

img { max-width: 100%; height: auto; }
code, kbd, .mono { font-family: var(--mono); font-size: 0.9em; }
kbd {
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  white-space: nowrap;
}
code { padding: 1px 5px; border-radius: 6px; background: var(--surface-2); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 8px 14px;
  background: var(--surface);
  border-radius: 8px;
  z-index: 10;
}
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  min-height: 60px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand .accent { color: #0f5ad9; }
@media (prefers-color-scheme: dark) { .brand .accent { color: #5b9bff; } }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; padding: 4px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav .lang {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 12px;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
}
.button.primary {
  color: #fff;
  background: linear-gradient(135deg, #0070c9, #0f5ad9);
  box-shadow: 0 6px 18px rgba(26, 107, 255, 0.28);
}
.button.primary:hover { filter: brightness(1.06); }
.button.secondary { color: var(--text); background: var(--surface); border-color: var(--border); }
.button.secondary:hover { border-color: var(--blue); }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 14px; }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0f5ad9;
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  padding: 4px 12px;
  border-radius: 999px;
}
@media (prefers-color-scheme: dark) { .eyebrow { color: #7fb0ff; } }
h1 { font-size: clamp(34px, 5.4vw, 54px); line-height: 1.15; letter-spacing: -0.02em; margin: 18px 0 16px; }
h1 .grad {
  background: linear-gradient(135deg, #0070c9, #0f5ad9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (prefers-color-scheme: dark) {
  h1 .grad { background: linear-gradient(135deg, var(--cyan), var(--blue)); -webkit-background-clip: text; background-clip: text; }
}
.lead { font-size: 19px; color: var(--muted); margin: 0; max-width: 36em; }
.meta { font-size: 14px; color: var(--muted); margin: 0; }
.meta strong { color: var(--text); }
.hero-shot { justify-self: center; width: 100%; max-width: 360px; }
.hero-shot img, .shot img {
  display: block;
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
}

/* Sections */
section { padding: 48px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 12px; }
h3 { font-size: 20px; line-height: 1.35; margin: 0 0 8px; }
.section-lead { color: var(--muted); margin: 0 0 28px; max-width: 44em; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
section.alt .card { background: var(--bg); }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 12px;
  font-size: 22px;
  background: color-mix(in srgb, var(--blue) 12%, transparent);
}

.callout {
  border: 1px solid var(--warn-border);
  background: var(--warn-bg);
  color: var(--warn-text);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 20px 0;
}
.callout strong { color: inherit; }
.callout p { margin: 0.4em 0; }
.callout.info {
  border-color: color-mix(in srgb, var(--blue) 40%, var(--border));
  background: color-mix(in srgb, var(--blue) 8%, var(--surface));
  color: var(--text);
}

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: var(--ok);
  margin-top: 3px;
}

/* Screenshots */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 22px;
}
.shot { margin: 0; }
.shot figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 10px; }

/* Download panel */
.download {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.hash {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  overflow-wrap: anywhere;
  word-break: break-all;
  background: var(--surface-2);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 6px;
}
pre {
  font-family: var(--mono);
  font-size: 14px;
  background: var(--surface-2);
  border-radius: 10px;
  padding: 12px 14px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}
ol.steps { padding-left: 1.3em; margin: 0; }
ol.steps li { margin: 0.35em 0; }

/* Documents (guide, privacy, support) */
.doc { padding: 48px 0 64px; }
.doc h1 { font-size: clamp(30px, 4.4vw, 42px); margin-top: 0; }
.doc h2 { font-size: 25px; margin-top: 2.2em; padding-top: 0.4em; scroll-margin-top: 80px; }
.doc h3 { margin-top: 1.6em; scroll-margin-top: 80px; }
.doc p, .doc li { color: var(--text); }
.doc .updated { color: var(--muted); font-size: 15px; }
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 24px 0;
}
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2 220px; column-gap: 32px; }
.toc li { break-inside: avoid; }
table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15.5px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { background: var(--surface-2); font-weight: 700; }
.table-wrap { overflow-x: auto; }

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 10px 0;
}
details[open] { padding-bottom: 18px; }
summary { cursor: pointer; font-weight: 700; }
details > :not(summary) { margin-top: 10px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--muted); }

@media (max-width: 820px) {
  .hero { padding-top: 40px; }
  .hero .container, .download { grid-template-columns: 1fr; }
  .hero-shot { max-width: 320px; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 10px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .button { width: 100%; }
  .site-nav { gap: 2px 14px; font-size: 14px; }
}
@media print {
  .site-header, .site-footer, .buttons { display: none; }
  body { background: #fff; color: #000; }
}

.mt { margin-top: 20px; }
.mt-sm { margin-top: 12px; }

/* The privacy policy link is set apart from other links (PIPC guidance). */
.site-nav a.privacy-link, .site-footer a.privacy-link { color: var(--text); font-weight: 700; }
.site-footer .legal { flex-basis: 100%; margin: 4px 0 0; font-size: 12.5px; line-height: 1.55; }

/* ---- Browser extension sites ---------------------------------------------------------------- */
/* Landscape screenshots (1280×800 browser windows) instead of the portrait app panels above. */
.hero-shot.wide { max-width: 560px; }
.hero.hero-wide .container { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.shots.wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.shot.full { grid-column: 1 / -1; max-width: 900px; justify-self: center; }

/* Store buttons (text only — no store logos). */
.button .store-sub { display: block; font-size: 12px; font-weight: 600; opacity: 0.85; line-height: 1.2; }
.button .store-name { display: block; line-height: 1.25; }
.button.store { flex-direction: column; align-items: flex-start; gap: 0; min-height: 56px; }
.stores { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.store-card h3 { display: flex; align-items: center; gap: 10px; }
.store-card .buttons { margin-bottom: 0; }
.badge {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
}
.kbd-table td:first-child { white-space: nowrap; }

/* Markdown Editor site: indigo accent instead of blue. */
.theme-md { --blue: #5b4bff; --cyan: #9d7bff; --link: #4a3de0; --focus: #4a3de0; }
@media (prefers-color-scheme: dark) { .theme-md { --link: #a79bff; --focus: #9d7bff; } }
.theme-md .brand .accent, .theme-md .eyebrow { color: #4a3de0; }
@media (prefers-color-scheme: dark) { .theme-md .brand .accent, .theme-md .eyebrow { color: #a79bff; } }
.theme-md .button.primary { background: linear-gradient(135deg, #6a4cff, #4a3de0); box-shadow: 0 6px 18px rgba(91, 75, 255, 0.28); }
.theme-md h1 .grad { background: linear-gradient(135deg, #6a4cff, #4a3de0); -webkit-background-clip: text; background-clip: text; }
@media (prefers-color-scheme: dark) {
  .theme-md h1 .grad { background: linear-gradient(135deg, #c3a8ff, #8f7bff); -webkit-background-clip: text; background-clip: text; }
}

@media (max-width: 820px) {
  .hero.hero-wide .container { grid-template-columns: 1fr; }
  .hero-shot.wide { max-width: 100%; }
}
