:root {
  --ink: #10221b;
  --muted: #627068;
  --paper: #f5f2e9;
  --surface: #fffdf7;
  --line: #d9d8cd;
  --brand: #176b52;
  --brand-dark: #0f4b3a;
  --accent: #f2b84b;
  --danger: #b84a3a;
  --ok: #237a57;
  --shadow: 0 18px 60px rgba(30, 47, 39, 0.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background:
  radial-gradient(circle at 86% 8%, rgba(242,184,75,.18), transparent 24rem),
  linear-gradient(180deg, #fbfaf5 0, var(--paper) 36rem); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: white; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header { max-width: 1180px; margin: auto; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 820; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--brand); color: white; box-shadow: inset 0 -2px rgba(0,0,0,.14); }
.header-right { display: flex; align-items: center; gap: 20px; }
.nav { display: flex; gap: 22px; color: var(--muted); font-size: 14px; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--ink); }
.header-action { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 13px; background: rgba(255,255,255,.72); font-size: 13px; font-weight: 780; text-decoration: none; }
.header-action:hover { border-color: var(--ink); }
.header-action[data-connected="true"]::after { content: ""; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%; background: var(--ok); }

.hero { max-width: 1180px; margin: 0 auto; padding: 72px 24px 44px; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(280px,.8fr); gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--brand); font-size: 13px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
h1 { margin: 0; max-width: 780px; font-size: clamp(42px, 6vw, 74px); line-height: .98; letter-spacing: -.065em; }
.hero-copy { margin: 24px 0 30px; max-width: 700px; color: var(--muted); font-size: clamp(17px, 2vw, 20px); line-height: 1.65; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin: 13px 0 0; color: var(--muted); font-size: 12px; }
.button, button.primary, button.secondary { min-height: 44px; border-radius: 12px; border: 1px solid transparent; padding: 11px 17px; font-weight: 760; transition: transform .18s ease, background .18s ease, border .18s ease; }
.button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.primary { background: var(--brand); color: white; }
.primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.secondary { background: var(--surface); color: var(--ink); border-color: var(--line) !important; }
.secondary:hover { border-color: var(--ink) !important; }
.hero-card { background: var(--ink); color: white; border-radius: 26px; padding: 28px; box-shadow: var(--shadow); transform: rotate(1.4deg); }
.hero-card p { color: #c9d4ce; line-height: 1.55; }
.mini-list { display: grid; gap: 12px; margin-top: 24px; }
.mini-row { display: flex; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.14); }
.mini-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); }

.trust-bar { border-block: 1px solid var(--line); background: rgba(255,255,255,.45); }
.trust-inner { max-width: 1180px; margin: auto; padding: 17px 24px; display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; color: var(--muted); font-size: 13px; font-weight: 700; }
.trust-inner span::before { content: "+"; color: var(--brand); margin-right: 8px; }

.tool-section { max-width: 1180px; margin: 0 auto; padding: 78px 24px; }
.section-heading { max-width: 700px; margin-bottom: 28px; }
.section-heading h2 { margin: 0 0 10px; font-size: clamp(30px,4vw,45px); letter-spacing: -.045em; }
.section-heading p { color: var(--muted); line-height: 1.65; }
.workspace { display: grid; grid-template-columns: minmax(0,1fr) minmax(340px,.82fr); gap: 20px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px,3vw,30px); box-shadow: 0 8px 30px rgba(30,47,39,.055); }
.panel h3 { margin: 0 0 20px; font-size: 20px; letter-spacing: -.02em; }
.result-panel { position: sticky; top: 20px; min-height: 280px; }
.field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 13px; font-weight: 760; }
.hint { color: var(--muted); font-size: 12px; line-height: 1.45; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--ink); padding: 11px 12px; outline: none; transition: border .18s, box-shadow .18s; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23,107,82,.12); }
.file-upload { display: flex; align-items: center; gap: 12px; min-height: 46px; }
.native-file-input { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0 !important; }
.file-upload-button { flex: 0 0 auto; min-height: 42px; border-radius: 11px; padding: 10px 14px; font-weight: 760; }
.file-upload-name { min-width: 0; overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.empty { display: grid; place-items: center; text-align: center; color: var(--muted); min-height: 220px; border: 1px dashed var(--line); border-radius: 14px; padding: 24px; }
.empty-icon { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 50%; color: var(--brand); background: rgba(23,107,82,.09); font-weight: 900; }
.score { display: flex; align-items: baseline; gap: 8px; margin-bottom: 18px; }
.score strong { font-size: 48px; letter-spacing: -.05em; }
.score span { color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 14px 0; }
.metric { padding: 13px; border-radius: 12px; background: #f2f1e9; }
.metric small { display: block; color: var(--muted); margin-bottom: 4px; }
.metric strong { font-size: 18px; }
.issue-list, .output-list { display: grid; gap: 9px; padding: 0; list-style: none; }
.issue, .output-item { padding: 12px 13px; border-radius: 11px; background: #f2f1e9; line-height: 1.45; font-size: 14px; }
.issue.error { border-left: 4px solid var(--danger); }
.issue.warn { border-left: 4px solid var(--accent); }
.issue.ok { border-left: 4px solid var(--ok); }
.badge { display: inline-flex; padding: 5px 8px; border-radius: 999px; background: rgba(23,107,82,.1); color: var(--brand); font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.table-wrap { overflow-x: auto; margin-top: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
code, pre { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
pre { overflow: auto; max-height: 360px; padding: 15px; background: #10221b; color: #e8f0eb; border-radius: 12px; font-size: 12px; line-height: 1.5; white-space: pre-wrap; }
.canvas-stage { display: grid; place-items: center; min-height: 240px; padding: 18px; border: 1px dashed var(--line); border-radius: 14px; overflow: hidden; background: #edeae0; }
.canvas-stage canvas { display: block; max-width: 100%; max-height: 360px; box-shadow: 0 12px 35px rgba(0,0,0,.16); }

.pricing-section { max-width: 1180px; margin: 0 auto; padding: 30px 24px 88px; }
.launch-note { display: flex; align-items: flex-start; gap: 12px; max-width: 760px; margin: -4px 0 24px; padding: 14px 16px; border: 1px solid rgba(23,107,82,.22); border-radius: 13px; background: rgba(255,255,255,.52); }
.launch-note b { display: block; margin-bottom: 3px; font-size: 13px; }
.launch-note p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.status-dot { width: 9px; height: 9px; flex: 0 0 auto; margin-top: 5px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px rgba(23,107,82,.1); }
.pricing-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; align-items: stretch; }
.pricing-grid.plans-1 { grid-template-columns: minmax(280px,520px); }
.pricing-grid.plans-2 { grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 820px; }
.price-card { display: flex; flex-direction: column; min-height: 100%; padding: 25px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); box-shadow: 0 8px 30px rgba(30,47,39,.045); }
.price-card.featured { border-color: var(--brand); box-shadow: 0 15px 45px rgba(30,47,39,.1); }
.plan-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-topline h3 { margin: 0; font-size: 18px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin: 20px 0 12px; }
.plan-price strong { font-size: 38px; letter-spacing: -.05em; }
.plan-price span { color: var(--muted); font-size: 13px; }
.price-card > p { min-height: 44px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.plan-features { display: grid; gap: 10px; flex: 1; margin: 22px 0 24px; padding: 0; list-style: none; }
.plan-features li { position: relative; padding-left: 23px; color: var(--ink); font-size: 13px; line-height: 1.45; }
.plan-features li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 900; }
.price-card > .button, .price-card > button { width: 100%; }
.billing-note { max-width: 820px; margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.suite-strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; padding: 19px 21px; border-radius: 16px; background: var(--ink); color: white; }
.suite-strip p { margin: 8px 0 0; color: #c9d4ce; font-size: 13px; }
.suite-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.suite-links a { padding: 9px 11px; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; font-size: 12px; font-weight: 750; text-decoration: none; }
.suite-links a:hover { background: rgba(255,255,255,.09); }

.interest-dialog { width: min(520px,calc(100% - 30px)); padding: 30px; border: 0; border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: 0 28px 90px rgba(16,34,27,.28); }
.interest-dialog::backdrop { background: rgba(16,34,27,.55); backdrop-filter: blur(3px); }
.interest-dialog h2 { max-width: 440px; margin: 16px 0 10px; font-size: 29px; line-height: 1.08; letter-spacing: -.04em; }
.interest-dialog > p { margin: 0; color: var(--muted); line-height: 1.6; }
.dialog-close { position: absolute; top: 13px; right: 13px; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--ink); font-size: 24px; line-height: 1; }
.access-list { display: grid; gap: 11px; margin: 22px 0; }
.access-list > div { display: grid; grid-template-columns: 145px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.access-list b { font-size: 13px; }
.access-list span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.dialog-tool-link { width: 100%; }

.account-dialog { width: min(520px,calc(100% - 30px)); padding: 30px; border: 0; border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: 0 28px 90px rgba(16,34,27,.28); }
.account-dialog::backdrop { background: rgba(16,34,27,.55); backdrop-filter: blur(3px); }
.account-dialog h2 { margin: 16px 0 10px; font-size: 31px; line-height: 1.08; letter-spacing: -.045em; }
.account-dialog h3 { margin: 22px 0 9px; font-size: 14px; }
.account-dialog > div > p { color: var(--muted); line-height: 1.55; }
.account-mode-switch { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; margin: 16px 0 20px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: #f2f1e9; }
.account-mode-switch button { padding: 10px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 750; cursor: pointer; }
.account-mode-switch button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgba(16,34,27,.1); }
.account-form { display: grid; gap: 9px; margin: 22px 0 16px; }
.account-form button { width: 100%; }
.account-form button:disabled, .account-form input:disabled { cursor: not-allowed; opacity: .62; }
.account-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.account-code { font-size: 24px; font-weight: 750; letter-spacing: .24em; text-align: center; }
.account-code-note { display: grid; gap: 3px; margin: 0 0 8px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.account-code-note b { color: var(--ink); font-size: 15px; }
.account-use-email { padding: 5px !important; border: 0 !important; background: transparent !important; color: var(--brand) !important; box-shadow: none !important; font-size: 13px !important; }
.account-status { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #f2f1e9; }
.account-status b { display: block; font-size: 13px; }
.account-status p { margin: 3px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.account-status.connected .status-dot { background: var(--ok); }
.account-footnote { margin-bottom: 0; font-size: 12px; }
.account-email { margin-top: 0; font-weight: 750; }
.account-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 22px 0; }
.account-metrics > div { padding: 14px; border-radius: 12px; background: #f2f1e9; }
.account-metrics small { display: block; color: var(--muted); margin-bottom: 4px; }
.account-metrics strong { font-size: 24px; }
.account-plan-list { display: grid; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.account-plan-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; }
.account-plan-list small { grid-column: 1 / -1; color: var(--muted); }
.empty-account-row { display: block !important; color: var(--muted); font-size: 13px; }
.account-sign-out { width: 100%; }
.account-support { color: var(--muted); font-size: 12px; line-height: 1.5; }
.account-billing-note { margin: 16px 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #f2f1e9; }
.account-billing-note b { display: block; font-size: 13px; }
.account-billing-note p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.account-success { padding: 15px; border-radius: 12px; background: rgba(35,122,87,.09); }
.account-success p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.content-section { max-width: 1180px; margin: 0 auto; padding: 30px 24px 88px; }
.feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.feature { padding: 23px; border-radius: 17px; border: 1px solid var(--line); background: rgba(255,255,255,.55); }
.feature b { display: block; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 14px; }
.faq { margin-top: 60px; max-width: 820px; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 760; }
.faq p { color: var(--muted); line-height: 1.65; }
.transparency-section { max-width: 1180px; margin: 0 auto; padding: 0 24px 88px; display: grid; grid-template-columns: minmax(0,.9fr) minmax(320px,1.1fr); gap: 44px; align-items: start; }
.transparency-section h2 { margin: 0 0 12px; font-size: clamp(28px,4vw,42px); letter-spacing: -.045em; }
.transparency-section p { color: var(--muted); line-height: 1.65; }
.transparency-list { display: grid; gap: 12px; }
.transparency-list > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.transparency-list b { font-size: 13px; }
.transparency-list span { color: var(--muted); font-size: 13px; line-height: 1.55; }
.site-footer { border-top: 1px solid var(--line); background: rgba(255,255,255,.35); }
.footer-inner { max-width: 1180px; margin: auto; padding: 30px 24px 44px; display: grid; grid-template-columns: 1fr auto; gap: 20px 36px; color: var(--muted); font-size: 13px; }
.footer-brand { display: grid; gap: 5px; }
.footer-brand b { color: var(--ink); font-size: 15px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; }
.footer-links a, .footer-support a, .account-support a { color: var(--brand-dark); font-weight: 720; }
.footer-support { display: flex; align-items: baseline; gap: 8px; }
.footer-support b { color: var(--ink); }
.support-pending { color: var(--muted); }
.notice { grid-column: 1 / -1; max-width: 900px; margin: 0; line-height: 1.55; }
.toast { position: fixed; right: 18px; bottom: 18px; z-index: 20; background: var(--ink); color: white; border-radius: 11px; padding: 12px 15px; box-shadow: var(--shadow); animation: rise .25s ease; }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }

@media (max-width: 820px) {
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-card { transform: none; }
  .workspace { grid-template-columns: 1fr; }
  .result-panel { position: static; }
  .feature-grid { grid-template-columns: 1fr; }
  .pricing-grid, .pricing-grid.plans-2 { grid-template-columns: 1fr; max-width: none; }
  .suite-strip { align-items: flex-start; flex-direction: column; }
  .suite-links { justify-content: flex-start; }
  .transparency-section { grid-template-columns: 1fr; gap: 20px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .notice { grid-column: auto; }
}
@media (max-width: 560px) {
  .site-header, .hero, .tool-section, .pricing-section, .content-section, .transparency-section { padding-inline: 16px; }
  .hero { gap: 30px; }
  h1 { font-size: 42px; }
  .field-grid, .metric-grid { grid-template-columns: 1fr; }
  .panel { border-radius: 16px; }
  .header-right { gap: 8px; }
  .interest-dialog { padding: 24px 20px; }
  .account-dialog { padding: 24px 20px; }
  .access-list > div { grid-template-columns: 1fr; gap: 4px; }
  .transparency-list > div { grid-template-columns: 1fr; gap: 4px; }
}

.legal-body { min-height: 100vh; }
.legal-header { max-width: 980px; margin: auto; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.legal-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; color: var(--muted); font-size: 13px; }
.legal-nav a { text-decoration: none; }
.legal-nav a[aria-current="page"] { color: var(--brand-dark); font-weight: 780; }
.legal-main { max-width: 980px; margin: 0 auto; padding: 64px 24px 88px; }
.legal-hero { max-width: 760px; margin-bottom: 42px; }
.legal-hero h1 { font-size: clamp(42px,7vw,70px); }
.legal-hero p { color: var(--muted); font-size: 17px; line-height: 1.65; }
.legal-card { max-width: 820px; padding: clamp(24px,4vw,42px); border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.legal-card section + section { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.legal-card h2 { margin: 0 0 10px; font-size: 23px; letter-spacing: -.025em; }
.legal-card p, .legal-card li { color: var(--muted); line-height: 1.72; }
.legal-card ul { padding-left: 22px; }
.legal-card a { color: var(--brand-dark); font-weight: 720; }
.legal-effective { display: inline-flex; margin-top: 14px; padding: 6px 9px; border-radius: 999px; background: rgba(23,107,82,.09); color: var(--brand-dark); font-size: 12px; font-weight: 760; }
.legal-contact { margin-top: 24px; padding: 18px; border-radius: 14px; background: #f2f1e9; }
.legal-site-footer { border-top: 1px solid var(--line); }
.legal-site-footer .footer-inner { max-width: 980px; }
@media (max-width: 620px) {
  .legal-header { align-items: flex-start; flex-direction: column; padding-inline: 16px; }
  .legal-nav { justify-content: flex-start; }
  .legal-main { padding: 42px 16px 64px; }
}

@media print {
  .site-header, .hero, .trust-bar, .input-panel, .content-section, .site-footer, .actions { display: none !important; }
  .tool-section { padding: 0; }
  .workspace { display: block; }
  .result-panel { border: 0; box-shadow: none; }
}
