/* Hoverstone site. One colour, two depths: the app's periwinkle → aqua,
   deeper on white, lighter on dark. */

:root {
  --bg: #f5f7ff;
  --surface: #ffffff;
  --line: rgba(20, 30, 60, 0.09);
  --text: #141a2b;
  --muted: #5b6377;
  --accent-start: #5473d1;
  --accent-end: #338197;
  --accent-label: #294e9e;
  --on-accent: #ffffff;
  --glow: rgba(84, 115, 209, 0.16);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141a26;
    --surface: #1c2230;
    --line: rgba(255, 255, 255, 0.08);
    --text: #eef1f8;
    --muted: #9aa3b8;
    --accent-start: #99b8ff;
    --accent-end: #a3e6db;
    --accent-label: #bdd6ff;
    --on-accent: #10141d;
    --glow: rgba(153, 184, 255, 0.14);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", "Noto Sans KR", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, .lead, .hero p { text-wrap: balance; }
p, li { text-wrap: pretty; }

a { color: var(--accent-label); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* Top bar */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 20px; padding-bottom: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.top nav { display: flex; gap: 20px; font-size: 15px; }
.top nav a { color: var(--muted); }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); text-decoration: none; }

/* Hero */
.hero { text-align: center; padding-top: 72px; padding-bottom: 56px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0 10% auto; height: 360px; z-index: -1;
  background: radial-gradient(closest-side, var(--glow), transparent);
}
.hero img { width: 128px; height: 128px; }
.hero h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1.15; letter-spacing: -0.02em; margin: 24px 0 14px; }
.hero p { font-size: 20px; color: var(--muted); margin: 0 auto; max-width: 560px; }

.cta { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.button {
  display: inline-block; padding: 12px 26px; border-radius: 999px; font-weight: 600;
  background: linear-gradient(120deg, var(--accent-start), var(--accent-end));
  color: var(--on-accent);
}
.button:hover { text-decoration: none; filter: brightness(1.05); }
.button[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
.note { font-size: 14px; color: var(--muted); }

/* Sections */
section, section.wrap { padding-top: 40px; padding-bottom: 40px; }
h2 { font-size: 30px; letter-spacing: -0.01em; line-height: 1.25; margin: 0 0 10px; text-align: center; }
.lead { color: var(--muted); text-align: center; margin: 0 auto 36px; max-width: 560px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px;
}
.card h3 { font-size: 18px; margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

kbd {
  font: 600 14px/1 -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 3px 7px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg);
  white-space: nowrap;
}

/* Pro */
.pro { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 40px 32px; }
.pro ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 28px; }
.pro li { padding-left: 18px; position: relative; }
.pro li::before {
  content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(120deg, var(--accent-start), var(--accent-end));
}
.pro li strong { display: block; font-weight: 600; }
.pro li span { color: var(--muted); font-size: 15px; }

/* Text pages: support, privacy */
.page { padding-top: 48px; padding-bottom: 24px; }
.page h1 { font-size: 36px; letter-spacing: -0.02em; margin: 0 0 8px; }
.page h2 { text-align: left; font-size: 22px; margin: 40px 0 8px; }
.page h3 { font-size: 17px; margin: 28px 0 4px; }
.page p, .page li { color: var(--text); }
.page .updated { color: var(--muted); font-size: 15px; margin: 0 0 32px; }
.page .intro { color: var(--muted); margin: 0 0 8px; }
.page ul { padding-left: 20px; }
.page li { margin: 10px 0; }
.page li strong { display: block; }

/* FAQ: a box per group, a hairline between questions */
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 4px 24px; }
.faq > div { padding: 20px 0; }
.faq > div + div { border-top: 1px solid var(--line); }
.faq h3 { margin: 0 0 6px; }
.faq p { margin: 0; color: var(--muted); }
.faq ul { margin: 8px 0 0; color: var(--muted); }
.faq li { margin: 4px 0; color: var(--muted); }
.ask { margin-top: 48px; text-align: center; }
.ask p { color: var(--muted); margin: 0 0 6px; }
.ask a { font-weight: 600; font-size: 18px; }
.contact { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin: 24px 0; }
.contact p { margin: 0 0 4px; }
.contact a { font-weight: 600; font-size: 18px; }

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

@media (max-width: 600px) {
  .hero { padding-top: 48px; padding-bottom: 40px; }
  .hero p { font-size: 18px; }
  .top nav { gap: 14px; }
  .pro { padding: 28px 20px; }
}
