:root {
  color: #142a25;
  background: #f2f7f4;
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  font-synthesis: none;
  --ink: #142a25;
  --muted: #4b665e;
  --line: #d8e4df;
  --light: #f1f8f4;
  --green: #006a51;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #267cbd; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: 1.2rem; letter-spacing: -.035em; }
h3 { font-size: .95rem; letter-spacing: -.02em; }
p { line-height: 1.58; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.shell { width: min(1200px, calc(100% - 56px)); margin-inline: auto; }
.sr-only { position: absolute; height: 1px; width: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-header { background: #0c211e; color: #f1f8f4; border-bottom: 1px solid #233e38; }
.header-inner { min-height: 65px; display: flex; gap: 18px; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 1.3rem; font-weight: 770; letter-spacing: -.05em; text-decoration: none; }
.brand-mark { width: 22px; height: 22px; border-radius: 6px; background: #aaf4cf; position: relative; flex: none; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; background: #0c3f32; left: 6px; height: 3px; border-radius: 1.5px; transform: rotate(-33deg); }
.brand-mark::before { width: 12px; top: 7px; }
.brand-mark::after { width: 9px; top: 12px; }
.header-label { padding-left: 17px; border-left: 1px solid #4f6b60; color: #c0d2c9; font-size: .88rem; }
.test-badge { margin-left: auto; border: 1px solid #416752; border-radius: 99px; padding: 5px 9px; color: #b6f5d5; font-size: .75rem; font-weight: 680; white-space: nowrap; }

.hero { display: flex; gap: 24px; align-items: end; justify-content: space-between; padding: 42px 0 29px; }
.hero h1 { font-size: clamp(2rem, 5.6vw, 3.25rem); letter-spacing: -.07em; line-height: 1.11; font-weight: 800; }
.hero p { margin-top: 11px; color: var(--muted); font-size: .96rem; max-width: 590px; word-break: keep-all; }
.flow-map { margin: 0 0 4px; padding: 0; list-style: none; display: flex; gap: 9px; white-space: nowrap; }
.flow-map li { color: #335c4d; font-weight: 650; font-size: .82rem; }
.flow-map li + li::before { content: "→"; margin-right: 9px; color: #5e7c70; font-weight: 500; }

.console-grid { display: grid; gap: 28px; padding-top: 22px; }
.earnings h1 { font-size: clamp(1.5rem, 4vw, 2.25rem); letter-spacing: -.055em; }
.panel { border: 1px solid var(--line); background: #fff; border-radius: 15px; min-width: 0; box-shadow: 0 1px 3px #0a352710; padding: 22px; }
.section-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.muted { font-size: .84rem; color: var(--muted); }
.notice { margin-top: 9px; font-size: .82rem; color: #255d49; }
.notice:empty { display: none; }
.setup { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(240px,1fr); gap: 14px; align-items: start; }
.setup > h2 { grid-column: 1 / -1; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: clip; }
.metrics > div { padding: 17px 13px 16px; background: #fcfefd; min-width: 0; }
.metrics > div + div { border-left: 1px solid var(--line); }
.metrics span { display: block; font-size: .82rem; margin-bottom: 5px; color: var(--muted); }
.metric-value { font-variant-numeric: tabular-nums; font-size: clamp(1.08rem, 2.6vw, 1.8rem); letter-spacing: -.055em; line-height: 1.2; overflow-wrap: anywhere; }
.app-select select { max-width: min(13rem, 34vw); padding-block: 5px; min-height: 32px; font-size: .8rem; }
.inset-message { padding: 19px 0 5px; }
.payout-card { background: var(--light); border: 1px solid #d7e8e0; border-radius: 12px; padding: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 20px; }
.subheading-with-badge { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.status-badge { display: inline-block; color: #285743; padding: 3px 8px; background: #e2f1e8; font-size: .72rem; border-radius: 99px; font-weight: 690; white-space: nowrap; }
.payout-date { margin: 5px 0 1px; font-size: 1.03rem; font-weight: 720; letter-spacing: -.025em; color: #173b2e; font-variant-numeric: tabular-nums; }
.payout-actions { display: grid; gap: 6px; justify-items: start; }
.ledger-heading { display: flex; gap: 10px; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.ledger-heading strong { color: var(--ink); }
.activity { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 15px; }
.activity strong { color: var(--ink); }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .79rem; white-space: nowrap; }
th, td { padding: 10px 7px 10px 0; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 680; }

.inputs { display: grid; gap: 7px; margin-top: 15px; }
.inputs label { font-weight: 650; font-size: .85rem; }
.inputs label:not(:first-child) { margin-top: 3px; }
.inputs label span { margin-left: 2px; font-weight: 450; font-size: .73rem; }
input, textarea, select { border: 1px solid #b7cec5; background: white; color: var(--ink); border-radius: 7px; min-height: 39px; padding: 8px 10px; min-width: 0; }
textarea { resize: vertical; line-height: 1.5; }
input::placeholder { color: #637970; font-size: .83rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; border-radius: 7px; padding: 8px 10px; min-height: 35px; border: 1px solid transparent; font-weight: 690; font-size: .85rem; line-height: 1.23; text-decoration: none; text-align: center; }
.inputs .button { margin-top: 5px; }
.button.primary { background: #02654e; color: white; border-color: #02654e; }
.button.primary:hover:not(:disabled) { background: #004d3b; }
.button.secondary { background: #fff; color: #124c3b; border-color: #afcbbd; }
.button.secondary:hover:not(:disabled), .button.compact:hover:not(:disabled) { background: #e4f3eb; }
.button.compact { background: #eef7f1; color: #164d39; border-color: #d6e8de; font-size: .76rem; min-height: 31px; padding: 6px 8px; }
.button:disabled { opacity: .58; }
.full { width: 100%; }
.integration { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 15px; }
.integration .section-bar, .mcp-panel .section-bar { margin-bottom: 7px; }
.install-options { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: center; gap: 7px 10px; margin: 10px 0; font-size: .83rem; }
.install-options :is(input,select) { font-size: .83rem; }
.placement-preview { margin-block: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.placement-preview > .muted { margin-top: 3px; }
.preview-screen { padding: 12px; border: 1px solid var(--line); border-radius: 12px; margin-top: 10px; }
.preview-screen .result-content { min-height: 0; padding: 12px; }
.preview-screen h4 { margin: 0 0 5px; font-size: .93rem; }
.preview-screen .result-content p, .preview-screen .result-content li { font-size: .8rem; }
.preview-screen > [data-adthread-card] { min-width: 0; }
.preview-screen[data-position="inside"] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 9px; }
.preview-screen[data-platform="native"] { max-width: 355px; margin-inline: auto; }
.preview-screen[data-platform="native"][data-position="inside"] { grid-template-columns: 1fr; }
.preview-slot { min-width: 0; }
.preview-screen #preview-message { grid-column: 1 / -1; }
.placement-preview #user-test { margin-top: 10px; }
.placement-preview #user-test-message { overflow-wrap: anywhere; }
.placement-preview .install-actions { margin-top: 6px; }
.install-registration-note { margin-top: 12px; }
.platform-picker,.install-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.platform-picker [aria-pressed="true"] { background: #126047; color: #fff; border-color: #126047; }
.platform-picker [aria-pressed="true"]:hover { background: #0a4734; }
.builder-install { margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line); }
.builder-install p, .builder-install button, #native-install .button { margin-top: 6px; }
.builder-install summary { margin-top: 7px; font-size: .83rem; cursor: pointer; }
.builder-install pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.connect-panel { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.connect-panel .section-bar { margin-bottom: 6px; }
.connect-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 9px; }
.connect-note { margin-top: 9px; }
.connect-country { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 10px; font-size: .84rem; }
.connect-panel caption { text-align: left; font-weight: 690; padding-top: 12px; }
.integration pre { overflow: auto; border-radius: 8px; background: #102d25; color: #c0f1d7; padding: 11px; margin: 9px 0 10px; font-size: .72rem; line-height: 1.45; }
.address { display: block; padding: 8px; margin-top: 8px; border-radius: 7px; font-size: .73rem; background: #eef5f0; overflow-wrap: anywhere; color: #1e4c3b; }
#mcp-args-line { margin-top: 9px; }
.footer { padding: 24px 0 28px; color: var(--muted); font-size: .78rem; }

.demo-hero { align-items: center; }
.demo-hero h1 { font-size: clamp(1.7rem, 4.8vw, 2.7rem); }
.demo-hero .button { flex: none; }
.demo-grid { display: grid; gap: 18px; grid-template-columns: minmax(275px, .83fr) minmax(0, 1.65fr); align-items: start; }
.prompt-samples { margin-top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.sample-note { margin-top: 13px; }
.result-content { border: 1px solid #d5e6dc; border-radius: 10px; background: #f9fcfa; padding: 17px; min-height: 125px; }
.result-content h3 { font-size: 1.12rem; }
.result-content h3 + p { margin-top: 7px; }
.result-content p + p { margin-top: 7px; }
.result-content > * { overflow-wrap: anywhere; }
.result-content ol { margin: 12px 0 0; padding-left: 1.35rem; line-height: 1.55; }
.result-content ol li + li { margin-top: 5px; }
.result-content img, .result-content video { display: block; width: 100%; max-height: min(460px, 55vh); object-fit: contain; background: #133129; border-radius: 8px; margin-top: 11px; }
.result-content + [data-adthread-card] { margin-top: 12px; }
[data-adthread-card] + .result-content { margin-top: 12px; }
.demo-result-layout.with-ad-rail { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
.publisher-creative { background: #30245a; color: #faf6ff; border-radius: 8px; padding: 12px; }
.publisher-creative p { margin-block: 5px 8px; font-size: .81rem; }
.publisher-creative button { background: #ece2ff; color: #30245a; border: 0; border-radius: 5px; padding: 6px 8px; font-size: .8rem; font-weight: 700; }
@media (max-width: 890px) {
  .hero { align-items: flex-start; flex-direction: column; gap: 12px; }
}
@media (max-width: 730px) {
  .shell { width: calc(100% - 30px); }
  .hero { padding-top: 28px; }
  .setup, .demo-grid { grid-template-columns: 1fr; }
  .panel { padding: 16px; }
  .metrics > div { padding-inline: 7px; }
  .demo-result-layout.with-ad-rail { grid-template-columns: 1fr; }
  .preview-screen[data-position="inside"] { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::after, *::before { scroll-behavior: auto !important; }
}
