:root {
  --ink: #171717;
  --paper: #ffffff;
  --canvas: #f2f4f8;
  --line: #d7dbe3;
  --muted: #626873;
  --cobalt: #2d4bd8;
  --cobalt-deep: #203ab6;
  --coral: #ff624c;
  --mint: #37c2a1;
  --yellow: #ffd84a;
  --header-height: 72px;
  --display: "DM Serif Display", Georgia, serif;
  --body: "Instrument Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; letter-spacing: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); font-size: 16px; line-height: 1.6; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; background: var(--paper); color: var(--ink); border: 0; white-space: nowrap; }
.skip-link:focus { width: auto; height: auto; overflow: visible; clip-path: none; padding: 9px 14px; border: 2px solid var(--ink); }

.site-header { position: relative; z-index: 50; height: var(--header-height); background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { width: min(100% - 40px, 1240px); height: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand-mark { display: grid; place-items: center; width: 34px; aspect-ratio: 1; color: var(--paper); background: #873600; border-radius: 6px; font-family: var(--display); font-size: 22px; font-weight: 400; line-height: 1; }
.site-nav { display: flex; align-items: center; gap: 7px; }
.site-nav a { padding: 7px 10px; color: #4b505a; text-decoration: none; font-size: 14px; font-weight: 600; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--coral); }
.site-nav .nav-action { margin-left: 9px; padding: 9px 15px; color: var(--paper); background: var(--ink); border: 1px solid var(--ink); border-radius: 5px; }
.site-nav .nav-action:hover { color: var(--paper); background: var(--cobalt); border-color: var(--cobalt); }
.menu-button { display: none; width: 42px; height: 42px; padding: 10px; background: transparent; border: 1px solid var(--line); border-radius: 5px; }
.menu-button > span:not(.sr-only) { display: block; height: 2px; margin: 4px 0; background: var(--ink); }

.section-inner { width: min(100% - 48px, 1180px); margin: 0 auto; }
.eyebrow { margin: 0 0 16px; color: var(--cobalt); font-size: 12px; font-weight: 700; line-height: 1.2; text-transform: uppercase; }
.eyebrow.light { color: var(--mint); }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.02; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 11px 19px; border: 1px solid transparent; border-radius: 5px; text-decoration: none; font-size: 14px; font-weight: 700; cursor: pointer; transition: transform 160ms ease, background-color 160ms ease, color 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: var(--paper); background: var(--cobalt); }
.button.primary:hover { background: var(--cobalt-deep); }
.button.dark { color: var(--paper); background: var(--ink); }
.button.outline { color: var(--ink); background: transparent; border-color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.light-link { color: var(--paper); }

.hero { min-height: calc(100svh - var(--header-height) - 68px); max-height: 720px; color: var(--paper); background: var(--ink); border-bottom: 12px solid var(--coral); }
.hero-inner { width: min(100% - 48px, 1240px); min-height: inherit; max-height: inherit; margin: 0 auto; display: grid; grid-template-columns: minmax(0, .88fr) minmax(480px, 1.12fr); align-items: center; gap: 64px; padding: 42px 0; }
.hero-copy { position: relative; z-index: 1; animation: rise-in 500ms ease both; }
.hero h1 { margin: 0; font-size: 76px; }
.hero-lede { margin: 12px 0 14px; color: var(--yellow); font-family: var(--display); font-size: 31px; line-height: 1.15; }
.hero-support { max-width: 560px; margin: 0; color: #cfd1d7; font-size: 17px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 28px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 32px; color: #9ca1aa; font-size: 12px; font-weight: 600; text-transform: uppercase; }
.hero-notes span { position: relative; }
.hero-notes span + span::before { position: absolute; left: -11px; content: "/"; color: var(--coral); }
.form-workspace { min-width: 0; color: var(--ink); background: #e6e9ef; border: 1px solid #4a4a4a; box-shadow: 14px 14px 0 var(--cobalt); animation: rise-in 600ms 100ms ease both; }
.workspace-bar { height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 18px; background: var(--paper); border-bottom: 1px solid #c8ccd4; font-size: 12px; font-weight: 700; }
.status-dot { display: inline-flex; align-items: center; gap: 7px; color: #236c5d; }
.status-dot::before { width: 8px; height: 8px; content: ""; background: var(--mint); border-radius: 50%; }
.workspace-grid { min-height: 390px; display: grid; grid-template-columns: .78fr 1.22fr; }
.prompt-pane { padding: 26px 22px; background: #dde1e8; border-right: 1px solid #c3c8d1; }
.pane-label { display: block; margin-bottom: 28px; color: #656b76; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.prompt-pane p { margin: 0; font-family: var(--display); font-size: 23px; line-height: 1.25; }
.prompt-meta { display: flex; flex-direction: column; gap: 8px; margin-top: 28px; color: #6b707a; font-size: 11px; font-weight: 600; }
.sheet-preview { width: calc(100% - 42px); min-height: 344px; margin: 22px auto; padding: 27px; background: var(--paper); box-shadow: 0 8px 24px rgb(23 23 23 / 10%); }
.sheet-kicker { color: var(--cobalt); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.sheet-line { height: 8px; margin-top: 10px; background: var(--ink); }
.sheet-line.wide { width: 76%; }
.sheet-line.short { width: 44%; height: 4px; margin-bottom: 27px; background: #b8bdc6; }
.field-preview { display: grid; grid-template-columns: 26px 1fr; gap: 10px; margin: 21px 0; }
.field-preview > span { display: grid; place-items: center; width: 24px; height: 24px; color: var(--paper); background: var(--cobalt); border-radius: 50%; font-size: 10px; font-weight: 700; }
.field-preview b { display: block; margin-bottom: 7px; font-size: 11px; line-height: 1.3; }
.field-preview i { display: block; width: 100%; height: 5px; margin: 6px 0; background: #e1e4ea; }
.field-preview i + i { width: 68%; }
.compact-field { margin-bottom: 0; }

.article-surface { color: var(--paper); background: var(--cobalt); border-bottom: 1px solid #1d36ae; }
.article-surface .section-inner { padding: 58px 0 62px; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 64px; align-items: end; margin-bottom: 48px; }
.section-heading h2 { max-width: 760px; margin: 0; font-size: 46px; }
.section-heading > p { max-width: 480px; margin: 0; color: #555b66; }
.article-heading { margin-bottom: 28px; }
.article-heading h2 { font-size: 42px; }
.article-heading > p { color: #dce2ff; }
.article-ledger { border-top: 1px solid rgb(255 255 255 / 28%); }
.article-row { min-height: 67px; display: grid; grid-template-columns: 130px minmax(0, 1fr) 28px; gap: 20px; align-items: center; padding: 10px 0; color: var(--paper); border-bottom: 1px solid rgb(255 255 255 / 28%); text-decoration: none; }
.article-row:hover { background: rgb(0 0 0 / 9%); }
.article-index { color: #bdc8ff; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.article-title { font-family: var(--display); font-size: 22px; line-height: 1.2; }
.article-arrow { font-size: 20px; transition: transform 160ms ease; }
.article-row:hover .article-arrow { transform: translateX(4px); }
.visual-row .article-index { width: 76px; height: 44px; overflow: hidden; background: #fff; }
.visual-row img { width: 100%; height: 100%; object-fit: cover; }

.workflow-band { background: var(--paper); }
.workflow-band .section-inner { padding: 92px 0 96px; }
.workflow-steps { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.workflow-steps li { display: grid; grid-template-columns: 110px 1fr; gap: 28px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.workflow-steps > li > span { color: var(--coral); font-size: 13px; font-weight: 700; }
.workflow-steps h3 { margin: 0 0 8px; font-size: 23px; }
.workflow-steps p { max-width: 720px; margin: 0; color: #626873; }

.language-band { color: var(--paper); background: #0f6f62; }
.language-layout { min-height: 430px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; padding: 70px 0; }
.language-statement h2 { max-width: 500px; margin: 0 0 22px; font-size: 51px; }
.language-statement > p:last-child { max-width: 520px; margin: 0; color: #d4f1ea; font-size: 17px; }
.language-sample { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgb(255 255 255 / 40%); border-left: 1px solid rgb(255 255 255 / 40%); transform: rotate(-2deg); }
.language-sample span { min-height: 98px; display: grid; place-items: center; padding: 12px; border-right: 1px solid rgb(255 255 255 / 40%); border-bottom: 1px solid rgb(255 255 255 / 40%); font-family: var(--display); font-size: 23px; }

.closing-band { background: var(--yellow); }
.closing-inner { min-height: 270px; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 50px 0; }
.closing-inner h2 { max-width: 720px; margin: 0; font-size: 45px; }

.page-intro { background: var(--canvas); border-bottom: 1px solid var(--line); }
.intro-grid { min-height: 430px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 90px; align-items: center; padding: 70px 0; }
.intro-grid h1 { max-width: 720px; margin: 0; font-size: 68px; }
.intro-copy { max-width: 530px; margin: 0; color: #4f5560; font-size: 20px; line-height: 1.7; }

.principles-band { background: var(--paper); }
.principles-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; padding: 88px 0; }
.principle-lead > span { color: var(--coral); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.principle-lead h2 { margin: 18px 0 0; font-size: 42px; }
.principle-list { border-top: 2px solid var(--ink); }
.principle-list > div { display: grid; grid-template-columns: 180px 1fr; gap: 28px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.principle-list b { font-size: 15px; }
.principle-list p { margin: 0; color: var(--muted); }

.faq-band { background: var(--canvas); }
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; padding: 92px 0; }
.faq-heading { position: sticky; top: 32px; align-self: start; }
.faq-heading h2 { max-width: 360px; margin: 0; font-size: 45px; }
.faq-list { border-top: 2px solid var(--ink); }
.faq-list details { border-bottom: 1px solid #bfc4ce; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 0; cursor: pointer; font-size: 18px; font-weight: 700; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; color: var(--paper); background: var(--cobalt); border-radius: 50%; font-size: 20px; font-weight: 400; transition: transform 160ms ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { max-width: 640px; margin: -5px 48px 24px 0; color: #555c67; }
.faq-list details a { color: var(--cobalt-deep); }

.contact-band { color: var(--paper); background: var(--ink); }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; padding: 84px 0; }
.contact-layout h2 { max-width: 560px; margin: 0 0 24px; font-size: 46px; }
.contact-email { color: var(--yellow); font-weight: 700; text-underline-offset: 5px; }
.contact-links { border-top: 1px solid #555; }
.contact-links a { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid #555; text-decoration: none; }
.contact-links span { color: #aeb2ba; }

.pricing-band { padding: 88px 0; background: var(--paper); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.price-plan { position: relative; display: flex; flex-direction: column; min-height: 470px; padding: 30px; border-right: 1px solid var(--line); }
.price-plan:last-child { border-right: 0; }
.standard-plan { color: var(--paper); background: var(--cobalt); border-right-color: var(--cobalt); }
.plan-top { min-height: 35px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-weight: 700; }
.plan-note { padding: 3px 8px; color: var(--ink); background: var(--yellow); border-radius: 3px; font-size: 10px; text-transform: uppercase; }
.token-glyph { width: 17px; height: 17px; background: var(--coral); transform: rotate(45deg); }
.token-total { display: flex; align-items: baseline; gap: 9px; margin-top: 55px; }
.token-total b { font-family: var(--display); font-size: 64px; font-weight: 400; line-height: 1; }
.token-total span { color: var(--muted); font-size: 13px; }
.standard-plan .token-total span { color: #d9dfff; }
.price { display: flex; align-items: start; gap: 4px; margin-top: 18px; }
.price b { font-family: var(--display); font-size: 39px; font-weight: 400; line-height: 1; }
.price-plan p { margin: 22px 0 30px; color: var(--muted); }
.standard-plan p { color: #dbe0ff; }
.price-plan .button { width: 100%; margin-top: auto; }
.standard-plan .button { color: var(--ink); background: var(--paper); }
.pricing-note { display: grid; grid-template-columns: 220px 1fr; gap: 30px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.pricing-note span { color: var(--coral); font-weight: 700; }
.pricing-note p { margin: 0; color: var(--muted); }

.create-main { min-height: calc(100vh - var(--header-height)); color: var(--paper); background: var(--ink); }
.create-heading { padding: 54px 0 38px; border-bottom: 1px solid #444; }
.create-heading h1 { margin: 0 0 14px; font-size: 55px; }
.create-heading p:last-child { max-width: 650px; margin: 0; color: #bfc3ca; }
.brief-builder { padding: 0 24px 70px; }
.builder-layout { width: min(100%, 1220px); min-height: 650px; margin: 0 auto; display: grid; grid-template-columns: 430px minmax(0, 1fr); color: var(--ink); background: var(--paper); }
.brief-controls { padding: 28px; background: #edf0f5; border-right: 1px solid #c9ced7; }
.control-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; padding-bottom: 14px; border-bottom: 1px solid #c8cdd6; }
.control-heading span { color: var(--cobalt); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.control-heading b { font-size: 14px; }
.field-group { display: block; margin-bottom: 18px; }
.field-group > span { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; font-size: 12px; font-weight: 700; }
.field-group input, .field-group select, .field-group textarea { width: 100%; min-height: 44px; padding: 10px 12px; color: var(--ink); background: var(--paper); border: 1px solid #b9bfc9; border-radius: 4px; }
.field-group textarea { min-height: 104px; resize: vertical; }
.field-group input::placeholder, .field-group textarea::placeholder { color: #858b95; }
.control-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.range-group input { min-height: 20px; padding: 0; accent-color: var(--cobalt); }
.range-group output { color: var(--cobalt); }
.toggle-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 10px 0 24px; cursor: pointer; }
.toggle-row span { display: flex; flex-direction: column; }
.toggle-row b { font-size: 12px; }
.toggle-row small { color: #68707c; font-size: 11px; }
.toggle-row input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-row i { position: relative; width: 42px; height: 24px; flex: 0 0 auto; background: #9aa1ac; border-radius: 20px; transition: background-color 160ms ease; }
.toggle-row i::after { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; content: ""; background: var(--paper); border-radius: 50%; transition: transform 160ms ease; }
.toggle-row input:checked + i { background: var(--cobalt); }
.toggle-row input:checked + i::after { transform: translateX(18px); }
.toggle-row input:focus-visible + i { outline: 3px solid var(--yellow); outline-offset: 3px; }
.build-button { width: 100%; }
.brief-result { min-width: 0; background: var(--paper); }
.result-toolbar { min-height: 63px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 28px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.result-toolbar button { padding: 6px 0; color: var(--cobalt); background: transparent; border: 0; font-size: 11px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.result-toolbar button:disabled { color: #9ba1aa; cursor: default; }
.result-empty { min-height: 580px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; text-align: center; }
.empty-mark { display: grid; place-items: center; width: 70px; height: 70px; margin-bottom: 20px; color: var(--paper); background: #873600; border-radius: 8px; font-family: var(--display); font-size: 42px; }
.result-empty h2 { margin: 0; font-size: 29px; }
.result-empty p { margin: 8px 0 0; color: var(--muted); }
.result-content { padding: 42px 48px 60px; }
.result-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.result-meta span { padding: 4px 8px; color: var(--cobalt-deep); background: #e9edff; border-radius: 3px; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.result-content h2 { margin: 0; font-size: 38px; }
.result-content > p { margin: 12px 0 30px; color: var(--muted); }
.result-content ol { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); counter-reset: question; }
.result-content li { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); counter-increment: question; }
.result-content li::before { content: counter(question, decimal-leading-zero); color: var(--coral); font-size: 10px; font-weight: 700; }
.result-content li span { font-size: 14px; font-weight: 600; }
.result-content li small { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.result-actions { display: flex; align-items: center; gap: 24px; margin-top: 28px; }

.article-body { background: var(--canvas); }
.article-mast { color: var(--paper); background: var(--cobalt); }
.article-mast-inner { width: min(100% - 48px, 1180px); min-height: 80px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.article-back { text-decoration: none; }
.article-layout { width: min(100% - 48px, 1120px); margin: 0 auto; display: grid; grid-template-columns: 210px minmax(0, 760px); justify-content: center; gap: 70px; padding: 74px 0 100px; }
.article-rail { position: sticky; top: 32px; align-self: start; padding-top: 15px; border-top: 2px solid var(--ink); }
.article-rail > span { color: var(--coral); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.article-rail p { margin: 12px 0 24px; color: var(--muted); font-size: 13px; }
.article-rail a { color: var(--cobalt-deep); font-size: 12px; font-weight: 700; }
.article-content { min-width: 0; padding: 54px 64px 70px; background: var(--paper); border-top: 7px solid var(--coral); box-shadow: 0 18px 50px rgb(23 23 23 / 7%); }
.article-content > h1:first-child { margin: 0 0 30px; font-size: 56px; }
.article-content h2 { margin: 54px 0 18px; padding-top: 4px; font-size: 34px; line-height: 1.15; }
.article-content h3 { margin: 35px 0 12px; font-size: 21px; line-height: 1.25; }
.article-content p { margin: 0 0 20px; color: #353a42; line-height: 1.8; }
.article-content b, .article-content strong { color: var(--ink); }
.article-content ul, .article-content ol { margin: 0 0 25px; padding-left: 22px; }
.article-content li { margin-bottom: 10px; color: #353a42; }
.article-content img { width: 100%; height: auto; margin: 30px auto; border: 1px solid var(--line) !important; border-radius: 4px !important; }
.article-content p[style*="text-align:center"] { margin: 30px 0; }
.article-content p[style*="text-align:center"] img { margin: 0 auto; }
.article-table-wrap { margin: 32px 0; overflow-x: auto; border: 1px solid var(--line); }
.article-content table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 13px; }
.article-content th, .article-content td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.article-content th { color: var(--paper); background: var(--ink); }
.article-content tr:last-child td { border-bottom: 0; }
.article-finish { margin-top: 62px; padding: 30px 0 0; border-top: 2px solid var(--ink); }
.article-finish p { color: var(--ink); font-family: var(--display); font-size: 24px; }

.site-footer { color: var(--paper); background: var(--ink); border-top: 1px solid #393939; }
.footer-inner { width: min(100% - 48px, 1180px); margin: 0 auto; display: grid; grid-template-columns: 1.25fr .85fr .65fr; gap: 70px; padding: 62px 0; }
.footer-brand { color: var(--paper); }
.footer-inner p { max-width: 340px; margin: 18px 0 0; color: #aeb2ba; font-size: 13px; }
.footer-contact, .footer-social { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-contact > span, .footer-social > span { margin-bottom: 7px; color: var(--mint); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.footer-contact a, .footer-social a { color: #d9dce1; font-size: 13px; text-underline-offset: 4px; }
.footer-base { width: min(100% - 48px, 1180px); min-height: 54px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; color: #898e97; border-top: 1px solid #393939; font-size: 11px; }
.footer-base a { color: #aeb2ba; }

@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

@media (max-width: 980px) {
  .hero { max-height: none; }
  .hero-inner { grid-template-columns: .8fr 1.2fr; gap: 32px; }
  .hero h1 { font-size: 60px; }
  .form-workspace { box-shadow: 9px 9px 0 var(--cobalt); }
  .workspace-grid { grid-template-columns: 1fr; min-height: 360px; }
  .prompt-pane { padding: 18px; border-right: 0; border-bottom: 1px solid #c3c8d1; }
  .prompt-pane p { font-size: 18px; }
  .pane-label { margin-bottom: 10px; }
  .prompt-meta { flex-direction: row; margin-top: 12px; }
  .sheet-preview { min-height: 235px; margin: 16px auto; padding: 20px; }
  .field-preview { margin: 14px 0; }
  .section-heading { gap: 40px; }
  .article-layout { grid-template-columns: 160px minmax(0, 700px); gap: 35px; }
  .article-content { padding: 45px; }
  .article-content > h1:first-child { font-size: 48px; }
  .builder-layout { grid-template-columns: 380px minmax(0, 1fr); }
  .result-content { padding: 38px 34px 50px; }
}

@media (max-width: 760px) {
  :root { --header-height: 62px; }
  .header-inner, .section-inner, .article-mast-inner, .article-layout, .footer-inner, .footer-base { width: min(100% - 32px, 1180px); }
  .menu-button { display: block; }
  .site-nav { position: absolute; top: var(--header-height); left: 0; right: 0; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 14px 16px 18px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 12px 28px rgb(23 23 23 / 12%); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 11px 8px; border-bottom: 1px solid var(--line); }
  .site-nav .nav-action { margin: 11px 0 0; text-align: center; border-bottom: 0; }
  .hero { min-height: calc(100svh - var(--header-height) - 24px); }
  .hero-inner { width: min(100% - 32px, 1240px); min-height: inherit; grid-template-columns: 1fr; align-content: center; gap: 26px; padding: 28px 0 34px; }
  .hero h1 { font-size: 51px; }
  .hero-lede { font-size: 25px; }
  .hero-support { font-size: 14px; line-height: 1.55; }
  .hero-actions { margin-top: 20px; }
  .hero-notes { display: none; }
  .form-workspace { max-height: 230px; overflow: hidden; }
  .workspace-bar { height: 40px; }
  .workspace-grid { min-height: 190px; grid-template-columns: .75fr 1.25fr; }
  .prompt-pane { padding: 12px; border-right: 1px solid #c3c8d1; border-bottom: 0; }
  .prompt-pane p { font-size: 14px; }
  .prompt-meta { display: none; }
  .sheet-preview { width: calc(100% - 18px); min-height: 170px; margin: 9px auto; padding: 12px; }
  .sheet-kicker { font-size: 8px; }
  .sheet-line.short { margin-bottom: 11px; }
  .field-preview { grid-template-columns: 18px 1fr; gap: 6px; margin: 8px 0; }
  .field-preview > span { width: 17px; height: 17px; font-size: 8px; }
  .field-preview b { margin-bottom: 3px; font-size: 8px; }
  .field-preview i { height: 3px; margin: 3px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; margin-bottom: 30px; }
  .section-heading h2, .article-heading h2 { font-size: 34px; }
  .article-surface .section-inner { padding: 44px 0 48px; }
  .article-row { grid-template-columns: 74px minmax(0, 1fr) 20px; gap: 12px; min-height: 68px; }
  .article-title { font-size: 17px; }
  .visual-row .article-index { width: 62px; height: 38px; }
  .workflow-band .section-inner { padding: 66px 0; }
  .workflow-steps li { grid-template-columns: 44px 1fr; gap: 16px; padding: 24px 0; }
  .workflow-steps h3 { font-size: 19px; }
  .language-layout { min-height: auto; grid-template-columns: 1fr; gap: 45px; padding: 65px 0; }
  .language-statement h2 { font-size: 39px; }
  .language-sample span { min-height: 70px; font-size: 18px; }
  .closing-inner { align-items: flex-start; flex-direction: column; justify-content: center; min-height: 280px; }
  .closing-inner h2 { font-size: 36px; }
  .intro-grid { min-height: auto; grid-template-columns: 1fr; gap: 30px; padding: 65px 0; }
  .intro-grid h1 { font-size: 49px; }
  .intro-copy { font-size: 17px; }
  .principles-grid, .faq-layout, .contact-layout { grid-template-columns: 1fr; gap: 50px; padding: 66px 0; }
  .principle-lead h2, .faq-heading h2, .contact-layout h2 { font-size: 37px; }
  .principle-list > div { grid-template-columns: 1fr; gap: 7px; }
  .faq-heading { position: static; }
  .contact-layout { gap: 42px; }
  .pricing-band { padding: 58px 0; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-plan { min-height: 390px; border-right: 0; border-bottom: 1px solid var(--line); }
  .price-plan:last-child { border-bottom: 0; }
  .pricing-note { grid-template-columns: 1fr; gap: 8px; }
  .create-heading { padding: 42px 0 30px; }
  .create-heading h1 { font-size: 42px; }
  .brief-builder { padding: 0 0 50px; }
  .builder-layout { grid-template-columns: 1fr; }
  .brief-controls { border-right: 0; border-bottom: 1px solid #c9ced7; }
  .result-empty { min-height: 390px; }
  .result-content { padding: 34px 24px 44px; }
  .result-content h2 { font-size: 31px; }
  .result-content li { grid-template-columns: 28px minmax(0, 1fr); }
  .result-content li small { grid-column: 2; }
  .result-actions { align-items: flex-start; flex-direction: column; }
  .article-mast-inner { min-height: 65px; }
  .article-layout { display: block; padding: 34px 0 70px; }
  .article-rail { position: static; display: none; }
  .article-content { padding: 38px 24px 52px; }
  .article-content > h1:first-child { font-size: 41px; }
  .article-content h2 { margin-top: 43px; font-size: 29px; }
  .footer-inner { grid-template-columns: 1fr; gap: 38px; padding: 50px 0; }
}

@media (max-width: 420px) {
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 14px; }
  .hero h1 { font-size: 46px; }
  .form-workspace { max-height: 205px; }
  .workspace-title { max-width: 145px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .status-dot { font-size: 10px; }
  .prompt-pane { display: none; }
  .workspace-grid { grid-template-columns: 1fr; }
  .article-row { grid-template-columns: 1fr 20px; }
  .article-index { grid-column: 1 / -1; padding-top: 7px; }
  .article-title { padding-bottom: 8px; }
  .visual-row { grid-template-columns: 52px minmax(0, 1fr) 20px; }
  .visual-row .article-index { grid-column: 1; grid-row: 1; width: 46px; height: 32px; padding-top: 0; }
  .visual-row .article-title { grid-column: 2; grid-row: 1; padding-bottom: 0; }
  .visual-row .article-arrow { grid-column: 3; grid-row: 1; }
  .language-sample { grid-template-columns: repeat(2, 1fr); }
  .control-row { grid-template-columns: 1fr; }
  .article-content { padding-inline: 18px; }
  .article-content > h1:first-child { font-size: 36px; }
  .article-mast-inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: 2px; padding: 10px 0; }
  .footer-base { align-items: flex-start; flex-direction: column; justify-content: center; gap: 2px; padding: 12px 0; }
}
