:root {
  /* Brand palette - sampled from comps */
  --bg: #f6e6d4;            /* page peach */
  --bg-2: #fbeedc;          /* lighter peach */
  --card: #fdf3e4;          /* cream card */
  --card-2: #ffffff;        /* white card */
  --ink: #2b2b2b;           /* primary text */
  --ink-2: #6b6157;         /* secondary */
  --ink-mute: #a59c91;      /* tertiary */
  --line: #ead9c2;          /* card border */
  --line-2: #e7d5bc;        /* divider */

  --coral: #ee7e5a;         /* primary CTA + headline accent */
  --coral-deep: #d8633e;
  --coral-soft: #f29a7c;

  --olive: #8aa05a;         /* school green */
  --olive-deep: #6e8443;

  --navy: #4d5a8c;          /* church blue */
  --navy-deep: #3a466e;

  --grape: #6f4a8a;         /* purple A bg accent */

  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display: "Paperlogy", "Noto Sans KR", system-ui, sans-serif;
  --body: "Paperlogy", "Noto Sans KR", system-ui, sans-serif;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;

  --shadow-sm: 0 1px 0 rgba(120, 80, 40, 0.04), 0 4px 16px rgba(120, 80, 40, 0.05);
  --shadow: 0 2px 0 rgba(120, 80, 40, 0.04), 0 12px 32px rgba(120, 80, 40, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Page chrome ─────────────────────────────────────── */
.page {
  min-height: 100vh;
  overflow-x: clip;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

/* ── Typography helpers ───────────────────────────────── */
.mono-label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--coral);
  text-transform: none;
}

.display {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.ink-2 { color: var(--ink-2); }
.center { text-align: center; }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 8px 18px rgba(238,126,90,0.35);
}

.btn-primary:hover {
  background: var(--coral-deep);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255,255,255,0.7);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover { background: #fff; }

.btn-lg { padding: 18px 36px; font-size: 17px; }

/* ── Section spacing ──────────────────────────────────── */
section { padding: 80px 0; }
section.tight { padding: 56px 0; }

@media (max-width: 720px) {
  section { padding: 56px 0; }
}

/* ── Subtle bg variations ─────────────────────────────── */
.bg-2 { background: var(--bg-2); }

/* Reuse for scroll-anchors */
[id] { scroll-margin-top: 88px; }

/* ── Site header (NavBar) ─────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease;
}

.site-header.scrolled {
  background: rgba(246, 230, 212, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

/* ── Hover interactions (formerly React state) ────────── */
.nav-link:hover { opacity: 1; }

.user-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(80, 50, 30, 0.18); }
.user-card:hover .user-card-img { transform: scale(1.03); }
.user-card:hover .user-card-cta { background: #fdf3e4; }

.feat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.plan-cta:hover { filter: brightness(0.95); transform: translateY(-1px); }

.social-icon:hover { transform: scale(1.08); }

/* ── Responsive grids (formerly component <style> blocks) ── */
@media (max-width: 860px) {
  .nav-center { display: none !important; }
}

@media (max-width: 880px) {
  .user-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 900px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 560px) {
  .feat-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 680px) {
  .plan-grid { grid-template-columns: 1fr !important; max-width: 460px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 900px) {
  .rev-grid { grid-template-columns: 1fr !important; max-width: 520px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 900px) {
  .case-grid { grid-template-columns: 1fr !important; max-width: 520px; margin-left: auto; margin-right: auto; }
}

/* ── Hasoyoung section ────────────────────────────────── */
#hasoyoung { padding-top: 100px; padding-bottom: 100px; }
@media (max-width: 860px) {
  .hy-hero { grid-template-columns: 1fr !important; gap: 36px !important; }
}
@media (max-width: 620px) {
  .hy-scenes { grid-template-columns: 1fr !important; max-width: 420px; margin-left: auto; margin-right: auto; }
}
