/* Ruen sales site — no build step, no external requests. */
:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --text: #1d1f23;
  --muted: #5f6570;
  --line: #e6e3de;
  --accent: #b8392c;        /* coral, echoes Nia's hair; 5.74:1 with --on-accent, 5.50:1 on --bg */
  --on-accent: #ffffff;
  --accent-soft: #fdecea;
  --mint: #2f9e8f;
  --notice: #fff7e6;
  --notice-line: #f0c36d;
  --radius: 14px;
  --max: 1040px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --surface: #1c1f24;
    --text: #eceef1;
    --muted: #a1a7b1;
    --line: #2c3038;
    --accent: #ff8a7d;       /* 7.23:1 on --surface */
    --on-accent: #14161a;    /* 7.92:1 on --accent */
    --accent-soft: #3a2422;
    --mint: #5cc9b8;
    --notice: #2d2616;
    --notice-line: #8a6a24;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", system-ui, sans-serif;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
/* Japanese and Chinese: native fonts, and line breaks between characters (keep-all is for Korean spacing). */
:lang(ja) { font-family: "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, "Segoe UI", system-ui, sans-serif; word-break: normal; line-break: strict; }
:lang(zh-Hant) { font-family: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Segoe UI", system-ui, sans-serif; word-break: normal; line-break: strict; }
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 20px; letter-spacing: -0.01em; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); display: inline-block; }
.nav { display: flex; gap: 4px 14px; flex-wrap: wrap; margin-left: auto; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; padding: 4px 0; }
.nav a[aria-current="page"], .nav a:hover { color: var(--text); }
.langs { display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 13px; }
.langs a { border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; color: var(--muted); text-decoration: none; }
.langs a[aria-current="true"], .langs a:hover { color: var(--text); border-color: var(--muted); }
@media (max-width: 640px) {
  .site-header { position: static; }
  .nav { margin-left: 0; width: 100%; padding-bottom: 8px; }
}

/* Layout */
main { padding: 40px 0 64px; }
h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.25; margin: 0 0 16px; letter-spacing: -0.02em; }
h2 { font-size: 24px; margin: 48px 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 18px; margin: 28px 0 8px; }
p { margin: 0 0 12px; }
.lead { font-size: 18px; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; }
@media (max-width: 800px) { .hero { grid-template-columns: 1fr; } }
.char-slot {
  aspect-ratio: 3 / 4; border: 2px dashed var(--line); border-radius: var(--radius);
  display: grid; place-items: center; text-align: center; color: var(--muted);
  background: repeating-linear-gradient(45deg, transparent 0 12px, var(--accent-soft) 12px 24px);
  padding: 16px; font-size: 14px;
}
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 999px; background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 700; }
.btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }
.ai-note { margin-top: 16px; font-size: 14px; color: var(--muted); border-left: 3px solid var(--mint); padding-left: 10px; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin-top: 0; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); margin-left: 6px; vertical-align: middle; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.plan .price { font-size: 30px; font-weight: 800; margin: 8px 0; }
.plan ul { padding-left: 18px; margin: 8px 0 16px; }

/* Documents (terms, privacy, refund) */
.doc { max-width: 780px; }
.doc h2 { font-size: 20px; margin-top: 36px; }
.doc ol, .doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 8px 0 16px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }
.doc th { background: var(--surface); overflow-wrap: normal; min-width: 7em; }
.table-scroll { overflow-x: auto; }
.review { display: inline-block; font-size: 12px; font-weight: 700; color: #8a4b00; background: var(--notice); border: 1px solid var(--notice-line); border-radius: 6px; padding: 0 6px; }
@media (prefers-color-scheme: dark) { .review { color: #f5c26b; } }
.draft-banner { background: var(--notice); border: 1px solid var(--notice-line); border-radius: var(--radius); padding: 14px 16px; font-size: 14px; margin-bottom: 24px; }
.ph { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.92em; }

/* Footer: business information (전자상거래법 제10조 표시 사항) */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--muted); padding: 28px 0 40px; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 14px; }
.site-footer .links a { color: var(--text); text-decoration: none; font-weight: 600; }
.site-footer dl { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin: 0 0 12px; }
.site-footer dt { font-weight: 600; }
.site-footer dd { margin: 0; }
@media (max-width: 520px) { .site-footer dl { grid-template-columns: 1fr; } .site-footer dd { margin-bottom: 6px; } }

/* Hero image (only rendered by tools/fill.mjs when HERO_IMAGE_SRC/ALT are provided) */
.hero-img { width: 100%; height: auto; border-radius: var(--radius); display: block; }

/* Release gate: text shown until the feature is verified in a release. fill.mjs --final refuses pages that still contain it. */
.gate { display: block; border-left: 3px solid var(--notice-line); background: var(--notice); padding: 6px 10px; border-radius: 6px; margin: 6px 0; }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
