/* DANCHUCK site. Colours, radii and type follow the app (DANCHUCK app.css). */
@font-face {
  font-family: "LINE Seed Sans KR";
  src: url("/assets/fonts/LINESeedKR-Rg.woff2") format("woff2");
  font-weight: 100 500;
  font-display: swap;
}
@font-face {
  font-family: "LINE Seed Sans KR";
  src: url("/assets/fonts/LINESeedKR-Bd.woff2") format("woff2");
  font-weight: 600 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-strong: #f1f5f9;
  --text: #0f172a;
  --text-secondary: #5b6b80;
  --hairline: #e2e8f0;
  --keyline: #cbd5e1;
  --accent: #e35300;
  --accent-soft: #fce8dd;
  --accent-ink: #9a3412;
  --accent-strong: #c2410c;
  --on-accent-strong: #ffffff;
  --wallpaper: radial-gradient(circle at 18% 22%, #ffedd5 0, transparent 46%),
    radial-gradient(circle at 86% 78%, #fde2cf 0, transparent 44%),
    linear-gradient(160deg, #e8edf3, #f4f6f9);
  --shadow-float: 0 4px 16px rgb(15 23 42 / 0.1);
  --shadow-window: 0 24px 64px rgb(15 23 42 / 0.16), 0 2px 8px rgb(15 23 42 / 0.06);
  --radius-control: 8px;
  --radius-surface: 12px;
  --radius-frame: 20px;
  --radius-stage: 28px;
  --page: min(1120px, 100% - 32px);
  --font: "LINE Seed Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #18181b;
    --surface: #242427;
    --surface-strong: #2e2e32;
    --text: #fafafa;
    --text-secondary: #b4b4bc;
    --hairline: #38383e;
    --keyline: #505059;
    --accent: #ff6a13;
    --accent-soft: #3c291e;
    --accent-ink: #fdba74;
    --wallpaper: radial-gradient(circle at 18% 22%, #3a2518 0, transparent 46%),
      radial-gradient(circle at 86% 78%, #2c2233 0, transparent 44%),
      linear-gradient(160deg, #202024, #141417);
    --shadow-float: 0 4px 16px rgb(0 0 0 / 0.5);
    --shadow-window: 0 24px 64px rgb(0 0 0 / 0.55), 0 2px 8px rgb(0 0 0 / 0.4);
  }
  /* The keycap's black body would vanish on a dark page: a faint light rim keeps its shape. */
  img[src$="/logo.png"] { filter: drop-shadow(0 0 1px rgb(255 255 255 / 0.7)) drop-shadow(0 0 0.5px rgb(255 255 255 / 0.5)); }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
/* The icon sprite: SVG ignores HTML's [hidden] rule, so it would take a 300×150 box. */
svg[hidden] { display: none; }
picture { display: block; }
picture img { width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
code, kbd { font-family: var(--mono); font-size: 0.9em; }
kbd {
  padding: 1px 6px;
  border: 1px solid var(--keyline);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--surface);
  white-space: nowrap;
}
h1 kbd, h2 kbd, h3 kbd { padding: 0 0.25em; font-family: inherit; font-size: 0.82em; font-weight: 700; vertical-align: 0.06em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 8px 16px; border-radius: var(--radius-control);
  background: var(--text); color: var(--bg); font-weight: 700; text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.wrap { width: var(--page); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  transition: border-color 200ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--hairline); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: 0.01em; text-decoration: none; white-space: nowrap; }
.brand img { width: 32px; height: 32px; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a { white-space: nowrap; }
.site-nav a:not(.button) { padding: 8px 12px; border-radius: var(--radius-control); color: var(--text-secondary); font-size: 15px; text-decoration: none; }
.site-nav a:not(.button):hover { color: var(--text); background: var(--surface-strong); }
.site-nav .button { margin-left: 8px; }

/* Buttons: filled orange with white words (5.2:1), like the app's primary button. */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border: 1px solid var(--keyline); border-radius: 12px;
  background: var(--surface); color: var(--text);
  font: inherit; font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.button:hover { border-color: var(--text-secondary); }
.button:active { transform: translateY(1px); }
.button.primary { border-color: var(--accent-strong); background: var(--accent-strong); color: var(--on-accent-strong); }
.button.primary:hover { background: #b23a0b; border-color: #b23a0b; }
.button.large { min-height: 52px; padding: 14px 26px; font-size: 17px; }
.button.small { min-height: 36px; padding: 6px 14px; font-size: 14px; border-radius: 10px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; margin-top: 32px; }
.meta { margin-top: 16px; color: var(--text-secondary); font-size: 14px; }
.meta a { color: inherit; }
.meta a:hover { color: var(--text); }

/* Hero */
.hero { padding: 72px 0 24px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 14px; font-weight: 700; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); letter-spacing: -0.045em; line-height: 1.12; }
.hero .lead { max-width: 560px; margin: 24px auto 0; color: var(--text-secondary); font-size: clamp(17px, 2vw, 20px); }

/* The desktop: the home window, the floating pad and the summoned bar together. */
.stage {
  position: relative;
  width: min(1120px, 100% - 32px);
  margin: 48px auto 0;
  aspect-ratio: 16 / 9.4;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-stage);
  background: var(--wallpaper);
}
.stage .window { position: absolute; left: 5%; top: 7%; width: 57%; }
.stage .pad-shot { position: absolute; right: 4%; top: 6%; width: 33%; }
.stage .bar-shot { position: absolute; left: 50%; bottom: 3%; width: 30%; transform: translateX(-50%); }
.stage .label {
  position: absolute; z-index: 2;
  padding: 4px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--shadow-float);
  color: var(--text); font-size: 13px; font-weight: 700;
}
.stage .label.home { left: 6%; top: 3%; }
.stage .label.pad { right: 6%; top: 3%; }
.stage .label.bar { left: 50%; bottom: 20%; transform: translateX(-50%); }

/* A window frame around the home captures. */
.window { overflow: hidden; border: 1px solid var(--hairline); border-radius: 12px; background: var(--bg); box-shadow: var(--shadow-window); }
.window-bar { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 0 0 12px; border-bottom: 1px solid var(--hairline); background: var(--surface); font-size: 12px; }
.window-bar img { width: 16px; height: 16px; }
.window-bar .controls { display: flex; margin-left: auto; height: 100%; }
.window-bar .controls span { display: grid; place-items: center; width: 40px; color: var(--text-secondary); }
.window-bar .controls svg { width: 10px; height: 10px; stroke: currentColor; stroke-width: 1.2; fill: none; }

/* Sections */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 48px); letter-spacing: -0.035em; }
.section-head p { margin-top: 12px; color: var(--text-secondary); font-size: 18px; }
.band { background: var(--surface); border-block: 1px solid var(--hairline); }

/* Three surfaces */
.surface { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 56px; }
.surface + .surface { margin-top: 88px; }
.surface.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.surface.flip .surface-copy { order: 2; }
.surface-copy .tag { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-ink); font-weight: 700; }
.surface-copy h3 { margin-top: 12px; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.03em; }
.surface-copy > p:last-child { max-width: 420px; margin-top: 16px; color: var(--text-secondary); font-size: 18px; }
.tile-shot {
  display: grid; place-items: center;
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid var(--hairline); border-radius: var(--radius-stage);
  background: var(--wallpaper);
}
.tile-shot picture { width: min(100%, 420px); }
.tile-shot.bar picture { width: min(100%, 360px); }

/* Features: a name and its icon each, the description on hover. */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.feature { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 16px; border: 1px solid var(--hairline); border-radius: 14px; background: var(--bg); font-weight: 700; }
.feature .icon { color: var(--accent-ink); }

/* Local */
.local { max-width: 640px; text-align: center; }
.local h2 { font-size: clamp(30px, 4.4vw, 48px); letter-spacing: -0.035em; }
.local p { margin-top: 16px; color: var(--text-secondary); font-size: 18px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.chips li { padding: 6px 14px; border: 1px solid var(--hairline); border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 700; }

/* Download */
.download { text-align: center; }
.download .wrap > img { width: 64px; height: 64px; margin: 0 auto 20px; }
.download h2 { font-size: clamp(30px, 4.4vw, 48px); letter-spacing: -0.035em; }
.download .wrap > p:not(.meta):not(.note) { margin-top: 12px; color: var(--text-secondary); font-size: 18px; }
.download .note { max-width: 520px; margin: 28px auto 0; color: var(--text-secondary); font-size: 14px; }
.download .note strong { color: var(--text); }

/* Footer */
.site-footer { padding: 40px 0 48px; border-top: 1px solid var(--hairline); color: var(--text-secondary); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px; }
.site-footer .brand { color: var(--text); font-size: 16px; }
.site-footer .brand img { width: 24px; height: 24px; }
.site-footer p { margin-top: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-block; padding: 8px 0; text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }

/* Document pages: privacy, support, 404 */
.doc { width: min(720px, 100% - 32px); margin: 0 auto; padding: 64px 0 96px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.035em; }
.doc .updated { margin-top: 12px; color: var(--text-secondary); }
.doc h2 { margin-top: 44px; font-size: 22px; }
.doc p, .doc ul, .doc ol { margin-top: 12px; }
.doc ul, .doc ol { display: grid; gap: 8px; padding-left: 22px; }
.doc li::marker { color: var(--text-secondary); }
.doc code { padding: 1px 5px; border-radius: 4px; background: var(--surface-strong); font-size: 14px; overflow-wrap: anywhere; word-break: break-all; }
.doc .contact { margin-top: 16px; padding: 20px 24px; border: 1px solid var(--hairline); border-radius: var(--radius-frame); background: var(--surface); }
.doc .contact a { font-weight: 700; }
.doc .contact p + p { margin-top: 6px; color: var(--text-secondary); }
.doc table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { padding: 10px 12px; border-bottom: 1px solid var(--hairline); text-align: left; vertical-align: top; }
.doc th { width: 34%; color: var(--text-secondary); font-weight: 700; }
.not-found { display: grid; place-items: center; min-height: 60vh; text-align: center; }
.not-found img { width: 72px; height: 72px; margin: 0 auto 24px; }
.not-found p { margin-top: 12px; color: var(--text-secondary); }
.not-found .actions { margin-top: 28px; }

/* Appear once while scrolling; everything is visible without JavaScript. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .surface, .surface.flip { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .surface.flip .surface-copy { order: 0; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .site-nav a:not(.button):not(.lang) { display: none; }
  .site-header .wrap { gap: 12px; }
  .brand { font-size: 17px; }
  .site-nav a:not(.button) { padding: 8px; }
  .site-nav .button { margin-left: 4px; }
  .hero { padding-top: 48px; }
  section { padding: 72px 0; }
  .stage { aspect-ratio: 4 / 5; }
  .stage .window, .stage .label.home { display: none; }
  .stage .pad-shot { right: auto; left: 50%; top: 12%; width: 78%; transform: translateX(-50%); }
  .stage .label.pad { right: auto; left: 50%; top: 4%; transform: translateX(-50%); }
  .stage .bar-shot { width: 76%; bottom: 5%; }
  .stage .label.bar { bottom: 22%; }
  .surface + .surface { margin-top: 64px; }
  .features { gap: 8px; }
  .feature { min-height: 52px; padding: 10px; font-size: 14px; gap: 8px; }
  .feature .icon { width: 20px; height: 20px; }
  .doc th { width: 40%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media (forced-colors: active) {
  .button.primary { border: 2px solid ButtonText; }
  .stage, .tile-shot { background: Canvas; }
}
