:root {
  --navy: #101C2D;
  --navy-soft: #17273c;
  --warm-white: #F7F6F2;
  --gold: #C6A568;
  --gold-dark: #a7894f;
  --charcoal: #263240;
  --muted: #607080;
  --line: #DFE3E8;
  --danger: #a63d40;
  --success: #2d7258;
  --radius: 5px;
  --shadow: 0 18px 50px rgba(16, 28, 45, .09);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  color: var(--charcoal);
  background: var(--warm-white);
  line-height: 1.6;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--warm-white); color: var(--charcoal); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }
.container { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.site-header, .app-header { background: var(--navy); color: white; }
.site-header { height: 82px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100vw - 1160px) / 2)); }
.wordmark { color: white; text-decoration: none; font-size: 14px; letter-spacing: .18em; font-weight: 800; line-height: 1; }
.wordmark span { color: var(--gold); }
.header-link { color: white; text-decoration: none; font-size: 14px; font-weight: 650; }
.header-link:hover, .header-link:focus-visible { color: var(--gold); }
.hero { background: var(--navy); color: white; min-height: 610px; display: flex; align-items: center; border-top: 1px solid rgba(255,255,255,.12); }
.hero-inner { padding: 88px 0 108px; }
.eyebrow { margin: 0 0 20px; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.eyebrow-dark { color: var(--gold-dark); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.025em; line-height: 1.12; }
.hero h1 { max-width: 800px; margin-bottom: 28px; font-size: clamp(48px, 7vw, 84px); font-weight: 700; }
.hero-copy { max-width: 620px; color: #d9e0e7; font-size: 19px; line-height: 1.65; margin-bottom: 38px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; padding: 12px 20px; border: 1px solid transparent; border-radius: var(--radius); cursor: pointer; text-decoration: none; font-weight: 750; font-size: 14px; transition: background .18s ease, transform .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-gold { background: var(--gold); color: var(--navy); }
.button-gold:hover { background: #d5b878; }
.button-full { width: 100%; }
.button:disabled { opacity: .6; cursor: wait; transform: none; }
.section-light { background: var(--warm-white); }
.values { padding: 112px 0 120px; }
.values h2 { max-width: 580px; font-size: clamp(34px, 5vw, 56px); margin-bottom: 66px; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.value-item { padding: 28px 32px 0 0; border-right: 1px solid var(--line); }
.value-item + .value-item { padding-left: 32px; }
.value-item:last-child { border-right: 0; }
.value-number { display: block; color: var(--gold-dark); font-size: 12px; font-weight: 800; letter-spacing: .1em; margin-bottom: 34px; }
.value-item h3 { font-size: 25px; margin-bottom: 14px; }
.value-item p { color: var(--muted); max-width: 300px; margin-bottom: 0; }
.access-section { background: #ebe9e3; padding: 112px 0; }
.access-grid { display: grid; grid-template-columns: 1fr 420px; align-items: center; gap: 80px; }
.access-grid h2 { font-size: clamp(36px, 5vw, 58px); max-width: 520px; margin-bottom: 20px; }
.access-grid > div:first-child > p:last-child { color: var(--muted); font-size: 18px; max-width: 440px; }
.access-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
label { display: grid; gap: 8px; color: var(--charcoal); font-weight: 700; font-size: 13px; margin-bottom: 18px; }
input, textarea, select { width: 100%; color: var(--charcoal); background: white; border: 1px solid #bfc7d0; border-radius: 4px; padding: 12px 13px; outline: none; }
input[readonly] { color: #465564; background: #f1f3f4; border-color: #d4d9de; cursor: not-allowed; }
textarea { resize: vertical; line-height: 1.5; min-height: 92px; }
input:focus, textarea:focus, select:focus { border-color: var(--gold-dark); box-shadow: 0 0 0 3px rgba(198,165,104,.25); }
.password-wrap { position: relative; margin-bottom: 20px; }
.password-wrap input { padding-right: 66px; margin: 0; }
.password-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 750; }
.small-label, .optional { color: var(--muted); font-size: 12px; font-weight: 500; }
.form-error { color: var(--danger); background: #fff1ef; border: 1px solid #e6b5b1; border-radius: 4px; padding: 11px 13px; margin-bottom: 18px; font-size: 14px; }
.site-footer { background: var(--navy); color: #d9e0e7; padding: 34px 0; }
.footer-inner { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.footer-inner p { margin: 12px 0 0; color: #9eabb8; font-size: 13px; }
.footer-inner > p { margin: 0; }
.app-header { height: 74px; border-bottom: 1px solid rgba(255,255,255,.13); }
.app-header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.app-nav { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.app-nav > span { color: var(--gold); font-weight: 700; }
.app-nav a { color: #d9e0e7; text-decoration: none; }
.text-button { border: 0; border-bottom: 1px solid var(--gold); padding: 0 0 3px; color: white; background: transparent; cursor: pointer; font-size: 14px; }
.platform-main { min-height: calc(100vh - 200px); padding: 76px 0 110px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 48px; }
.page-heading h1 { font-size: clamp(38px, 5vw, 62px); margin-bottom: 15px; }
.page-heading p:last-child { color: var(--muted); font-size: 17px; margin-bottom: 0; }
.status-pill { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; color: var(--success); background: #e9f3ed; border: 1px solid #c9dfd2; border-radius: 100px; padding: 8px 12px; font-size: 12px; font-weight: 750; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.tool-tabs { display: flex; gap: 0; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.tab-button { flex: 0 0 auto; border: 0; border-bottom: 2px solid transparent; padding: 14px 18px; margin-bottom: -1px; color: var(--muted); background: transparent; cursor: pointer; font-weight: 700; font-size: 13px; }
.tab-button:first-child { padding-left: 0; }
.tab-button.active, .tab-button:hover { color: var(--navy); border-bottom-color: var(--gold); }
.tool-panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(16,28,45,.04); padding: clamp(24px, 4vw, 46px); }
.panel-heading { border-bottom: 1px solid var(--line); padding-bottom: 26px; margin-bottom: 30px; }
.panel-heading h2 { margin-bottom: 10px; font-size: 32px; }
.panel-heading p:last-child { margin-bottom: 0; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 22px; }
.tool-form > label { margin-bottom: 20px; }
.result-area { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 28px; }
.result-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 14px; }
.result-toolbar h3 { margin: 0; font-size: 18px; }
.result-actions { display: flex; gap: 8px; }
.result-actions button { border: 1px solid var(--line); background: white; color: var(--navy); border-radius: 4px; padding: 7px 10px; cursor: pointer; font-size: 12px; font-weight: 700; }
.result-body { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--charcoal); background: #fbfbf9; border: 1px solid var(--line); border-radius: 4px; padding: 20px; max-height: 680px; overflow: auto; font: 14px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; }
.progress-track { height: 8px; background: var(--line); border-radius: 10px; overflow: hidden; margin: 18px 0 10px; }
.progress-bar { height: 100%; width: 0; background: var(--gold); transition: width .25s ease; }
.progress-copy { color: var(--muted); font-size: 13px; }
.button-quiet { border-color: var(--line); background: white; color: var(--navy); margin-bottom: 20px; }
.button-quiet:hover { border-color: var(--gold); }
.product-entry { border: 1px solid var(--line); border-radius: 4px; padding: 18px 18px 0; margin-bottom: 16px; }
.product-label { margin: 0 0 12px; font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.batch-status-list { list-style: none; margin: 0 0 24px; padding: 0; counter-reset: batch-product; }
.batch-status { counter-increment: batch-product; display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.batch-status::before { content: counter(batch-product) "."; color: var(--muted); font-weight: 700; }
.batch-status-complete { color: var(--navy); font-weight: 700; }
.batch-status-running { color: var(--navy); }
.batch-status-waiting { color: var(--muted); }
.batch-status-failed { color: #a3341f; font-weight: 700; }
.batch-result { margin-bottom: 28px; }
.production-batch { padding-bottom: 34px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.production-heading, .production-product-header, .production-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.production-heading { margin-bottom: 18px; }
.production-business { margin-bottom: 18px; }
.production-business > .production-fields { margin: 0; }
.production-business-setup { display: grid; gap: 12px; max-width: 520px; }
.production-business-setup .small-label { margin: 0; color: var(--gold-dark); font-weight: 800; letter-spacing: .08em; }
.production-heading h3 { margin: 0; font-size: 22px; }
.production-heading .small-label { margin: 0 0 4px; color: var(--gold-dark); font-weight: 800; letter-spacing: .08em; }
.single-article-run > summary { color: var(--navy); cursor: pointer; font-weight: 750; margin-bottom: 24px; }
.production-product { border: 1px solid var(--line); border-radius: 4px; padding: 20px; margin-bottom: 16px; }
.production-product-header { align-items: flex-start; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.production-product-header h4 { margin: 0; color: var(--navy); font-size: 16px; line-height: 1.4; }
.production-status { flex: 0 0 auto; color: var(--muted); background: #f1f3f4; border-radius: 100px; padding: 5px 9px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.production-status-complete, .production-status-matched { color: var(--success); background: #e9f3ed; }
.production-status-failed, .production-status-not_found { color: var(--danger); background: #fff1ef; }
.production-status-review_needed { color: #76570e; background: #fbf3df; }
.production-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin: 18px 0 0; }
.production-fields div { min-width: 0; }
.production-fields dt { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.production-fields dd { margin: 3px 0 0; overflow-wrap: anywhere; font-size: 14px; }
.production-fields a { color: var(--navy); text-decoration-color: var(--gold); }
.production-review { margin-top: 18px; }
.production-review > .button { width: 100%; justify-content: flex-start; margin: 0 0 8px; }
.production-manual { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; }
.production-manual .button { margin: 0; }
.production-actions { margin-top: 18px; color: var(--success); font-size: 13px; font-weight: 750; }
.production-actions .button { margin: 0; }
.seo-plan { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.seo-plan .production-heading { margin-bottom: 10px; }
.seo-plan h5 { margin: 0; color: var(--navy); font-size: 14px; text-transform: uppercase; }
.seo-plan-titles, .seo-plan-skipped { margin: 0 0 16px; padding-left: 22px; font-size: 14px; }
.seo-plan-titles li, .seo-plan-skipped li { margin-bottom: 6px; }
.seo-plan details { margin: 12px 0 16px; color: var(--muted); font-size: 13px; }
.seo-plan summary { cursor: pointer; font-weight: 700; }
.seo-plan .button { margin: 0; }
@media (max-width: 760px) {
  .container { width: min(100% - 32px, 600px); }
  .site-header { padding: 0 16px; height: 70px; }
  .hero { min-height: 570px; }
  .hero-inner { padding: 72px 0 86px; }
  .hero h1 { font-size: clamp(42px, 13vw, 64px); }
  .hero-copy { font-size: 17px; }
  .values, .access-section { padding: 78px 0; }
  .values h2 { margin-bottom: 44px; }
  .value-grid { display: block; }
  .value-item, .value-item + .value-item { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .value-item:last-child { border-bottom: 0; }
  .value-number { margin-bottom: 20px; }
  .access-grid { display: block; }
  .access-grid > div:first-child { margin-bottom: 34px; }
  .access-card { padding: 22px; }
  .footer-inner, .page-heading { align-items: flex-start; flex-direction: column; }
  .app-header { height: auto; padding: 20px 0; }
  .app-header-inner { align-items: flex-start; gap: 20px; }
  .app-nav { gap: 16px; }
  .platform-main { padding: 52px 0 74px; }
  .form-grid { display: block; }
  .tool-panel { padding: 22px 18px; }
  .tab-button { padding: 14px 13px; }
  .tab-button:first-child { padding-left: 0; }
  .production-fields { grid-template-columns: 1fr; }
  .production-product-header, .production-actions { align-items: flex-start; flex-direction: column; }
  .production-manual { grid-template-columns: 1fr; }
}
