@import url("moderation-criteria-colors.css");

/* A quiet, product-led presentation. Theme preference is shared with the app. */
:root {
  color-scheme: light;
  --bg: #fff; --panel: #f5f5f7; --card: #fff; --ink: #1d1d1f;
  --muted: #6e6e73; --line: #d2d2d7; --blue: #0066cc;
  --green: #24734c; --reject: #b83239; --review: #926000;
  --header: #ffffffd9; --shadow: 0 18px 48px -12px #0000001a, 0 4px 12px -4px #00000012;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
:root[data-mode="dark"] {
  color-scheme: dark;
  --bg: #000; --panel: #151517; --card: #202023; --ink: #f5f5f7;
  --muted: #a1a1a6; --line: #38383d; --blue: #70b4ff;
  --green: #80cba4; --reject: #ff9a9f; --review: #edc078;
  --header: #000000d9; --shadow: 0 18px 48px -12px #0009, 0 4px 12px -4px #0006;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a, input, textarea, summary { touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.06; }
h1 { font-size: clamp(54px, 6.4vw, 88px); letter-spacing: -.065em; font-weight: 650; }
h1 em { font-style: normal; color: var(--blue); }
h2 { font-size: clamp(38px, 4.5vw, 60px); letter-spacing: -.05em; font-weight: 650; }
h3 { font-size: 25px; letter-spacing: -.035em; font-weight: 600; }
.wrap { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.preview-note { background: var(--panel); color: var(--muted); text-align: center; padding: 9px 20px; font-size: 10px; letter-spacing: .08em; }
.preview-note span { letter-spacing: 0; margin-left: 12px; }
header { position: sticky; top: 0; z-index: 10; background: var(--header); backdrop-filter: blur(22px); border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.navigation { min-height: 64px; display: flex; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; font-size: 21px; font-weight: 600; letter-spacing: -.8px; white-space: nowrap; }
.domain { color: var(--muted); font-weight: 400; }
.brandmark { display: inline-flex; width: 27px; height: 27px; margin-right: 8px; flex-shrink: 0; }
.brandmark svg, .final-mark svg { width: 100%; height: 100%; }
.lg-st { stroke: var(--ink); fill: none; }
.lg-acc { fill: var(--blue); }
nav { display: flex; align-items: center; gap: 25px; }
nav a { font-size: 15px; }
nav a:hover, .text-link:hover { color: var(--blue); }
.header-controls { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.mode-btn { position: relative; display: inline-flex; align-items: center; justify-content: space-between; flex-shrink: 0; width: 64px; height: 36px; padding: 8px; border: 1px solid var(--line); background: var(--panel); border-radius: 999px; }
.mode-btn svg { position: relative; z-index: 1; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mode-thumb { position: absolute; left: 3px; top: 3px; width: 28px; height: 28px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 4px #0002; transition: transform .2s ease; }
:root[data-mode="dark"] .mode-thumb { transform: translateX(28px); }
.mode-btn:hover { border-color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .mode-thumb { transition: none; } }
.menu { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 12px 24px; border: 1px solid transparent; border-radius: 999px; color: #fff; background: #0071e3; font-size: 15px; font-weight: 400; transition: background .2s, transform .2s; }
.button:hover { color: #fff; background: #0077ed; transform: translateY(-1px); }
.button.small { font-size: 15px; padding: 7px 16px; min-height: 32px; }
.button.secondary { background: transparent; color: var(--blue); border-color: var(--blue); }
.button.secondary:hover { background: #0071e3; color: #fff; }
.text-link { color: var(--blue); font-size: 17px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.eyebrow { color: var(--muted); font-size: 13px; letter-spacing: .03em; font-weight: 600; margin-bottom: 22px; }
.hero { padding-top: 76px; padding-bottom: 100px; text-align: center; }
.hero-copy { position: relative; }
.hero .eyebrow { color: var(--ink); font-size: 18px; letter-spacing: -.02em; }
.hero .eyebrow>span { display: none; }
.lede { max-width: 590px; margin: 25px auto 28px; font-size: 21px; line-height: 1.5; color: var(--muted); letter-spacing: -.02em; }
.actions { display: flex; justify-content: center; align-items: center; gap: 28px; flex-wrap: wrap; }
.micro { font-size: 12px; color: var(--muted); margin-top: 16px; }
.micro span { margin: 0 6px; }
.hero-bottom { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; margin-top: 36px; font-size: 12px; color: var(--muted); }
.tiny-label { font-size: 10px; font-weight: 600; letter-spacing: .08em; color: var(--muted); }
.rotating-use-case { display: inline-grid; vertical-align: bottom; line-height: 1.13; overflow: hidden; font-size: .88em; letter-spacing: -.055em; white-space: nowrap; }
.rotating-use-case>span { grid-area: 1/1; opacity: 0; transition: opacity 450ms ease; pointer-events: none; }
.rotating-use-case>span.active { opacity: 1; }
.rotating-use-case .glyph { display: inline-block; }
.demo { max-width: 880px; margin: 48px auto 0; text-align: left; border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); border-radius: 24px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 28px; border-bottom: 1px solid var(--line); font-size: 12px; }
.demo>.panel-heading { display: block; background: var(--panel); border: 0; }
.simulation-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.label { font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.panel-heading button { background: transparent; border: 0; color: var(--blue); font-size: 11px; padding: 7px 0; min-height: 30px; }
.simulation-description { font-size: 12px; color: var(--muted); margin-top: 3px; }
.demo-inner { padding: 26px 30px; display: grid; grid-template-columns: 1.1fr 1fr; column-gap: 32px; }
.example-tabs { grid-column: 1/-1; display: flex; justify-content: center; flex-wrap: wrap; gap: 5px; margin-bottom: 17px; }
.example-tabs button, .billing button { min-height: 38px; background: transparent; border: 1px solid transparent; border-radius: 999px; color: var(--muted); padding: 8px 15px; font-size: 12px; }
.example-tabs button:hover { color: var(--ink); }
.example-tabs .selected { background: var(--panel); color: var(--ink); border-color: var(--line); }
.autoplay-controls { grid-column: 1/-1; margin-bottom: 22px; font-size: 10px; color: var(--muted); text-align: center; }
.demo-inner>label { grid-column: 1; }
.demo textarea { grid-column: 1; grid-row: 4; width: 100%; min-height: 140px; resize: vertical; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--ink); margin-top: 8px; padding: 18px; font-size: 16px; line-height: 1.6; }
#sample.typing { border-color: var(--blue); }
.caption { color: var(--muted); font-size: 12px; line-height: 1.6; }
.outcome { grid-column: 2; grid-row: 3/5; padding: 22px; border-radius: 16px; background: color-mix(in srgb, var(--green) 7%, var(--card)); display: grid; grid-template-columns: 1fr auto; gap: 10px; align-content: center; min-height: 168px; }
.outcome h3 { margin-top: 10px; font-size: 30px; color: var(--green); }
.outcome p { grid-column: 1/-1; font-size: 12px; color: var(--muted); }
.outcome-icon { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid var(--green); color: var(--green); border-radius: 50%; align-self: center; }
.score { grid-column: 2; grid-row: 5/6; padding-top: 14px; }
.score>div:first-child { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 11px; color: var(--muted); }
.track { height: 4px; background: var(--panel); border-radius: 5px; overflow: hidden; }
.track span { display: block; height: 100%; background: var(--green); transition: width .3s; }
.advanced { grid-column: 1; margin-top: 14px; }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary>span { color: var(--muted); font-size: 23px; font-weight: 300; }
details[open]>summary>span { transform: rotate(45deg); }
.advanced summary { font-size: 12px; color: var(--muted); }
.advanced label { display: flex; justify-content: space-between; margin-top: 15px; font-size: 12px; }
.advanced input { width: 100%; margin-top: 10px; accent-color: var(--blue); }
.demo-disclaimer { grid-column: 1/-1; max-width: 620px; margin: 22px auto 0; text-align: center; color: var(--muted); font-size: 10px; }
.section { padding-block: 110px; }
.coverage, .trust, .faq-section { background: var(--panel); }
.section-intro { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 90px; }
.section-intro>p, .section-copy { font-size: 19px; line-height: 1.6; color: var(--muted); letter-spacing: -.02em; }
.section-copy { margin-top: 24px; }
.use-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 48px 0 32px; }
.use-cases article { background: var(--card); border-radius: 24px; padding: 32px; min-height: 290px; }
.use-cases article, .plan { box-shadow: var(--shadow); }
.case-number { display: block; color: var(--blue); font-size: 32px; font-weight: 600; letter-spacing: -.05em; margin-bottom: 35px; }
.use-cases p, .trust article p { margin-top: 18px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.category-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 22px; }
.category-list span { border: 1px solid color-mix(in srgb, var(--category-color) 35%, var(--line)); border-radius: 999px; padding: 7px 14px; font-size: 12px; color: var(--ink); background: color-mix(in srgb, var(--category-color) 14%, var(--panel)); }
.coverage-note { color: var(--muted); font-size: 16px; line-height: 1.7; }
.integration-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 70px; align-items: center; }
.steps { list-style: none; margin: 34px 0; padding: 0; }
.steps li { display: flex; gap: 16px; margin-bottom: 25px; }
.steps li>span { flex-shrink: 0; width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: var(--muted); }
.steps h3 { font-size: 17px; margin: 4px 0 7px; }
.steps p { font-size: 14px; color: var(--muted); }
.code-panel { min-width: 0; overflow: hidden; background: #161619; color: #f5f5f7; border: 1px solid #333338; border-radius: 24px; box-shadow: var(--shadow); }
.code-panel .panel-heading { border-color: #38383d; }
.code-panel button, .method { color: #70b4ff; }
.method { font-size: 10px; margin-right: 10px; }
.code-caption, .response-heading { display: flex; justify-content: space-between; gap: 12px; color: #70b4ff; font-size: 10px; margin: 22px 26px; }
.code-caption span, .response-heading span, .code-help { color: #a1a1a6; }
pre { margin: 0; padding: 0 26px 18px; overflow-x: auto; font-size: 12px; line-height: 1.9; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.code-help { font-size: 11px; margin: 0 26px 22px; line-height: 1.6; }
.response-heading { padding-top: 22px; border-top: 1px solid #38383d; }
.response span { color: #80cba4; }
.workspace { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 30px; padding-top: 32px; margin-top: 70px; border-top: 1px solid var(--line); }
.workspace>div { display: flex; align-items: center; gap: 15px; }
.workspace-icon { color: var(--blue); font-size: 28px; }
.workspace h3 { font-size: 18px; }
.workspace p { font-size: 14px; color: var(--muted); }
.workspace .text-link { font-size: 14px; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 45px; margin-top: 60px; }
.trust .section-intro { margin-bottom: clamp(32px, 4vw, 48px); }
.trust-symbol { display: block; font-size: 38px; color: var(--blue); margin-bottom: 24px; }
.trust article h3 { font-size: 23px; }
.trust .text-link { display: inline-block; font-size: 14px; margin-top: 18px; }
.honesty { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 25px; display: grid; grid-template-columns: 180px 1fr; gap: 25px; font-size: 12px; }
.honesty p { color: var(--muted); }
.pricing-title { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.billing { display: inline-flex; background: var(--panel); padding: 4px; border-radius: 999px; margin-bottom: 10px; }
.billing button { padding-inline: 20px; }
.billing .selected { color: var(--ink); background: var(--card); box-shadow: 0 2px 8px #00000012; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 45px; }
.plan { display: flex; flex-direction: column; border-radius: 24px; padding: 34px; background: var(--panel); border: 1px solid transparent; }
.plan.featured { border-color: var(--blue); }
.plan-label { font-size: 10px; color: var(--muted); letter-spacing: .06em; margin-bottom: 22px; }
.plan h3 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -.025em; }
.plan .price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: .5rem;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.price strong { font-weight: 600; letter-spacing: -.045em; overflow-wrap: anywhere; }
.price > span { font-size: .875rem; line-height: 1.4; color: var(--muted); }
.allowance { font-size: 1rem; font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums; }
.plan-benefits { padding-inline-start: 1.1rem; font-size: .9375rem; line-height: 1.5; }
.plan-benefits li + li { margin-top: .35rem; }
.plan-benefits li::marker { color: var(--muted); }
.plan-audience { margin-top: .375rem; line-height: 1.5; }
.plan-desc { flex: 1; font-size: 14px; color: var(--muted); margin: 22px 0 30px; }
.plan-detail { margin-top: 20px; min-height: 36px; font-size: .8125rem; line-height: 1.55; color: var(--muted); }
.estimator { border-bottom: 1px solid var(--line); padding: 28px 0; font-size: 15px; }
.estimate-inner { display: flex; align-items: center; gap: 30px; padding-top: 20px; color: var(--muted); font-size: 14px; }
.pricing-footer { display: flex; justify-content: space-between; gap: 40px; margin-top: 22px; }
.pricing-footer p { max-width: 750px; color: var(--muted); font-size: 11px; }
.pricing-footer a { font-size: 13px; white-space: nowrap; }
.faq-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 90px; }
.faq-grid h2 { margin-bottom: 28px; }
.faq details { padding: 23px 0; border-bottom: 1px solid var(--line); }
.faq details:first-child { padding-top: 0; }
.faq summary { font-size: 17px; font-weight: 500; }
.faq p { padding-top: 18px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.final { text-align: center; padding-block: 110px; position: relative; }
.final>p:not(.eyebrow) { margin: 25px 0 30px; font-size: 19px; color: var(--muted); }
.final-mark { width: 48px; height: 48px; margin: 45px auto 0; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-block: 28px; }
footer .brand { font-size: 17px; }
footer p, footer nav a { font-size: 13px; color: var(--muted); }
.skip { position: fixed; top: -100px; z-index: 100; background: var(--blue); color: var(--bg); padding: 12px; }
.skip:focus { top: 5px; }
@media (max-width: 1050px) {
  .wrap { width: calc(100% - 48px); }
  .navigation { gap: 16px; } nav { gap: 16px; }
  .section-intro, .integration-grid, .faq-grid { gap: 40px; }
  .use-cases article, .plan { padding: 26px; }
  .workspace { grid-template-columns: 1fr 1fr; }
  .workspace>a { grid-column: 2; }
}
@media (max-width: 800px) {
  .navigation { flex-wrap: wrap; min-height: 60px; gap: 0; }
  .menu { display: flex; gap: 15px; align-items: center; padding: 10px; border: 0; background: transparent; font-size: 16px; min-height: 44px; }
  .navigation nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 0 20px; }
  .navigation nav.open { display: flex; }
  .navigation nav a { padding: 12px; font-size: 16px; }
  .navigation nav .button { margin-top: 10px; }
  .section { padding-block: 75px; }
  .section-intro, .integration-grid, .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .section-intro>p { max-width: 570px; }
  .use-cases, .trust-grid { gap: 16px; }
  .use-cases article { padding: 22px; }
  .use-cases h3, .trust article h3 { font-size: 21px; }
  .plans { gap: 12px; }
  .plan { padding: 22px; }
  .plan .button { padding-inline: 12px; font-size: 13px; }
  .pricing-title { align-items: start; flex-direction: column; }
  .pricing-footer { flex-direction: column; gap: 16px; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 40px); }
  .preview-note { font-size: 9px; padding: 7px 12px; }
  .preview-note span { display: block; margin: 2px 0 0; }
  .hero { padding-top: 52px; padding-bottom: 60px; }
  h1 { font-size: clamp(38px, 10vw, 60px); }
  h2 { font-size: 39px; }
  .hero .eyebrow { font-size: 16px; margin-bottom: 20px; }
  .lede { font-size: 18px; margin: 22px auto 26px; }
  .hero-bottom { gap: 14px; font-size: 10px; margin-top: 28px; }
  .hero-bottom .tiny-label { width: 100%; font-size: 9px; }
  .actions { gap: 20px; }
  .text-link { font-size: 15px; }
  .demo { margin-top: 32px; border-radius: 20px; }
  .demo>.panel-heading { padding: 16px 18px; }
  .label { font-size: 10px; }
  .simulation-description { font-size: 11px; }
  .panel-heading .simulation-playback { font-size: 10px; min-height: 44px; }
  .demo-inner { display: flex; flex-direction: column; padding: 20px; }
  .example-tabs { gap: 3px; margin-bottom: 12px; }
  .example-tabs button { font-size: 10px; padding: 7px 10px; min-height: 40px; }
  .autoplay-controls { margin-bottom: 18px; }
  .demo textarea { font-size: 15px; min-height: 130px; }
  .outcome { margin-top: 20px; min-height: 155px; }
  .score { padding-top: 18px; }
  .advanced { padding-top: 14px; border-top: 1px solid var(--line); }
  .demo-disclaimer { margin-top: 20px; }
  .section { padding-block: 65px; }
  .section-intro>p, .section-copy { font-size: 17px; }
  .use-cases, .trust-grid, .plans { grid-template-columns: 1fr; }
  .use-cases { margin-top: 32px; }
  .use-cases article { padding: 30px; min-height: auto; }
  .case-number { margin-bottom: 25px; }
  .use-cases h3 { font-size: 25px; }
  .category-list { gap: 7px; }
  .category-list span { font-size: 11px; padding: 6px 11px; }
  .workspace { grid-template-columns: 1fr; gap: 18px; margin-top: 40px; }
  .workspace>a { grid-column: 1; }
  .trust-grid { margin-top: 35px; gap: 35px; }
  .trust-symbol { margin-bottom: 15px; }
  .honesty { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
  .plans { margin-top: 30px; gap: 20px; }
  .plan { padding: 32px; }
  .plan-detail { min-height: 0; }
  .estimate-inner { align-items: start; flex-direction: column; gap: 18px; }
  .faq summary { font-size: 16px; }
  .final { padding-block: 70px; }
  .final>p:not(.eyebrow) { font-size: 17px; }
  footer { flex-wrap: wrap; gap: 20px; }
  footer p { order: 3; width: 100%; }
  footer nav { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Optional side-by-side concept: ?layout=split shares all content and behavior. */
@media (min-width: 901px) {
  [data-layout="split"] .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 4vw, 64px);
    text-align: left;
    padding-block: 80px 90px;
  }
  [data-layout="split"] .hero-copy { min-width: 0; }
  [data-layout="split"] h1 { font-size: clamp(44px, 4.8vw, 65px); }
  [data-layout="split"] .hero .eyebrow { font-size: 15px; }
  [data-layout="split"] .lede { font-size: 19px; margin-inline: 0; max-width: 440px; }
  [data-layout="split"] .hero .actions { justify-content: flex-start; gap: 24px; }
  [data-layout="split"] .hero-bottom { justify-content: flex-start; gap: 16px; }
  [data-layout="split"] .hero-bottom .tiny-label { width: 100%; }
  [data-layout="split"] .demo { width: 100%; margin: 0; }
  [data-layout="split"] .demo>.panel-heading { padding: 18px 24px; }
  [data-layout="split"] .demo-inner { display: flex; flex-direction: column; padding: 24px; }
  [data-layout="split"] .example-tabs { justify-content: flex-start; gap: 4px; margin-bottom: 12px; }
  [data-layout="split"] .example-tabs button { padding: 7px 11px; font-size: 11px; }
  [data-layout="split"] .autoplay-controls { text-align: left; margin-bottom: 16px; }
  [data-layout="split"] .demo textarea { min-height: 118px; font-size: 15px; }
  [data-layout="split"] .outcome { margin-top: 20px; min-height: 152px; }
  [data-layout="split"] .score { padding-top: 18px; }
  [data-layout="split"] .advanced { border-top: 1px solid var(--line); padding-top: 12px; }
  [data-layout="split"] .demo-disclaimer { text-align: left; margin-top: 18px; }
}

/* Give the headline more room in the split concept. */
@media (min-width: 901px) {
  [data-layout="split"] .hero {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: clamp(32px, 4vw, 56px);
  }
  [data-layout="split"] h1 { font-size: clamp(48px, 5.4vw, 72px); }
  [data-layout="split"] .lede { max-width: 480px; }
  [data-layout="split"] .demo>.panel-heading { padding: 13px 18px; }
  [data-layout="split"] .simulation-heading { gap: 8px; }
  [data-layout="split"] .label { font-size: 11px; }
  [data-layout="split"] .simulation-description { font-size: 11px; }
  [data-layout="split"] .demo-inner { padding: 18px; }
  [data-layout="split"] .example-tabs { gap: 3px; margin-bottom: 8px; }
  [data-layout="split"] .example-tabs button { padding: 5px 9px; font-size: 10px; min-height: 32px; }
  [data-layout="split"] .autoplay-controls { margin-bottom: 10px; }
  [data-layout="split"] .demo textarea { min-height: 94px; padding: 12px; font-size: 14px; line-height: 1.5; }
  [data-layout="split"] .outcome { margin-top: 12px; min-height: 126px; padding: 16px; gap: 7px; }
  [data-layout="split"] .outcome h3 { font-size: 27px; margin-top: 6px; }
  [data-layout="split"] .score { padding-top: 12px; }
  [data-layout="split"] .advanced { margin-top: 12px; padding-top: 8px; }
  [data-layout="split"] .demo-disclaimer { margin-top: 12px; line-height: 1.5; }
}

/* Restore the staggered letter reveal and emphasize the free starting point. */
.rotating-use-case>span.active .glyph {
  animation: glyph-reveal 650ms cubic-bezier(.22,1,.36,1) both;
  animation-delay: calc(var(--glyph-index) * 23ms);
}
@keyframes glyph-reveal {
  from { opacity: 0; transform: translateY(.45em) rotateX(-35deg); filter: blur(3px); }
  to { opacity: 1; transform: translateY(0) rotateX(0); filter: blur(0); }
}
.micro {
  display: inline-block;
  margin-top: 22px;
  padding: 10px 16px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 8%, var(--bg));
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.micro span { color: var(--blue); }
@media (prefers-reduced-motion: reduce) {
  .rotating-use-case>span.active .glyph { animation: none; }
}

/* Invisible text reserves the longest result at each responsive width. */
#verdict, #reason { display: grid; }
#verdict>span, #reason>span, #verdict::after, #reason::after { grid-area: 1 / 1; }
#verdict::after { content: "Flagged for review"; visibility: hidden; }
#reason::after {
  content: "This example reaches the rejection threshold. Your app decides whether to block it.";
  visibility: hidden;
}

/* Allow any number of public billing plans. */
.plans { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.page-notifications:empty { display: none; }

.plan-terms { margin-top: 18px; font-size: .875rem; line-height: 1.55; color: var(--muted); }
.plan-terms p { margin-top: 12px; }
.plan-terms summary { font-weight: 600; color: var(--blue); }

/* Interactive request controls retain the integration panel styling. */
.code-actions, .code-languages { display: flex; align-items: center; gap: 16px; }
.code-languages button { background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 8px 0; color: #a1a1a6; font: inherit; }
.code-languages button[aria-selected="true"] { color: #70b4ff; border-bottom-color: currentColor; }
.code-panel button:focus-visible { outline: 2px solid #70b4ff; outline-offset: 4px; }
.code-panel .code-caption { align-items: center; flex-wrap: wrap; }
@media (max-width: 480px) { .code-panel .panel-heading { flex-wrap: wrap; } .code-actions { width: 100%; justify-content: flex-end; } }

.code-languages { flex-wrap: wrap; column-gap: 16px; row-gap: 4px; }
.code-panel .example-string { color: #80cba4; }
.code-panel .example-line > span:not(.example-string) { color: inherit; }
.example-line.animated { display: inline; animation: example-line-in 320ms cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--line-index) * 35ms); }
/* Newlines remain in textContent so Copy produces executable source. */
.example-line.animated { white-space: pre; }
.code-panel button:disabled { opacity: .6; cursor: wait; }
@keyframes example-line-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.scroll-reveal { transition: transform 700ms cubic-bezier(.2,.8,.2,1), opacity 700ms; }
.scroll-reveal:not(.revealed) { transform: translateY(22px); opacity: .55; }
@media (prefers-reduced-motion: reduce) {
  .example-line.animated { animation: none; }
  .scroll-reveal:not(.revealed) { transform: none; opacity: 1; }
}

/* Wrap long snippets within the panel instead of exposing a horizontal scrollbar. */
.code-panel pre { white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: hidden; }
.code-panel .example-line.animated { white-space: pre-wrap; }
.example-response { margin: 0 26px 22px; border-top: 1px solid #38383d; padding-top: 20px; }
.example-response summary { color: #70b4ff; font-size: 12px; min-height: 36px; }
.example-response summary > span { color: #70b4ff; }
.example-response .code-help { margin: 16px 0; }
.example-response pre { padding: 0; }
.example-response summary:focus-visible { outline: 2px solid #70b4ff; outline-offset: 4px; }

/* The previous homepage's dashboard, adapted to the current theme. */
.usage-demo { border: 1px solid var(--line); border-radius: 20px; padding: 24px; background: var(--panel); display: grid; gap: 20px; }
.usage-demo-heading, .usage-demo h3 { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.usage-demo h3 { font-size: 16px; line-height: 1.4; }
.usage-demo h3 span, .usage-demo-note, .usage-metrics small { font-size: 12px; color: var(--muted); font-weight: 400; line-height: 1.6; }
.usage-demo-heading h3 span { border: 1px solid var(--line); border-radius: 20px; padding: 3px 10px; }
.usage-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.usage-metrics > div, .usage-panel { background: var(--card); padding: 20px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.usage-metrics > div { display: flex; flex-direction: column; gap: 8px; }
.usage-metrics > div > span { font-size: 12px; color: var(--muted); }
.usage-metrics strong { font-size: clamp(24px,3vw,32px); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.usage-demo meter { width: 100%; height: 12px; accent-color: var(--blue); }
.usage-panels { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }
.usage-panel { display: grid; align-content: start; gap: 16px; }
.usage-chart { height: 220px; position: relative; min-width: 0; }
#usage-categories { display: grid; gap: 14px; }
.usage-category { display: grid; grid-template-columns: 85px minmax(30px,1fr) 35px; gap: 12px; align-items: center; font-size: 12px; }
.usage-category > span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.usage-table-scroll { overflow-x: auto; }
.usage-demo table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; white-space: nowrap; }
.usage-demo th { color: var(--muted); font-size: 11px; font-weight: 500; }
.usage-demo td, .usage-demo th { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.usage-demo tbody tr:last-child td { border: 0; }
.usage-status { font-size: 12px; font-weight: 500; }
.usage-status.pass { color: var(--green); }.usage-status.review { color: var(--review); }.usage-status.rejected { color: var(--reject); }
@media (max-width: 950px) { .usage-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } .usage-panels { grid-template-columns: 1fr; } }
@media (max-width: 540px) { .usage-demo { padding: 14px; gap: 14px; } .usage-metrics { gap: 10px; } .usage-metrics > div, .usage-panel { padding: 14px; } .usage-metrics strong { font-size: 24px; } }

.usage-playback { border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 10px 14px; min-height: 44px; font-size: 12px; }
.usage-category { grid-template-columns: minmax(105px,1.4fr) minmax(30px,1fr) 35px; color: var(--category-color); }
.usage-category > span:first-child { overflow-wrap: anywhere; }
.usage-category-track { height: 7px; background: var(--panel); border-radius: 8px; overflow: hidden; }
.usage-category-track > span { display: block; height: 100%; background: var(--category-color); border-radius: inherit; transition: width .65s ease; }
.usage-criterion { display: inline-block; color: var(--category-color); background: color-mix(in srgb,var(--category-color) 12%,transparent); border: 1px solid color-mix(in srgb,var(--category-color) 35%,transparent); border-radius: 20px; padding: 3px 8px; margin: 2px 5px 2px 0; font-size: 11px; }
.usage-demo .usage-message { white-space: normal; min-width: 210px; max-width: 380px; line-height: 1.5; }
.usage-demo tbody tr { height: 88px; }
.usage-demo td { vertical-align: middle; }
@media (prefers-reduced-motion: reduce) { .usage-category-track > span { transition: none; } }

.usage-status.error { color: #8b3ded; }
:root[data-mode="dark"] .usage-status.error { color: #bc8cff; }

/* Quiet chart chrome, with the data and changing values taking priority. */
.usage-chart { height: 280px; }
.usage-panels > .usage-panel:first-child { background: linear-gradient(160deg, color-mix(in srgb, var(--card) 96%, var(--blue)), var(--card) 65%); }
.usage-chart-legend { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.usage-series { display: grid; grid-template-columns: 7px minmax(0,1fr); align-items: center; gap: 7px; text-align: left; border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 10px; min-width: 0; transition: opacity .2s, border-color .2s; }
.usage-series:hover { border-color: var(--series-color); }
.usage-series > i { width: 6px; height: 6px; border-radius: 50%; background: var(--series-color); }
.usage-series > span { color: var(--muted); font-size: 10px; line-height: 1.4; }
.usage-series > strong { grid-column: 2; font-size: 18px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.usage-series[aria-pressed="false"] { opacity: .45; }
.usage-series[aria-pressed="false"] > span { text-decoration: line-through; }
.usage-value-glyph { display: inline-block; white-space: pre; font-variant-numeric: tabular-nums; }
.usage-metrics strong { min-height: 1.3em; line-height: 1.3; }
.usage-metrics > div { box-shadow: 0 3px 12px -8px #0002; }
.usage-category > span:last-child { min-width: 3ch; }
@media (max-width: 540px) {
  .usage-chart { height: 240px; }
  .usage-chart-legend { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .usage-series > span { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .usage-series { transition: none; } }

.usage-credit-progress { --quota-percent: 0%; position: relative; height: 7px; margin: 6px 0; overflow: hidden; border-radius: 999px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.usage-credit-progress > progress { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.usage-credit-fill { display: block; height: 100%; width: clamp(0%, var(--quota-percent), 100%); border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--blue) 75%, #6558f5), var(--blue), color-mix(in srgb, var(--blue) 60%, #5ed9ed)); transition: width 600ms ease; }
@media (prefers-reduced-motion: reduce) { .usage-credit-fill { transition: none; } }

#plan-estimator[hidden] { display: none; }
#pricing .plan { scroll-margin-top: 6rem; }
#pricing .plans > .plan {
  display: grid;
  grid-row: span 7;
  grid-template-rows: subgrid;
  align-items: start;
}
#pricing .plans:empty { display: none; }
#pricing .plan-billing .plan-detail { min-height: 0; }
#pricing .plan-billing .plan-detail + .plan-detail { margin-top: .4rem; }
#pricing .enterprise-plan {
  margin-top: 1.5rem;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
#pricing .enterprise-plan .button { margin: 0; flex-shrink: 0; }
@media (max-width: 600px) {
  #pricing .enterprise-plan { flex-direction: column; align-items: stretch; }
}
#pricing .plan-audience, #pricing .shared-benefits { color: var(--muted); font-size: 14px; }
#pricing .plan .price, #pricing .plan-detail, #pricing .plan-terms { margin: 0; }
#pricing .plan .button { margin-top: auto; }
#pricing .volume-match { border-color: var(--blue); }
#pricing .volume-match h3::after { content: "Fits your volume"; display: block; font-size: 13px; color: var(--blue); }
#pricing .shared-benefits { margin-top: 1.5rem; }

#plan-estimator { gap: 2rem; align-items: center; }
.volume-control { flex: 1 1 55%; min-width: 0; width: 100%; }
.volume-heading, .volume-scale { display: flex; justify-content: space-between; gap: 1rem; }
.volume-heading { color: var(--ink); }
#volume-value { font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
#plan-estimator #volume { width: 100%; padding: 0; margin: 1rem 0 .5rem; accent-color: var(--blue); cursor: pointer; min-height: 32px; }
#volume:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.volume-scale { font-size: .75rem; }
#recommendation { flex: 1 1 45%; line-height: 1.6; }
#pricing .volume-match { box-shadow: 0 0 0 2px var(--blue), var(--shadow); background: color-mix(in srgb, var(--panel) 96%, var(--blue)); }
@media (max-width: 600px) { #plan-estimator { flex-direction: column; align-items: stretch; gap: 1rem; } }

#plan-estimator { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; }
#plan-estimator .volume-control { width: 100%; }
#pricing .plan { transition: translate .25s ease, border-color .25s ease, background-color .25s ease, box-shadow .25s ease; }
@media (hover: hover) and (pointer: fine) {
  #pricing .plan:hover { translate: 0 -6px; border-color: var(--blue); box-shadow: var(--shadow); }
  #pricing .plan.volume-match:hover { box-shadow: 0 0 0 2px var(--blue), var(--shadow); }
}
#pricing .plan:focus-within { border-color: var(--blue); }
#volume-value { min-width: 10ch; text-align: right; }
@media (prefers-reduced-motion: reduce) {
  #pricing .plan, #pricing .plan:hover { transition: none; translate: none; }
}
