:root {
  --night: #1d1a17;
  --night-text: #d6cfc6;
  --night-muted: #a39a8f;
  --paper: #f7f3ec;
  --surface: #ffffff;
  --text: #1a1c22;
  --muted: #55534e;
  --soft: #3d3b37;
  --line: #e7e0d4;
  --line-strong: #d5ccbd;
  --accent: #1f3fae;
  --accent-strong: #18318a;
  --accent-soft: #e9edf8;
  --accent-on: #d6def5;
  --accent-pale: #a9b8e6;
  --orange: #e8590c;
  --hot: #c2410c;
  --good: #0b7a47;
  --good-soft: #e6f4ec;
  --warn: #8a5300;
  --warn-soft: #fff4db;
  --danger: #b42318;
  --radius: 8px;
  --radius-card: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { word-break: keep-all; }
::selection { background: #c3cdeb; color: var(--text); }
:is(a, input, select, textarea, button, summary):focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
:is(.site-header-band, .final-cta) a:focus-visible { outline-color: #ffffff; }
.container { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; top: 12px; left: 16px; z-index: 2; padding: 10px 16px; background: var(--surface); color: var(--text); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--accent); }

.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 1px solid transparent; border-radius: var(--radius); font-size: 15px; font-weight: 700; line-height: 1.4; transition: background-color 0.18s, border-color 0.18s, color 0.18s; }
.button-small { min-height: 44px; padding: 0 18px; font-size: 14px; font-weight: 600; }
.button-primary { background: var(--accent); color: #ffffff; }
.button-primary:hover { background: var(--accent-strong); }
.button-ghost { border-color: #7a7268; color: #ffffff; }
.button-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.button-outline { border-color: var(--line-strong); background: var(--surface); color: var(--text); }
.button-outline:hover { border-color: var(--text); }
.button-light { background: #ffffff; color: var(--text); }
.button-light:hover { background: var(--accent-on); }
.button-outline-light { border-color: rgba(255, 255, 255, 0.6); color: #ffffff; }
.button-outline-light:hover { background: rgba(255, 255, 255, 0.12); }

.site-header-band { background: var(--night); color: #ffffff; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.hero-band { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; min-height: 88px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius); background: var(--accent); color: #ffffff; font-size: 13px; font-weight: 800; }
.brand strong { display: block; font-size: 16px; letter-spacing: 0.02em; line-height: 1.3; }
.brand small { display: block; font-size: 10px; letter-spacing: 0.14em; color: var(--night-muted); }
.header-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; font-size: 14px; color: var(--night-text); }
.nav-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; transition: color 0.18s; }
.nav-link:hover { color: #ffffff; }
.hot-badge { padding: 1px 6px; border-radius: 99px; background: var(--hot); color: #ffffff; font-size: 10px; font-weight: 800; letter-spacing: 0.04em; line-height: 1.5; }

.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; padding-block: 72px 88px; }
.hero-copy { flex: 1 1 440px; min-width: 0; }
.hero h1 { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.22; letter-spacing: -0.035em; font-weight: 750; }
.hero-description { margin-top: 24px; font-size: 18px; color: var(--muted); word-break: keep-all; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.account-note { margin-top: 20px; font-size: 13px; color: var(--muted); }

.report-sheet { flex: 1 1 460px; min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); box-shadow: 0 1px 2px rgba(29, 26, 23, 0.05), 0 12px 32px rgba(29, 26, 23, 0.06); }
.sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 16px 24px; border-bottom: 1px solid var(--line); font-size: 13px; }
.sheet-head span { color: var(--muted); }
.sheet-kpi { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 20px; padding: 24px 24px 0; }
.sheet-kpi p { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.sheet-kpi strong { font-size: 48px; font-weight: 750; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sheet-kpi span { font-size: 14px; font-weight: 600; color: var(--good); word-break: keep-all; }
.sheet-bars { height: 72px; margin: 16px 24px 24px; }
.sheet-rows { margin: 0; }
.sheet-rows > div { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 14px 24px; border-top: 1px solid var(--line); font-size: 14px; }
.sheet-rows dt { color: var(--muted); }
.sheet-rows dd { margin: 0; word-break: keep-all; }
.sheet-state { font-size: 13px; font-weight: 650; color: var(--good); white-space: nowrap; }
.sheet-state.is-pending { color: var(--warn); }
.report-sheet figcaption { padding: 12px 24px; border-top: 1px solid var(--line); background: #fbf8f2; font-size: 12px; color: var(--muted); }

.channel-strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.channel-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.channel { display: flex; align-items: center; gap: 12px; padding: 24px 20px; border-right: 1px solid var(--line); }
.channel:last-child { border-right: 0; }
.channel-mark { display: grid; place-items: center; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 800; }
.channel strong { display: block; font-size: 14px; line-height: 1.4; }
.channel small { font-size: 12px; color: var(--muted); }

.services, .features { padding-top: 112px; }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; margin-bottom: 48px; }
.section-heading h2 { margin-top: 14px; font-size: clamp(30px, 4vw, 44px); line-height: 1.2; letter-spacing: -0.03em; }
.section-heading > p { max-width: 440px; color: var(--muted); word-break: keep-all; }

.growth-process { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 24px; margin: 0; padding: 0; list-style: none; }
.growth-process li { padding-top: 20px; border-top: 2px solid var(--line-strong); }
.growth-process li:last-child { border-top-color: var(--accent); }
.step-tag { display: block; font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.growth-process li:last-child .step-tag { color: var(--accent); }
.growth-process h3 { margin-top: 8px; font-size: 19px; line-height: 1.4; }
.growth-process p { margin-top: 8px; font-size: 14px; color: var(--muted); word-break: keep-all; }

.service-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px 64px; margin-top: 96px; padding-top: 48px; border-top: 1px solid var(--line); }
.service-lead h3 { font-size: 30px; line-height: 1.3; letter-spacing: -0.02em; }
.service-lead > p:last-child { margin-top: 12px; color: var(--muted); }
.service-detail dl { margin: 0; }
.service-detail dl > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 8px 32px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.service-detail dl > div:first-child { padding-top: 0; }
.service-detail dt { font-size: 18px; font-weight: 700; }
.service-detail dd { margin: 0; color: var(--muted); word-break: keep-all; }

.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.result-card { min-width: 0; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.result-card.is-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center; gap: 24px 48px; padding: 40px; }
.result-card.is-wide .mini { margin-top: 0; }
.result-tag { font-size: 13px; font-weight: 700; color: var(--accent); }
.result-card h3 { margin-top: 8px; font-size: 24px; letter-spacing: -0.02em; }
.result-copy > p:not(.result-tag) { margin-top: 8px; font-size: 14px; color: var(--muted); word-break: keep-all; }
.mini { margin-top: 24px; padding: 18px; border-radius: var(--radius); background: var(--paper); font-size: 13px; }
.mini-kpis { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; }
.mini-kpi { padding: 12px; border-radius: var(--radius); background: var(--surface); }
.mini-kpi small { color: var(--muted); }
.mini-kpi strong { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.mini-kpi.is-accent { background: var(--accent); color: #ffffff; }
.mini-kpi.is-accent small { color: var(--accent-on); }
.mini-kpi.is-accent strong { font-size: 24px; }
.mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 96px; margin-top: 12px; }
.mini-bars span { flex: 1 1 0; border-radius: 4px 4px 0 0; background: var(--accent); opacity: 0.4; }
.mini-bars span:nth-child(1) { height: 30%; } .mini-bars span:nth-child(2) { height: 38%; } .mini-bars span:nth-child(3) { height: 34%; }
.mini-bars span:nth-child(4) { height: 46%; } .mini-bars span:nth-child(5) { height: 42%; } .mini-bars span:nth-child(6) { height: 52%; }
.mini-bars span:nth-child(7) { height: 48%; } .mini-bars span:nth-child(8) { height: 58%; } .mini-bars span:nth-child(9) { height: 55%; }
.mini-bars span:nth-child(10) { height: 64%; } .mini-bars span:nth-child(11) { height: 60%; } .mini-bars span:nth-child(12) { height: 72%; }
.mini-bars span:nth-child(13) { height: 70%; } .mini-bars span:nth-child(14) { height: 84%; opacity: 1; }
.mini-sources { display: grid; gap: 12px; }
.source-row { display: grid; grid-template-columns: 72px 1fr 52px; align-items: center; gap: 10px; }
.source-row > span:first-child { font-weight: 650; }
.source-row > span:last-child { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.source-track { height: 12px; overflow: hidden; border-radius: 6px; background: var(--line); }
.source-fill { display: block; height: 100%; }
.source-google { width: 82%; background: var(--accent); }
.source-naver { width: 64%; background: var(--orange); }
.source-direct { width: 30%; background: #6b6862; }
.source-social { width: 18%; background: #b5ada2; }
.mini-posts { padding-block: 8px; }
.post-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.post-row:last-child { border-bottom: 0; }
.post-row > span:first-child { font-weight: 650; }
.tags { display: flex; gap: 6px; }
.tag { padding: 2px 9px; border-radius: 99px; background: #f0eadf; color: var(--soft); font-size: 12px; font-weight: 700; white-space: nowrap; }
.tag-good { background: var(--good-soft); color: var(--good); }
.tag-warn { background: var(--warn-soft); color: var(--warn); }
.mini-geo { display: grid; gap: 10px; }
.geo-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); }
.geo-row small { display: block; color: var(--muted); }
.result-note { margin-top: 14px; font-size: 12px; color: var(--muted); }

.operations { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; margin-top: 48px; padding: 40px; border-radius: var(--radius-card); background: var(--accent-soft); }
.operations h3 { margin-top: 10px; font-size: 28px; line-height: 1.3; }
.operations > p { max-width: 520px; color: var(--soft); word-break: keep-all; }

.final-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; margin-top: 112px; padding: 56px; border-radius: var(--radius-card); background-color: var(--accent); color: #ffffff; }
.final-cta h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.25; letter-spacing: -0.03em; }
.final-cta p { margin-top: 14px; color: var(--accent-on); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.contact-section { display: flex; flex-wrap: wrap; gap: 48px; padding-block: 112px; }
.contact-copy { flex: 1 1 360px; }
.contact-copy h2 { margin-top: 14px; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.25; letter-spacing: -0.03em; }
.contact-copy > p:not(.eyebrow) { margin-top: 16px; color: var(--muted); word-break: keep-all; }
.contact-copy > #inquiry-kind-help { margin-top: 20px; padding: 14px 16px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent-strong); font-size: 14px; font-weight: 600; }
.contact-form { flex: 1.3 1 480px; min-width: 0; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.contact-form fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; min-width: 0; margin: 0; padding: 0; border: 0; }
.contact-full { grid-column: 1 / -1; }
.contact-field { display: flex; flex-wrap: wrap; column-gap: 6px; min-width: 0; font-size: 13px; font-weight: 650; }
.contact-field > span { color: var(--muted); font-weight: 400; }
.contact-field input, .contact-field select, .contact-field textarea { display: block; width: 100%; min-height: 48px; margin-top: 6px; padding: 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; font-size: 15px; font-weight: 400; }
.contact-field :is(input, select, textarea):focus { border-color: var(--accent); }
.contact-field textarea { resize: vertical; }
.contact-privacy { font-size: 13px; color: var(--muted); }
.contact-privacy summary { min-height: 32px; font-weight: 650; cursor: pointer; }
.contact-privacy p { padding-top: 8px; }
.contact-consent { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; }
.contact-consent input { flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--accent); }
#contact-submit { cursor: pointer; }
#contact-submit:disabled { cursor: wait; opacity: 0.65; }
#contact-message { margin-top: 18px; font-size: 14px; }
#contact-message[data-tone="error"] { color: var(--danger); }
#contact-message[data-tone="success"] { color: var(--good); }

/* 회사 정보 footer: aiblog·analytics·seo 세 서비스가 같은 마크업·값을 쓴다 */
.company-footer {
  --footer-bg: #1d1a17;
  --footer-text: #d6cfc6;
  --footer-muted: #a39a8f;
  --footer-line: rgba(255, 255, 255, 0.1);
  --footer-hover: #a9b8e6;
  background: var(--footer-bg);
  color: var(--footer-muted);
  font-size: 13px;
  line-height: 1.7;
}
.company-footer .footer-inner {
  display: grid;
  gap: 10px;
  padding-block: 40px 32px;
}
.company-footer p { margin: 0; }
.company-footer .footer-brand { color: var(--footer-text); }
.company-footer .footer-brand strong { margin-right: 2px; color: #ffffff; font-size: 15px; font-weight: 700; }
.company-footer .footer-brand span { margin-left: 8px; color: var(--footer-muted); }
.company-footer .footer-info { display: flex; flex-wrap: wrap; gap: 2px 20px; font-style: normal; }
.company-footer .footer-info b { margin-right: 6px; color: var(--footer-text); font-weight: 600; }
.company-footer .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--footer-line);
  font-size: 12px;
}
.company-footer a { color: #ffffff; text-decoration: none; }
.company-footer a:hover { color: var(--footer-hover); text-decoration: underline; }
.company-footer a:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; border-radius: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
@media (max-width: 1080px) {
  .growth-process { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-detail { grid-template-columns: 1fr; }
  .channel-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .channel:nth-child(2) { border-right: 0; }
  .channel:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .result-grid { grid-template-columns: 1fr; }
  .result-card.is-wide { grid-template-columns: 1fr; }
  .service-detail dl > div { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .container { width: calc(100% - 40px); }
  .site-header { gap: 12px; }
  .header-nav { flex-basis: 100%; gap: 0 18px; }
  .hero { gap: 40px; padding-block: 40px 56px; }
  .hero-description { font-size: 16px; }
  .hero-description br { display: none; }
  .sheet-head, .sheet-kpi, .sheet-rows > div, .report-sheet figcaption { padding-inline: 18px; }
  .sheet-bars { margin-inline: 18px; }
  .sheet-kpi { grid-template-columns: 1fr; }
  .sheet-kpi strong { font-size: 40px; }
  .sheet-rows > div { grid-template-columns: minmax(0, 1fr) auto; }
  .sheet-rows dt { grid-column: 1 / -1; font-size: 13px; }
  .channel-list { grid-template-columns: 1fr; }
  .channel { border-right: 0; border-bottom: 1px solid var(--line); padding-inline: 0; }
  .channel:last-child { border-bottom: 0; }
  .services, .features { padding-top: 72px; }
  .section-heading { margin-bottom: 32px; }
  .growth-process { grid-template-columns: 1fr; gap: 24px; }
  .service-detail { margin-top: 64px; padding-top: 32px; }
  .result-card, .result-card.is-wide, .operations, .contact-form { padding: 24px; }
  .service-lead h3 { font-size: 26px; }
  .operations { margin-top: 32px; }
  .operations h3 { font-size: 24px; }
  .final-cta { margin-top: 72px; padding: 32px 24px; }
  .cta-actions, .cta-actions .button { width: 100%; }
  .contact-section { padding-block: 72px; }
  .contact-form fieldset { grid-template-columns: 1fr; }
  .mini-kpi strong { font-size: 17px; }
  .mini-kpi.is-accent strong { font-size: 20px; }
}
