﻿/* PaperFlow landing page v2. Standalone styles; intentionally isolated from auth and writer UIs. */
:root {
  --primary: #E65C00;
  --accent: #FFB380;
  --background: #FDFBF7;
  --surface: #F7F4EB;
  --ink: #111827;
  --muted: #4B5563;
  --border: #E5E7EB;
  --orange-ink: #A64000;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-card: 0 1px 2px #11182708, 0 24px 48px -32px #58432133;
  --shadow-lift: 0 2px 4px #11182708, 0 36px 64px -32px #5843214d;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; }
body { margin: 0; background: var(--background); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; position: relative; }
p, h1, h2, h3, figure { margin: 0; }
h1, h2, h3 { font-weight: 500; }
h1 { font-size: clamp(42px, 4.6vw, 68px); line-height: 1.04; letter-spacing: -.035em; }
h2 { font-size: clamp(30px, 3.1vw, 46px); line-height: 1.12; letter-spacing: -.035em; }
h3 { font-size: 22px; line-height: 1.3; letter-spacing: -.025em; }
em { color: var(--orange-ink); font-style: normal; }
a { color: inherit; text-underline-offset: 4px; }
button { font: inherit; cursor: pointer; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--orange-ink); outline-offset: 5px; }
::selection { color: var(--ink); background: var(--accent); }
.wrap { width: min(100% - 96px, 1200px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px 20px; color: white; background: var(--ink); border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* Ambient background layer: soft drifting orbs + faint grid, always behind content. */
.ambient { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background-image: linear-gradient(#11182708 1px, transparent 1px), linear-gradient(90deg, #11182708 1px, transparent 1px);
  background-size: 72px 72px; -webkit-mask-image: linear-gradient(#000 0, #000 900px, transparent 1300px); mask-image: linear-gradient(#000 0, #000 900px, transparent 1300px); }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 22s var(--ease) infinite alternate; }
.orb-a { width: 560px; height: 560px; top: -180px; right: -120px; background: radial-gradient(circle, #FFB380 0%, #FFB38000 70%); }
.orb-b { width: 420px; height: 420px; top: 420px; left: -200px; background: radial-gradient(circle, #E65C0055 0%, #E65C0000 70%); animation-duration: 28s; animation-delay: -8s; }
.orb-c { width: 360px; height: 360px; top: 760px; right: 18%; background: radial-gradient(circle, #FFD9BF 0%, #FFD9BF00 70%); animation-duration: 32s; animation-delay: -15s; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-60px, 50px, 0) scale(1.12); } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid transparent; background: #FDFBF7cc; backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); transition: border-color .3s, box-shadow .3s; }
.site-header.scrolled { border-color: var(--border); box-shadow: 0 8px 30px -20px #11182733; }
.header-inner { min-height: 84px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; font-size: 15px; font-weight: 700; letter-spacing: .08em; line-height: 1.3; }
.brand small { display: block; font: 400 10px/1.6 var(--mono); letter-spacing: .12em; color: var(--muted); }
.brand > span:last-child { white-space: nowrap; }
.brand-mark { width: 40px; height: 40px; display: grid; place-content: center; position: relative; border-radius: 12px; background: var(--primary); color: var(--ink); font-size: 32px; font-weight: 600; line-height: 1; letter-spacing: -.1em; padding-right: 5px; box-shadow: 0 8px 18px -8px #E65C0099; }
.brand-mark span { position: absolute; right: 6px; bottom: 5px; color: var(--ink); }
.site-header nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.site-header nav a, .text-link { font-size: 14px; font-weight: 500; text-decoration: none; }
.site-header nav a { padding-block: 12px; position: relative; }
.site-header nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.site-header nav a:hover::after { transform: scaleX(1); }
.site-header nav a:hover, .text-link:hover, .card-link:hover { color: var(--orange-ink); }
.nav-actions { display: flex; align-items: center; gap: 24px; }
.nav-actions > .text-link { padding-block: 12px; }

/* Buttons */
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: 12px 22px; border: 1px solid transparent; border-radius: 8px; background: var(--primary); color: #fff; font-size: 15px; font-weight: 600; line-height: 1.5; text-decoration: none; position: relative; overflow: hidden; transition: background .25s, transform .25s var(--ease), box-shadow .25s; }
.button::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, #ffffff55 50%, transparent 70%); transform: translateX(-120%); transition: transform .6s var(--ease); }
.button:hover { background: #cc5200; transform: translateY(-2px); box-shadow: 0 12px 28px -12px #E65C00aa; }
.button:hover::before { transform: translateX(120%); }
.button span { font-size: 20px; line-height: 1; transition: transform .25s var(--ease); }
.button:hover span { transform: translate(2px, -2px); }
.button.small { min-height: 44px; font-size: 14px; padding: 10px 16px; gap: 16px; }
.button.secondary { background: transparent; border-color: #c9cdd3; color: var(--ink); }
.button.secondary::before { display: none; }
.button.secondary:hover { background: var(--surface); border-color: var(--ink); box-shadow: none; }
.button.glow { box-shadow: 0 10px 30px -10px #E65C0099; animation: pulse 3.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 10px 30px -10px #E65C0099; } 50% { box-shadow: 0 14px 40px -8px #E65C00cc; } }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 64px; padding-block: 80px 72px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; color: var(--orange-ink); font: 600 12px/1.5 var(--mono); letter-spacing: .035em; }
.signal, .preview-dot, .status-light { display: inline-block; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.signal { position: relative; }
.signal::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--primary); animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
h1 .mask { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
h1 .mask > span { display: block; animation: rise .9s var(--ease) both; }
h1 .mask:nth-child(2) > span { animation-delay: .12s; }
h1 .mask:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { from { transform: translateY(110%); opacity: 0; } to { transform: none; opacity: 1; } }
.reveal-line { animation: fadeUp .8s var(--ease) both; animation-delay: .35s; }
.lede.reveal-line { animation-delay: .4s; } .actions.reveal-line { animation-delay: .5s; } .microcopy.reveal-line { animation-delay: .58s; } .hero-benefits.reveal-line { animation-delay: .66s; }
@keyframes fadeUp { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
.lede { max-width: 540px; margin-top: 26px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.lede strong { font-weight: 500; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.microcopy { max-width: 460px; color: var(--muted); font-size: 13px; line-height: 1.6; margin-top: 16px; }
.hero-benefits { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 24px 0 0; list-style: none; color: var(--muted); font-size: 13px; }
.hero-benefits li::before { content: '✓'; margin-right: 7px; color: var(--orange-ink); }
/* Hero workspace console */
.editor-preview { position: relative; min-width: 0; padding: 16px 16px 0; border: 1px solid #e9e2d4; border-radius: 24px; background: linear-gradient(160deg, #fff 0%, var(--surface) 100%); box-shadow: var(--shadow-lift); animation: fadeUp 1s var(--ease) both; animation-delay: .3s; transform-style: preserve-3d; transition: transform .5s var(--ease); }
.float-badge { position: absolute; z-index: 2; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-card); font: 500 13px/1.3 var(--sans); animation: floatY 6s ease-in-out infinite; }
.badge-score { top: 78px; left: -44px; padding: 12px 16px; display: grid; gap: 2px; }
.badge-score span { font: 600 10px/1.3 var(--mono); letter-spacing: .08em; color: var(--muted); }
.badge-score b { font-size: 26px; font-weight: 600; letter-spacing: -.03em; color: var(--ink); } .badge-score b i { font-style: normal; color: var(--orange-ink); }
.badge-score small { font-size: 11px; color: #15803d; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.studio-console { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.studio-console figcaption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 16px 20px; border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 500; }
.preview-dot { margin-right: 5px; }
.demo-label, .tag, .label, .step, .document-meta, .console-toolbar, .demo-count, .preview-foot > span, .plan-tag { font: 600 11px/1.4 var(--mono); letter-spacing: .06em; color: var(--orange-ink); }
.demo-label { padding: 4px 8px; border-radius: 6px; background: #FFF1E6; }
.console-toolbar { display: flex; justify-content: space-between; padding: 14px 20px 0; color: var(--muted); }
.sample-brief { margin: 12px 20px 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); display: grid; gap: 4px; }
.sample-brief > span { font-size: 13px; color: var(--muted); }
.sample-brief strong { font-weight: 500; font-size: 16px; }
.sample-brief div { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.preview-document { margin: 14px 20px 0; padding: 18px 18px 16px; border: 1px solid var(--border); border-radius: 8px; position: relative; overflow: hidden; }
.preview-document::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 40%, #FFB38022 50%, transparent 60%); transform: translateX(-100%); }
.demo-playing .preview-document::after { animation: sweep 1.4s var(--ease) infinite; }
@keyframes sweep { to { transform: translateX(100%); } }
.document-meta { display: flex; justify-content: space-between; margin-bottom: 12px; color: var(--muted); }
.document-title { font-size: 20px; font-weight: 500; letter-spacing: -.02em; line-height: 1.3; transition: opacity .3s; }
.document-description { margin-top: 8px; color: var(--muted); font-size: 14px; }
.document-checks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; font-size: 13.5px; }
.document-checks li { display: flex; align-items: flex-start; gap: 8px; animation: fadeUp .5s var(--ease) both; }
.document-checks li:nth-child(2) { animation-delay: .08s; } .document-checks li:nth-child(3) { animation-delay: .16s; }
.document-checks li::before { content: '✓'; color: var(--orange-ink); font-weight: 600; }
.score-rail { display: grid; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border); }
.score-rail div { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 10px; }
.score-rail span { font: 600 10px/1 var(--mono); letter-spacing: .06em; color: var(--muted); }
.score-rail i { display: block; height: 6px; border-radius: 999px; background: var(--surface); position: relative; overflow: hidden; }
.score-rail i::after { content: ''; position: absolute; inset: 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--accent)); transform-origin: left; transition: width .9s var(--ease); }
.editor-preview[data-stage="1"] .score-rail i::after { width: calc(var(--w) + 6%); }
.editor-preview[data-stage="2"] .score-rail i::after { width: calc(var(--w) + 14%); }
.document-export { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.document-export b { font-weight: 500; }
.demo-status { display: flex; align-items: center; gap: 8px; margin: 16px 20px 0; font-size: 13px; font-weight: 500; }
.status-light { animation: blink 1.6s ease-in-out infinite; } @keyframes blink { 50% { opacity: .35; } }
.demo-count { margin-left: auto; color: var(--muted); }
.demo-progress { margin: 8px 20px 0; height: 3px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.demo-progress i { display: block; height: 100%; width: 33.3%; background: var(--primary); transition: width .6s var(--ease); }
.editor-preview[data-stage="1"] .demo-progress i { width: 66.6%; } .editor-preview[data-stage="2"] .demo-progress i { width: 100%; }
.preview-phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 20px 0; }
.preview-phases button { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: 13px; font-weight: 500; color: var(--ink); transition: background .2s, border-color .2s, transform .2s var(--ease); }
.preview-phases button span { font: 600 11px/1 var(--mono); color: var(--muted); }
.preview-phases button b { margin-left: auto; font-weight: 500; color: var(--muted); }
.preview-phases button:hover { border-color: var(--accent); transform: translateY(-1px); }
.preview-phases button[aria-pressed="true"] { background: #FFF1E6; border-color: var(--accent); }
.preview-phases button[aria-pressed="true"] span, .preview-phases button[aria-pressed="true"] b { color: var(--orange-ink); }
.preview-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding: 12px 20px; border-top: 1px solid var(--border); background: var(--surface); }
.preview-foot > span { color: var(--muted); font-size: 10px; }
.preview-foot button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 13px; }
.preview-foot button:hover { color: var(--orange-ink); background: #FFF1E6; }
.preview-caption { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 16px; color: var(--muted); font-size: 13px; }
.preview-caption span { color: var(--orange-ink); }

/* Ticker + proof strip + definition */
.ticker { overflow: hidden; border-block: 1px solid var(--border); background: var(--surface); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker-track { display: flex; gap: 48px; width: max-content; padding: 14px 0; animation: ticker 40s linear infinite; }
.ticker-track span { font: 600 11px/1.4 var(--mono); letter-spacing: .1em; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.ticker-track span::after { content: '✦'; color: var(--primary); font-size: 10px; }
@keyframes ticker { to { transform: translateX(-50%); } }
.proof-strip { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 24px; align-items: center; padding-block: 56px 32px; }
.proof-strip > p { font: 600 12px/1.5 var(--mono); letter-spacing: .04em; color: var(--muted); }
.proof-strip > p strong { display: block; margin-top: 4px; font: 500 20px/1.3 var(--sans); letter-spacing: -.02em; color: var(--ink); }
.proof-strip div { padding-left: 20px; border-left: 1px solid var(--border); }
.proof-strip b { display: flex; align-items: baseline; gap: 6px; font-size: 40px; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.proof-strip b i { font-style: normal; }
.proof-strip b span { font-size: 18px; color: var(--orange-ink); }
.proof-strip div > span { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }
.definition { padding-block: 32px 24px; }
.definition-answer { max-width: 920px; font-size: clamp(20px, 2vw, 26px); line-height: 1.45; letter-spacing: -.015em; color: var(--muted); }
.definition-answer strong { font-weight: 500; color: var(--ink); }
.definition-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.definition-tags span { padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: #fff; font: 500 12px/1.4 var(--sans); color: var(--muted); }
/* Sections */
.section { padding-block: 96px; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: 48px; }
.section-heading > p { max-width: 460px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.section-heading.centered { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.section-heading.centered .eyebrow { justify-content: center; }
.section-heading.centered > p { max-width: 620px; }

/* Scroll reveal (progressive enhancement: opacity stays 1 without JS) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.reveal-in { opacity: 1; transform: none; }
.js .writer-grid .reveal:nth-child(2), .js .use-case-grid .reveal:nth-child(2), .js .workflow-grid .reveal:nth-child(2), .js .plans-grid .reveal:nth-child(2), .js .image-details .reveal:nth-child(2), .js .access-steps .reveal:nth-child(2) { transition-delay: .12s; }
.js .use-case-grid .reveal:nth-child(3), .js .workflow-grid .reveal:nth-child(3), .js .plans-grid .reveal:nth-child(3), .js .image-details .reveal:nth-child(3), .js .access-steps .reveal:nth-child(3) { transition-delay: .24s; }
.js .workflow-grid .reveal:nth-child(4) { transition-delay: .36s; }

/* Writers */
.writer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.writer-card { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: var(--shadow-card); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; }
.writer-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: var(--accent); }
.topx-card { background: linear-gradient(170deg, #fff 0%, #FFF4EB 100%); }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.writer-number { font: 500 12px/1 var(--mono); color: var(--muted); }
.writer-card h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 28px; }
.new-label { padding: 4px 8px; border-radius: 999px; background: #FFF1E6; color: var(--orange-ink); font: 600 10px/1.4 var(--mono); letter-spacing: .06em; }
.writer-card > p { margin-top: 12px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.writer-art { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; min-height: 168px; margin-top: 24px; padding: 20px 24px; border-radius: 12px; background: var(--surface); overflow: hidden; }
.topx-art { background: linear-gradient(135deg, #FFD9BF, #FFB380); }
.mini-page { width: 130px; padding: 18px 14px 26px; margin-inline: auto; background: #fff; border-radius: 4px; box-shadow: 0 12px 30px -14px #58432166; transform: rotate(-4deg); transition: transform .5s var(--ease); }
.writer-card:hover .mini-page { transform: rotate(-1deg) translateY(-4px); }
.mini-page span { font: 600 8px/1.2 var(--mono); letter-spacing: .1em; color: var(--orange-ink); }
.mini-page b { display: block; margin-top: 6px; font-size: 15px; font-weight: 500; line-height: 1.2; letter-spacing: -.02em; }
.mini-page i { display: block; height: 3px; margin-top: 8px; border-radius: 2px; background: var(--border); }
.mini-page i:last-child { width: 60%; }
.topx-letter { position: relative; display: grid; place-content: center; font: 500 120px/1 var(--sans); letter-spacing: -.06em; color: var(--orange-ink); transition: transform .5s var(--ease); }
.writer-card:hover .topx-letter { transform: scale(1.06) rotate(-3deg); }
.topx-letter span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 3px 8px; background: var(--ink); color: #fff; font: 600 10px/1.4 var(--mono); letter-spacing: .1em; }
.art-caption span { font: 600 10px/1.4 var(--mono); letter-spacing: .08em; color: var(--orange-ink); }
.art-caption strong { display: block; margin-top: 6px; font-size: 22px; font-weight: 500; line-height: 1.2; letter-spacing: -.025em; }
.art-caption small { display: block; margin-top: 8px; font: 500 10px/1.4 var(--mono); letter-spacing: .06em; color: var(--muted); }
.writer-card ul, .plan-card ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; font-size: 15.5px; }
.writer-card li, .plan-card li { display: flex; gap: 10px; align-items: flex-start; }
.writer-card li::before, .plan-card li::before { content: '✓'; color: var(--orange-ink); font-weight: 600; flex-shrink: 0; }
.card-link { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 24px; margin-top: 28px; border-top: 1px solid var(--border); font-size: 16px; font-weight: 500; text-decoration: none; }
.card-link span { transition: transform .3s var(--ease); } .card-link:hover span { transform: translate(3px, -3px); }
.writer-card > small, .plan-card > small { display: block; margin-top: 10px; color: var(--muted); font-size: 12px; }
.editorial-note { margin-top: 32px; padding: 18px 22px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 8px 8px 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.editorial-note code { font: 500 12px/1 var(--mono); padding: 2px 6px; border-radius: 4px; background: #fff; border: 1px solid var(--border); color: var(--ink); }

/* Use cases */
.use-cases { padding-block: 0 96px; }
.use-case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.use-case-grid article { padding: 28px; border: 1px solid var(--border); border-radius: 16px; background: #fff; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; }
.use-case-grid article:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); border-color: var(--accent); }
.use-case-icon { display: inline-block; margin-bottom: 20px; padding: 6px 10px; border-radius: 6px; background: #FFF1E6; color: var(--orange-ink); font: 600 11px/1.4 var(--mono); letter-spacing: .06em; }
.use-case-grid p { margin: 12px 0 20px; color: var(--muted); font-size: 16px; line-height: 1.65; }

/* Workflow */
.workflow-section { background: var(--surface); border-block: 1px solid var(--border); }
.phase-rail { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; counter-reset: phase; }
.phase-rail li { position: relative; padding: 14px 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: 12px; font-weight: 500; line-height: 1.3; text-align: center; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.phase-rail li:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-card); }
.phase-rail li span { display: block; margin-bottom: 6px; font: 600 10px/1 var(--mono); letter-spacing: .06em; color: var(--muted); }
.phase-rail li.audit { background: #FFF1E6; border-color: var(--accent); } .phase-rail li.audit span { color: var(--orange-ink); }
.phase-rail li:not(:last-child)::after { content: ''; position: absolute; top: 50%; right: -6px; width: 6px; height: 1px; background: var(--accent); }
.workflow-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.workflow-grid li { position: relative; padding-top: 24px; }
.workflow-grid li::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, var(--primary) 0 20%, var(--border) 20%); }
.workflow-grid li::after { content: ''; position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.step { display: block; margin-bottom: 18px; }
.workflow-grid p { margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.workflow-note { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; gap: 8px; color: var(--muted); font-size: 14px; }
.workflow-note span { color: var(--orange-ink); }
/* Discovery */
.discovery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.discovery-grid article { position: relative; padding: 32px; border: 1px solid var(--border); border-radius: 16px; background: #fff; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.discovery-grid article::before { content: ''; position: absolute; top: -60px; right: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, #FFB38055, transparent 70%); transition: transform .5s var(--ease); }
.discovery-grid article:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.discovery-grid article:hover::before { transform: scale(1.4); }
.discovery-grid .label { display: inline-grid; place-content: center; width: 60px; height: 60px; border-radius: 50%; background: #FFF1E6; border: 1px solid var(--accent); font-size: 13px; margin-bottom: 20px; position: relative; }
.discovery-grid p { margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.discovery-grid .detail { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 14px; }
.review-callout { display: flex; gap: 14px; margin-top: 32px; padding: 22px 26px; border-radius: 12px; background: var(--ink); color: #E5E7EB; font-size: 15px; line-height: 1.65; }
.review-callout span { color: var(--accent); font-size: 22px; line-height: 1; }
.review-callout strong { color: #fff; font-weight: 500; }

/* Images */
.image-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 64px; padding-block: 0 96px; align-items: start; }
.image-section > div > p { margin-top: 20px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.image-details { display: grid; gap: 0; }
.image-details article { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 24px 0; border-top: 1px solid var(--border); transition: padding-left .3s var(--ease); }
.image-details article:hover { padding-left: 8px; }
.image-details article:last-child { border-bottom: 1px solid var(--border); }
.image-details article > span { font: 600 12px/1.6 var(--mono); color: var(--orange-ink); }
.image-details h3 { font-size: 19px; }
.image-details p { margin-top: 8px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }

/* Plans (PaperFlow pricing bento) */
.plans-section { position: relative; background: var(--surface); border-block: 1px solid var(--border); overflow: hidden; }
.plans-section::before { content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%); width: 900px; height: 500px; background: radial-gradient(ellipse, #FFB38044, transparent 70%); pointer-events: none; }
.plans-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; position: relative; }
.plan-card { display: flex; flex-direction: column; padding: 30px 28px; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: var(--shadow-card); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; }
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: var(--accent); }
.plan-card.featured { border: 2px solid var(--primary); background: linear-gradient(170deg, #fff 0%, #FFF4EB 100%); transform: translateY(-14px); box-shadow: var(--shadow-lift); }
.plan-card.featured:hover { transform: translateY(-20px); }
.plan-tag { display: inline-block; align-self: flex-start; padding: 5px 10px; border-radius: 999px; background: #FFF1E6; margin-bottom: 18px; }
.plan-card.featured .plan-tag { background: var(--primary); color: #fff; }
.plan-card h3 { font-size: 26px; }
.plan-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.plan-price b { font-size: 34px; font-weight: 500; letter-spacing: -.035em; line-height: 1; }
.plan-price span { font: 500 12px/1.4 var(--mono); color: var(--muted); }
.plan-card > p:not(.plan-price) { margin-top: 18px; color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.plan-card ul { margin-bottom: 28px; font-size: 15px; }
.plan-card .button { margin-top: auto; width: 100%; }
.plans-note { margin-top: 32px; text-align: center; color: var(--muted); font-size: 14px; }

/* FAQ */
.faq-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 64px; align-items: start; }
.faq-section > div:first-child { position: sticky; top: 120px; }
.faq-intro { margin: 20px 0 24px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--border); }
details { border-bottom: 1px solid var(--border); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 18px; font-weight: 500; letter-spacing: -.015em; transition: color .2s; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; flex-shrink: 0; display: grid; place-content: center; width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 50%; font-weight: 400; font-size: 20px; color: var(--orange-ink); transition: transform .4s var(--ease), background .3s, color .3s; }
summary:hover { color: var(--orange-ink); }
details[open] summary::after { transform: rotate(45deg); background: var(--primary); color: #fff; border-color: var(--primary); }
details p { padding: 0 48px 24px 0; color: var(--muted); font-size: 16px; line-height: 1.7; animation: fadeUp .4s var(--ease); }

/* Access + closing */
.access-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 64px; padding-block: 96px; align-items: start; }
.access-section > div > p { margin-top: 20px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.access-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: step; }
.access-steps li { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start; padding: 24px 28px; border: 1px solid var(--border); border-radius: 16px; background: #fff; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; }
.access-steps li:hover { transform: translateX(8px); box-shadow: var(--shadow-card); border-color: var(--accent); }
.access-steps li > span { display: grid; place-content: center; width: 48px; height: 48px; border-radius: 12px; background: #FFF1E6; color: var(--orange-ink); font: 600 13px/1 var(--mono); }
.access-steps h3 { font-size: 20px; }
.access-steps p { margin-top: 6px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.closing { padding-block: 0 96px; }
.closing-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 64px; border-radius: 24px; background: linear-gradient(135deg, #E65C00 0%, #FF7A1A 55%, #FFB380 100%); color: #fff; overflow: hidden; box-shadow: 0 40px 80px -40px #E65C0099; }
.closing-card::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(#ffffff14 1px, transparent 1px), linear-gradient(90deg, #ffffff14 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at 80% 50%, #000, transparent 70%); mask-image: radial-gradient(ellipse at 80% 50%, #000, transparent 70%); }
.closing-card::after { content: ''; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, #ffffff55, transparent 70%); animation: floatY 8s ease-in-out infinite; }
.closing-card > * { position: relative; z-index: 1; }
.closing-card .eyebrow { color: #FFE4D1; }
.closing-card h2 { color: #fff; } .closing-card em { color: #FFE4D1; }
.closing-description { margin-top: 20px; color: #FFE4D1; font-size: 18px; line-height: 1.65; max-width: 480px; }
.closing-actions { display: grid; gap: 12px; justify-items: start; }
.closing-actions .button { background: #fff; color: var(--ink); animation: none; box-shadow: 0 16px 40px -16px #11182766; }
.closing-actions .button:hover { background: var(--background); }
.closing-actions .button::before { background: linear-gradient(120deg, transparent 30%, #FFB38066 50%, transparent 70%); }
.closing-actions p { font-size: 15px; color: #fff; } .closing-actions p a { color: #fff; font-weight: 500; }
.closing-actions small { color: #FFE4D1; font-size: 12px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 48px; align-items: center; padding-block: 40px; }
.site-footer p { color: var(--muted); font-size: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer nav a { font-size: 14px; font-weight: 500; text-decoration: none; } .site-footer nav a:hover { color: var(--orange-ink); }
.site-footer small { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
/* Responsive */
@media (max-width: 1100px) {
  .hero { gap: 40px; }
  .badge-score { left: -16px; }
  .proof-strip { grid-template-columns: repeat(2, 1fr); }
  .proof-strip > p { grid-column: 1 / -1; }
  .phase-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .phase-rail li:not(:last-child)::after { display: none; }
  .workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .plan-card.featured, .plan-card.featured:hover { transform: none; }
}
@media (max-width: 900px) {
  .wrap { width: min(100% - 48px, 1200px); }
  html { scroll-padding-top: 140px; }
  .header-inner { flex-wrap: wrap; row-gap: 0; padding-block: 12px 0; min-height: 0; }
  .site-header nav { order: 3; width: 100%; justify-content: space-between; gap: 12px; margin-left: 0; border-top: 1px solid var(--border); margin-top: 8px; overflow-x: auto; }
  .site-header nav a { font-size: 13px; white-space: nowrap; }
  .nav-actions { margin-left: auto; gap: 16px; }
  .brand { font-size: 13px; letter-spacing: .055em; }
  .brand small { font-size: 8px; letter-spacing: .08em; }
  .hero { grid-template-columns: 1fr; padding-block: 48px 40px; gap: 48px; }
  .float-badge { display: none; }
  .section { padding-block: 72px; }
  .section-heading, .image-section, .faq-section, .access-section { grid-template-columns: 1fr; gap: 32px; }
  .faq-section > div:first-child { position: static; }
  .writer-grid, .use-case-grid, .discovery-grid { grid-template-columns: 1fr; }
  .use-cases, .image-section, .closing { padding-block: 0 72px; }
  .closing-card { grid-template-columns: 1fr; padding: 40px 32px; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  h1 { font-size: clamp(36px, 11vw, 46px); }
  h2 { font-size: clamp(28px, 8vw, 34px); }
  .actions .button { width: 100%; }
  .editor-preview { padding: 10px 10px 0; border-radius: 16px; }
  .sample-brief, .preview-document, .demo-status, .demo-progress, .preview-phases { margin-inline: 12px; }
  .console-toolbar, .studio-console figcaption, .preview-foot { padding-inline: 12px; }
  .preview-phases { grid-template-columns: 1fr; }
  .score-rail div { grid-template-columns: 76px 1fr; }
  .proof-strip { grid-template-columns: 1fr 1fr; gap: 20px 12px; padding-block: 40px 24px; }
  .proof-strip div { padding-left: 12px; }
  .proof-strip b { font-size: 32px; }
  .phase-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow-grid { grid-template-columns: 1fr; }
  .writer-card, .plan-card, .use-case-grid article, .discovery-grid article { padding: 22px; }
  .writer-art { grid-template-columns: 1fr; min-height: 0; }
  .writer-art .mini-page, .topx-letter { display: none; }
  .writer-card h3 { font-size: 24px; }
  .access-steps li { grid-template-columns: 44px 1fr; gap: 14px; padding: 18px; }
  .access-steps li > span { width: 40px; height: 40px; }
  .closing-card { padding: 32px 22px; border-radius: 16px; }
  .closing-actions { justify-items: stretch; }
  summary { font-size: 16px; padding-block: 18px; }
  details p { padding-right: 0; }
  .editorial-note, .review-callout { font-size: 14px; padding: 16px; }
}
@media (max-width: 360px) {
  .wrap { width: min(100% - 32px, 1200px); }
  .brand > span:last-child { display: none; }
  .nav-actions { gap: 10px; }
  .button.small { padding-inline: 12px; gap: 8px; }
}
@media (hover: none) { .writer-card:hover, .plan-card:hover, .use-case-grid article:hover, .access-steps li:hover, .discovery-grid article:hover { transform: none; } .plan-card.featured:hover { transform: none; } }

/* Reduced motion: keep every element visible and still. */
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  h1 .mask > span, .reveal-line, .editor-preview, .js .reveal { opacity: 1; transform: none; }
  .ticker-track { transform: none; }
  .plan-card.featured { transform: translateY(-14px); }
}