:root {
  --green: #58cc02;
  --green-dark: #46a302;
  --green-soft: #e9fbdc;
  --blue: #1cb0f6;
  --blue-dark: #168dcc;
  --yellow: #ffc800;
  --yellow-dark: #d6a900;
  --red: #ff4b4b;
  --red-dark: #d93434;
  --ink: #3c3c3c;
  --muted: #777;
  --line: #e5e5e5;
  --surface: #fff;
  --background: #f7f7f7;
  --radius: 18px;
  --shadow: 0 5px 0 #e5e5e5;
  color-scheme: light;
  font-family: "Arial Rounded MT Bold", "Nunito", "Avenir Next", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
img, svg { display: block; max-width: 100%; }

.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,.94);
  border-bottom: 2px solid var(--line);
  backdrop-filter: blur(16px);
}
.nav { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--green); font-size: 24px; font-weight: 900; letter-spacing: -.8px; }
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center;
  color: #fff; background: var(--green); border-radius: 14px;
  box-shadow: 0 4px 0 var(--green-dark);
  transform: rotate(-3deg);
}
.brand-mark svg { width: 25px; }
.nav-links { display: flex; align-items: center; gap: 28px; color: #777; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .7px; }
.nav-links a:hover { color: var(--green-dark); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 14px;
  font-weight: 900; text-transform: uppercase; letter-spacing: .6px; cursor: pointer;
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}
.button:hover { filter: brightness(1.025); transform: translateY(-1px); }
.button:active { transform: translateY(3px); box-shadow: none !important; }
.button-primary { color: #fff; background: var(--green); box-shadow: 0 5px 0 var(--green-dark); }
.button-secondary { color: var(--blue-dark); background: #fff; border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); }
.button-yellow { color: #765e00; background: var(--yellow); box-shadow: 0 5px 0 var(--yellow-dark); }
.button-wide { width: 100%; }
.button-large { min-height: 56px; padding-inline: 30px; font-size: 16px; }
.button[disabled] { opacity: .45; cursor: not-allowed; filter: grayscale(.2); }

.hero { position: relative; overflow: hidden; padding: 88px 0 82px; background: linear-gradient(180deg, #fff 0%, #f8fff4 100%); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; opacity: .15; }
.hero::before { width: 320px; height: 320px; background: var(--yellow); right: -120px; top: -150px; }
.hero::after { width: 240px; height: 240px; background: var(--blue); left: -150px; bottom: -150px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 58px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--green-dark); font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; }
.eyebrow::before { content: ""; width: 11px; height: 11px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 5px var(--green-soft); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 710px; margin-bottom: 22px; font-size: clamp(45px, 6vw, 72px); line-height: .99; letter-spacing: -3.8px; }
.hero h1 span { color: var(--green); }
.hero-copy { max-width: 640px; margin-bottom: 30px; color: #666; font-family: system-ui, sans-serif; font-size: 19px; font-weight: 600; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.trust-line { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 27px; color: #777; font-family: system-ui, sans-serif; font-size: 13px; font-weight: 700; }
.trust-line span { display: inline-flex; gap: 6px; align-items: center; }
.trust-line b { color: var(--green); }

.lex-stage { position: relative; min-height: 460px; display: grid; place-items: center; }
.lex-orbit { position: absolute; width: 410px; height: 410px; border: 3px dashed #d7efca; border-radius: 50%; animation: spin 28s linear infinite; }
.lex-orbit::before, .lex-orbit::after { content: ""; position: absolute; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 17px; box-shadow: var(--shadow); background: #fff; }
.lex-orbit::before { content: "✓"; color: var(--green); font-size: 26px; left: 18px; top: 52px; }
.lex-orbit::after { content: "§"; color: var(--blue); font-size: 26px; right: 2px; bottom: 82px; }
@keyframes spin { to { transform: rotate(360deg); } }
.mascot {
  position: relative; z-index: 2; width: 282px; min-height: 330px; padding: 32px 24px 25px;
  color: #fff; text-align: center; background: var(--green);
  border: 4px solid var(--green-dark); border-radius: 48% 48% 36% 36%;
  box-shadow: 0 12px 0 var(--green-dark), 0 28px 45px rgba(70,163,2,.2);
  transform: rotate(2deg);
}
.mascot-ears { display: flex; justify-content: space-between; margin: -50px 18px 5px; }
.mascot-ear { width: 63px; height: 76px; background: var(--green); border: 4px solid var(--green-dark); border-radius: 70% 70% 20% 20%; }
.mascot-face { display: flex; justify-content: center; gap: 18px; margin: 24px 0 20px; }
.eye { width: 72px; height: 85px; position: relative; background: #fff; border-radius: 48%; }
.eye::after { content: ""; position: absolute; width: 24px; height: 34px; left: 27px; top: 29px; background: #222; border-radius: 50%; }
.mascot-beak { width: 76px; height: 43px; margin: -8px auto 22px; background: var(--yellow); border: 4px solid var(--yellow-dark); border-radius: 50% 50% 48% 48%; }
.mascot-message { margin: 0; font-size: 18px; line-height: 1.35; }
.float-card {
  position: absolute; z-index: 5; max-width: 190px; padding: 15px 18px; background: #fff;
  border: 2px solid var(--line); border-radius: 16px; box-shadow: 0 5px 0 var(--line);
  font-family: system-ui, sans-serif; font-size: 13px; font-weight: 800; line-height: 1.35;
}
.float-card strong { display: block; margin-bottom: 4px; color: var(--green-dark); font-family: inherit; }
.float-one { left: -10px; top: 55px; transform: rotate(-4deg); }
.float-two { right: -4px; bottom: 42px; transform: rotate(4deg); }

.section { padding: 90px 0; }
.section-muted { background: var(--background); border-block: 2px solid var(--line); }
.section-head { max-width: 700px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { margin-bottom: 15px; font-size: clamp(34px, 4vw, 50px); letter-spacing: -2.3px; line-height: 1.05; }
.section-head p { color: var(--muted); font-family: system-ui, sans-serif; font-size: 17px; font-weight: 600; line-height: 1.6; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { padding: 28px; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 18px; font-size: 27px; }
.card:nth-child(1) .card-icon { background: var(--green-soft); }
.card:nth-child(2) .card-icon { background: #e1f5fe; }
.card:nth-child(3) .card-icon { background: #fff6cf; }
.card h3 { margin-bottom: 10px; font-size: 21px; }
.card p { margin-bottom: 0; color: var(--muted); font-family: system-ui, sans-serif; font-weight: 600; line-height: 1.6; }

.steps { max-width: 850px; margin-inline: auto; }
.step { display: grid; grid-template-columns: 80px 1fr; gap: 24px; align-items: start; position: relative; padding-bottom: 35px; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 38px; top: 75px; bottom: 5px; border-left: 4px dashed #d7d7d7; }
.step-number { width: 76px; height: 68px; display: grid; place-items: center; color: #fff; background: var(--green); border-radius: 20px; box-shadow: 0 6px 0 var(--green-dark); font-size: 27px; font-weight: 900; }
.step-body { padding: 13px 0; }
.step-body h3 { margin-bottom: 8px; font-size: 22px; }
.step-body p { margin: 0; color: var(--muted); font-family: system-ui, sans-serif; font-weight: 600; line-height: 1.55; }

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 28px; background: #fff; border: 2px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.price-card.featured { border: 3px solid var(--green); box-shadow: 0 6px 0 var(--green-dark); transform: translateY(-10px); }
.price-badge { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); padding: 8px 16px; color: #fff; background: var(--green); border-radius: 99px; font-size: 12px; font-weight: 900; text-transform: uppercase; white-space: nowrap; }
.price-name { color: var(--muted); font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: .7px; }
.price { margin: 12px 0 3px; font-size: 42px; letter-spacing: -2px; }
.price-note { min-height: 40px; color: var(--muted); font-family: system-ui, sans-serif; font-size: 13px; font-weight: 600; }
.feature-list { flex: 1; display: grid; gap: 12px; padding: 20px 0 26px; margin: 0; list-style: none; font-family: system-ui, sans-serif; font-weight: 650; }
.feature-list li { display: flex; gap: 10px; }
.feature-list li::before { content: "✓"; color: var(--green); font-family: inherit; font-weight: 1000; }

.cta { padding: 78px 0; color: #fff; background: var(--green); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta h2 { max-width: 650px; margin: 0; font-size: clamp(34px, 5vw, 55px); letter-spacing: -2.5px; line-height: 1.05; }
.cta .button-secondary { border: 0; color: var(--green-dark); min-width: 230px; }

.site-footer { padding: 38px 0; border-top: 2px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-family: system-ui, sans-serif; font-size: 13px; font-weight: 650; }
.footer-links { display: flex; gap: 22px; }

/* Analyzer */
.app-body { min-height: 100vh; background: var(--background); }
.app-shell { width: min(980px, calc(100% - 32px)); margin: 28px auto 70px; }
.app-heading { margin-bottom: 18px; text-align: center; }
.app-heading h1 { margin-bottom: 8px; font-size: clamp(32px, 4.4vw, 46px); letter-spacing: -2px; }
.app-heading p { color: var(--muted); font-family: system-ui, sans-serif; font-weight: 600; }
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 auto 22px; max-width: 410px; }
.progress span { height: 8px; background: #ddd; border-radius: 99px; transition: background .25s; }
.progress span.active { background: var(--green); }
.app-panel { padding: clamp(22px, 4vw, 34px); background: #fff; border: 2px solid var(--line); border-radius: 24px; box-shadow: 0 6px 0 var(--line); }
.upload-zone { padding: 28px 22px; text-align: center; border: 3px dashed #cfcfcf; border-radius: 20px; background: #fcfcfc; transition: .2s; cursor: pointer; }
.upload-zone:hover, .upload-zone.dragging { border-color: var(--green); background: #f5fff0; }
.upload-icon { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto 13px; background: var(--green-soft); border-radius: 20px; font-size: 30px; }
.upload-zone h2 { margin-bottom: 5px; font-size: 22px; letter-spacing: -.7px; }
.upload-zone p { margin-bottom: 16px; color: var(--muted); font-family: system-ui, sans-serif; font-weight: 600; }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: #aaa; font-family: system-ui, sans-serif; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.divider::before, .divider::after { content: ""; height: 2px; flex: 1; background: var(--line); }
.contract-input { width: 100%; min-height: 165px; resize: vertical; padding: 18px; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 16px; outline: none; font-family: system-ui, sans-serif; font-size: 15px; line-height: 1.65; transition: border .15s, box-shadow .15s; }
.contract-input:focus { border-color: var(--blue); box-shadow: 0 3px 0 var(--blue-dark); }
.field-meta { display: flex; justify-content: space-between; margin: 10px 2px 22px; color: #999; font-family: system-ui, sans-serif; font-size: 12px; font-weight: 650; }
.privacy-note { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0 0; color: var(--muted); font-family: system-ui, sans-serif; font-size: 12px; line-height: 1.45; }

.loading { display: none; padding: 50px 20px; text-align: center; }
.loading.active { display: block; }
.loading-mascot { width: 105px; height: 105px; display: grid; place-items: center; margin: 0 auto 28px; color: #fff; background: var(--green); border: 4px solid var(--green-dark); border-radius: 35% 35% 45% 45%; box-shadow: 0 7px 0 var(--green-dark); font-size: 48px; animation: bounce 1s ease-in-out infinite; }
@keyframes bounce { 50% { transform: translateY(-12px) rotate(3deg); } }
.loading h2 { font-size: 28px; }
.loading p { color: var(--muted); font-family: system-ui, sans-serif; font-weight: 600; }
.loading-dots span { display: inline-block; width: 10px; height: 10px; margin: 0 4px; background: var(--green); border-radius: 50%; animation: dots 1.2s infinite; }
.loading-dots span:nth-child(2) { animation-delay: .15s; }
.loading-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 50% { transform: translateY(-8px); opacity: .5; } }

.results { display: none; }
.results.active { display: block; }
.result-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.risk-badge { display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px; border-radius: 14px; font-weight: 900; }
.risk-low { color: #377e02; background: var(--green-soft); border: 2px solid #9bd66e; }
.risk-medium { color: #7b6400; background: #fff6cf; border: 2px solid var(--yellow); }
.risk-high { color: #a51e1e; background: #ffe3e3; border: 2px solid #ff8d8d; }
.demo-badge { padding: 8px 12px; color: var(--blue-dark); background: #e1f5fe; border-radius: 99px; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.summary { padding: 23px; margin-bottom: 22px; background: #f7f7f7; border: 2px solid var(--line); border-radius: 17px; }
.summary h2 { margin-bottom: 9px; font-size: 18px; }
.summary p { margin: 0; color: #606060; font-family: system-ui, sans-serif; font-weight: 600; line-height: 1.65; }
.result-title { margin: 32px 0 15px; font-size: 22px; }
.analysis-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.analysis-meta div { padding: 13px 15px; background: #f7f7f7; border: 2px solid var(--line); border-radius: 13px; }
.analysis-meta span { display: block; margin-bottom: 5px; color: #999; font-family: system-ui, sans-serif; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .6px; }
.analysis-meta strong { font-size: 13px; }
.clause-list { display: grid; gap: 14px; }
.clause { overflow: hidden; border: 2px solid var(--line); border-radius: 16px; background: #fff; }
.clause-button { width: 100%; display: flex; align-items: center; gap: 13px; padding: 17px; color: var(--ink); background: transparent; border: 0; text-align: left; cursor: pointer; }
.clause-dot { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: var(--yellow-dark); border-radius: 11px; font-size: 13px; font-weight: 900; }
.clause-button strong { flex: 1; }
.clause-chevron { color: #aaa; font-size: 18px; transition: transform .2s; }
.clause.open .clause-chevron { transform: rotate(180deg); }
.clause-content { display: none; padding: 0 18px 18px 64px; color: #626262; font-family: system-ui, sans-serif; line-height: 1.6; }
.clause.open .clause-content { display: block; }
.original { padding: 12px 14px; margin: 13px 0; background: #f7f7f7; border-left: 4px solid var(--yellow); border-radius: 8px; font-size: 13px; font-style: italic; }
.question { margin: 12px 0 0; color: var(--blue-dark); font-weight: 750; }
.simple-example { padding: 11px 13px; margin: 13px 0 0; color: #665300; background: #fff7d7; border-radius: 10px; font-size: 13px; font-weight: 650; }
.limitations-box { padding: 17px 19px; margin-top: 24px; color: #666; background: #f7f7f7; border: 2px solid var(--line); border-radius: 15px; font-family: system-ui, sans-serif; }
.limitations-box strong { display: block; margin-bottom: 6px; color: var(--ink); }
.limitations-box p { margin: 0; font-size: 13px; line-height: 1.55; }
.ask-section { margin-top: 35px; padding-top: 31px; border-top: 3px dashed var(--line); }
.ask-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 17px; }
.ask-head .eyebrow { margin-bottom: 7px; font-size: 11px; }
.ask-head h2 { margin-bottom: 6px; font-size: 25px; }
.ask-head p { margin: 0; color: var(--muted); font-family: system-ui, sans-serif; font-size: 14px; font-weight: 600; }
.contract-display { max-height: 430px; overflow: auto; padding: 24px; white-space: pre-wrap; color: #4d4d4d; background: #fffef8; border: 2px solid #e6dfc9; border-radius: 16px; outline: none; font-family: Georgia, serif; font-size: 15px; line-height: 1.9; user-select: text; }
.contract-display:focus { border-color: var(--yellow); box-shadow: 0 3px 0 var(--yellow-dark); }
.contract-display.unavailable { color: #999; font-style: italic; }
.selection-preview { padding: 12px 15px; margin-bottom: 12px; color: #725b00; background: #fff6c7; border: 2px solid var(--yellow); border-radius: 12px; font-family: system-ui, sans-serif; font-size: 13px; font-weight: 700; }
.user-highlight { padding: 2px 1px; background: #fff176; border-bottom: 3px solid #f2b800; border-radius: 3px; }
.highlight-list { display: grid; gap: 12px; margin-top: 16px; }
.highlight-card { padding: 18px; background: #f4fbff; border: 2px solid #b5e4fa; border-radius: 15px; font-family: system-ui, sans-serif; }
.highlight-card blockquote { margin: 0 0 10px; color: #555; font-size: 13px; font-style: italic; }
.highlight-card p { margin: 0; line-height: 1.6; }
.result-actions { display: flex; gap: 12px; margin-top: 28px; }
.error-box { display: none; padding: 14px 16px; margin-bottom: 18px; color: #a51e1e; background: #ffe8e8; border: 2px solid #ffb5b5; border-radius: 14px; font-family: system-ui, sans-serif; font-weight: 700; }
.error-box.active { display: block; }

/* Access */
.auth-shell { min-height: calc(100vh - 76px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { display: grid; align-content: center; justify-items: center; padding: 60px; color: #fff; background: var(--green); text-align: center; }
.mini-mascot { width: 150px; height: 165px; display: grid; place-items: center; margin-bottom: 30px; color: var(--green); background: #fff; border: 4px solid var(--green-dark); border-radius: 45% 45% 35% 35%; box-shadow: 0 9px 0 var(--green-dark); font-size: 70px; }
.auth-aside h1 { margin-bottom: 16px; font-size: clamp(38px, 5vw, 62px); letter-spacing: -3px; }
.auth-aside p { max-width: 460px; margin: 0; font-family: system-ui, sans-serif; font-size: 18px; font-weight: 650; line-height: 1.6; }
.auth-main { display: grid; place-items: center; padding: 50px 30px; background: var(--background); }
.auth-card { width: min(430px, 100%); padding: 34px; background: #fff; border: 2px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.auth-card h2 { margin-bottom: 9px; font-size: 30px; letter-spacing: -1.3px; }
.auth-card > p { color: var(--muted); font-family: system-ui, sans-serif; font-weight: 600; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px; margin: 24px 0; background: #eee; border-radius: 14px; }
.auth-tab { padding: 11px; border: 0; border-radius: 10px; color: #777; background: transparent; font-weight: 900; cursor: pointer; }
.auth-tab.active { color: var(--green-dark); background: #fff; box-shadow: 0 2px 0 #ddd; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .4px; }
.field input { width: 100%; min-height: 51px; padding: 0 15px; border: 2px solid var(--line); border-radius: 13px; outline: none; font-family: system-ui, sans-serif; font-weight: 600; }
.field input:focus { border-color: var(--blue); box-shadow: 0 3px 0 var(--blue-dark); }
.auth-notice { padding: 12px; margin-bottom: 15px; color: #7b6400; background: #fff6cf; border-radius: 12px; font-family: system-ui, sans-serif; font-size: 12px; font-weight: 700; line-height: 1.45; }

/* Public analysis preview */
.demo-section { background: linear-gradient(180deg, #f8fff4 0%, #fff 100%); border-top: 2px solid #e1f3d8; }
.demo-window { overflow: hidden; background: #fff; border: 2px solid var(--line); border-radius: 24px; box-shadow: 0 8px 0 var(--line), 0 25px 60px rgba(50,90,40,.08); }
.demo-toolbar { min-height: 54px; display: flex; align-items: center; gap: 8px; padding: 0 20px; background: #f4f4f4; border-bottom: 2px solid var(--line); }
.demo-toolbar span { width: 12px; height: 12px; border-radius: 50%; background: #ff6b6b; }
.demo-toolbar span:nth-child(2) { background: var(--yellow); }
.demo-toolbar span:nth-child(3) { background: var(--green); }
.demo-toolbar strong { margin-left: 10px; color: #777; font-family: system-ui, sans-serif; font-size: 13px; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; }
.demo-document { padding: 38px; background: #fffdf6; border-right: 2px solid var(--line); font-family: Georgia, serif; font-size: 15px; line-height: 1.85; }
.demo-document p { margin-bottom: 21px; }
.demo-page-label { margin-bottom: 25px; color: #999; font-family: system-ui, sans-serif; font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .8px; }
.demo-highlight { padding: 8px 4px; background: linear-gradient(transparent 8%, #fff176 8%, #fff176 92%, transparent 92%); }
.demo-analysis { padding: 35px; }
.demo-analysis-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 24px; }
.demo-analysis h3 { margin-bottom: 10px; font-size: 25px; letter-spacing: -.8px; }
.demo-analysis > p { color: #666; font-family: system-ui, sans-serif; font-weight: 600; line-height: 1.6; }
.demo-finding { display: flex; gap: 13px; padding: 15px; margin: 19px 0; background: #fff6cf; border: 2px solid var(--yellow); border-radius: 14px; }
.demo-finding > span { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: var(--yellow-dark); border-radius: 10px; font-weight: 900; }
.demo-finding p { margin: 5px 0 0; color: #665d3c; font-family: system-ui, sans-serif; font-size: 13px; line-height: 1.5; }
.demo-example { padding: 14px 16px; color: #3f6f89; background: #eaf8ff; border-left: 5px solid var(--blue); border-radius: 10px; font-family: system-ui, sans-serif; font-size: 13px; line-height: 1.55; }
.demo-example strong { display: block; margin-bottom: 3px; color: var(--blue-dark); }
.demo-analysis .demo-disclaimer { margin: 18px 0 0; color: #999; font-size: 11px; }
.demo-cta { margin-top: 35px; text-align: center; }

.mobile-menu { display: none; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy, .hero h1 { margin-inline: auto; }
  .hero-actions, .trust-line { justify-content: center; }
  .lex-stage { margin-top: 20px; }
  .cards, .pricing { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .demo-document { border-right: 0; border-bottom: 2px solid var(--line); }
  .price-card.featured { transform: none; margin-top: 12px; }
  .nav-links { display: none; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { padding: 60px 30px; }
  .cta-inner { flex-direction: column; text-align: center; }
  .app-shell { width: min(760px, calc(100% - 28px)); }
  .demo-analysis-top { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1120px); }
  .nav { min-height: 66px; }
  .brand { font-size: 21px; }
  .brand-mark { width: 36px; height: 36px; }
  .nav-actions .button-secondary { display: none; }
  .nav-actions .button { min-height: 42px; padding-inline: 15px; font-size: 11px; }
  .hero { padding: 46px 0 54px; }
  h1 { font-size: clamp(38px, 12vw, 52px); letter-spacing: -2.5px; }
  .hero-copy { font-size: 17px; }
  .hero-actions .button { width: 100%; }
  .trust-line { align-items: center; flex-direction: column; gap: 10px; }
  .lex-stage { min-height: 315px; transform: none; margin: 24px -12px 0; }
  .lex-orbit { width: 286px; height: 286px; }
  .lex-orbit::before, .lex-orbit::after { width: 42px; height: 42px; font-size: 20px; border-radius: 14px; }
  .mascot { width: 218px; min-height: 258px; padding: 24px 18px 20px; border-radius: 46% 46% 34% 34%; }
  .mascot-ears { margin: -41px 14px 2px; }
  .mascot-ear { width: 49px; height: 60px; }
  .eye { width: 55px; height: 64px; }
  .eye::after { width: 18px; height: 26px; left: 22px; top: 23px; }
  .mascot-beak { width: 60px; height: 35px; margin-bottom: 16px; }
  .mascot-message { font-size: 15px; }
  .float-card { position: relative; inset: auto; max-width: 100%; margin: 14px auto 0; transform: none; }
  .section { padding: 58px 0; }
  .section-head { margin-bottom: 30px; }
  .section-head h2 { font-size: clamp(30px, 10vw, 40px); letter-spacing: -1.6px; }
  .cards, .pricing { gap: 16px; }
  .card, .price-card { padding: 22px; }
  .step { grid-template-columns: 58px 1fr; gap: 16px; }
  .step-number { width: 56px; height: 52px; border-radius: 16px; font-size: 22px; }
  .step:not(:last-child)::before { left: 27px; top: 58px; }
  .demo-document, .demo-analysis { padding: 24px 20px; }
  .demo-analysis h3 { font-size: 22px; }
  .cta { padding: 56px 0; }
  .cta .button-secondary { width: 100%; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-links { flex-wrap: wrap; }
  .app-shell { width: min(100% - 18px, 620px); margin-top: 16px; margin-bottom: 42px; }
  .app-heading { margin-bottom: 14px; }
  .app-heading h1 { font-size: 34px; }
  .app-heading p { font-size: 14px; line-height: 1.45; }
  .progress { max-width: 260px; margin-bottom: 16px; }
  .app-panel { padding: 16px; border-radius: 20px; }
  .upload-zone { padding: 22px 15px; }
  .upload-icon { width: 54px; height: 54px; margin-bottom: 11px; font-size: 27px; border-radius: 18px; }
  .upload-zone h2 { font-size: 21px; }
  .upload-zone p { margin-bottom: 13px; font-size: 14px; }
  .divider { margin: 18px 0; font-size: 11px; }
  .contract-input { min-height: 135px; padding: 15px; font-size: 14px; }
  .field-meta { align-items: flex-start; flex-direction: column; gap: 5px; }
  .result-top, .result-actions { align-items: stretch; flex-direction: column; }
  .analysis-meta { grid-template-columns: 1fr; }
  .ask-head { align-items: stretch; flex-direction: column; }
  .summary { padding: 18px; }
  .result-title { margin-top: 24px; font-size: 20px; }
  .clause-button { gap: 10px; padding: 15px 13px; }
  .clause-button strong { font-size: 14px; line-height: 1.35; }
  .clause-dot { width: 30px; height: 30px; border-radius: 10px; }
  .clause-content { padding-left: 18px; }
  .original, .simple-example { font-size: 12px; }
  .ask-section { margin-top: 28px; padding-top: 24px; }
  .contract-display { max-height: 310px; padding: 16px; font-size: 14px; line-height: 1.75; }
  .button-large { min-height: 52px; padding-inline: 18px; font-size: 13px; }
  .auth-aside { display: none; }
  .auth-main { min-height: calc(100vh - 66px); padding: 28px 15px; }
  .auth-card { padding: 25px; }
}

@media (max-width: 380px) {
  .brand { font-size: 18px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 11px; }
  .nav-actions .button { padding-inline: 12px; }
  .app-panel { padding: 14px; }
  .clause-button { align-items: flex-start; }
  .clause-chevron { margin-top: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  @page { margin: 14mm; }
  html, body { background: #fff !important; }
  body { color: #222; }
  .site-header, .progress, .result-actions, .ask-head .button, .selection-preview, .highlight-list:empty, .error-box:not(.active) {
    display: none !important;
  }
  .app-shell {
    width: 100%;
    margin: 0;
  }
  .app-heading {
    margin-bottom: 18px;
    text-align: left;
  }
  .app-heading h1 {
    font-size: 30px;
    letter-spacing: -.8px;
  }
  .app-panel, .summary, .analysis-meta div, .clause, .limitations-box, .contract-display, .highlight-card {
    box-shadow: none !important;
  }
  .app-panel {
    padding: 0;
    border: 0;
  }
  .result-top {
    margin-bottom: 14px;
  }
  .summary, .analysis-meta, .clause, .limitations-box, .ask-section {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .clause-content {
    display: block !important;
  }
  .clause-chevron {
    display: none;
  }
  .contract-display {
    max-height: none !important;
    overflow: visible !important;
    font-size: 12px;
    line-height: 1.55;
    white-space: pre-wrap;
  }
}
