/* The homepage's premiere edition, carried through the reading and browse
   pages. All colors resolve through the shared dark/light theme tokens. */

:root { --r-frame: 12px; }
body { font-size: 15px; }
[hidden] { display: none !important; }
html { scroll-padding-top: 100px; }
.wrap { max-width: 1440px; padding-inline: clamp(22px, 4.8vw, 70px); }
body.seo main::before { display: none; }

.page-hero h1, section.page h2, .band h2,
.card h3, .post-card h3, .benefit .bd h3, .crosslink h3,
.step h3, .frow .copy h3, .faq summary, .article h2, .article h3,
.plan .plan-price .amt, .pack .pack-credits, .podium,
body.legal main h1, body.legal main h2 {
  font-family: var(--font-body);
  font-weight: 550;
  text-transform: none;
  letter-spacing: -0.045em;
  line-height: 1.12;
  text-wrap: balance;
}
.page-hero h1 {
  font-size: clamp(42px, 5.25vw, 78px);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.065em;
  max-width: 12em;
  margin: 20px 0 0;
}
.grad { color: var(--accent-ink); text-decoration: none; }
section.page h2 { font-size: clamp(30px, 3vw, 48px); max-width: 19em; line-height: 1.12; }
section.page .sub { max-width: 48em; font-size: 15px; line-height: 1.75; }
.eyebrow { font-family: var(--font-body); font-size: 11px; letter-spacing: .11em; font-weight: 500; }
.eyebrow::before { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-ink); }
.chip, .breadcrumb, .post-meta, .article-meta, .crosslink .k,
.card .k, .post-card .k, .proof-cap, .effect-index-group h3 .count {
  font-family: var(--font-body);
  letter-spacing: 0;
  text-transform: none;
}
.chip, .page-hero .trust .chip { font-size: 12px; font-weight: 400; line-height: 1.5; padding: 5px 0; border: 0; border-radius: 0; background: transparent; color: rgb(var(--c-muted)); }
.chip + .chip::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: rgb(var(--c-muted)); margin-right: 14px; }
/* Trust separators sit in the gap, centred, and the row clips at its edge:
   a line that wraps starts with a fact, never with a stray dot. */
.page-hero .trust { --trust-gap: 14px; gap: 4px var(--trust-gap); margin-top: 24px; overflow: hidden; }
.page-hero .trust .chip { position: relative; }
.page-hero .trust .chip + .chip::before {
  position: absolute; top: 50%; margin: -1.5px 0 0;
  left: calc(var(--trust-gap) / -2 - 1.5px);
}
.btn, .nav-trigger, .nav-plain {
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  text-transform: none; letter-spacing: -.015em;
}
.btn { min-height: 46px; padding: 13px 22px; white-space: normal; text-align: center; box-shadow: none; }
.btn-primary { font-weight: 600; box-shadow: none; }
.btn-primary:hover { box-shadow: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent-ink); outline-offset: 4px;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
header.site .bar { max-width: none; padding-inline: 30px; gap: 20px; }
.nav-trigger, .nav-plain { padding: 9px 10px; }
.nav-trigger[aria-current], .nav-plain[aria-current] { color: var(--accent-ink); }
.nav-dropdown { border-radius: 14px; }
.nav-dropdown .feature { border-radius: 10px; }
.mobile-menu:not([data-open="true"]) { visibility: hidden; }
.seo-lang, .seo-theme-toggle { min-height: 38px; }
header.site .bar .btn-webstudio { background: var(--accent-fill); color: var(--on-accent); border-color: var(--accent-fill); }
header.site .bar .btn-primary { background: transparent; color: rgb(var(--c-fg)); border-color: rgb(var(--c-line) / .25); }
.breadcrumb { padding-block: 25px 12px; font-size: 11px; line-height: 1.5; letter-spacing: 0; }
.breadcrumb::before { display: none; }
.breadcrumb a { color: rgb(var(--c-muted)); }
.skip-page { position: fixed; z-index: 100; top: 12px; left: 16px; padding: 12px 18px; background: var(--accent-fill); color: var(--on-accent); border-radius: 8px; transform: translateY(-180%); }
.skip-page:focus { transform: none; }

/* A split opening lets the work carry as much weight as the headline. */
.page-hero { padding: 30px 0 56px; }
.page-hero > .wrap { position: relative; }
.page-hero .lede { max-width: 35em; font-size: 16px; line-height: 1.75; margin-top: 24px; }
.page-hero .cta-row { margin-top: 30px; align-items: center; }
.premiere-art { margin: 0; position: relative; min-width: 0; }
.premiere-art-image { width: 100%; height: 100%; aspect-ratio: 1.13; object-fit: cover; border-radius: 14px; background: rgb(var(--c-surface)); }
.premiere-art figcaption { display: flex; align-items: center; gap: 9px; color: rgb(var(--c-muted)); font-size: 11px; line-height: 1.5; margin-top: 12px; }
.art-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent-ink); flex-shrink: 0; }
.art-corner { margin-left: auto; color: rgb(var(--c-fg)); }
@media (min-width: 960px) {
  .page-hero[data-premiere="visual"] > .wrap,
  .page-hero[data-premiere="pricing"] > .wrap,
  .page-hero[data-premiere="watch"] > .wrap {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    column-gap: clamp(32px, 4.4vw, 64px); align-items: start;
  }
  .page-hero[data-premiere] > .wrap > :not(.premiere-art):not(.watch-figure):not(.price-preview) { grid-column: 1; }
  .page-hero[data-premiere="visual"] .premiere-art,
  .page-hero[data-premiere="watch"] .watch-figure,
  .page-hero[data-premiere="pricing"] .price-preview { grid-column: 2; grid-row: 1 / span 6; align-self: center; }
  .page-hero[data-premiere="visual"] > .wrap > .eyebrow,
  .page-hero[data-premiere="watch"] > .wrap > .eyebrow { padding-top: 22px; }
  .page-hero[data-premiere="watch"] h1 { font-size: clamp(40px, 4.2vw, 64px); }
}
.page-hero[data-premiere="reading"] h1 { max-width: 13em; }
.page-hero[data-premiere="reading"] .lede { max-width: 45em; }
.page-hero .watch-figure { margin: 0; }
.page-hero .watch-video { max-height: 520px; width: 100%; max-width: 100%; object-fit: contain; border-radius: 14px; box-shadow: none; }
.page-hero .watch-figure figcaption { font-size: 12px; line-height: 1.65; text-align: left; }
.price-preview { margin: 18px 0 0; padding: clamp(24px, 3vw, 42px); border: 1px solid rgb(var(--c-line) / .2); border-radius: 14px; background: rgb(var(--c-surface) / .8); }
.price-preview-label { color: rgb(var(--c-muted)); font-size: 13px; margin: 0; }
.price-preview-price { font-size: clamp(52px, 5vw, 76px); font-weight: 500; letter-spacing: -.06em; margin: 20px 0 0; line-height: 1.1; }
.price-preview-price span { display: inline-block; margin-left: 10px; font-size: 13px; font-weight: 400; letter-spacing: 0; color: rgb(var(--c-muted)); }
.price-preview-credits { margin: 14px 0 0; font-size: 18px; letter-spacing: -.025em; }
.price-preview ul { list-style: none; padding: 22px 0; margin: 22px 0 0; border-top: 1px solid rgb(var(--c-line) / .15); font-size: 13px; color: rgb(var(--c-muted)); }
.price-preview li + li { margin-top: 9px; }
.price-preview li::before { content: "✓"; margin-right: 10px; color: var(--accent-ink); }
.price-preview > a { display: flex; justify-content: space-between; gap: 20px; font-size: 13px; min-height: 44px; align-items: center; border-top: 1px solid rgb(var(--c-line) / .15); padding-top: 14px; }
.price-preview > a:hover { color: var(--accent-ink); }

/* A chapter rail turns the long page into a useful, skimmable guide. */
.chapter-nav { display: flex; align-items: center; gap: 30px; min-height: 62px; border-block: 1px solid rgb(var(--c-line) / .12); }
.chapter-label { flex-shrink: 0; font-size: 11px; color: rgb(var(--c-muted)); }
.chapter-links { display: flex; gap: 24px; overflow-x: auto; min-width: 0; scrollbar-width: thin; scrollbar-color: rgb(var(--c-line) / .2) transparent; }
.chapter-links a { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 60px; font-size: 12px; color: rgb(var(--c-muted)); border-bottom: 2px solid transparent; }
.chapter-links a:hover, .chapter-links a[aria-current="location"] { color: rgb(var(--c-fg)); border-color: var(--accent-ink); }
.chapter-links a:focus-visible { outline-offset: -4px; }
/* A link cut by the scroller's edge fades out instead of leaving a sliver;
   end padding lets the last link scroll clear of the fade. */
.chapter-links { padding-inline-end: 32px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
#browse-collection { scroll-margin-top: 100px; }

/* Project choices have an outcome and a real destination, not a feature list. */
section.page { padding-block: 72px; }
section.page.start-guide { padding-block: 48px 54px; }
.start-guide::before { display: none; }
section.page.start-guide h2 { font-size: clamp(25px, 2.3vw, 34px); letter-spacing: -.045em; margin-top: 0; }
.path-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.path-choice { display: block; min-width: 0; border-radius: 10px; }
.path-image { width: 100%; height: auto; aspect-ratio: 1.95; object-fit: cover; border-radius: 10px; }
.path-copy { position: relative; padding: 20px 34px 12px 0; border-bottom: 1px solid rgb(var(--c-line) / .18); }
.path-copy h3 { font-size: 20px; line-height: 1.3; letter-spacing: -.04em; font-weight: 500; margin: 0 0 8px; }
.path-copy p { font-size: 13px; line-height: 1.65; color: rgb(var(--c-muted)); margin: 0 0 12px; max-width: 28em; }
.path-arrow { position: absolute; right: 4px; top: 20px; font-size: 20px; transition: transform 180ms ease; }
.path-choice:hover .path-arrow { transform: translate(2px, -2px); color: var(--accent-ink); }
.path-choice:hover .path-copy { border-color: var(--accent-ink); }

/* Quiet, useful controls. Hidden until the progressive enhancement binds. */
.collection-search { padding-top: 36px; padding-bottom: 20px; }
.premiere-js .collection-search[hidden] { display: block !important; visibility: hidden; }
.page-hero .collection-search { padding: 26px 0 0; margin: 0; }
.search-field { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: 620px; }
.search-field label { display: block; flex-basis: 100%; color: rgb(var(--c-fg)); font-size: 13px; font-weight: 500; }
.search-field input { font: inherit; font-size: 14px; color: rgb(var(--c-fg)); background: rgb(var(--c-surface)); border: 1px solid rgb(var(--c-line) / .22); border-radius: 9px; min-width: 0; flex: 1; min-height: 48px; padding: 12px 15px; }
.search-field input::placeholder { color: rgb(var(--c-muted)); opacity: 1; }
.search-clear, .copy-prompt { font: inherit; font-size: 12px; min-height: 44px; padding: 8px 14px; color: rgb(var(--c-fg)); border: 1px solid rgb(var(--c-line) / .25); border-radius: 8px; background: transparent; cursor: pointer; }
.search-clear:hover, .copy-prompt:hover { border-color: var(--accent-ink); }
.search-status, .search-empty { font-size: 13px; color: rgb(var(--c-muted)); margin: 10px 0 0; }
.search-status { min-height: 1.5em; }
.search-empty { color: rgb(var(--c-fg)); max-width: 45em; padding: 20px 0; }
.collection-search + section.page { padding-top: 32px; }
.collection-search + section.page::before { display: none; }
.copy-prompt { margin-block: 12px; }
.copy-status { display: block; min-height: 1.5em; color: rgb(var(--c-muted)); font-size: 12px; }
.audio-example-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; margin-top: 32px; }
.audio-example { min-width: 0; margin: 0; padding: 26px; background: rgb(var(--c-surface)); border: 1px solid rgb(var(--c-line) / .14); border-radius: 12px; }
.audio-example figcaption { font-size: 21px; letter-spacing: -.035em; }
.audio-example audio { display: block; width: 100%; margin-block: 24px 20px; }
.audio-example p { max-width: 42em; font-size: 13px; color: rgb(var(--c-muted)); line-height: 1.7; margin: 0; }
.audio-example p span { display: block; color: rgb(var(--c-fg)); margin-bottom: 5px; font-size: 11px; }

/* Imagery gives the directories a visual rhythm while the content does the
   explaining. Small related links stay compact, without redundant images. */
.grid, .posts { gap: 32px 28px; }
.card, .post-card { border-radius: 10px 10px 0 0; padding: 22px 0; }
.card::after, .post-card::after { display: none; }
.directory-image { width: 100%; aspect-ratio: 1.8; object-fit: cover; height: auto; border-radius: 10px; margin: -22px 0 22px; }
.card:has(.directory-image), .post-card:has(.directory-image) { border-top: 0; }
.card:has(.directory-image) > .icn-lg { display: none; }
.card h3, .post-card h3 { max-width: 24em; font-size: clamp(20px, 1.6vw, 25px); line-height: 1.2; margin-top: 0; letter-spacing: -.04em; }
.card p, .post-card p { font-size: 14px; line-height: 1.7; max-width: 35em; }
.post-card { gap: 14px; }
.post-card .k { font-size: 11px; }
.post-card .post-meta { font-size: 11px; }
.frow .copy h3 { font-size: clamp(28px, 3vw, 44px); line-height: 1.12; letter-spacing: -.055em; }
.mock { border-radius: 14px; background: rgb(var(--c-surface)); box-shadow: none; }
.mock .mock-img { opacity: 1; }
.mock::before, .mock::after { display: none; }
.mock .badge-lg { font-family: var(--font-body); font-size: 14px; text-transform: none; letter-spacing: 0; border-radius: 7px; }
.proof { gap: 20px; padding-block: 0; }
.proof::before, .proof::after, .proof-item::after { display: none; }
.proof-item, .proof-img { border-radius: 10px; }
.proof-item { margin: 0; }
.proof-item figcaption { font-family: var(--font-body); font-size: 12px; line-height: 1.65; letter-spacing: 0; text-transform: none; }
.benefits { gap: 24px 36px; }
.benefit { padding-block: 24px; }
.benefit .bd h3 { font-size: 20px; line-height: 1.25; margin-bottom: 10px; }
.benefit .bd p { font-size: 14px; line-height: 1.7; }
.benefit .ic { border-radius: 8px; }
.steps { max-width: 1040px; }
.step { padding-block: 28px; }
.step .n { font-family: var(--font-body); font-size: 22px; color: rgb(var(--c-muted)); -webkit-text-stroke: 0; letter-spacing: -.03em; padding-top: 4px; }
.step h3 { font-size: 23px; line-height: 1.3; }
.step p { font-size: 15px; line-height: 1.8; }
.faq summary { font-size: clamp(19px, 1.8vw, 26px); padding-block: 24px; letter-spacing: -.035em; line-height: 1.35; }
.faq details p { font-size: 15px; line-height: 1.8; max-width: 52em; }
.cmp { border-radius: 12px; border: 1px solid rgb(var(--c-line) / .14); padding: 8px 20px; background: rgb(var(--c-surface) / .4); }
.cmp th, .cmp td { font-size: 13px; padding: 18px 24px 18px 0; line-height: 1.65; }
.cmp thead th { font-family: var(--font-body); font-size: 12px; letter-spacing: 0; text-transform: none; }
.cmp-wrap { scrollbar-width: thin; scrollbar-color: rgb(var(--c-line) / .3) transparent; }
.pricing-grid { gap: 20px; }
.plan { border-radius: 12px; padding: 26px; background: rgb(var(--c-surface) / .55); }
.plan.featured { background: rgb(var(--c-surface)); }
.plan .plan-price .amt { font-size: 44px; letter-spacing: -.055em; }
.plan-name, .pack-label { font-family: var(--font-body); text-transform: none; letter-spacing: 0; }
/* Two lines of tagline keep the three prices on one baseline; the name row
   itself needs no reserved height. */
@media (min-width: 960px) { .plan .plan-tag { min-height: 3.3em; } }
.plan .plan-ledger .is-total dd { font-family: var(--font-body); letter-spacing: -.04em; }
.pack { border-radius: 10px; padding: 22px; background: rgb(var(--c-surface) / .5); }
.pack .pack-credits { font-size: 36px; }
.band { border-radius: 14px; padding: clamp(36px, 6vw, 80px); }
.band::before, .band::after { display: none; }
.band h2 { font-size: clamp(36px, 5vw, 70px); max-width: 14em; line-height: 1.05; letter-spacing: -.06em; }
.band .eyebrow { margin-bottom: 18px; }
.band p { font-size: 15px; }
.crosslink { padding: 24px 0; }
.crosslink h3 { font-size: 23px; max-width: 23em; }
.crosslink .k { font-size: 11px; }
.article { max-width: 820px; }
.article > p, .article > ul, .article > ol { font-size: 16px; line-height: 1.85; }
.article h2, section.page .article h2 { font-size: clamp(28px, 3vw, 40px); max-width: none; line-height: 1.2; letter-spacing: -.045em; margin-top: 48px; }
.article h3 { font-size: 24px; }
section.page .prose p { color: rgb(var(--c-muted)); font-size: 15px; line-height: 1.8; }
/* Running text keeps a reading measure on wide screens. */
section.page > .wrap > p:not([class]) { max-width: 70ch; line-height: 1.8; }
.page-hero.article-hero h1 { font-size: clamp(38px, 5vw, 72px); max-width: 15em; line-height: 1.08; }
.toc { border-radius: 10px; background: rgb(var(--c-surface) / .6); padding: 24px; }
.effect-index-group h3 { font-size: 21px; letter-spacing: -.04em; }
.effect-index-group li { padding-block: 14px; }
.effect-index-group li a { min-height: 32px; }
.workflow-briefs { gap: 24px; }
.workflow-brief { border-radius: 12px; padding: 28px; background: rgb(var(--c-surface) / .6); }
.workflow-brief h3 { font-size: 22px; letter-spacing: -.035em; font-weight: 500; }
.workflow-brief blockquote { font-size: 15px; line-height: 1.8; }
/* The homepage closes on the full-width King AI wordmark; so does every page. */
.colophon-mark { height: auto; max-width: 1440px; margin: 56px auto 0; padding: 0 clamp(22px, 4.8vw, 70px) clamp(24px, 4vw, 56px); font-size: 0; line-height: 0; -webkit-text-stroke: 0; overflow: visible; }
.colophon-mark img { display: block; width: 100%; height: auto; user-select: none; }
:root.light .colophon-mark img { filter: brightness(0); }
body.legal main h1 { font-size: clamp(42px, 5.5vw, 82px); letter-spacing: -.065em; line-height: 1.03; }
body.legal main h2 { font-size: clamp(25px, 2.6vw, 36px); line-height: 1.2; }
body.legal .legal-prose { font-size: 15px; line-height: 1.85; }
body.legal .legal-index a { font-family: var(--font-body); font-size: 13px; letter-spacing: 0; text-transform: none; }

@media (max-width: 1159px) {
  header.site .bar { padding-inline: 24px; }
}
@media (max-width: 959px) {
  .page-hero { padding-top: 22px; }
  .page-hero[data-premiere="visual"] > .wrap,
  .page-hero[data-premiere="pricing"] > .wrap { display: flex; flex-direction: column; align-items: stretch; }
  .page-hero[data-premiere="visual"] .premiere-art,
  .page-hero[data-premiere="pricing"] .price-preview { order: 10; }
  .page-hero h1 { max-width: 12em; font-size: clamp(40px, 7.8vw, 70px); }
  .premiere-art { margin-top: 30px; }
  .premiere-art-image { aspect-ratio: 1.8; max-height: 430px; }
  .page-hero .watch-figure { margin-top: 28px; }
  .page-hero .watch-video { max-height: 470px; }
  .page-hero .watch-figure figcaption { max-width: none; }
  .path-choices { gap: 20px; }
}
@media (max-width: 639px) {
  header.site .bar { padding-inline: 18px; gap: 12px; }
  .breadcrumb { padding-top: 20px; }
  .page-hero { padding-bottom: 36px; }
  .page-hero h1 { font-size: clamp(38px, 10.6vw, 60px); letter-spacing: -.06em; }
  .page-hero .lede { font-size: 15px; line-height: 1.75; margin-top: 22px; }
  .page-hero .cta-row { gap: 10px; margin-top: 24px; }
  .page-hero .trust { --trust-gap: 10px; margin-top: 18px; gap: 2px var(--trust-gap); }
  .chip, .page-hero .trust .chip { font-size: 11px; }
  .chip + .chip::before { margin-right: 10px; }
  .premiere-art { margin-top: 24px; }
  .premiere-art-image { aspect-ratio: 1.4; border-radius: 10px; }
  .premiere-art figcaption { font-size: 10px; }
  .chapter-nav { gap: 18px; }
  .chapter-label { display: none; }
  .chapter-links { gap: 22px; }
  .chapter-links a { min-height: 54px; }
  section.page { padding-block: 48px; }
  section.page.start-guide { padding-block: 34px 40px; }
  .path-choices { grid-template-columns: 1fr; gap: 24px; }
  .path-choice:has(.path-image) { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 18px; align-items: start; }
  .path-image { aspect-ratio: 1; }
  .path-copy { padding-top: 2px; padding-right: 22px; }
  .path-copy h3 { font-size: 18px; margin-bottom: 7px; }
  .path-copy p { font-size: 12px; margin-bottom: 10px; }
  .path-arrow { font-size: 18px; top: 0; }
  .collection-search { padding-block: 28px 14px; }
  .grid, .posts { gap: 22px; }
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-4 .card h3 { font-size: 18px; }
  .cols-4 .card p { font-size: 12px; }
  .directory-image { aspect-ratio: 1.7; }
  .cmp { padding-inline: 14px; }
  .step { gap: 16px; }
  .step h3 { font-size: 20px; }
  .step p { font-size: 14px; }
  .workflow-brief { padding: 20px; }
  .plan { padding: 22px; }
  .band { padding: 36px 22px; }
  .page-hero.article-hero h1 { font-size: clamp(34px, 9vw, 50px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.seo-ready .reveal { opacity: 1; transform: none; translate: none; }
}

/* Same-prompt benchmark frames say so on the frame. */
.card:has(.art-tag), .post-card:has(.art-tag) { position: relative; }
.art-tag { position: absolute; top: 12px; left: 12px; padding: 4px 9px; border-radius: 6px; font-size: 11px; line-height: 1.4; color: #fff; background: rgb(0 0 0 / .58); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none; }
