:root {
  --paper: #f4f0e8;
  --paper-2: #ebe5da;
  --paper-3: #e4ded2;
  --card: #fffdf8;
  --ink: #171713;
  --ink-soft: #34332d;
  --muted: #706b61;
  --line: #d6cfc2;
  --line-dark: #b9b1a2;
  --accent: #e76642;
  --accent-dark: #c94d2e;
  --acid: #d7ec75;
  --good: #2d6a4f;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --shadow: 0 24px 80px rgba(44, 36, 24, 0.12);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(23, 23, 19, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 23, 19, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 68%);
  z-index: -1;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.45; }
img, svg { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
::selection { background: var(--acid); color: var(--ink); }

.site-header {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -0.02em; }
.brand-mark {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: var(--ink); color: var(--card); border-radius: 50%;
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
}
.site-nav { display: flex; align-items: center; gap: 26px; margin-left: 24px; color: var(--muted); font-size: 14px; }
.site-nav a:hover { color: var(--ink); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-note { color: var(--muted); font-size: 13px; }
.site-footer {
  width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 32px 0 44px;
  border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px;
  color: var(--muted); font-size: 13px;
}
.site-footer strong { color: var(--ink); margin-right: 14px; }
.footer-links { display: flex; gap: 18px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 0 19px; border: 1px solid transparent; border-radius: 999px;
  font-weight: 650; font-size: 14px; line-height: 1; transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button-dark { background: var(--ink); color: var(--card); }
.button-dark:hover:not(:disabled) { background: #2e2d27; }
.button-accent { background: var(--accent); color: #fff; }
.button-accent:hover:not(:disabled) { background: var(--accent-dark); }
.button-ghost { border-color: var(--line-dark); background: transparent; color: var(--ink); }
.button-ghost:hover:not(:disabled) { background: var(--card); }
.button-quiet { border-color: var(--line-dark); background: rgba(255, 255, 255, 0.18); }
.button-quiet:hover:not(:disabled) { background: var(--card); }
.button-large { min-height: 52px; padding: 0 25px; font-size: 15px; }
.button-small { min-height: 36px; padding: 0 14px; font-size: 12px; }
.button-full { width: 100%; }
.text-link { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.text-link span { transition: transform 160ms ease; }
.text-link:hover span { transform: translateX(3px); }
.text-button { border: 0; padding: 0; background: none; text-decoration: underline; text-underline-offset: 3px; font-size: 12px; font-weight: 700; }
.eyebrow, .section-kicker {
  display: flex; align-items: center; gap: 9px; color: var(--muted);
  font-size: 11px; font-weight: 750; letter-spacing: 0.15em; text-transform: uppercase;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(231, 102, 66, 0.13); }
.section-kicker { margin-bottom: 18px; }
.hero {
  width: min(1240px, calc(100% - 40px)); margin: 0 auto; min-height: 690px;
  display: grid; grid-template-columns: 1.02fr 0.98fr; align-items: center; gap: 48px;
  padding: 76px 0 84px;
}
.hero-copy h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 7.4vw, 104px);
  line-height: 0.91; letter-spacing: -0.065em; margin: 24px 0 30px; max-width: 720px;
}
.hero-copy h1 span { color: var(--accent); font-style: italic; }
.hero-lede { max-width: 600px; color: var(--ink-soft); font-size: 19px; line-height: 1.55; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.proof-list { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 20px; color: var(--muted); font-size: 12px; }
.proof-list li { display: flex; gap: 7px; align-items: center; }
.proof-list span { font-family: var(--mono); color: var(--accent); font-size: 10px; }
.hero-demo-wrap { position: relative; padding: 18px 18px 28px; }
.demo-card {
  position: relative; z-index: 2; background: var(--card); border: 1px solid var(--line);
  border-radius: 24px; padding: 26px; box-shadow: var(--shadow); transform: rotate(-1.1deg);
}
.demo-card-head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.demo-card-head div { display: flex; flex-direction: column; gap: 2px; }
.demo-card-head span:first-child { font-family: var(--mono); font-size: 9px; letter-spacing: 0.15em; color: var(--accent); }
.demo-card-head strong { font-family: var(--serif); font-size: 26px; font-weight: 500; letter-spacing: -0.03em; }
.demo-live { font-family: var(--mono); font-size: 9px; padding: 3px 7px; border-radius: 99px; background: var(--acid); color: var(--ink); }
.demo-fields { display: flex; flex-direction: column; gap: 14px; padding: 20px 0; }
.demo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > span { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }
.field small { color: var(--muted); font-size: 10px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
  padding: 11px 12px; min-height: 43px; outline: none; transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field textarea { resize: vertical; line-height: 1.45; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(231, 102, 66, 0.12); }
.money-input { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); overflow: hidden; }
.money-input span { padding-left: 12px; color: var(--muted); }
.money-input input { border: 0; background: transparent; box-shadow: none !important; padding-left: 5px; }
.demo-result { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-direction: column; align-items: flex-start; }
.demo-result > span { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.demo-result strong { font-family: var(--serif); font-size: clamp(48px, 6vw, 70px); line-height: 1; letter-spacing: -0.05em; margin: 7px 0 8px; }
.demo-result small { color: var(--muted); }
.demo-next { display: flex; justify-content: space-between; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.demo-next:hover span { transform: translateX(3px); }
.demo-privacy { margin: 14px 0 0; font-size: 10px; color: var(--muted); }
.floating-note {
  position: absolute; z-index: 3; background: var(--ink); color: var(--card); border-radius: 999px;
  padding: 8px 13px; font-size: 10px; font-weight: 700; letter-spacing: 0.02em; box-shadow: 0 10px 30px rgba(0,0,0,.16);
}
.note-one { top: 1px; right: 0; transform: rotate(4deg); }
.note-two { bottom: 4px; left: -14px; background: var(--acid); color: var(--ink); transform: rotate(-3deg); }
.logo-strip {
  width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 20px 0;
  display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.section { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 100px 0; }
.problem-section { border-bottom: 1px solid var(--line); }
.problem-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: start; }
.problem-grid h2, .section h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.045em; line-height: 1.03; }
.problem-grid h2 { font-size: clamp(38px, 5vw, 64px); margin-bottom: 0; }
.problem-copy { color: var(--ink-soft); font-size: 17px; }
.problem-copy p:last-child { margin-bottom: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { min-height: 380px; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; }
.feature-card-dark { background: var(--ink); color: var(--card); border-color: var(--ink); }
.feature-card-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.feature-number { font-family: var(--mono); font-size: 10px; opacity: 0.55; }
.feature-card h3 { font-family: var(--serif); font-size: 34px; font-weight: 400; letter-spacing: -0.04em; margin: 52px 0 14px; }
.feature-card p { color: inherit; opacity: 0.75; font-size: 14px; }
.mini-formula, .mini-paper, .mini-message { margin-top: auto; border-top: 1px solid currentColor; padding-top: 16px; opacity: 0.9; }
.mini-formula { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 12px; }
.mini-formula strong { font-size: 25px; }
.mini-paper { display: grid; grid-template-columns: 1fr auto; gap: 7px; font-size: 12px; }
.mini-paper strong { font-size: 18px; }
.mini-message { font-family: var(--serif); font-size: 16px; font-style: italic; line-height: 1.45; }
.sample-section { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; align-items: center; border-top: 1px solid var(--line); }
.sample-copy h2 { font-size: clamp(40px, 5vw, 66px); max-width: 520px; margin-bottom: 22px; }
.sample-copy > p { color: var(--muted); max-width: 520px; margin-bottom: 25px; }
.check-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 13px; }
.check-list li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 8px; }
.sample-paper-wrap { padding: 40px; background: var(--paper-2); border-radius: 24px; transform: rotate(1.1deg); }
.sample-paper { background: #fff; min-height: 520px; padding: 42px; box-shadow: 0 24px 55px rgba(50, 42, 30, 0.2); font-family: var(--serif); }
.sample-paper-head { display: flex; justify-content: space-between; border-bottom: 2px solid #222; padding-bottom: 14px; font-size: 10px; letter-spacing: 0.1em; }
.sample-paper-meta { display: flex; justify-content: space-between; padding: 18px 0; color: #777; font-size: 12px; }
.sample-lines { border-top: 1px solid #ddd; }
.sample-lines div { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px solid #eee; font-size: 13px; }
.sample-lines b { font-family: var(--sans); }
.sample-total { display: flex; justify-content: space-between; align-items: center; padding: 25px 0; font-size: 14px; }
.sample-total strong { font-size: 34px; font-family: var(--serif); }
.sample-sign { margin-top: 54px; border-top: 1px solid #aaa; padding-top: 9px; font-size: 10px; color: #777; }
.templates-section { border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 44px; }
.section-heading h2 { font-size: clamp(38px, 5vw, 64px); margin-bottom: 0; }
.section-heading > p { max-width: 360px; color: var(--muted); margin-bottom: 8px; }
.template-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.template-preview { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.35); }
.template-preview strong { display: block; margin-top: 7px; font-family: var(--serif); font-size: 23px; font-weight: 500; }
.template-preview p { color: var(--muted); font-size: 13px; margin: 16px 0 0; }
.template-tone { font-family: var(--mono); color: var(--accent); font-size: 9px; text-transform: uppercase; letter-spacing: 0.12em; }
.pricing-section { padding-top: 40px; }
.pricing-card { background: var(--ink); color: var(--card); border-radius: 28px; padding: 56px; display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 80px; }
.pricing-card .section-kicker { color: rgba(255,255,255,.52); }
.pricing-card h2 { font-size: clamp(40px, 5vw, 64px); max-width: 700px; margin-bottom: 20px; }
.pricing-lede { color: rgba(255,255,255,.65); max-width: 650px; }
.price-line { display: flex; align-items: baseline; gap: 12px; margin: 30px 0; }
.price-line strong { font-family: var(--serif); font-size: 66px; font-weight: 400; letter-spacing: -0.05em; }
.price-line span { color: rgba(255,255,255,.6); font-size: 13px; }
.price-line del { color: rgba(255,255,255,.35); font-size: 14px; }
.microcopy { max-width: 560px; color: rgba(255,255,255,.45); font-size: 11px; margin: 17px 0 0; }
.pricing-includes { border-left: 1px solid rgba(255,255,255,.17); padding-left: 36px; align-self: center; }
.pricing-includes h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,.55); }
.pricing-includes ul { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.pricing-includes li::before { content: "→"; color: var(--acid); margin-right: 9px; }
.faq-section { display: grid; grid-template-columns: 0.36fr 0.64fr; gap: 70px; border-top: 1px solid var(--line); }
.faq-grid details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq-grid details:last-child { border-bottom: 1px solid var(--line); }
.faq-grid summary { cursor: pointer; list-style: none; font-family: var(--serif); font-size: 22px; font-weight: 500; display: flex; justify-content: space-between; gap: 20px; }
.faq-grid summary::-webkit-details-marker { display: none; }
.faq-grid summary::after { content: "+"; font-family: var(--sans); font-size: 18px; color: var(--muted); }
.faq-grid details[open] summary::after { content: "−"; }
.faq-grid p { color: var(--muted); max-width: 670px; margin: 12px 40px 0 0; }
.final-cta { width: min(1240px, calc(100% - 40px)); margin: 0 auto 90px; padding: 48px 52px; background: var(--acid); border-radius: 24px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.final-cta h2 { font-family: var(--serif); font-size: clamp(32px, 4vw, 52px); font-weight: 400; letter-spacing: -0.04em; margin: 5px 0 0; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--card); border-radius: 999px; padding: 11px 18px; font-size: 13px; box-shadow: 0 12px 40px rgba(0,0,0,.25); transition: all 180ms ease; z-index: 200; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.workspace-shell { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 58px 0 80px; }
.workspace-top { display: flex; justify-content: space-between; align-items: end; gap: 35px; margin-bottom: 32px; }
.workspace-top h1 { font-family: var(--serif); font-size: clamp(44px, 5.5vw, 72px); line-height: 0.95; letter-spacing: -0.055em; font-weight: 400; margin: 16px 0 14px; }
.workspace-top p { color: var(--muted); max-width: 620px; margin: 0; }
.workspace-tools { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.workspace-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-family: var(--serif); font-size: 31px; font-weight: 400; letter-spacing: -0.035em; margin: 4px 0 0; }
.panel-kicker { font-family: var(--mono); color: var(--accent); font-size: 9px; text-transform: uppercase; letter-spacing: 0.13em; }
.panel-status, .panel-note { font-size: 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 9px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.items-list { display: flex; flex-direction: column; gap: 12px; }
.item-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: rgba(244, 240, 232, 0.42); }
.item-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.item-title { display: flex; align-items: center; gap: 10px; }
.item-index { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.kind-badge { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 8px; border-radius: 99px; background: var(--paper-3); }
.kind-change { background: #f4d9cd; color: #82331c; }
.kind-rework { background: #e9dfb8; color: #675615; }
.item-actions { display: flex; gap: 5px; }
.icon-button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: transparent; font-size: 14px; display: grid; place-items: center; color: var(--muted); }
.icon-button:hover:not(:disabled) { background: var(--card); color: var(--ink); }
.icon-button.danger:hover:not(:disabled) { border-color: #d99e8e; color: #a9371e; }
.item-fields { display: grid; grid-template-columns: 1.1fr 0.8fr 0.7fr 0.8fr; gap: 12px; margin-top: 13px; }
.item-fields .field:nth-last-child(1) { min-width: 110px; }
.line-price { display: block; font-family: var(--serif); font-size: 27px; font-weight: 500; line-height: 1.15; letter-spacing: -0.03em; padding-top: 4px; }
.line-price.is-free { color: var(--good); font-size: 20px; padding-top: 7px; }
.item-toggles { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 15px; padding-top: 14px; border-top: 1px dashed var(--line); }
.switch-field { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: var(--ink-soft); cursor: pointer; }
.switch-field input { position: absolute; opacity: 0; pointer-events: none; }
.switch { width: 32px; height: 18px; border-radius: 99px; border: 1px solid var(--line-dark); background: var(--paper-2); position: relative; transition: background 150ms ease, border-color 150ms ease; }
.switch::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 1px solid var(--line-dark); position: absolute; top: 2px; left: 2px; transition: transform 150ms ease; }
.switch-field input:checked + .switch { background: var(--accent); border-color: var(--accent); }
.switch-field input:checked + .switch::after { transform: translateX(14px); border-color: var(--accent); }
.inline-field { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.inline-field select { border: 1px solid var(--line); border-radius: 8px; background: var(--paper); padding: 5px 8px; font-size: 11px; }
.summary-panel { position: sticky; top: 18px; background: var(--ink); color: var(--card); border-radius: var(--radius); padding: 25px; box-shadow: 0 18px 55px rgba(30, 28, 22, 0.16); }
.summary-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.15); }
.summary-panel .panel-kicker { color: rgba(255,255,255,.48); }
.summary-dot { width: 7px; height: 7px; background: var(--acid); border-radius: 50%; box-shadow: 0 0 0 4px rgba(215,236,117,.12); }
.summary-main { display: flex; flex-direction: column; padding: 24px 0 20px; }
.summary-main span { font-size: 11px; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: 0.08em; }
.summary-main strong { font-family: var(--serif); font-size: 58px; line-height: 1; font-weight: 400; letter-spacing: -0.05em; margin-top: 5px; }
.summary-list { margin: 0; border-top: 1px solid rgba(255,255,255,.15); }
.summary-list > div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.summary-list dt { color: rgba(255,255,255,.58); font-size: 11px; }
.summary-list dd { margin: 0; font-size: 12px; font-weight: 700; text-align: right; }
.summary-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.summary-actions .button-ghost { color: rgba(255,255,255,.78); border-color: rgba(255,255,255,.25); }
.summary-actions .button-ghost:hover:not(:disabled) { background: rgba(255,255,255,.08); color: #fff; }
.license-box { margin-top: 18px; padding: 13px; border: 1px solid rgba(255,255,255,.16); border-radius: 11px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.license-box > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.license-box strong { font-size: 11px; }
.license-box span { color: rgba(255,255,255,.48); font-size: 9px; line-height: 1.4; }
.license-box .text-button { color: var(--acid); font-size: 9px; white-space: nowrap; }
.license-box.is-active { border-color: rgba(215,236,117,.35); background: rgba(215,236,117,.06); }
.license-check { color: var(--acid) !important; font-size: 20px !important; }
.unlock-banner { width: 100%; margin-top: 14px; padding: 15px; border: 0; border-radius: 11px; background: var(--acid); color: var(--ink); display: flex; flex-direction: column; gap: 2px; text-align: left; }
.unlock-banner span { font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.65; }
.unlock-banner strong { font-size: 12px; }
.license-pill { font-size: 10px; font-weight: 700; border: 1px solid var(--line); color: var(--muted); border-radius: 99px; padding: 4px 9px; }
.license-pill.is-active { color: var(--good); border-color: #a9c7b7; background: #eef6f0; }
.messages-list { display: flex; flex-direction: column; gap: 10px; }
.message-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: rgba(244,240,232,.42); }
.message-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.message-head > div { display: flex; flex-direction: column; gap: 2px; }
.message-head strong { font-family: var(--serif); font-size: 17px; font-weight: 500; }
.message-card pre { margin: 0; font-family: var(--sans); font-size: 11px; line-height: 1.55; color: var(--ink-soft); white-space: pre-wrap; }
.workspace-footnote { margin-top: 16px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.document-mode { background: #ddd7cc; }
.document-wrap { width: min(1100px, calc(100% - 32px)); margin: 0 auto; padding: 25px 0 60px; }
.document-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 0 auto 22px; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; font-size: 11px; color: var(--muted); }
.document-toolbar > div { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.toolbar-divider { width: 1px; height: 14px; background: var(--line); }
kbd { background: var(--paper-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 4px; font-size: 9px; font-family: var(--mono); }
.document-sheet { width: 210mm; min-height: 297mm; margin: 0 auto; padding: 15mm; background: #fff; color: #151515; box-shadow: 0 30px 90px rgba(30,25,18,.25); font-family: var(--sans); position: relative; }
.doc-letterhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; padding-bottom: 18px; border-bottom: 2px solid #171713; }
.doc-overline { font-family: var(--mono); font-size: 8px; letter-spacing: 0.2em; color: #777; }
.doc-letterhead h1 { font-family: var(--serif); font-size: 34px; line-height: 1.05; font-weight: 400; letter-spacing: -0.04em; margin: 6px 0 0; max-width: 390px; }
.doc-number { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 9px; color: #777; }
.doc-number strong { color: #171713; font-family: var(--mono); font-size: 11px; }
.doc-meta-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 22px; padding: 18px 0; border-bottom: 1px solid #ddd; }
.doc-meta-grid div { display: flex; flex-direction: column; gap: 3px; }
.doc-meta-grid span { font-size: 8px; color: #888; text-transform: uppercase; letter-spacing: 0.08em; }
.doc-meta-grid strong { font-size: 11px; font-weight: 650; }
.doc-intro { font-size: 10.5pt; line-height: 1.5; color: #444; margin: 20px 0; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 9.5pt; }
.doc-table th { text-align: left; padding: 9px 7px; border-top: 1px solid #171713; border-bottom: 1px solid #171713; font-size: 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.doc-table td { padding: 10px 7px; border-bottom: 1px solid #e4e4e4; vertical-align: top; }
.doc-table th.num, .doc-table td.num { text-align: right; white-space: nowrap; }
.doc-table tbody tr:nth-child(even) { background: #faf9f6; }
.doc-totals { margin-left: auto; width: 58%; margin-top: 18px; }
.doc-totals > div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #e6e6e6; font-size: 10pt; }
.doc-totals span { color: #666; }
.doc-totals strong { font-weight: 650; }
.doc-total-primary { border-top: 1.5px solid #171713; border-bottom: 0 !important; margin-top: 5px; padding-top: 12px !important; }
.doc-total-primary strong { font-family: var(--serif); font-size: 22pt; font-weight: 500; }
.doc-terms { margin-top: 28px; padding-top: 18px; border-top: 1px solid #ddd; }
.doc-terms h2 { font-family: var(--serif); font-size: 14pt; font-weight: 500; margin-bottom: 5px; }
.doc-terms p { font-size: 9pt; color: #555; line-height: 1.5; max-width: 85%; }
.signature-grid { display: grid; grid-template-columns: 2fr 1.2fr 0.8fr; gap: 18px; margin-top: 38px; }
.signature-grid div { display: flex; flex-direction: column; gap: 4px; }
.signature-grid span { font-size: 7.5pt; color: #777; }
.signature-grid i { height: 22px; border-bottom: 1px solid #777; }
.doc-footer { position: absolute; left: 15mm; right: 15mm; bottom: 10mm; display: flex; justify-content: space-between; gap: 20px; padding-top: 7px; border-top: 1px solid #ddd; color: #999; font-size: 7.5pt; }
.document-note { width: 210mm; margin: 18px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; color: #6d675e; }
.document-note div { display: flex; flex-direction: column; gap: 3px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px; }
.document-note strong { color: var(--ink); font-size: 11px; }
.document-note span { font-size: 10px; }
.modal-open { overflow: hidden; }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(16,16,13,.62); backdrop-filter: blur(5px); display: grid; place-items: center; padding: 20px; }
.modal { width: min(480px, 100%); max-height: 90vh; overflow: auto; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 31px; box-shadow: 0 30px 100px rgba(0,0,0,.3); }
.modal h2 { font-family: var(--serif); font-size: 36px; line-height: 1.04; letter-spacing: -0.04em; font-weight: 400; margin: 10px 0 13px; }
.modal-lede { color: var(--muted); font-size: 13px; }
.modal-close { position: absolute; top: 13px; right: 14px; border: 0; background: transparent; font-size: 25px; color: var(--muted); line-height: 1; }
.modal-price { display: flex; align-items: baseline; gap: 10px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 18px 0; }
.modal-price strong { font-family: var(--serif); font-size: 54px; font-weight: 400; letter-spacing: -0.05em; }
.modal-price span { color: var(--muted); font-size: 11px; }
.modal-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; font-size: 11px; }
.modal-list li::before { content: "✓"; color: var(--accent); margin-right: 6px; font-weight: 800; }
.modal .button-full + .button-full { margin-top: 8px; }
.modal-text-button { margin-top: 12px; }
.modal .field { margin-bottom: 8px; }
.form-error { min-height: 18px; color: #a9371e; font-size: 10px; margin: 4px 0 10px; }
code { font-family: var(--mono); font-size: 0.92em; background: var(--paper-2); padding: 1px 3px; border-radius: 3px; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 58px; }
  .hero-demo-wrap { max-width: 590px; }
  .problem-grid, .sample-section, .faq-section { grid-template-columns: 1fr; gap: 38px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 300px; }
  .template-preview-grid { grid-template-columns: 1fr; }
  .pricing-card { grid-template-columns: 1fr; gap: 35px; padding: 38px; }
  .pricing-includes { border-left: 0; border-top: 1px solid rgba(255,255,255,.17); padding-left: 0; padding-top: 25px; }
  .workspace-grid { grid-template-columns: 1fr; }
  .summary-panel { position: static; }
  .document-sheet { width: 100%; min-height: 0; padding: 24px; }
  .document-note { width: 100%; }
  .doc-footer { position: static; margin-top: 40px; }
}
@media (max-width: 720px) {
  .site-header { width: min(100% - 24px, 1240px); min-height: 68px; gap: 10px; }
  .site-nav { display: none; }
  .header-note { display: none; }
  .nav-actions .license-pill { display: none; }
  .site-footer { width: min(100% - 24px, 1240px); flex-direction: column; }
  .hero, .logo-strip, .section, .final-cta, .workspace-shell { width: min(100% - 24px, 1240px); }
  .hero { padding: 42px 0 60px; gap: 25px; }
  .hero-copy h1 { font-size: clamp(50px, 16vw, 76px); }
  .hero-lede { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .proof-list { flex-direction: column; gap: 8px; }
  .demo-card { transform: none; padding: 20px; }
  .floating-note { display: none; }
  .logo-strip { flex-wrap: wrap; justify-content: flex-start; }
  .section { padding: 64px 0; }
  .problem-grid h2, .section h2 { font-size: 38px; }
  .sample-paper-wrap { padding: 15px; }
  .sample-paper { min-height: 400px; padding: 24px; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 18px; }
  .check-list { grid-template-columns: 1fr; }
  .pricing-card { padding: 27px; border-radius: 20px; }
  .price-line strong { font-size: 54px; }
  .faq-section { gap: 25px; }
  .faq-grid summary { font-size: 19px; }
  .final-cta { flex-direction: column; align-items: flex-start; padding: 30px; }
  .workspace-top { flex-direction: column; align-items: flex-start; }
  .workspace-tools { justify-content: flex-start; }
  .panel { padding: 19px; }
  .form-grid { grid-template-columns: 1fr; }
  .item-fields { grid-template-columns: 1fr 1fr; }
  .workspace-footnote { flex-direction: column; }
  .summary-main strong { font-size: 48px; }
  .document-wrap { width: calc(100% - 20px); }
  .document-toolbar { flex-direction: column; align-items: flex-start; }
  .doc-letterhead { flex-direction: column; gap: 14px; }
  .doc-number { align-items: flex-start; }
  .doc-meta-grid { grid-template-columns: 1fr; gap: 12px; }
  .doc-table th:nth-child(3), .doc-table td:nth-child(3), .doc-table th:nth-child(4), .doc-table td:nth-child(4) { display: none; }
  .doc-totals { width: 100%; }
  .signature-grid { grid-template-columns: 1fr; }
  .doc-footer { flex-direction: column; }
  .document-note { grid-template-columns: 1fr; }
  .modal { padding: 24px; }
  .modal-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@page { size: A4; margin: 15mm; }
@media print {
  body { background: #fff !important; }
  body::before, .site-header, .site-footer, .no-print, .document-note, .toast, #modal-root { display: none !important; }
  .document-wrap { width: auto; margin: 0; padding: 0; }
  .document-sheet { width: auto; min-height: 0; margin: 0; padding: 0; box-shadow: none; }
  .doc-table thead { display: table-header-group; }
  .doc-table tr { page-break-inside: avoid; }
  .doc-footer { position: fixed; left: 0; right: 0; bottom: 0; }
}


[hidden] { display: none !important; }
.legal-page { width: min(860px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 90px; }
.legal-page h1 { font-family: var(--serif); font-size: clamp(46px, 7vw, 76px); font-weight: 400; letter-spacing: -0.055em; line-height: 0.98; margin: 14px 0 20px; }
.legal-page .lede { color: var(--muted); font-size: 18px; max-width: 720px; margin-bottom: 38px; }
.legal-page h2 { font-family: var(--serif); font-size: 29px; font-weight: 500; letter-spacing: -0.03em; margin: 38px 0 10px; }
.legal-page p, .legal-page li { color: var(--ink-soft); font-size: 14px; }
.legal-page p { margin-bottom: 13px; }
.legal-page ul { padding-left: 21px; }
.legal-page a { text-decoration: underline; text-underline-offset: 3px; }
.legal-foot { margin-top: 52px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 30px 0; }
.guide-link { display: block; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.guide-link:hover { border-color: var(--line-dark); }
.guide-link strong { display: block; font-family: var(--serif); font-size: 22px; font-weight: 500; margin-bottom: 5px; }
.guide-link span { color: var(--muted); font-size: 12px; }
@media (max-width: 720px) { .guide-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .nav-actions > a.button-ghost { display: none; }
  .nav-actions .button-small { white-space: nowrap; }
}
