/* ================= 늘봄티켓 (Octogift) — style.css ================= */
:root {
  --brand: #1f6feb;
  --brand-dark: #1656c4;
  --brand-light: #e8f1ff;
  --ink: #1a1a2e;
  --ink-soft: #4a4a5e;
  --muted: #8a8a9a;
  --bg: #ffffff;
  --bg-alt: #f7f8fb;
  --line: #eceef3;
  --kakao: #fee500;
  --kakao-ink: #191600;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(26, 26, 46, 0.08);
  --shadow-lg: 0 20px 50px rgba(26, 26, 46, 0.14);
  --maxw: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: "Noto Sans KR", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
.container-narrow { max-width: 820px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
  font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(31,111,235,.35); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.28); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-light); }
.btn-kakao { background: var(--kakao); color: var(--kakao-ink); box-shadow: 0 8px 20px rgba(254,229,0,.4); }
.btn-kakao:hover { filter: brightness(.96); }
.btn-header { background: var(--brand); color: #fff; padding: 10px 18px; font-size: 14px; }
.btn-header:hover { background: var(--brand-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 20px; }
.logo-mark { font-size: 22px; }
.logo-text { color: var(--ink); }
.main-nav { display: none; margin-left: auto; gap: 26px; }
.main-nav a { font-weight: 500; color: var(--ink-soft); font-size: 15px; }
.main-nav a:hover { color: var(--brand); }
.site-header .btn-header { display: none; }
.nav-toggle {
  margin-left: auto; width: 42px; height: 42px; border: none; background: transparent;
  display: flex; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer;
}
.nav-toggle span { display: block; height: 3px; width: 24px; background: var(--ink); border-radius: 3px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile nav drawer */
.main-nav.mobile-open {
  display: flex; flex-direction: column; gap: 0;
  position: absolute; top: 64px; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow); padding: 8px 20px 16px;
}
.main-nav.mobile-open a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 500px at 80% -10%, #4a90ff 0%, transparent 60%),
              linear-gradient(135deg, #1f6feb 0%, #4a90ff 100%);
  color: #fff; text-align: center;
  padding: 64px 0 72px;
}
.hero-badge {
  display: inline-block; background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.4); border-radius: 999px;
  padding: 8px 18px; font-weight: 700; font-size: 14px; margin-bottom: 22px;
}
.hero-title { font-size: 38px; line-height: 1.25; font-weight: 900; letter-spacing: -.5px; }
.hero-title .accent { color: #cfe2ff; }
.hero-sub { margin: 20px auto 0; font-size: 16px; max-width: 560px; opacity: .95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.hero-points {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px;
  justify-content: center; margin-top: 28px; font-weight: 600; font-size: 14px;
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.eyebrow { display: inline-block; color: var(--brand); font-weight: 800; letter-spacing: 2px; font-size: 13px; margin-bottom: 10px; }
.section-head h2 { font-size: 27px; font-weight: 900; letter-spacing: -.5px; }
.section-head p { color: var(--ink-soft); margin-top: 12px; font-size: 15px; }
.section-head-light .eyebrow { color: #cfe2ff; }
.section-head-light h2, .section-head-light p { color: #fff; }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon { font-size: 34px; margin-bottom: 12px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 14.5px; }
.card strong { color: var(--brand); }

/* Steps */
.steps .step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 22px 26px; text-align: center; box-shadow: var(--shadow);
}
.step-num {
  width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: #fff;
  font-weight: 900; font-size: 20px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 14.5px; }

/* Contact band */
.contact-band {
  background: linear-gradient(135deg, #1f6feb, #4a90ff); color: #fff;
}
.contact-stats {
  display: grid; grid-template-columns: 1fr; gap: 14px; max-width: 720px; margin: 0 auto 30px;
}
.cstat {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius); padding: 18px; text-align: center;
}
.cstat span { display: block; font-size: 13px; opacity: .9; }
.cstat strong { display: block; font-size: 22px; margin-top: 6px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.contact-tip, .contact-warn { text-align: center; margin-top: 18px; font-size: 14px; }
.contact-warn { font-weight: 700; }

/* Stats */
.stats .stat { text-align: center; padding: 22px 10px; }
.stats .stat strong { display: block; font-size: 30px; font-weight: 900; color: var(--brand); }
.stats .stat span { color: var(--ink-soft); font-size: 14px; }

/* Badges */
.badge { text-align: center; padding: 24px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.badge-icon { font-size: 30px; margin-bottom: 10px; }
.badge h3 { font-size: 17px; margin-bottom: 6px; }
.badge p { color: var(--ink-soft); font-size: 13.5px; }

/* Use cases */
.usecases .usecase {
  background: #fff; border-left: 4px solid var(--brand); border-radius: 10px;
  padding: 18px 20px; box-shadow: var(--shadow); font-weight: 500; color: var(--ink-soft);
}

/* Blog cards */
.blog-cards .blog-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-thumb {
  width: 100%; height: 180px; object-fit: cover;
  border-radius: 12px; margin-bottom: 16px; background: var(--bg-alt);
}
.blog-tag { align-self: flex-start; background: var(--brand-light); color: var(--brand-dark); font-weight: 700; font-size: 12px; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.blog-card h3 { font-size: 18px; line-height: 1.45; margin-bottom: 10px; }
.blog-card p { color: var(--ink-soft); font-size: 14px; flex: 1; }
.blog-more { color: var(--brand); font-weight: 700; margin-top: 14px; font-size: 14px; }
.center-btn { text-align: center; margin-top: 34px; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 4px 20px; box-shadow: var(--shadow);
}
.faq-item summary {
  cursor: pointer; list-style: none; font-weight: 700; font-size: 16px;
  padding: 16px 28px 16px 0; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--brand); font-weight: 400; transition: transform .2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--ink-soft); font-size: 14.5px; padding: 0 0 18px; }

/* Article */
.article h2 { font-size: 25px; line-height: 1.4; margin-bottom: 22px; letter-spacing: -.5px; }
.article h3 { font-size: 19px; margin: 30px 0 12px; color: var(--brand-dark); }
.article p { color: var(--ink-soft); margin-bottom: 14px; font-size: 15.5px; }
.article a { color: var(--brand); font-weight: 700; text-decoration: underline; }

/* Footer */
.site-footer { background: var(--ink); color: #cfd0dc; padding: 48px 0 26px; }
.footer-inner { display: flex; flex-direction: column; gap: 30px; }
.footer-brand .logo-text { color: #fff; font-size: 20px; font-weight: 900; }
.footer-brand p { margin-top: 10px; font-size: 14px; color: #9a9bab; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.footer-cols h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-cols a { display: block; padding: 5px 0; font-size: 14px; color: #b7b8c6; }
.footer-cols a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid #2c2c44; margin-top: 30px; padding-top: 22px; font-size: 12.5px; color: #8a8b9c; }
.footer-bottom p { margin-bottom: 6px; }
.footer-bottom .disclaimer { color: #6c6d7e; line-height: 1.6; }

/* ---------- Floating CTA (mobile-first) ---------- */
.float-cta {
  position: fixed; right: 16px; bottom: 16px; z-index: 200;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
}
.float-btn {
  display: flex; align-items: center; gap: 8px;
  height: 56px; padding: 0 20px; border-radius: 999px; border: none; cursor: pointer;
  font-weight: 800; font-size: 15px; box-shadow: var(--shadow-lg); font-family: inherit;
}
.float-ico { font-size: 22px; line-height: 1; }
.float-kakao { background: var(--kakao); color: var(--kakao-ink); animation: pulse 2s infinite; }
.float-tel { background: var(--brand); color: #fff; }
.float-top {
  width: 46px; height: 46px; padding: 0; justify-content: center;
  background: rgba(26,26,46,.8); color: #fff; opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.float-top.show { opacity: 1; pointer-events: auto; }
.float-top .float-ico { font-size: 14px; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(254,229,0,.6), var(--shadow-lg); }
  70% { box-shadow: 0 0 0 16px rgba(254,229,0,0), var(--shadow-lg); }
  100% { box-shadow: 0 0 0 0 rgba(254,229,0,0), var(--shadow-lg); }
}

/* ---------- Blog page specifics ---------- */
.page-hero {
  background: linear-gradient(135deg, #1f6feb, #4a90ff); color: #fff;
  text-align: center; padding: 54px 0;
}
.page-hero h1 { font-size: 30px; font-weight: 900; }
.page-hero p { margin-top: 10px; opacity: .95; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--brand); }
.post-body h2 { font-size: 22px; margin: 30px 0 12px; letter-spacing: -.5px; }
.post-body h3 { font-size: 18px; margin: 24px 0 10px; color: var(--brand-dark); }
.post-body p, .post-body li { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 12px; }
.post-body ul, .post-body ol { padding-left: 22px; margin-bottom: 14px; }
.post-meta { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.post-figure { margin: 8px 0 26px; }
.post-figure img {
  width: 100%; height: auto; max-height: 420px; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow); display: block;
}
.post-figure figcaption { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 8px; }
.post-body img { border-radius: var(--radius); }
.post-cta {
  background: var(--brand-light); border: 1px solid #c6dbff; border-radius: var(--radius);
  padding: 26px; text-align: center; margin: 40px 0 10px;
}
.post-cta h3 { color: var(--ink); margin-bottom: 8px; }
.post-cta p { margin-bottom: 16px; }

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .hero { padding: 96px 0 104px; }
  .hero-title { font-size: 54px; }
  .hero-sub { font-size: 18px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .contact-stats { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 84px 0; }
  .section-head h2 { font-size: 33px; }
  .footer-inner { flex-direction: row; justify-content: space-between; }
  .footer-cols { min-width: 440px; }
  .page-hero h1 { font-size: 38px; }
}

@media (min-width: 992px) {
  .main-nav { display: flex; }
  .site-header .btn-header { display: inline-flex; }
  .nav-toggle { display: none; }
  .header-inner .btn-header { margin-left: 0; }
  .main-nav { margin-left: auto; }
  .float-btn { height: 60px; }
}
