:root {
  --ink: #101629;
  --muted: #5f687b;
  --line: #dce2ed;
  --paper: #ffffff;
  --canvas: #f4f7fc;
  --navy: #0d2254;
  --navy-2: #132d69;
  --blue: #1749e6;
  --blue-dark: #1039bd;
  --blue-soft: #eaf0ff;
  --yellow: #ffdd55;
  --green: #148458;
  --red: #c53b45;
  --shadow: 0 24px 80px rgba(22, 38, 77, .13);
  --radius: 22px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 2%, rgba(23, 73, 230, .11), transparent 28rem),
    linear-gradient(180deg, #f9fbff 0, var(--canvas) 45%, #eef2f8 100%);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { color: inherit; }
svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }
::selection { color: #071a4c; background: #cbd8ff; }

.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 200; top: 10px; left: 10px; padding: 10px 14px; color: white; background: var(--navy); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgba(211, 219, 232, .9); background: rgba(255, 255, 255, .88); backdrop-filter: blur(18px); }
.header-inner { display: flex; width: min(1160px, calc(100% - 40px)); height: 68px; margin: auto; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.08rem; font-weight: 900; letter-spacing: -.04em; text-decoration: none; }
.brand > span:last-child > span { color: var(--blue); }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; color: white; background: var(--blue); border-radius: 12px; box-shadow: 0 10px 24px rgba(23, 73, 230, .25); }
.brand-mark { position: relative; overflow: hidden; }
.brand-mark::after { content: ""; position: absolute; inset: -80% auto -80% -55%; width: 35%; background: rgba(255,255,255,.38); transform: rotate(20deg); animation: brand-sheen 6s ease-in-out infinite; }
.brand-mark svg { width: 21px; height: 21px; }
.brand-mark img { width: 22px; height: 22px; }
.desktop-nav { display: flex; align-items: center; gap: 27px; color: #4d576c; font-size: .875rem; font-weight: 700; }
.desktop-nav a, .mobile-nav a, .site-footer a { text-decoration: none; }
.desktop-nav a:hover, .site-footer nav a:hover { color: var(--blue); }
.header-cta { display: inline-flex; min-height: 39px; padding: 0 14px; align-items: center; gap: 7px; color: white !important; background: var(--blue); border-radius: 10px; box-shadow: 0 8px 20px rgba(23, 73, 230, .2); transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.header-cta:hover { background: var(--blue-dark); box-shadow: 0 10px 24px rgba(23, 73, 230, .27); transform: translateY(-1px); }
.header-cta svg { width: 16px; height: 16px; }
.icon-button { display: grid; width: 42px; height: 42px; padding: 0; place-items: center; border: 0; background: transparent; border-radius: 12px; cursor: pointer; }
.icon-button:hover { background: #eef2f8; }
.mobile-menu-button { display: none; }
.mobile-nav { display: grid; padding: 10px 20px 16px; gap: 3px; border-top: 1px solid var(--line); background: white; }
.mobile-nav a { padding: 11px 12px; border-radius: 9px; font-size: .9rem; font-weight: 700; }
.mobile-nav a:hover { color: var(--blue); background: var(--blue-soft); }
.mobile-nav .mobile-primary-link { margin-top: 4px; color: white; background: var(--blue); text-align: center; }
.mobile-nav .mobile-primary-link:hover { color: white; background: var(--blue-dark); }

.intro { display: grid; padding-top: 46px; padding-bottom: 24px; grid-template-columns: minmax(0, 1fr) 300px; align-items: end; gap: 44px; }
.eyebrow, .section-kicker { margin: 0; color: var(--blue); font-size: .76rem; font-weight: 900; letter-spacing: .105em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 7px 11px; border: 1px solid #cbd6f6; background: rgba(255, 255, 255, .82); border-radius: 999px; box-shadow: 0 6px 20px rgba(20, 45, 95, .04); }
.eyebrow span { color: var(--green); font-size: .75rem; }
h1 { max-width: 830px; margin: 18px 0 0; font-size: clamp(2.75rem, 5.6vw, 4.9rem); font-weight: 950; line-height: .96; letter-spacing: -.064em; }
h1 em { color: var(--blue); font-style: normal; }
.intro-text { max-width: 720px; margin: 20px 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.68; }
.trust-list { display: flex; padding: 0; margin: 17px 0 0; flex-wrap: wrap; gap: 8px 18px; list-style: none; }
.trust-list li { display: inline-flex; align-items: center; gap: 6px; color: #445066; font-size: .8rem; font-weight: 750; }
.trust-list svg { width: 16px; height: 16px; color: var(--green); stroke-width: 2.5; }
.privacy-note { display: flex; padding: 20px; gap: 14px; border: 2px solid var(--ink); background: var(--yellow); border-radius: 18px; box-shadow: 6px 6px 0 var(--ink); transform: rotate(1.2deg); }
.privacy-note { animation: note-float 5.5s ease-in-out 1s infinite; }
.privacy-note svg { flex: 0 0 auto; margin-top: 2px; }
.privacy-note strong, .privacy-note span { display: block; }
.privacy-note strong { font-weight: 900; }
.privacy-note span { margin-top: 3px; font-size: .81rem; font-weight: 650; line-height: 1.45; }

.workspace { scroll-margin-top: 90px; }
.tabs { display: flex; width: fit-content; max-width: 100%; margin-bottom: 14px; padding: 5px; gap: 3px; overflow-x: auto; border: 1px solid var(--line); background: white; border-radius: 14px; box-shadow: 0 8px 28px rgba(29, 47, 83, .06); }
.tab { display: inline-flex; min-width: max-content; height: 42px; padding: 0 15px; align-items: center; gap: 8px; color: #5d6677; border: 0; background: transparent; border-radius: 10px; font-size: .87rem; font-weight: 800; cursor: pointer; }
.tab svg { width: 17px; height: 17px; }
.tab:hover { color: var(--blue); background: #f5f7fb; }
.tab.is-active { color: white; background: var(--navy); box-shadow: 0 7px 16px rgba(13, 34, 84, .18); }
.count-badge { display: inline-grid; min-width: 21px; height: 21px; padding-inline: 5px; place-items: center; color: var(--ink); background: #e8ecf3; border-radius: 999px; font-size: .75rem; }
.tab.is-active .count-badge { color: var(--navy); background: white; }
.tab:focus-visible, .category:focus-visible, .button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible, .icon-button:focus-visible { outline: 3px solid rgba(23, 73, 230, .28); outline-offset: 2px; }

.analyzer-card { display: grid; overflow: hidden; grid-template-columns: 228px minmax(0, 1fr); border: 1px solid #d7deea; background: white; border-radius: var(--radius); box-shadow: var(--shadow); }
.category-rail { padding: 22px 16px; color: white; background: linear-gradient(165deg, var(--navy), #07193e); }
.category-rail > p { margin: 0 8px 15px; color: #afc3ee; font-size: .75rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.category-list { display: grid; gap: 6px; }
.category { display: grid; width: 100%; padding: 12px; grid-template-columns: 28px 1fr; align-items: center; gap: 9px; color: #dce7ff; border: 1px solid transparent; background: transparent; border-radius: 12px; text-align: left; cursor: pointer; transition: .18s ease; }
.category svg { width: 19px; height: 19px; }
.category span { font-size: .86rem; font-weight: 850; }
.category small { display: block; margin-top: 1px; color: #9db2df; font-size: .75rem; font-weight: 600; }
.category:hover { background: rgba(255, 255, 255, .08); }
.category.is-active { color: var(--navy); border-color: white; background: white; box-shadow: 0 10px 25px rgba(0, 0, 0, .15); }
.category.is-active small { color: #6a7489; }
.analyzer-main { min-width: 0; padding: 32px 34px 29px; }
.paper-grid { background-color: white; background-image: linear-gradient(rgba(23, 73, 230, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 73, 230, .045) 1px, transparent 1px); background-size: 28px 28px; }
.field-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.field-heading label { display: block; font-size: 1.22rem; font-weight: 900; letter-spacing: -.025em; }
.field-heading p { max-width: 640px; margin: 3px 0 0; color: var(--muted); font-size: .82rem; }
.field-heading > span, .reader-actions > span { color: #737d91; font-size: .75rem; font-weight: 750; }
textarea, input { width: 100%; color: var(--ink); border: 1px solid #cdd5e2; background: white; border-radius: 12px; outline: none; transition: border-color .18s ease, box-shadow .18s ease; }
textarea { padding: 15px 16px; line-height: 1.55; resize: vertical; }
input { height: 44px; padding: 0 13px; }
textarea::placeholder, input::placeholder { color: #687285; }
textarea:focus, input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(23, 73, 230, .1); }
#problem-input { min-height: 176px; margin-top: 17px; border-width: 2px; font-size: 1rem; }
.analyzer-actions { display: flex; margin-top: 17px; align-items: center; gap: 18px; }
.button { display: inline-flex; min-height: 44px; padding: 0 16px; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 11px; font-size: .88rem; font-weight: 850; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button svg { width: 18px; height: 18px; }
.button-primary { color: white; background: var(--blue); box-shadow: 0 10px 22px rgba(23, 73, 230, .21); }
.button-primary:hover { background: var(--blue-dark); box-shadow: 0 12px 28px rgba(23, 73, 230, .26); }
.button-light { color: #263047; border-color: #d5dce7; background: white; }
.button-light:hover { border-color: #aab8db; background: #f8faff; }
.button-soft { color: #153898; background: var(--blue-soft); }
.local-label { display: inline-flex; align-items: center; gap: 6px; color: #4d586c; font-size: .8rem; font-weight: 700; }
.local-label svg { width: 16px; height: 16px; color: var(--green); }
.ai-live-status { display: inline-flex; min-width: 250px; padding: 9px 12px; align-items: center; gap: 10px; border: 1px solid #cbd8d1; background: #f7fffb; border-radius: 12px; }
.ai-live-status > i { width: 10px; height: 10px; flex: 0 0 auto; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 5px rgba(20,132,88,.11); }
.ai-live-status span, .ai-live-status strong, .ai-live-status small { display: block; }
.ai-live-status strong { color: #184a37; font-size: .78rem; font-weight: 900; }
.ai-live-status small { margin-top: 1px; color: #557365; font-size: .67rem; font-weight: 700; }
.ai-live-status.is-checking > i { background: #d18a12; box-shadow: 0 0 0 5px rgba(209,138,18,.12); animation: status-pulse 1.2s ease-in-out infinite; }
.ai-live-status.is-offline { border-color: #dfd5bc; background: #fffbf1; }
.ai-live-status.is-offline > i { background: #c47a08; box-shadow: 0 0 0 5px rgba(196,122,8,.11); }
.ai-live-status.is-offline strong { color: #72500f; }
.ai-live-status.is-offline small { color: #806e49; }
.ai-consent-note { display: flex; margin: 11px 0 0; align-items: flex-start; gap: 6px; color: #6b7486; font-size: .71rem; line-height: 1.5; }
.ai-consent-note svg { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 2px; color: var(--green); }
.ai-consent-note a { color: var(--blue); font-weight: 800; text-underline-offset: 2px; }
.form-error { margin: 12px 0 0; color: var(--red); font-size: .83rem; font-weight: 750; }
.examples { grid-column: 1 / -1; padding: 13px 20px 15px 244px; border-top: 1px solid var(--line); background: #f7f9fc; }
.examples > p { margin: 0 0 8px; color: #6c7587; font-size: .75rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.examples > div { display: flex; flex-wrap: wrap; gap: 7px; }
.examples button { padding: 8px 11px; color: #4f596d; border: 1px solid #dce2eb; background: white; border-radius: 999px; font-size: .78rem; font-weight: 700; cursor: pointer; }
.examples button:hover { color: var(--blue); border-color: #bdcaf2; }

.analysis-result { scroll-margin-top: 90px; }
.result-shell { padding-top: 52px; }
.analysis-loading { display: grid; margin-top: 42px; padding: 42px; min-height: 280px; place-items: center; align-content: center; border: 1px solid #cfd8eb; background: linear-gradient(145deg, #fff, #f1f5ff); border-radius: 22px; box-shadow: 0 22px 55px rgba(20,42,90,.09); text-align: center; }
.analysis-loading-orbit { position: relative; display: grid; width: 72px; height: 72px; place-items: center; color: white; background: var(--blue); border-radius: 23px; font-size: .82rem; font-weight: 950; box-shadow: 0 13px 30px rgba(23,73,230,.25); }
.analysis-loading-orbit::before { position: absolute; inset: -11px; content: ""; border: 2px solid rgba(23,73,230,.18); border-top-color: var(--blue); border-radius: 50%; animation: orbit-spin 1.1s linear infinite; }
.analysis-loading strong { margin-top: 25px; font-size: 1.15rem; }
.analysis-loading p { max-width: 530px; margin: 7px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.6; }
.result-header { display: flex; margin-bottom: 18px; align-items: end; justify-content: space-between; gap: 22px; }
.result-header h2, .section-title h2, .sources h2, .reader-input h2, .cases-header h2 { margin: 5px 0 0; font-size: clamp(1.85rem, 4vw, 2.7rem); line-height: 1.08; letter-spacing: -.047em; }
.match-card { width: 205px; flex: 0 0 auto; padding: 12px 14px; border: 1px solid var(--line); background: white; border-radius: 12px; box-shadow: 0 8px 22px rgba(22, 40, 81, .05); }
.match-card > span { display: block; color: #6f788b; font-size: .75rem; font-weight: 750; }
.match-label { display: flex; margin-top: 5px; align-items: center; gap: 8px; font-size: .88rem; font-weight: 900; }
.match-label i { width: 8px; height: 8px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 4px rgba(20, 132, 88, .11); }
.match-card.is-review .match-label i { background: #cf8510; box-shadow: 0 0 0 4px rgba(207, 133, 16, .13); }
.match-card small { display: block; margin-top: 3px; color: #7c8597; font-size: .75rem; }
.match-card.priority-high .match-label i { background: #d94a55; box-shadow: 0 0 0 4px rgba(217,74,85,.12); }
.match-card.priority-low .match-label i { background: #4a79d8; box-shadow: 0 0 0 4px rgba(74,121,216,.12); }
.ai-generated-label { display: inline-flex; margin-bottom: 7px; padding: 6px 9px; align-items: center; gap: 6px; color: #173b9d; border: 1px solid #c6d3f7; background: #edf2ff; border-radius: 999px; font-size: .68rem; font-weight: 900; letter-spacing: .035em; text-transform: uppercase; }
.ai-generated-label svg { width: 14px; height: 14px; }
.result-grid { display: grid; grid-template-columns: minmax(0, 1fr) 315px; gap: 20px; }
.result-main, .result-side { display: grid; align-content: start; gap: 18px; }
.card { border: 1px solid var(--line); background: white; border-radius: 18px; }
.summary-card { display: grid; padding: 24px; grid-template-columns: 48px 1fr; gap: 15px; }
.summary-card > span { display: grid; width: 46px; height: 46px; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 13px; }
.summary-card h3, .plan-card h3 { margin: 0; font-size: 1.05rem; font-weight: 900; }
.summary-card p { margin: 4px 0 0; color: var(--muted); line-height: 1.7; }
.plan-card { padding: 25px; }
.plan-list { padding: 0; margin: 24px 0 0; list-style: none; }
.plan-list li { display: grid; padding-bottom: 19px; grid-template-columns: 36px 1fr; gap: 13px; }
.plan-list li:last-child { padding-bottom: 0; }
.step-number { display: grid; width: 34px; height: 34px; place-items: center; color: white; background: var(--navy); border-radius: 50%; font-size: .77rem; font-weight: 900; }
.step-copy { padding-bottom: 18px; border-bottom: 1px solid #e5e9f0; }
.plan-list li:last-child .step-copy { padding-bottom: 0; border: 0; }
.step-copy strong { display: block; font-size: .93rem; }
.step-copy p { margin: 4px 0 0; color: var(--muted); font-size: .85rem; line-height: 1.6; }
.evidence-card { padding: 21px; border: 2px solid var(--ink); background: var(--yellow); border-radius: 16px; box-shadow: 5px 5px 0 var(--ink); }
.evidence-card h3 { display: flex; margin: 0; align-items: center; gap: 8px; font-size: .95rem; font-weight: 900; }
.evidence-card ul { padding: 0; margin: 14px 0 0; list-style: none; }
.evidence-card li { display: flex; margin-top: 8px; gap: 8px; font-size: .81rem; font-weight: 700; }
.evidence-card li svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 2px; }
.escalation-card { padding: 20px; }
.escalation-card > span { color: #737c8d; font-size: .75rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.escalation-card strong { display: block; margin-top: 5px; font-size: .91rem; }
.source-link { display: inline-flex; margin-top: 13px; align-items: center; gap: 7px; color: var(--blue); font-size: .78rem; font-weight: 850; text-decoration: none; }
.source-link:hover { text-decoration: underline; }
.source-link svg { width: 15px; height: 15px; }
.result-actions { display: grid; gap: 8px; }
.result-alert { display: flex; margin-bottom: 17px; padding: 14px 16px; align-items: flex-start; gap: 10px; color: #65470d; border: 1px solid #efd79d; background: #fff9e9; border-radius: 13px; font-size: .79rem; line-height: 1.55; }
.result-alert svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; color: #b96e00; }
.case-insights { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.insight-card { padding: 19px; }
.insight-card h3 { display: flex; margin: 0; align-items: center; gap: 8px; font-size: .88rem; }
.insight-card h3 svg { width: 17px; height: 17px; color: var(--blue); }
.insight-card ul { padding: 0; margin: 12px 0 0; list-style: none; }
.insight-card li { position: relative; padding-left: 17px; color: var(--muted); font-size: .8rem; line-height: 1.55; }
.insight-card li + li { margin-top: 7px; }
.insight-card li::before { position: absolute; top: .62em; left: 0; width: 6px; height: 6px; content: ""; background: #8ba4df; border-radius: 50%; }
.ai-question-card { padding: 18px 20px; color: #26385f; border: 1px solid #cbd7f1; background: #f1f5ff; border-radius: 15px; }
.ai-question-card span { display: block; color: #4c68a5; font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.ai-question-card strong { display: block; margin-top: 5px; font-size: .88rem; line-height: 1.5; }
.ai-warning-card { padding: 17px 19px; color: #675018; border: 1px solid #ebd89f; background: #fff9e9; border-radius: 14px; font-size: .77rem; line-height: 1.55; }
.ai-warning-card strong { display: block; margin-bottom: 4px; color: #775707; }

.ai-advisor { position: relative; margin-top: 20px; overflow: hidden; color: white; border: 1px solid rgba(132,161,255,.28); background: radial-gradient(circle at 92% 10%, rgba(51,100,255,.27), transparent 25rem), linear-gradient(145deg, #101f46, #07132d 66%); border-radius: 20px; box-shadow: 0 24px 70px rgba(9,25,61,.2); }
.ai-advisor::before { content: ""; position: absolute; top: -90px; right: -65px; width: 230px; height: 230px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; box-shadow: 0 0 0 33px rgba(255,255,255,.025), 0 0 0 68px rgba(255,255,255,.018); }
.ai-advisor-head { position: relative; z-index: 1; display: flex; padding: 19px 21px; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid rgba(255,255,255,.11); }
.ai-advisor-title { display: flex; min-width: 0; align-items: center; gap: 11px; }
.ai-avatar { position: relative; display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; color: #061638; background: linear-gradient(145deg, #fff, #a9c0ff); border-radius: 13px; box-shadow: 0 8px 24px rgba(69,112,255,.28); font-size: .78rem; font-weight: 950; }
.ai-avatar::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border: 2px solid #101f46; background: #62e7a9; border-radius: 50%; }
.ai-advisor-title strong, .ai-advisor-title small { display: block; }
.ai-advisor-title strong { font-size: .91rem; }
.ai-advisor-title small { margin-top: 2px; color: #aebdde; font-size: .7rem; }
.ai-model-badge { padding: 6px 9px; color: #c8d5f2; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.06); border-radius: 999px; font-size: .67rem; font-weight: 850; white-space: nowrap; }
.ai-start { position: relative; z-index: 1; display: grid; padding: 30px 22px 27px; justify-items: start; }
.ai-start h3 { margin: 0; font-size: 1.25rem; letter-spacing: -.025em; }
.ai-start p { max-width: 780px; margin: 8px 0 0; color: #b9c6df; font-size: .82rem; line-height: 1.62; }
.ai-start .button { margin-top: 17px; color: #0a1c44; background: var(--yellow); box-shadow: 0 10px 26px rgba(255,221,85,.14); }
.ai-start .button:hover { background: #ffe67c; }
.ai-dialogue { position: relative; z-index: 1; display: grid; max-height: 540px; padding: 22px; gap: 13px; overflow-y: auto; scroll-behavior: smooth; }
.ai-message { display: grid; max-width: min(780px, 92%); grid-template-columns: 32px minmax(0, 1fr); align-items: start; gap: 10px; animation: message-in .28s ease both; }
.ai-message.user { justify-self: end; grid-template-columns: minmax(0, 1fr); }
.ai-message-mark { display: grid; width: 30px; height: 30px; place-items: center; color: #0c214f; background: #bfd0ff; border-radius: 10px; font-size: .62rem; font-weight: 950; }
.ai-message-content { padding: 13px 15px; color: #eaf0ff; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.075); border-radius: 5px 15px 15px 15px; font-size: .83rem; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-message.user .ai-message-content { color: #10204a; background: #e7edff; border: 0; border-radius: 15px 15px 5px 15px; }
.ai-message-content strong { color: white; }
.ai-message.user .ai-message-content strong { color: #10204a; }
.ai-response-meta { display: flex; max-width: min(780px, 92%); margin: -5px 0 4px 42px; flex-wrap: wrap; gap: 7px 13px; color: #8fa2c8; font-size: .66rem; line-height: 1.45; }
.ai-response-meta a { color: #bfd0ff; font-weight: 800; text-underline-offset: 2px; }
.ai-typing .ai-message-content { display: flex; width: 70px; min-height: 45px; align-items: center; gap: 5px; }
.ai-typing i { width: 6px; height: 6px; background: #b9caff; border-radius: 50%; animation: typing-dot 1s ease-in-out infinite; }
.ai-typing i:nth-child(2) { animation-delay: .14s; }
.ai-typing i:nth-child(3) { animation-delay: .28s; }
.ai-chat-note { padding: 0 22px 12px; color: #98a9cc; font-size: .68rem; line-height: 1.45; }
.ai-composer { position: relative; z-index: 1; display: grid; padding: 14px; grid-template-columns: 1fr auto; gap: 9px; border-top: 1px solid rgba(255,255,255,.11); background: rgba(2,10,27,.35); }
.ai-composer input { height: 46px; color: white; border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.085); }
.ai-composer input::placeholder { color: #94a4c5; }
.ai-composer input:focus { border-color: #90aaff; box-shadow: 0 0 0 4px rgba(112,146,255,.13); }
.ai-composer .button { min-width: 112px; }
.ai-error { margin: 0 22px 18px; padding: 11px 13px; color: #ffdbdf; border: 1px solid rgba(255,139,150,.28); background: rgba(197,59,69,.13); border-radius: 10px; font-size: .76rem; line-height: 1.55; }

.reader-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.reader-input { padding: 28px; }
.reader-input > p:not(.section-kicker) { margin: 10px 0 0; color: var(--muted); font-size: .87rem; line-height: 1.65; }
.upload-button { display: inline-flex; margin-top: 18px; padding: 8px 11px; align-items: center; gap: 7px; color: var(--blue); border: 1px solid #cbd5f5; background: var(--blue-soft); border-radius: 9px; font-size: .77rem; font-weight: 800; cursor: pointer; }
.upload-button svg { width: 16px; height: 16px; }
#document-input { min-height: 255px; margin-top: 12px; }
.reader-actions { display: flex; margin-top: 13px; align-items: center; justify-content: space-between; gap: 12px; }
.reader-privacy { display: flex; margin: 12px 0 0 !important; align-items: flex-start; gap: 7px; color: #6d7688 !important; font-size: .7rem !important; line-height: 1.5 !important; }
.reader-privacy svg { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 2px; color: var(--green); }
.reader-privacy a { color: var(--blue); font-weight: 800; }
.reader-output { min-height: 540px; padding: 28px; color: white; background: linear-gradient(160deg, #111c36, #08142f); border-radius: 18px; box-shadow: var(--shadow); }
.empty-state { display: grid; min-height: 100%; padding: 35px 20px; place-items: center; align-content: center; text-align: center; }
.empty-state svg { width: 40px; height: 40px; margin-bottom: 13px; color: #87a7ff; }
.empty-state strong { font-weight: 900; }
.empty-state span { margin-top: 4px; color: #98a7c7; font-size: .82rem; }
.reader-result h3 { margin: 7px 0 0; font-size: 1.7rem; line-height: 1.12; letter-spacing: -.035em; }
.reader-block { margin-top: 24px; }
.reader-block > strong { color: #bac8e6; font-size: .77rem; letter-spacing: .04em; text-transform: uppercase; }
.reader-block ul { padding: 0; margin: 10px 0 0; list-style: none; }
.reader-block li { display: flex; margin-top: 9px; gap: 9px; color: #edf3ff; font-size: .85rem; line-height: 1.55; }
.reader-block li svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 3px; color: #82a4ff; }
.extract-grid { display: grid; margin-top: 20px; grid-template-columns: 1fr 1fr; gap: 10px; }
.extract-box { padding: 13px; background: rgba(255, 255, 255, .08); border-radius: 11px; }
.extract-box span { display: block; color: #b7c4df; font-size: .75rem; font-weight: 750; }
.extract-box strong { display: block; margin-top: 4px; font-size: .82rem; line-height: 1.45; overflow-wrap: anywhere; }
.reader-warning { margin: 20px 0 0; padding: 12px; color: #ffe9a8; border: 1px solid rgba(255, 221, 85, .25); background: rgba(255, 221, 85, .08); border-radius: 10px; font-size: .76rem; line-height: 1.55; }
.reader-ai-badge { display: inline-flex; padding: 5px 8px; align-items: center; gap: 5px; color: #dce7ff; border: 1px solid rgba(171,195,255,.28); background: rgba(125,159,245,.12); border-radius: 999px; font-size: .64rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.reader-ai-badge svg { width: 13px; height: 13px; }
.reader-summary { margin: 16px 0 0; padding: 18px; color: #dbe5f8; border: 1px solid rgba(171,195,255,.17); background: rgba(123,154,237,.08); border-radius: 14px; font-size: .86rem; line-height: 1.7; }
.reader-summary > span { display: block; color: #9eb7ee; font-size: .66rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.reader-summary h3 { margin-top: 7px; color: white; font-size: 1.18rem; letter-spacing: -.02em; }
.reader-summary p { margin: 11px 0 0; color: #c7d4ec; }
.reader-output .plan-list { margin-top: 13px; }
.reader-output .plan-list li { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: start; gap: 12px; }
.reader-output .step-number { color: #0b1d43; background: #bcd0ff; }
.reader-output .step-copy { border-color: rgba(255,255,255,.12); }
.reader-output .step-copy strong { color: #f4f7ff; }
.reader-output .step-copy p { color: #bdcae4; }
.reader-output .ai-question-card { color: #eaf0ff; border-color: rgba(157,184,255,.23); background: rgba(92,127,222,.13); }
.reader-output .ai-question-card span { color: #9fb7ee; }
.reader-source { display: inline-flex; margin-top: 17px; align-items: center; gap: 6px; color: #bcd0ff; font-size: .75rem; font-weight: 850; text-underline-offset: 3px; }
.reader-source svg { width: 14px; height: 14px; }
.reader-model { display: block; margin-top: 10px; color: #8295bc; font-size: .66rem; }
.reader-output .analysis-loading { margin-top: 0; min-height: 480px; color: white; border-color: rgba(166,188,242,.16); background: rgba(255,255,255,.035); box-shadow: none; }
.reader-output .analysis-loading p { color: #adbbd8; }

.cases-card { padding: 28px; }
.cases-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cases-header h2 { font-size: 2.1rem; }
.cases-header p:not(.section-kicker) { margin: 6px 0 0; color: var(--muted); font-size: .83rem; }
.cases-tools { display: flex; gap: 8px; }
#cases-list { margin-top: 24px; }
.cases-empty { padding: 54px 20px; border: 1px dashed #c9d1df; background: #fbfcfe; border-radius: 16px; text-align: center; }
.cases-empty svg { width: 38px; height: 38px; color: #8e99ae; }
.cases-empty strong, .cases-empty span { display: block; }
.cases-empty strong { margin-top: 10px; font-weight: 900; }
.cases-empty span { margin-top: 3px; color: var(--muted); font-size: .82rem; }
.case-row { display: grid; padding: 15px 16px; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; border: 1px solid #e0e5ed; border-radius: 13px; transition: .18s ease; }
.case-row + .case-row { margin-top: 9px; }
.case-row:hover { border-color: #bdcaf0; box-shadow: 0 10px 25px rgba(32, 49, 83, .07); transform: translateY(-1px); }
.case-open { min-width: 0; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.case-open strong, .case-open span, .case-open small { display: block; }
.case-open strong { font-size: .9rem; }
.case-open span { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: .79rem; white-space: nowrap; text-overflow: ellipsis; }
.case-open small { margin-top: 7px; color: var(--blue); font-size: .75rem; font-weight: 800; }
.case-delete { align-self: center; color: #7b8495; }
.case-delete:hover { color: var(--red); background: #fff1f2; }

.how { padding-top: 92px; padding-bottom: 82px; scroll-margin-top: 90px; }
.section-title { max-width: 640px; }
.steps-grid { display: grid; margin-top: 27px; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps-grid article { position: relative; min-height: 235px; padding: 25px; overflow: hidden; border: 1px solid var(--line); background: white; border-radius: 18px; transition: .2s ease; }
.steps-grid article:hover { border-color: #b9c7ec; box-shadow: 0 18px 36px rgba(30, 47, 82, .09); transform: translateY(-3px); }
.steps-grid article > span { position: absolute; top: 8px; right: 16px; color: #e5eaff; font-size: 4rem; font-weight: 950; line-height: 1; letter-spacing: -.08em; }
.steps-grid article > svg { width: 34px; height: 34px; color: var(--blue); }
.steps-grid h3 { margin: 63px 0 0; font-size: 1.2rem; font-weight: 900; }
.steps-grid p { margin: 7px 0 0; color: var(--muted); font-size: .85rem; line-height: 1.65; }

.ai-feature { position: relative; display: grid; margin-bottom: 82px; padding: 46px 52px; overflow: hidden; grid-template-columns: 270px minmax(0, 1fr); align-items: center; gap: 60px; color: white; background: linear-gradient(135deg, #0f2457, #07152f); border-radius: 26px; box-shadow: 0 27px 80px rgba(8,27,70,.2); }
.ai-feature::after { content: ""; position: absolute; right: -100px; bottom: -150px; width: 390px; height: 390px; background: radial-gradient(circle, rgba(45,94,245,.3), transparent 67%); pointer-events: none; }
.ai-feature-orbit { position: relative; display: grid; width: 220px; height: 220px; place-items: center; }
.ai-feature-orbit::before, .ai-feature-orbit::after { content: ""; position: absolute; border: 1px solid rgba(166,189,255,.3); border-radius: 50%; }
.ai-feature-orbit::before { inset: 18px; animation: orbit-spin 16s linear infinite; }
.ai-feature-orbit::after { inset: 48px; border-style: dashed; animation: orbit-spin 11s linear reverse infinite; }
.ai-feature-orbit strong { display: grid; width: 82px; height: 82px; place-items: center; color: #0d2254; background: linear-gradient(145deg, white, #bfd0ff); border-radius: 27px; box-shadow: 0 20px 45px rgba(56,103,245,.35); font-size: 1.35rem; letter-spacing: -.05em; }
.ai-feature-orbit span { position: absolute; z-index: 2; width: 13px; height: 13px; background: var(--yellow); border: 3px solid #142c62; border-radius: 50%; box-shadow: 0 0 20px rgba(255,221,85,.65); }
.ai-feature-orbit span:nth-child(1) { top: 22px; left: 103px; }
.ai-feature-orbit span:nth-child(2) { right: 20px; bottom: 63px; background: #67e5ab; }
.ai-feature-orbit span:nth-child(3) { bottom: 39px; left: 42px; background: #8babff; }
.ai-feature-copy { position: relative; z-index: 1; }
.ai-feature h2 { margin: 7px 0 0; font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1.04; letter-spacing: -.052em; }
.ai-feature-copy > p:not(.section-kicker) { max-width: 700px; margin: 17px 0 0; color: #c0cce3; font-size: .93rem; line-height: 1.7; }
.ai-feature-points { display: flex; margin-top: 22px; flex-wrap: wrap; gap: 9px; }
.ai-feature-points span { display: inline-flex; padding: 8px 10px; align-items: center; gap: 6px; color: #dce6fb; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.055); border-radius: 9px; font-size: .72rem; font-weight: 800; }
.ai-feature-points svg { width: 15px; height: 15px; color: #67e5ab; stroke-width: 2.5; }

.guides-showcase { padding-bottom: 82px; }
.guides-showcase-head { display: flex; margin-bottom: 25px; align-items: end; justify-content: space-between; gap: 28px; }
.guides-showcase-head h2 { max-width: 650px; margin: 5px 0 0; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.07; letter-spacing: -.048em; }
.text-link { display: inline-flex; min-width: max-content; padding-bottom: 4px; align-items: center; gap: 7px; color: var(--blue); border-bottom: 1px solid #aebff2; font-size: .84rem; font-weight: 850; text-decoration: none; }
.text-link:hover { border-color: var(--blue); }
.text-link svg { width: 16px; height: 16px; transition: transform .18s ease; }
.text-link:hover svg { transform: translateX(3px); }
.guide-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.guide-card { display: flex; min-height: 238px; padding: 23px; flex-direction: column; color: var(--ink); border: 1px solid var(--line); background: rgba(255, 255, 255, .92); border-radius: 18px; box-shadow: 0 8px 24px rgba(25, 42, 78, .045); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.guide-card:hover { border-color: #b5c4ee; box-shadow: 0 19px 42px rgba(25, 42, 78, .1); transform: translateY(-4px); }
.guide-category { width: fit-content; padding: 5px 8px; color: #1749e6; background: #eaf0ff; border-radius: 7px; font-size: .68rem; font-weight: 900; letter-spacing: .075em; text-transform: uppercase; }
.category-energy { color: #815e00; background: #fff3bf; }
.category-shop { color: #08734b; background: #ddf7eb; }
.category-sub { color: #803990; background: #f5e8f8; }
.category-travel { color: #a44916; background: #ffeadc; }
.guide-card h3 { margin: 22px 0 0; font-size: 1.14rem; line-height: 1.18; letter-spacing: -.025em; }
.guide-card p { margin: 9px 0 20px; color: var(--muted); font-size: .82rem; line-height: 1.65; }
.guide-card small { display: flex; margin-top: auto; align-items: center; justify-content: space-between; gap: 12px; color: #536078; font-size: .74rem; font-weight: 800; }
.guide-card small svg { width: 16px; height: 16px; color: var(--blue); }

.editorial-method { display: grid; margin-bottom: 22px; padding: 29px 31px; grid-template-columns: 170px minmax(0, 1fr) auto; align-items: center; gap: 28px; color: white; background: linear-gradient(135deg, #11275d, #07152f); border-radius: var(--radius); box-shadow: 0 18px 50px rgba(10, 28, 69, .16); }
.method-badge { display: grid; justify-items: start; gap: 10px; color: #b9caff; font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.method-badge svg { width: 38px; height: 38px; color: var(--yellow); }
.editorial-method h2 { margin: 0; font-size: 1.25rem; letter-spacing: -.025em; }
.editorial-method p { max-width: 730px; margin: 6px 0 0; color: #bdc9e1; font-size: .82rem; line-height: 1.62; }
.editorial-method .button-light { color: white; border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); }
.editorial-method .button-light:hover { border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .13); }

.faq { display: grid; margin-bottom: 22px; padding: 34px 35px; grid-template-columns: .72fr 1.28fr; gap: 52px; border: 1px solid var(--line); background: #f9fbff; border-radius: var(--radius); }
.faq-heading h2 { margin: 5px 0 0; font-size: clamp(1.8rem, 3.4vw, 2.45rem); line-height: 1.08; letter-spacing: -.045em; }
.faq-heading > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: .87rem; line-height: 1.65; }
.faq-list { overflow: hidden; border: 1px solid #dce3ee; background: white; border-radius: 14px; }
.faq-list details + details { border-top: 1px solid #e2e7ef; }
.faq-list summary { display: flex; min-height: 58px; padding: 15px 17px; align-items: center; justify-content: space-between; gap: 15px; font-size: .88rem; font-weight: 850; list-style: none; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; color: var(--blue); background: var(--blue-soft); border-radius: 8px; font-size: 1.1rem; transition: transform .18s ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { margin: 0; padding: 0 52px 17px 17px; color: var(--muted); font-size: .82rem; line-height: 1.65; }

.sources { display: grid; padding: 35px; grid-template-columns: .8fr 1.2fr; gap: 52px; border: 1px solid var(--line); background: white; border-radius: var(--radius); scroll-margin-top: 90px; }
.sources-copy > p:last-child { margin: 13px 0 0; color: var(--muted); font-size: .87rem; line-height: 1.65; }
.source-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.source-list a { display: flex; min-width: 0; padding: 15px; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #dfe4ec; border-radius: 12px; text-decoration: none; transition: .18s ease; }
.source-list a:hover { color: var(--blue); border-color: #b8c6ee; box-shadow: 0 9px 22px rgba(25, 46, 91, .07); transform: translateY(-1px); }
.source-list strong, .source-list small { display: block; }
.source-list strong { font-size: .86rem; }
.source-list small { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: .75rem; white-space: nowrap; text-overflow: ellipsis; }
.source-list svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--blue); }

.disclaimer { display: grid; margin-top: 22px; margin-bottom: 70px; padding: 32px 35px; grid-template-columns: 58px 1fr; gap: 22px; color: white; background: linear-gradient(135deg, #111d3a, #07132e); border-radius: var(--radius); }
.disclaimer > svg { width: 52px; height: 52px; color: #8babff; }
.disclaimer h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.025em; }
.disclaimer p { max-width: 890px; margin: 7px 0 0; color: #b8c5df; font-size: .84rem; line-height: 1.65; }

.site-footer { border-top: 1px solid var(--line); background: white; }
.footer-grid { display: grid; padding-top: 34px; padding-bottom: 38px; grid-template-columns: 1fr auto; gap: 35px; }
.footer-brand .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
.footer-grid p { max-width: 620px; margin: 12px 0 0; color: var(--muted); font-size: .78rem; }
.footer-grid .operator-line { margin-top: 4px; font-size: .75rem; }
.footer-grid nav { display: grid; min-width: 270px; grid-template-columns: repeat(2, max-content); align-items: start; gap: 10px 24px; color: #596274; font-size: .78rem; font-weight: 750; }

.modal { position: fixed; z-index: 100; inset: 0; display: grid; overflow-y: auto; padding: 20px; place-items: start center; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(3, 11, 30, .66); backdrop-filter: blur(7px); }
.modal-panel { position: relative; width: min(1080px, 100%); margin-block: 10px; overflow: hidden; background: white; border-radius: 22px; box-shadow: 0 35px 100px rgba(0, 0, 0, .35); }
.modal-header { display: flex; min-height: 76px; padding: 15px 22px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 3px 0 0; font-size: 1.35rem; letter-spacing: -.025em; }
.letter-layout { display: grid; grid-template-columns: 350px 1fr; }
.letter-form { display: grid; padding: 24px; align-content: start; gap: 14px; border-right: 1px solid var(--line); background: #f6f8fc; }
.letter-form label { color: #3f495d; font-size: .77rem; font-weight: 800; }
.letter-form label span { color: #7e8796; font-weight: 600; }
.letter-form input, .letter-form textarea { margin-top: 5px; font-size: .86rem; font-weight: 500; }
.letter-form textarea { min-height: 90px; }
.form-tip { display: flex; margin: 2px 0 0; gap: 8px; color: #687285; font-size: .75rem; line-height: 1.5; }
.form-tip svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 2px; }
.letter-preview-wrap { min-width: 0; padding: 26px; }
.letter-preview { min-height: 570px; padding: 39px; overflow-wrap: anywhere; border: 1px solid #e0e4eb; background: white; border-radius: 12px; box-shadow: 0 7px 25px rgba(33, 47, 77, .07); font-family: Georgia, "Times New Roman", serif; font-size: .89rem; line-height: 1.72; white-space: pre-wrap; }
.letter-actions { display: flex; margin-top: 15px; flex-wrap: wrap; gap: 7px; }
.toast-region { position: fixed; z-index: 150; right: 18px; bottom: 18px; display: grid; width: min(370px, calc(100% - 36px)); gap: 8px; }
.toast { display: flex; padding: 13px 15px; align-items: center; gap: 10px; color: white; background: #15213e; border: 1px solid rgba(255, 255, 255, .15); border-radius: 11px; box-shadow: 0 15px 35px rgba(6, 14, 36, .25); font-size: .8rem; font-weight: 750; animation: toast-in .25s ease; }
.toast::before { content: "✓"; display: grid; width: 21px; height: 21px; flex: 0 0 auto; place-items: center; color: #082316; background: #67e5ab; border-radius: 50%; font-size: .75rem; font-weight: 950; }
.toast.error::before { content: "!"; color: white; background: #d44952; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes brand-sheen { 0%, 72% { transform: translateX(-20px) rotate(20deg); } 88%, 100% { transform: translateX(95px) rotate(20deg); } }
@keyframes note-float { 0%, 100% { transform: translateY(0) rotate(1.2deg); } 50% { transform: translateY(-7px) rotate(.4deg); } }
@keyframes typing-dot { 0%, 70%, 100% { opacity: .35; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-4px); } }
@keyframes message-in { from { opacity: 0; transform: translateY(8px) scale(.985); } }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes status-pulse { 0%, 100% { opacity: .55; transform: scale(.86); } 50% { opacity: 1; transform: scale(1); } }
@keyframes hero-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes workspace-in { from { opacity: 0; transform: translateY(22px) scale(.992); } }
@media (prefers-reduced-motion: no-preference) {
  .intro-copy .eyebrow { animation: hero-in .5s .03s ease both; }
  .intro-copy h1 { animation: hero-in .62s .1s cubic-bezier(.2,.75,.2,1) both; }
  .intro-copy .intro-text { animation: hero-in .62s .18s cubic-bezier(.2,.75,.2,1) both; }
  .intro-copy .trust-list { animation: hero-in .62s .25s cubic-bezier(.2,.75,.2,1) both; }
  .workspace { animation: workspace-in .72s .2s cubic-bezier(.2,.75,.2,1) both; }
}
.motion-ready .reveal-item { opacity: 0; transform: translateY(24px); transition: opacity .62s ease, transform .62s cubic-bezier(.2,.75,.2,1); }
.motion-ready .reveal-item.is-visible { opacity: 1; transform: translateY(0); }
.motion-ready .guide-card.reveal-item:nth-child(2), .motion-ready .steps-grid article.reveal-item:nth-child(2) { transition-delay: .08s; }
.motion-ready .guide-card.reveal-item:nth-child(3), .motion-ready .steps-grid article.reveal-item:nth-child(3) { transition-delay: .16s; }

.legal-page { background: #f5f7fb; }
.legal-header { border-bottom: 1px solid var(--line); background: white; }
.legal-header .header-inner { height: 68px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-size: .82rem; font-weight: 800; text-decoration: none; }
.legal-main { width: min(860px, calc(100% - 40px)); margin: 55px auto 90px; padding: 46px; border: 1px solid var(--line); background: white; border-radius: 22px; box-shadow: 0 22px 70px rgba(18, 37, 78, .08); }
.legal-main h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1; }
.legal-main h2 { margin: 34px 0 8px; font-size: 1.2rem; }
.legal-main h3 { margin: 22px 0 5px; color: #29344b; font-size: .96rem; }
.legal-main p, .legal-main li { color: var(--muted); font-size: .91rem; line-height: 1.75; }
.legal-main ul, .legal-main ol { padding-left: 22px; }
.legal-main li + li { margin-top: 6px; }
.legal-main a { color: var(--blue); font-weight: 750; text-underline-offset: 2px; }
.legal-main code { padding: 2px 5px; color: #153898; background: #edf2ff; border-radius: 5px; font-size: .84em; overflow-wrap: anywhere; }
.legal-lead { max-width: 720px; margin: 15px 0 0; font-size: 1rem !important; }
.legal-index { display: flex; margin: 25px 0 7px; padding: 13px; flex-wrap: wrap; gap: 7px; border: 1px solid var(--line); background: #f7f9fd; border-radius: 12px; }
.legal-index a { padding: 6px 9px; color: #40506f; background: white; border: 1px solid #dce3ef; border-radius: 8px; font-size: .76rem; text-decoration: none; }
.legal-index a:hover { color: var(--blue); border-color: #b6c5ef; }
.legal-callout { margin: 20px 0; padding: 18px 19px; border: 1px solid #bfd0fb; background: #f1f5ff; border-radius: 13px; }
.legal-callout > strong { color: #173d9f; }
.legal-callout p { margin: 6px 0 0; }
.legal-note { margin-top: 32px !important; padding: 15px 17px; border-left: 4px solid #7694e9; background: #f5f7fc; border-radius: 0 10px 10px 0; font-size: .82rem !important; }
.legal-notice { padding: 14px 16px; color: #6f5510 !important; border: 1px solid #ead68a; background: #fff9df; border-radius: 10px; }

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .mobile-menu-button { display: grid; }
  .intro { grid-template-columns: 1fr; }
  .privacy-note { max-width: 440px; transform: none; }
  .analyzer-card { grid-template-columns: 1fr; }
  .category-rail { padding: 15px; }
  .category-rail > p { margin-bottom: 10px; }
  .category-list { grid-template-columns: repeat(3, 1fr); }
  .category { grid-template-columns: 22px 1fr; padding: 10px; }
  .category small { display: none; }
  .examples { padding-left: 20px; }
  .result-grid { grid-template-columns: 1fr; }
  .result-side { grid-template-columns: 1fr 1fr; }
  .result-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .reader-grid { grid-template-columns: 1fr; }
  .reader-output { min-height: 430px; }
  .sources { grid-template-columns: 1fr; gap: 28px; }
  .faq { grid-template-columns: 1fr; gap: 25px; }
  .guide-card-grid { grid-template-columns: 1fr 1fr; }
  .editorial-method { grid-template-columns: 120px 1fr; }
  .ai-feature { padding: 40px; grid-template-columns: 200px 1fr; gap: 35px; }
  .ai-feature-orbit { width: 190px; height: 190px; }
  .editorial-method .button { grid-column: 2; justify-self: start; }
  .letter-layout { grid-template-columns: 1fr; }
  .letter-form { grid-template-columns: 1fr 1fr; border-right: 0; border-bottom: 1px solid var(--line); }
  .letter-form label:nth-of-type(5), .form-tip { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .container, .header-inner { width: min(100% - 26px, 1160px); }
  .header-inner { height: 62px; }
  .brand-mark { width: 35px; height: 35px; }
  .intro { padding-top: 36px; gap: 25px; }
  h1 { font-size: clamp(2.45rem, 13vw, 4rem); }
  .intro-text { margin-top: 18px; font-size: .97rem; }
  .trust-list { gap: 7px 14px; }
  .privacy-note { padding: 16px; }
  .tabs { width: 100%; }
  .tab { padding-inline: 12px; }
  .analyzer-card { border-radius: 17px; }
  .category-list { grid-template-columns: 1fr 1fr; }
  .category { grid-template-columns: 20px 1fr; }
  .analyzer-main { padding: 24px 18px 22px; }
  .field-heading { display: block; }
  .field-heading > span { display: block; margin-top: 8px; }
  .analyzer-actions { align-items: stretch; flex-direction: column; }
  .ai-live-status { width: 100%; min-width: 0; }
  .ai-consent-note { margin-top: 13px; }
  .examples { padding: 12px 18px 15px; }
  .result-shell { padding-top: 40px; }
  .result-header { align-items: stretch; flex-direction: column; }
  .match-card { width: 100%; }
  .result-side { grid-template-columns: 1fr; }
  .result-actions { grid-column: auto; grid-template-columns: 1fr; }
  .ai-advisor-head { align-items: flex-start; }
  .ai-model-badge { display: none; }
  .ai-dialogue { padding: 17px 14px; }
  .ai-message { max-width: 100%; }
  .ai-response-meta { max-width: 100%; margin-left: 40px; }
  .ai-composer { grid-template-columns: 1fr; }
  .ai-composer .button { width: 100%; }
  .summary-card { padding: 19px; grid-template-columns: 42px 1fr; }
  .summary-card > span { width: 40px; height: 40px; }
  .plan-card { padding: 20px; }
  .case-insights { grid-template-columns: 1fr; }
  .reader-input, .reader-output, .cases-card { padding: 20px; }
  .reader-output { min-height: 390px; }
  .extract-grid { grid-template-columns: 1fr; }
  .cases-header { align-items: stretch; flex-direction: column; }
  .cases-tools { width: 100%; }
  .cases-tools .button { flex: 1; }
  .how { padding-top: 65px; padding-bottom: 60px; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid article { min-height: 200px; }
  .ai-feature { margin-bottom: 60px; padding: 31px 22px; grid-template-columns: 1fr; gap: 23px; }
  .ai-feature-orbit { width: 170px; height: 170px; justify-self: center; }
  .ai-feature-orbit::before { inset: 12px; }
  .ai-feature-orbit::after { inset: 39px; }
  .guides-showcase { padding-bottom: 60px; }
  .guides-showcase-head { align-items: flex-start; flex-direction: column; gap: 16px; }
  .guide-card-grid { grid-template-columns: 1fr; }
  .guide-card { min-height: 215px; }
  .editorial-method { padding: 24px 20px; grid-template-columns: 1fr; gap: 18px; }
  .editorial-method .button { grid-column: auto; }
  .sources { padding: 23px 19px; }
  .faq { padding: 23px 19px; }
  .source-list { grid-template-columns: 1fr; }
  .disclaimer { margin-bottom: 48px; padding: 24px 20px; grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid nav { min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal { padding: 0; }
  .modal-panel { min-height: 100vh; margin: 0; border-radius: 0; }
  .letter-form { grid-template-columns: 1fr; padding: 20px; }
  .letter-form label:nth-of-type(5), .form-tip { grid-column: auto; }
  .letter-preview-wrap { padding: 18px; }
  .letter-preview { min-height: 500px; padding: 24px 19px; font-size: .83rem; }
  .letter-actions .button { flex: 1 1 calc(50% - 7px); }
  .legal-main { width: min(100% - 26px, 860px); margin-top: 30px; padding: 28px 20px; }
}

@media print {
  body * { visibility: hidden !important; }
  #letter-modal, #letter-modal *, #letter-modal[hidden] { visibility: visible !important; }
  #letter-modal { position: static; display: block !important; padding: 0; }
  .modal-backdrop, .modal-header, .letter-form, .letter-actions { display: none !important; }
  .modal-panel, .letter-layout, .letter-preview-wrap { display: block; width: 100%; margin: 0; padding: 0; overflow: visible; border: 0; box-shadow: none; }
  .letter-preview { min-height: 0; padding: 0; border: 0; box-shadow: none; font-size: 12pt; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .motion-ready .reveal-item { opacity: 1; transform: none; }
}
