/* Reticle site. Tokens mirror the app's ui/theme/Tokens.kt; numbers and measurements are always Mono. */

:root {
  color-scheme: light dark;
  --paper: #F3F2EE;
  --surface: #FFFFFF;
  --ink: #121212;
  --muted: #5E5C57;
  --hairline: #D6D3CB;
  --divider: #E6E3DC;
  --lime: #C8F03C;
  --on-lime: #121212;
  --alert: #FF6B5E;
  --panel: #121212;
  --on-panel: #FFFFFF;
  --panel-border: transparent;
  --sans: "IBM Plex Sans KR", system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  /* Plex Mono has no Hangul; Korean inside a Mono run falls back to Plex Sans KR, not a system font. */
  --mono: "IBM Plex Mono", "IBM Plex Sans KR", ui-monospace, Menlo, Consolas, monospace;
  --gutter: 20px;
  --measure: 680px;
  --wide: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121212;
    --surface: #1C1C1A;
    --ink: #F3F2EE;
    --muted: #A8A6A0;
    --hairline: #33322F;
    --divider: #2A2927;
    --panel-border: #33322F;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.7 var(--sans);
  overflow-wrap: anywhere;
}

:lang(ko) { word-break: keep-all; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--muted);
}
a:hover { text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wide) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 1;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--lime);
  color: var(--on-lime);
  font-weight: 600;
}
.skip:focus { top: 8px; }
.skip:focus-visible { outline-color: var(--on-lime); }

/* Header bar */

.bar { border-bottom: 1px solid var(--divider); }
.bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
}
.brand img { display: block; border-radius: 7px; }
.lang {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  font-size: 15px;
}

/* Offer of the other language; lang.js decides whether it shows. */

.lang-suggest { background: var(--lime); color: var(--on-lime); }
.lang-suggest-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
}
.lang-suggest a { font-weight: 600; text-decoration-color: currentColor; }
.lang-suggest button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.lang-suggest svg { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; }
.lang-suggest :focus-visible { outline-color: var(--on-lime); }

/* Legal documents: one reading column aligned with the brand; the contents stick beside it on wide screens. */

.doc { padding: 40px 0 72px; }
.doc > * { max-width: var(--measure); }

.doc-head {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--divider);
}
.doc-head h1 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.doc-meta {
  margin: 0;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
}

.toc {
  margin: 0 0 40px;
  padding: 14px 20px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--surface);
  font-size: 15px;
}
.toc ul { margin: 0; padding: 0; list-style: none; }
.toc li { margin: 0; }
.toc a {
  display: block;
  padding: 5px 0;
  text-decoration: none;
}
.toc a:hover { text-decoration: underline; text-decoration-color: var(--muted); }

.doc-body h2 {
  margin: 44px 0 12px;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
  scroll-margin-top: 24px;
}
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { margin: 28px 0 8px; font-size: 16px; line-height: 1.6; font-weight: 600; }
.doc-body p { margin: 0 0 12px; }
:is(.doc-body, .prose) ul, :is(.doc-body, .prose) ol { margin: 0 0 12px; padding: 0; list-style: none; }
:is(.doc-body, .prose) li { position: relative; margin: 6px 0; padding-left: 18px; }
:is(.doc-body, .prose) ul > li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: calc(0.85em - 2px);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink);
}
:is(.doc-body, .prose) ol > li { padding-left: 26px; }
:is(.doc-body, .prose) ol > li::before {
  content: attr(value) ".";
  position: absolute;
  left: 0;
  font-family: var(--mono);
  font-weight: 500;
  color: var(--muted);
}
.doc-body hr { margin: 24px 0; border: 0; border-top: 1px solid var(--divider); }

@media (min-width: 1100px) {
  .doc {
    display: grid;
    grid-template-columns: minmax(0, var(--measure)) minmax(0, 1fr);
    column-gap: 64px;
    align-items: start;
  }
  .doc-head, .doc-body { grid-column: 1; }
  .toc {
    grid-column: 2;
    grid-row: 1 / span 2;
    position: sticky;
    top: 24px;
    max-width: 320px;
    margin: 0;
  }
}

/* Landing */

.hero { padding: 64px 0 56px; }
.hero-label {
  margin: 0 0 16px;
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.12em;
  color: var(--muted);
}
.hero h1 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.lead { max-width: 36em; margin: 20px 0 0; font-size: 18px; line-height: 1.6; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 28px;
}
/* Not a button: there is no listing to open yet. */
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--surface);
  font-weight: 600;
  font-size: 15px;
}
.status-mark { width: 12px; height: 12px; border: 1px solid var(--ink); background: var(--lime); }

/* The run meter from the app: the rhythm strip on the always-dark panel, the current step outlined in lime. */
.meter {
  margin-top: 48px;
  padding: 22px 22px 16px;
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  background: var(--panel);
  color: var(--on-panel);
}
.meter svg { display: block; width: 100%; height: auto; }
.meter .k-tap { fill: var(--on-panel); }
.meter .k-sys { fill: none; stroke: var(--on-panel); stroke-width: 2; }
.meter .k-motion, .meter .k-cond { fill: var(--lime); stroke: var(--on-panel); stroke-width: 2; }
.meter .k-hold { stroke: var(--on-panel); stroke-width: 2; }
.meter .k-wait { stroke: rgb(255 255 255 / 0.55); stroke-width: 2; }
.meter .hatch { stroke: var(--on-panel); stroke-width: 2; }
.meter .ghost { opacity: 0.35; }
.meter .cur { fill: none; stroke: var(--lime); stroke-width: 4; opacity: 0; }

.readout {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin: 16px 0 0;
  font: 500 14px/1.5 var(--mono);
}
.rd-k { margin-right: 8px; color: rgb(255 255 255 / 0.6); }
.rd-stack { display: inline-grid; }
.rd-stack > span { grid-area: 1 / 1; opacity: 0; }
/* At rest, and with reduced motion, the meter shows the last step. */
.meter .s7 { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  /* One pass through the seven steps on load, 4.2 s in all, then rest on step 7.
     Motion that stops within 5 s needs no pause control (WCAG 2.2.2). */
  .meter :is(.s1, .s2, .s3, .s4, .s5, .s6, .s7) { animation: meter-step 0.6s; }
  .meter .s2 { animation-delay: 0.6s; }
  .meter .s3 { animation-delay: 1.2s; }
  .meter .s4 { animation-delay: 1.8s; }
  .meter .s5 { animation-delay: 2.4s; }
  .meter .s6 { animation-delay: 3s; }
  .meter .s7 { opacity: 0; animation-delay: 3.6s; animation-fill-mode: forwards; }
}
@keyframes meter-step {
  from, to { opacity: 1; }
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend svg { display: block; width: 20px; height: 12px; overflow: visible; }
.legend .k-tap { fill: var(--ink); }
.legend .k-motion, .legend .k-cond { fill: var(--lime); stroke: var(--ink); stroke-width: 1; }
.legend .k-hold { stroke: var(--ink); stroke-width: 1; }
.legend .k-wait { stroke: var(--muted); stroke-width: 1; }
.legend .hatch { stroke: var(--ink); stroke-width: 1; }

.section { padding: 64px 0; border-top: 1px solid var(--divider); }
.section h2 { margin: 0 0 24px; font-size: 24px; line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; }
.section p { max-width: 40em; margin: 0 0 12px; }

.features {
  display: grid;
  gap: 28px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.features li { padding-top: 16px; border-top: 1px solid var(--hairline); }
.features h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.4; font-weight: 600; }
.features p { margin: 0; color: var(--muted); }

.pro {
  max-width: 760px;
  padding: 28px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--surface);
}
.pro h2 { margin-bottom: 12px; }
.pro p:last-child { margin-bottom: 0; color: var(--muted); }

.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 480px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.shot { margin: 0; }
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--hairline);
  border-radius: 24px;
}
.shot figcaption { margin-top: 10px; font-size: 14px; }

.closing { display: grid; gap: 40px; }
.closing h2 { font-size: 20px; margin-bottom: 12px; }

@media (min-width: 640px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .closing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .hero { padding: 40px 0; }
  .meter { margin-top: 36px; padding: 14px 14px 12px; }
  .section { padding: 48px 0; }
  .pro { padding: 20px; }
}

/* Not found */

.notfound { padding: 72px 0 96px; }
.notfound h1 { margin: 0 0 16px; font-size: 32px; line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; }
.notfound p { margin: 0 0 8px; color: var(--muted); }

/* Footer */

.foot { border-top: 1px solid var(--divider); }
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  padding-top: 20px;
  padding-bottom: 40px;
  font-size: 14px;
  color: var(--muted);
}
.foot a { display: inline-flex; align-items: center; min-height: 44px; }
/* The privacy policy link stands out from the other links (PIPC guidance). */
.foot .privacy { color: var(--ink); font-weight: 700; }

@media print {
  .bar, .lang-suggest, .toc, .foot, .skip { display: none !important; }
  body { background: #FFFFFF; color: #000000; }
  .doc { display: block; padding: 0; }
}
