:root {
  color-scheme: light;
  --ink: #173531;
  --muted: #5d736d;
  --forest: #123c37;
  --forest-dark: #092925;
  --aqua: #72b5a3;
  --aqua-soft: #dcefe8;
  --paper: #f4f2e9;
  --white: #fffefa;
  --line: rgba(23, 53, 49, .16);
  --amber: #c97f2d;
  --red: #a74437;
  --shadow: 0 28px 80px rgba(20, 48, 44, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
[hidden] { display: none !important; }
::selection { color: var(--forest-dark); background: #bce5d8; }
:focus-visible { outline: 3px solid #d8a25e; outline-offset: 3px; }

.site-header { width: min(1440px, calc(100% - 80px)); height: 90px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark { width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font: 22px/1 Georgia, serif; }
.brand-copy { display: grid; gap: 3px; }
.brand-copy strong { font-size: 11px; letter-spacing: .19em; text-transform: uppercase; }
.brand-copy span { color: var(--muted); font: 14px/1 Georgia, serif; }
.header-actions { display: flex; align-items: center; gap: 20px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.back-home { color: var(--muted); }
.language { padding: 10px 13px; border: 1px solid var(--line); border-radius: 999px; }

.hero { width: min(1440px, calc(100% - 80px)); min-height: 680px; margin: 0 auto; padding: 80px 3vw 96px; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(330px, .55fr); gap: 7vw; align-items: center; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: 1vw; top: 50%; width: 500px; height: 500px; border: 1px solid rgba(64, 128, 112, .16); border-radius: 50%; transform: translateY(-50%); pointer-events: none; }
.eyebrow, .kicker { margin: 0 0 20px; color: #4f7f72; font-size: 10px; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
.hero h1 { max-width: 900px; margin: 0; font: 400 clamp(56px, 7vw, 108px)/.92 Georgia, "Times New Roman", serif; letter-spacing: -.055em; }
.hero h1 em { display: block; max-width: 720px; margin-top: 22px; color: #4e6e66; font: 550 clamp(21px, 2.5vw, 38px)/1.17 Inter, sans-serif; letter-spacing: -.035em; }
.hero-copy > p:last-of-type { max-width: 670px; margin: 30px 0 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 50px; padding: 0 21px; border: 0; border-radius: 2px; display: inline-flex; align-items: center; justify-content: center; gap: 24px; background: var(--forest); color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); background: var(--forest-dark); }
.button--quiet { border: 1px solid var(--line); background: transparent; color: var(--ink); }
.button--quiet:hover { background: var(--white); }
.button:disabled { opacity: .55; cursor: default; transform: none; }
.memory-card { position: relative; z-index: 1; padding: 28px; border: 1px solid var(--line); background: rgba(255, 254, 250, .83); backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.memory-heading { padding-bottom: 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.memory-heading i { width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 5px rgba(114,181,163,.17); }
.memory-heading small { margin-left: auto; color: #789087; }
.memory-card ol, .timeline { margin: 0; padding: 17px 0 7px; list-style: none; }
.memory-card li { min-height: 70px; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; position: relative; }
.memory-card li > span, .timeline li > span { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--white); font-size: 9px; }
.memory-card li strong { font: 18px/1.1 Georgia, serif; }
.memory-card li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 50px; width: 1px; height: 40px; background: var(--line); }
.privacy-line { margin: 6px 0 0; padding: 18px 0 0 46px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.5; }

.workspace { padding: 88px max(40px, calc((100% - 1360px) / 2)) 110px; border-top: 1px solid var(--line); background: var(--white); }
.section-heading { max-width: 930px; margin-bottom: 46px; }
.section-heading h2 { margin: 0; font: 430 clamp(38px, 4.7vw, 68px)/1.03 Georgia, serif; letter-spacing: -.045em; }
.section-heading > p:last-child { max-width: 720px; margin: 22px 0 0; color: var(--muted); line-height: 1.7; }
.diagnostic-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; align-items: start; }
.consult-form { padding: clamp(25px, 4vw, 52px); border: 1px solid var(--line); background: #fff; box-shadow: 0 18px 50px rgba(20,48,44,.06); }
.consult-form > label { display: block; margin-bottom: 22px; font: 420 clamp(25px, 3vw, 40px)/1.12 Georgia, serif; }
.consult-form textarea { width: 100%; min-height: 155px; padding: 20px; resize: vertical; border: 0; border-bottom: 1px solid var(--line); background: #f6f7f2; color: var(--ink); line-height: 1.6; }
.consult-form details { border-bottom: 1px solid var(--line); }
.consult-form summary { padding: 20px 0; display: flex; justify-content: space-between; cursor: pointer; list-style: none; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.consult-form summary::-webkit-details-marker { display: none; }
.aquarium-card { grid-column: 1 / -1; padding: 22px; border: 1px solid var(--line); background: #f6f7f2; display: grid; grid-template-columns: 210px 1fr; gap: 24px; }
.aquarium-card h3 { margin: 4px 0 0; font: 500 25px/1.1 Georgia, serif; }
.aquarium-card dl { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.aquarium-card dl div { min-width: 0; padding-left: 12px; border-left: 2px solid #dce4dc; }
.aquarium-card dt { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.aquarium-card dd { margin: 5px 0 0; overflow-wrap: anywhere; font-size: 13px; }
.aquarium-card .profile-problem { grid-column: span 2; }
.conversation-log { grid-column: 1 / -1; min-height: 220px; max-height: 620px; overflow-y: auto; padding: clamp(20px, 4vw, 42px); border: 1px solid var(--line); background: linear-gradient(180deg, #f8faf6, #fff); display: flex; flex-direction: column; gap: 18px; }
.message { width: min(78%, 720px); padding: 16px 18px; border-radius: 4px 18px 18px 18px; background: #edf2eb; box-shadow: 0 8px 24px rgba(20,48,44,.06); }
.message--user { margin-left: auto; border-radius: 18px 4px 18px 18px; background: var(--ink); color: #fff; }
.message-author { display: block; margin-bottom: 7px; color: #8a6035; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.message--user .message-author { color: #d9b98d; }
.message p { margin: 0; line-height: 1.55; white-space: pre-wrap; }
.technical-result { margin-top: 0; }
.technical-ledger { border: 1px solid var(--line); background: #fff; }
.technical-ledger > summary { padding: 18px 22px; cursor: pointer; color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.technical-ledger[open] > summary { border-bottom: 1px solid var(--line); }
.consult-form select { width: 100%; min-height: 42px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.diagnostic-layout > .technical-result { order: 4; }
.diagnostic-layout > .consult-form { order: 5; }
.diagnostic-layout > .session-boundary { order: 6; }
.profile-fields { padding-bottom: 23px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.profile-fields label { display: grid; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.profile-fields input { min-width: 0; min-height: 43px; padding: 9px 11px; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.field-wide { grid-column: 1 / -1; }
.form-footer { margin-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.form-footer p { max-width: 480px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.session-boundary { min-height: 320px; padding: 28px; display: flex; flex-direction: column; background: var(--forest); color: #fff; }
.session-boundary > span { color: var(--aqua); font-size: 10px; letter-spacing: .17em; }
.session-boundary h3 { margin: 55px 0 12px; font: 420 30px/1.05 Georgia, serif; }
.session-boundary p { margin: 0; color: #c7d8d3; font-size: 12px; line-height: 1.65; }
.session-boundary strong { margin-top: auto; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.16); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }

.result { grid-column: 1 / -1; margin-top: 28px; scroll-margin-top: 20px; }
.scope-notice { padding: 28px; border-left: 4px solid var(--amber); background: #fff4df; font: 430 21px/1.45 Georgia, serif; }
.result-shell { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.analysis { border: 1px solid var(--line); background: #fff; }
.analysis-header { padding: 34px; display: flex; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.analysis-header h3 { margin: 0; font: 430 clamp(30px, 3vw, 45px)/1.06 Georgia, serif; }
.status-stack { display: grid; justify-items: end; align-content: start; gap: 8px; }
.urgency { align-self: start; padding: 9px 11px; background: #e9f0ec; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.urgency--urgent { color: #855118; background: #fff0d9; }
.urgency--emergency { color: #8e3329; background: #f9e1dc; }
.case-status { padding: 7px 10px; border: 1px solid var(--line); color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.case-status--resolved { color: #246854; background: #e3f3eb; }
.case-status--escalated { color: #8e3329; border-color: rgba(167,68,55,.3); background: #f9e1dc; }
.analysis-section { padding: 30px 34px; border-bottom: 1px solid var(--line); }
.analysis-section:last-child { border-bottom: 0; }
.analysis-section h4, .side-card h4 { margin: 0 0 18px; font-size: 9px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.analysis-section > p { margin: 0; color: var(--muted); line-height: 1.65; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.plain-list { margin: 0; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.plain-list li + li { margin-top: 9px; }
.section-title-row { margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.section-title-row h4 { margin: 0; }
.text-button { padding: 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: #426e63; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.understood-panel { background: #f8faf6; }
.understood-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.understood-grid label { min-width: 0; padding: 12px; display: grid; gap: 7px; border: 1px solid var(--line); background: var(--white); }
.understood-grid label > span { color: #6b807a; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.understood-grid input { width: 100%; min-width: 0; padding: 5px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 12px; }
.understood-grid strong { overflow-wrap: anywhere; font-size: 12px; line-height: 1.45; }
.understood-empty, .inline-status { margin: 0; color: var(--muted); font-size: 11px; }
.inline-status:not(:empty) { margin-top: 12px; color: #246854; }
.family-strip { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.family-strip > strong { font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.family-strip > div { display: flex; flex-wrap: wrap; gap: 7px; }
.family-strip span { padding: 7px 9px; border: 1px solid rgba(79,127,114,.24); background: #edf5f1; color: #315f54; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.hypotheses { display: grid; gap: 10px; }
.hypotheses article { padding: 15px; border-left: 2px solid var(--aqua); background: #f7f8f4; }
.hypotheses article > div { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.hypotheses article span { color: #52786d; font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.hypotheses p, .basis-grid p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.hypotheses small { display: block; margin-top: 9px; color: #789087; font-size: 8px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.action-list { margin: 0; padding: 0; list-style: none; }
.action-list li { padding: 16px 0; display: grid; grid-template-columns: 38px 1fr; gap: 14px; border-bottom: 1px solid var(--line); }
.action-list li:last-child { border-bottom: 0; }
.action-list li > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--forest); color: #fff; font-size: 9px; }
.action-list p { margin: 4px 0 0; font-size: 13px; line-height: 1.55; }
.basis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.basis-column { padding: 20px; border: 1px solid var(--line); }
.basis-column--maci { background: #edf5f1; }
.basis-column--technical { background: #f5f1e9; }
.basis-column h4 { margin-bottom: 20px; }
.basis-column article + article { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); }
.basis-column strong { font-size: 11px; line-height: 1.45; }
.escalation { margin-top: 20px; padding: 18px; border-left: 4px solid var(--red); background: #fcedea; }
.escalation strong { display: block; margin-bottom: 6px; color: var(--red); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.escalation p { margin: 0; font-size: 12px; line-height: 1.55; }
.escalation .plain-list { margin-top: 12px; color: #70443d; }
.contradiction-panel { border-left: 4px solid var(--amber); background: #fff8e9; }
.result-side { display: grid; gap: 16px; }
.side-card { padding: 24px; border: 1px solid var(--line); background: #fff; }
.side-card--follow { background: #eaf3ef; }
.side-card--follow strong { display: block; margin-bottom: 10px; font: 430 25px/1 Georgia, serif; }
.side-card--follow p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.timeline { padding: 0; }
.timeline li { min-height: 102px; display: grid; grid-template-columns: 34px 1fr; gap: 12px; position: relative; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 34px; width: 1px; height: 69px; background: var(--line); }
.timeline strong { display: block; font: 420 17px/1.2 Georgia, serif; }
.timeline p { margin: 6px 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.timeline time { color: #80928d; font-size: 8px; letter-spacing: .1em; }
.followup-form { padding: 24px; display: grid; gap: 14px; border: 1px solid var(--line); background: var(--forest); color: #fff; }
.followup-form label { font: 420 22px/1.1 Georgia, serif; }
.followup-form textarea { width: 100%; min-height: 120px; padding: 13px; resize: vertical; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff; line-height: 1.5; }
.followup-form textarea::placeholder { color: #b8ccc6; }
.followup-form .button { background: var(--aqua-soft); color: var(--forest-dark); }
.case-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.case-actions .button { min-height: 44px; padding: 8px 10px; font-size: 9px; }

.demo { padding: 88px max(40px, calc((100% - 1360px) / 2)); background: var(--forest-dark); color: #fff; }
.demo-grid { display: grid; grid-template-columns: minmax(0, .65fr) minmax(420px, 1.35fr); gap: 8vw; align-items: start; }
.demo h2 { margin: 0; font: 420 clamp(38px, 4.5vw, 64px)/1.02 Georgia, serif; letter-spacing: -.04em; }
.demo-copy > p:last-of-type { max-width: 540px; color: #bdd0ca; line-height: 1.7; }
.fiction-label { display: inline-flex; margin: 18px 0 28px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.25); color: #efd3a8; font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.demo .button--quiet { border-color: rgba(255,255,255,.25); color: #fff; }
.demo-timeline { padding: 30px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04); }
.demo-timeline li > span { border-color: rgba(255,255,255,.25); background: transparent; color: #fff; }
.demo-timeline li:not(:last-child)::after { background: rgba(255,255,255,.18); }
.demo-timeline strong { color: #fff; }
.demo-timeline p { color: #bdd0ca; }

.coming { padding: 80px max(40px, calc((100% - 1360px) / 2)); display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.coming h2 { max-width: 760px; margin: 0; font: 430 clamp(38px, 4.7vw, 68px)/1 Georgia, serif; letter-spacing: -.04em; }
.coming p { max-width: 470px; margin: 0; color: var(--muted); line-height: 1.7; }
footer { min-height: 84px; padding: 24px max(40px, calc((100% - 1360px) / 2)); display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }

.mode-switch { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); background: #eef1eb; }
.new-diagnosis { grid-column: 1 / -1; justify-self: end; }
.mode-option { min-height: 102px; padding: 22px 26px; border: 0; background: transparent; color: var(--ink); display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: center; text-align: left; cursor: pointer; }
.mode-option + .mode-option { border-left: 1px solid var(--line); }
.mode-option--active { background: var(--white); box-shadow: inset 0 -4px 0 var(--forest); }
.mode-number { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: #52786d; font-size: 9px; }
.mode-option strong, .mode-option small { display: block; }
.mode-option strong { font: 430 24px/1.1 Georgia, serif; }
.mode-option small { margin-top: 7px; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.advanced-consent { grid-column: 1 / -1; padding: 32px clamp(24px, 4vw, 52px); border: 1px solid #8fb9ad; background: #eaf3ef; }
.advanced-status-row { display: flex; align-items: center; gap: 12px; }
.beta-mark { padding: 6px 8px; background: var(--forest); color: #fff; font-size: 8px; font-weight: 850; letter-spacing: .16em; }
.availability { color: #526d65; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.availability--available { color: #17644f; }
.availability--busy { color: #87571f; }
.availability--unavailable { color: #8e3329; }
.advanced-consent h3 { margin: 20px 0 10px; font: 430 clamp(28px, 3vw, 42px)/1.05 Georgia, serif; }
.advanced-consent > p { max-width: 920px; color: #4f6760; line-height: 1.65; }
.consent-check { max-width: 980px; margin-top: 16px; padding: 15px 17px; display: flex; align-items: flex-start; gap: 12px; border: 1px solid rgba(45, 91, 79, .22); background: rgba(255,255,255,.72); font-size: 12px; line-height: 1.5; cursor: pointer; }
.consent-check input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--forest); }
.consent-check--secondary { background: transparent; }
.beta-limits { margin-bottom: 0; font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.advanced-result { border: 0; }
.advanced-result-grid { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 20px; align-items: start; }
.advanced-trace { position: sticky; top: 20px; padding: 28px; border: 1px solid #8fb9ad; background: var(--forest-dark); color: #fff; box-shadow: var(--shadow); }
.advanced-trace .memory-heading { border-color: rgba(255,255,255,.18); }
.advanced-trace .memory-heading small { color: #a9c5bd; }
.advanced-progress { margin: 0; padding: 20px 0 8px; list-style: none; }
.advanced-progress li { min-height: 88px; display: grid; grid-template-columns: 36px 1fr; gap: 13px; align-items: start; position: relative; color: #8fa9a2; }
.advanced-progress li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 36px; width: 1px; height: 52px; background: rgba(255,255,255,.18); }
.advanced-progress li span { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; font-size: 9px; }
.advanced-progress li strong { padding-top: 7px; font: 420 17px/1.2 Georgia, serif; }
.advanced-progress li.is-active { color: #fff; }
.advanced-progress li.is-active span { border-color: var(--aqua-soft); background: var(--aqua-soft); color: var(--forest-dark); box-shadow: 0 0 0 6px rgba(184, 226, 214, .12); }
.advanced-progress li.is-complete { color: #b8d9cf; }
.advanced-progress li.is-complete span { background: rgba(184,226,214,.15); }
.advanced-trace .privacy-line { padding-left: 0; border-color: rgba(255,255,255,.18); color: #b8ccc6; }
.advanced-analysis { border: 1px solid var(--line); background: #fff; box-shadow: 0 18px 50px rgba(20,48,44,.06); }
.advanced-analysis > .analysis-header { border-top: 4px solid var(--forest); }
.source-ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; background: #f8faf6; }
.source-ledger > div { min-width: 0; padding: 20px; border: 1px solid var(--line); background: #fff; }
.source-ledger > div:last-child { grid-column: 1 / -1; }
.source-ledger article + article { margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); }
.source-ledger article { display: grid; gap: 6px; }
.source-ledger article strong, .source-ledger article a { font: 600 15px/1.3 Georgia, serif; }
.source-ledger article a { color: #245f50; text-decoration: underline; text-underline-offset: 3px; }
.source-ledger article small { color: #71857f; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.source-ledger article p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.advanced-follow-up form { display: grid; gap: 14px; }
.advanced-follow-up label { font: 430 24px/1.1 Georgia, serif; }
.advanced-follow-up textarea { min-height: 115px; padding: 15px; border: 1px solid var(--line); background: #f6f7f2; resize: vertical; }
.advanced-follow-up .button { justify-self: start; }
.feedback-panel { background: #f5f1e9; }
.feedback-options { display: flex; flex-wrap: wrap; gap: 8px; }
.feedback-options button { min-height: 40px; padding: 0 16px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.feedback-options button:disabled { opacity: .55; }
.feedback-panel > label { margin-top: 18px; display: grid; gap: 8px; max-width: 380px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.feedback-panel select { min-height: 42px; padding: 8px 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.advanced-fallback { padding: 20px 34px 34px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-inline: 0; }
  .hero::after { right: -260px; }
  .memory-card { max-width: 520px; }
  .diagnostic-layout, .result-shell, .demo-grid, .advanced-result-grid { grid-template-columns: 1fr; }
  .advanced-trace { position: static; }
  .session-boundary { min-height: 230px; }
  .result-side { grid-template-columns: 1fr 1fr; }
  .aquarium-card { grid-template-columns: 1fr; }
  .coming { display: grid; }
}

@media (max-width: 680px) {
  .site-header, .hero { width: min(100% - 32px, 1440px); }
  .site-header { height: 76px; }
  .header-actions a:first-child { display: none; }
  .back-home span { display: none; }
  .hero { min-height: auto; padding-block: 62px 70px; }
  .hero h1 { font-size: clamp(48px, 15vw, 70px); }
  .hero h1 em { font-size: 22px; }
  .hero-actions .button { width: 100%; }
  .memory-card { padding: 21px; }
  .workspace, .demo, .coming, footer { padding-left: 16px; padding-right: 16px; }
  .workspace { padding-top: 64px; }
  .consult-form { padding: 22px 16px; }
  .profile-fields, .two-columns, .basis-grid, .result-side, .mode-switch, .source-ledger { grid-template-columns: 1fr; }
  .aquarium-card dl { grid-template-columns: 1fr 1fr; }
  .aquarium-card .profile-problem { grid-column: 1 / -1; }
  .message { width: 92%; }
  .mode-option + .mode-option { border-left: 0; border-top: 1px solid var(--line); }
  .mode-option { min-height: 88px; padding: 18px; }
  .advanced-consent { padding: 24px 18px; }
  .advanced-result-grid { gap: 12px; }
  .advanced-trace { padding: 22px 18px; }
  .source-ledger > div:last-child { grid-column: auto; }
  .form-footer { display: grid; }
  .form-footer .button { width: 100%; }
  .analysis-header { padding: 24px 18px; display: grid; }
  .status-stack { justify-items: start; }
  .urgency { justify-self: start; }
  .analysis-section { padding: 24px 18px; }
  .understood-grid { grid-template-columns: 1fr; }
  .section-title-row { align-items: start; }
  .case-actions { grid-template-columns: 1fr; }
  .demo { padding-top: 64px; padding-bottom: 64px; }
  .demo-grid { gap: 38px; }
  .demo-timeline { padding: 22px 16px; }
  .coming { padding-top: 64px; padding-bottom: 64px; }
  footer { display: grid; gap: 8px; }
}

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