/* One stylesheet for every page. No web fonts: system faces, with Korean and Japanese stacks per language. */

:root {
  color-scheme: light dark;
  --bg: #f6f3ec;
  --surface: #fffdf8;
  --surface-2: #ebe6da;
  --ink: #1c1e1a;
  --muted: #565b53;
  --line: #dcd6c9;
  --line-strong: #a9a291;
  --accent: #1f6b56;
  --accent-ink: #175c49;
  --on-accent: #ffffff;
  --stamp: #f07a2a;
  --sky: #d3e2e3;
  --sun: #f2c77f;
  --hill-far: #93b59c;
  --hill-near: #5d8c70;
  --code-bg: #ebe6da;
  --yes: #1f6b56;
  --no: #a2560f;
  --shadow: 0 1px 2px rgb(40 32 16 / 0.08), 0 14px 32px -16px rgb(40 32 16 / 0.32);
  --radius: 14px;
  /* Named faces before system-ui: on a Korean or Japanese Windows, system-ui is that locale's font, Latin included. */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", system-ui, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-mono: ui-monospace, "Cascadia Mono", "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131512;
    --surface: #1b1e1a;
    --surface-2: #272b25;
    --ink: #ecebe4;
    --muted: #aaaea3;
    --line: #333830;
    --line-strong: #5b6157;
    --accent: #79d2b6;
    --accent-ink: #8fdcc3;
    --on-accent: #0b1d17;
    --stamp: #ff8f45;
    --sky: #26393d;
    --sun: #c99a55;
    --hill-far: #40604c;
    --hill-near: #2d4838;
    --code-bg: #272b25;
    --yes: #79d2b6;
    --no: #eaa85c;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 14px 32px -16px rgb(0 0 0 / 0.7);
  }
}

/* Korean and Japanese: their own faces, and headings in sans, since the serif faces have no CJK glyphs. */
:lang(ko) {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --font-serif: var(--font-sans);
}
:lang(ja) {
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, "Noto Sans JP", system-ui, sans-serif;
  --font-serif: var(--font-sans);
}
[lang] { font-family: var(--font-sans); }
[lang|="ko"] { word-break: keep-all; overflow-wrap: break-word; }
[lang|="ja"] { line-break: strict; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.65;
}
:lang(ko) body, :lang(ja) body { font-size: 1rem; line-height: 1.8; }

h1, h2 { font-family: var(--font-serif); font-weight: 600; text-wrap: balance; }
h3 { font-weight: 650; line-height: 1.35; }
:lang(ja) :is(h1, h2, h3, strong, .slot, .free-line, .file-meta, figcaption) { word-break: auto-phrase; }
:lang(ko) h1, :lang(ko) h2, :lang(ja) h1, :lang(ja) h2 { font-weight: 700; letter-spacing: -0.02em; }
p, li { text-wrap: pretty; }

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--code-bg);
  padding: 0.08em 0.35em;
  border-radius: 5px;
  overflow-wrap: anywhere;
}

.wrap { width: min(100% - 2 * clamp(16px, 4vw, 40px), 1120px); margin-inline: auto; }
.prose { max-width: 68ch; }

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: 8px;
}
.skip:focus { top: 12px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 14px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.mark { flex: none; }
.mark-bg { fill: var(--accent); }
.mark-hill { fill: none; stroke: var(--bg); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.mark-stamp { fill: var(--stamp); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand-tagline { color: var(--muted); font-size: 0.85rem; }

.langs ul { display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; list-style: none; }
.langs a {
  display: block;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}
.langs a:hover { color: var(--ink); background: var(--surface-2); }
.langs a[aria-current="page"] { color: var(--ink); background: var(--surface-2); font-weight: 650; }

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; gap: 48px; }
h1 {
  margin: 0 0 20px;
  font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
:lang(ko) h1, :lang(ja) h1 { font-size: clamp(1.7rem, 1.15rem + 2.4vw, 2.7rem); line-height: 1.32; }
.lead { margin: 0; font-size: 1.15rem; max-width: 62ch; }
:lang(ko) .lead, :lang(ja) .lead { font-size: 1.06rem; }

.slots { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.slot {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0;
  padding: 11px 16px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 12px;
  line-height: 1.4;
}
.slot-label { font-weight: 650; }
.badge {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
  white-space: nowrap;
}
.cta {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
}
.cta:hover { filter: brightness(1.08); }
/* Phones: every slot the same shape, label over badge, whatever the length of the words. */
@media (max-width: 519px) {
  .slot { flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
}
.free-line { margin: 18px 0 0; font-weight: 650; }
.status-note { margin: 4px 0 0; color: var(--muted); font-size: 0.95rem; }
.jump { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 18px 0 0; font-size: 0.95rem; }

/* The picture of what it does: a print with a date stamp, a file before and after. */
.demo { display: grid; gap: 14px; width: 100%; max-width: 440px; justify-self: center; }
.print {
  position: relative;
  padding: 10px 10px 30px;
  background: var(--surface);
  border-radius: 6px;
  box-shadow: var(--shadow);
  transform: rotate(-1.6deg);
  margin-bottom: 8px;
}
.print svg { display: block; width: 100%; height: auto; border-radius: 3px; }
.sky { fill: var(--sky); }
.sun { fill: var(--sun); }
.hill-far { fill: var(--hill-far); }
.hill-near { fill: var(--hill-near); }
.stamp {
  position: absolute;
  right: 24px;
  bottom: 42px;
  color: var(--stamp);
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 0.8rem + 1vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-shadow: 0 0 6px rgb(255 128 40 / 0.55);
}
.file {
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  line-height: 1.5;
}
.file p { margin: 0; }
.file-tag {
  margin-bottom: 4px !important;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.file-name code { padding: 0; background: none; font-size: 0.86rem; }
.file-meta { margin-bottom: 4px !important; color: var(--muted); font-size: 0.9rem; }
.file-meta:last-child { margin-bottom: 0 !important; }
.after { border: 2px solid var(--accent); }
.after .file-meta { position: relative; padding-left: 20px; color: var(--ink); }
.after .file-meta::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.32em;
  width: 5px;
  height: 9px;
  border: solid var(--yes);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Sections */
.section { padding-block: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); }
h2 { margin: 0 0 18px; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); line-height: 1.15; }
:lang(ko) h2, :lang(ja) h2 { font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.85rem); line-height: 1.4; }
.section-lead { margin: 0; color: var(--muted); font-size: 1.1rem; }
.two-col { display: grid; gap: 8px 56px; }
.two-col > :last-child { margin-top: 0; }
.prose > :first-child { margin-top: 0; }
.aside { color: var(--muted); }

.list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.prose .list { margin-block: 16px 20px; }
.list li { position: relative; padding-left: 26px; }
.list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}
:lang(ko) .list li::before, :lang(ja) .list li::before { top: 0.7em; }

.steps { display: grid; gap: 28px; margin: 28px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 14px; border-top: 2px solid var(--ink); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 8px;
  color: var(--accent-ink);
  font: 650 0.85rem/1 var(--font-mono);
}
.steps h3 { margin: 0 0 6px; font-size: 1.2rem; }
.steps p { margin: 0; }

.shots { display: grid; gap: 28px; margin-top: 48px; }
figure { margin: 0; }
.shots img { border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); background: #fff; }
figcaption { margin-top: 12px; color: var(--muted); font-size: 0.92rem; }
.note { margin: 20px 0 0; color: var(--muted); font-size: 0.88rem; }

.limits { background: var(--surface); }
.ledger { margin: 28px 0 0; padding: 0; list-style: none; }
.ledger li { padding: 16px 0 18px; border-top: 1px solid var(--line); break-inside: avoid; }
.ledger strong { display: block; margin-bottom: 4px; font-size: 1.05rem; }

.tested-grid { display: grid; gap: 20px; margin-top: 28px; }
.tested { padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.tested h3 { margin: 0 0 14px; font-size: 1.1rem; }
.tested ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.tested li { position: relative; padding-left: 28px; }
.tested li::before { content: ""; position: absolute; }
.yes li::before {
  left: 6px;
  top: 0.3em;
  width: 6px;
  height: 12px;
  border: solid var(--yes);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.no li::before {
  left: 2px;
  top: 0.45em;
  width: 13px;
  height: 13px;
  border: 2px solid var(--no);
  border-radius: 50%;
}
:lang(ko) .tested li::before, :lang(ja) .tested li::before { margin-top: 0.12em; }

.plans { display: grid; gap: 20px; margin-top: 28px; }
.plan {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.plan h3, .plan p { margin: 0; }
.plan-full { border: 2px solid var(--accent); }
.plan .slots { margin-top: 10px; }
.amount { font-family: var(--font-serif); font-size: 2.6rem; font-weight: 600; line-height: 1.1; }
.fine { margin-top: 24px; color: var(--muted); font-size: 0.95rem; }
.fine p { margin: 0 0 10px; }

.refunds .prose { margin: 0; font-size: 1.1rem; }

.faq { margin-top: 28px; column-gap: 56px; }
.qa { padding-bottom: 28px; break-inside: avoid; }
.qa h3 { margin: 0 0 6px; font-size: 1.08rem; }
.qa p { margin: 0; }

.site-footer { padding-block: 36px 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.site-footer p { max-width: 80ch; margin: 0 0 8px; }
.footer-brand { color: var(--ink); }

.not-found { padding-block: 64px; }
.not-found p { margin: 0 0 18px; }
.not-found strong { display: block; }

@media (min-width: 760px) {
  .shots, .tested-grid, .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger { columns: 2; column-gap: 56px; }
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: center; gap: 64px; }
  .two-col { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .two-col > h2 { position: sticky; top: 24px; align-self: start; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .faq { columns: 2; }
}
