:root {
  --ink: #17211c;
  --muted: #66716a;
  --cream: #f5f1e8;
  --paper: #fffdf8;
  --forest: #183f31;
  --forest-light: #286149;
  --sage: #c8d9c8;
  --sage-light: #e8f0e7;
  --amber: #e9a84c;
  --line: #d9ddd7;
  --danger: #9d3d2e;
  --shadow: 0 24px 70px rgba(25, 49, 38, 0.12);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: white;
  background: var(--forest);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.hero,
.workspace-section,
.how-it-works,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.header-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.site-tools-pill {
  padding: 8px 11px;
  color: #315a47;
  background: #edf3ec;
  border: 1px solid rgba(24, 63, 49, 0.12);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
}

.site-tools-pill[data-state="ready"] {
  color: #155f3d;
  background: #e3f4e9;
}

.site-tools-pill[data-state="unsupported"] {
  color: #6f6353;
  background: #f3eee5;
}

.site-tools-pill[data-state="error"] {
  color: #8a3529;
  background: #f8e8e4;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: white;
  background: var(--forest);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand > span:last-child {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.brand strong {
  font-size: 20px;
  letter-spacing: -0.04em;
}

.brand small {
  color: var(--forest-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--forest);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(24, 63, 49, 0.16);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #38a169;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(56, 161, 105, 0.12);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 70px;
  align-items: center;
  min-height: 610px;
  padding: 66px 70px;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 88% 18%, rgba(233, 168, 76, 0.22), transparent 25%),
    linear-gradient(135deg, #102f25 0%, #183f31 52%, #24503e 100%);
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.hero::before {
  position: absolute;
  right: -90px;
  bottom: -170px;
  width: 430px;
  height: 430px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(255, 255, 255, 0.025), 0 0 0 110px rgba(255, 255, 255, 0.02);
}

.hero-copy,
.hero-card {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--forest-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #a9cdb8;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  max-width: 650px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 5.8vw, 72px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero-description {
  max-width: 600px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button:focus-visible,
.icon-button:focus-visible,
.copy-button:focus-visible,
.text-button:focus-visible,
.result-tab:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(233, 168, 76, 0.5);
  outline-offset: 2px;
}

.button-primary {
  color: #183f31;
  background: var(--amber);
  box-shadow: 0 8px 24px rgba(9, 25, 19, 0.22);
}

.button-primary:hover {
  background: #f0b866;
}

.button-secondary {
  color: white;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  list-style: none;
}

.trust-list li::before {
  margin-right: 7px;
  color: #91c6a7;
  content: "✓";
  font-weight: 900;
}

.hero-card {
  transform: rotate(1.5deg);
}

.mini-window {
  padding: 20px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(6, 21, 15, 0.35);
}

.mini-window-bar {
  display: flex;
  gap: 5px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e9ebe6;
}

.mini-window-bar span {
  width: 7px;
  height: 7px;
  background: #d8ddd7;
  border-radius: 50%;
}

.mini-lead {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 11px;
  align-items: center;
  margin: 17px 0;
  padding: 14px;
  background: var(--sage-light);
  border-radius: 13px;
}

.mini-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: white;
  background: var(--forest-light);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
}

.mini-lead strong,
.mini-lead small,
.mini-output strong,
.mini-output small {
  display: block;
}

.mini-lead strong,
.mini-output strong {
  font-size: 13px;
}

.mini-lead small,
.mini-output small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.mini-badge {
  padding: 5px 7px;
  color: var(--forest);
  background: white;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.mini-output {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 13px 8px;
  border-bottom: 1px solid #ebece8;
}

.mini-output:last-child {
  border-bottom: 0;
}

.mini-output > span {
  color: #8a948d;
  font-family: Georgia, serif;
  font-size: 14px;
}

.mini-output b {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: var(--forest-light);
  background: var(--sage-light);
  border-radius: 50%;
  font-size: 10px;
}

.workspace-section {
  width: min(1380px, calc(100% - 40px));
  padding: 110px 0 90px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.section-heading h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.save-status {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.save-status::before {
  margin-right: 6px;
  color: #38a169;
  content: "●";
  font-size: 8px;
}

.agent-strip {
  display: flex;
  min-width: 0;
  gap: 13px;
  align-items: center;
  min-height: 72px;
  margin: -12px 0 18px;
  padding: 15px 18px;
  color: #dfece4;
  background: linear-gradient(115deg, #173c2f, #24543f);
  border-radius: 15px;
  box-shadow: 0 10px 28px rgba(25, 49, 38, 0.1);
}

.agent-strip > div:last-child {
  min-width: 0;
}

.agent-strip-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  color: #163d2f;
  background: var(--amber);
  border-radius: 11px;
  font-weight: 900;
}

.agent-strip p {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.45;
}

.agent-strip .agent-strip-label {
  margin-bottom: 2px;
  color: #a9cdb8;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.workspace-shell {
  display: grid;
  min-width: 0;
  width: 100%;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.workspace-shell > *,
.workspace-grid > * {
  min-width: 0;
}

.inquiry-panel {
  position: sticky;
  top: 18px;
  display: flex;
  max-height: calc(100vh - 36px);
  flex-direction: column;
  padding: 20px;
}

.inquiry-panel-heading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.inquiry-panel-heading .eyebrow {
  margin-bottom: 4px;
  font-size: 9px;
}

.inquiry-panel-heading h3 {
  margin: 0;
  font-size: 17px;
}

.small-button {
  min-height: 32px;
  padding: 7px 10px;
  color: white;
  background: var(--forest);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.small-button:focus-visible,
.inquiry-card:focus-visible {
  outline: 3px solid rgba(233, 168, 76, 0.5);
  outline-offset: 2px;
}

.inquiry-list {
  display: grid;
  min-width: 0;
  gap: 8px;
  margin: 14px -5px 14px 0;
  padding-right: 5px;
  overflow-y: auto;
}

.inquiry-list-empty {
  padding: 20px 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.inquiry-card {
  display: grid;
  min-width: 0;
  max-width: 100%;
  gap: 5px;
  width: 100%;
  padding: 11px;
  color: var(--ink);
  background: #f7f7f2;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
}

.inquiry-card:hover {
  background: #f0f4ee;
  border-color: #d8e1d7;
}

.inquiry-card.is-selected {
  background: var(--sage-light);
  border-color: #9ebda6;
  box-shadow: inset 3px 0 0 var(--forest-light);
}

.inquiry-card-top {
  display: flex;
  min-width: 0;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.inquiry-card-top strong {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-chip {
  flex: 0 0 auto;
  padding: 4px 6px;
  color: #385043;
  background: #e5eae3;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.status-draft_ready {
  color: #315f45;
  background: #d8ebdc;
}

.status-visit_planned {
  color: #6c4e1d;
  background: #f6e8c7;
}

.status-closed {
  color: #616761;
  background: #e6e6e2;
}

.inquiry-card-service,
.inquiry-card-meta {
  min-width: 0;
  max-width: 100%;
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inquiry-card-service {
  color: #3f5047;
  font-size: 10px;
  font-weight: 650;
}

.local-data-note {
  margin-top: auto;
  padding: 12px;
  color: #405048;
  background: #f3efe5;
  border: 1px solid #e1d8c6;
  border-radius: 10px;
}

.local-data-note strong {
  display: block;
  margin-bottom: 4px;
  color: #594c38;
  font-size: 10px;
}

.local-data-note p {
  margin: 0;
  font-size: 9px;
  line-height: 1.5;
}

.danger-button {
  width: 100%;
  margin-top: 10px;
  padding: 6px;
  color: var(--danger);
  font-size: 9px;
  text-align: center;
}

.danger-button:disabled {
  color: #9a9e9a;
  cursor: not-allowed;
}

.workspace-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 20px;
  align-items: start;
}

.panel {
  min-width: 0;
  max-width: 100%;
  background: var(--paper);
  border: 1px solid rgba(24, 63, 49, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(25, 49, 38, 0.07);
}

.input-panel {
  padding: 28px;
}

.output-panel {
  position: sticky;
  top: 18px;
  min-height: 650px;
  padding: 28px;
}

.panel-heading {
  display: flex;
  min-width: 0;
  gap: 13px;
  align-items: flex-start;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.panel-heading > div {
  min-width: 0;
}

.panel-heading h3 {
  margin-bottom: 5px;
  font-size: 18px;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.panel-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.step-number {
  display: grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  place-items: center;
  color: white;
  background: var(--forest);
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
}

.output-heading > div {
  flex: 1;
}

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--forest);
  background: var(--sage-light);
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 900;
}

.form-section {
  display: grid;
  min-width: 0;
  gap: 15px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}

.form-section h4 {
  margin-bottom: -3px;
  color: var(--forest);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field-grid {
  display: grid;
  min-width: 0;
  gap: 13px;
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 7px;
  color: #39453e;
  font-size: 12px;
  font-weight: 720;
}

.optional {
  color: #89928d;
  font-size: 10px;
  font-weight: 600;
}

input,
select,
textarea {
  min-width: 0;
  width: 100%;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfd5cf;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 450;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input,
select {
  height: 43px;
  padding: 0 12px;
}

textarea {
  min-height: 116px;
  padding: 11px 12px;
  line-height: 1.5;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #aeb8b0;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--forest-light);
  box-shadow: 0 0 0 3px rgba(40, 97, 73, 0.1);
}

input::placeholder,
textarea::placeholder {
  color: #68736c;
}

.button-full {
  width: 100%;
  margin-top: 24px;
}

.form-note {
  margin: 10px 0 0;
  color: #626c65;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.settings-note {
  margin: -2px 0 0;
  color: #626c65;
  font-size: 10px;
  line-height: 1.5;
}

.empty-state {
  display: grid;
  min-height: 510px;
  place-content: center;
  justify-items: center;
  padding: 50px;
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  place-items: center;
  color: var(--forest-light);
  background: var(--sage-light);
  border-radius: 18px;
  font-size: 22px;
}

.empty-state h4 {
  margin-bottom: 8px;
  font-size: 16px;
}

.empty-state p {
  max-width: 320px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.results {
  min-width: 0;
  max-width: 100%;
  padding-top: 22px;
}

.stale-warning {
  margin-bottom: 12px;
  padding: 11px 13px;
  color: #6f3127;
  background: #fae9e4;
  border: 1px solid #e7beb4;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.45;
}

.results.is-stale .result-card,
.results.is-stale .result-tabs,
.results.is-stale .result-footer {
  opacity: 0.58;
}

.results.is-stale button:disabled {
  cursor: not-allowed;
}

.result-tabs {
  display: flex;
  min-width: 0;
  max-width: 100%;
  gap: 4px;
  padding: 4px;
  overflow-x: auto;
  background: #f0f2ed;
  border-radius: 11px;
}

.result-tab {
  min-width: max-content;
  flex: 1;
  padding: 9px 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}

.result-tab.active {
  color: var(--forest);
  background: white;
  box-shadow: 0 2px 8px rgba(22, 49, 37, 0.08);
}

.result-card {
  min-width: 0;
  max-width: 100%;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.result-card-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 17px;
  background: #f6f7f3;
  border-bottom: 1px solid var(--line);
}

.result-card-heading > div {
  min-width: 0;
}

.result-card-heading strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-label {
  display: block;
  margin-bottom: 3px;
  color: #626d65;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.copy-button,
.text-button {
  color: var(--forest-light);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.copy-button {
  padding: 7px 9px;
  background: var(--sage-light);
  border-radius: 8px;
}

.output-text {
  min-width: 0;
  max-width: 100%;
  min-height: 335px;
  padding: 20px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.75;
}

.checklist {
  display: grid;
  min-width: 0;
  max-width: 100%;
  gap: 1px;
  min-height: 300px;
  margin: 0;
  padding: 12px 17px;
  list-style: none;
}

.checklist li {
  position: relative;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 10px 8px 10px 30px;
  border-bottom: 1px solid #eff0ed;
  font-size: 12px;
  line-height: 1.45;
}

.checklist li:last-child {
  border-bottom: 0;
}

.checklist li::before {
  position: absolute;
  top: 10px;
  left: 3px;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  color: var(--forest-light);
  border: 1px solid #afbeb4;
  border-radius: 4px;
  content: "";
}

.visit-note {
  margin: 0 17px 17px;
  padding: 12px;
  color: #536058;
  background: #f6f7f3;
  border-radius: 9px;
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.result-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 4px 0;
  color: var(--muted);
  font-size: 10px;
}

.result-footer b {
  color: var(--forest);
}

.how-it-works {
  padding: 10px 0 100px;
}

.section-heading.compact {
  margin-bottom: 26px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.feature-grid article {
  min-height: 210px;
  padding: 26px;
  background: rgba(255, 253, 248, 0.65);
  border: 1px solid rgba(24, 63, 49, 0.11);
  border-radius: var(--radius-md);
}

.feature-grid article > span {
  display: block;
  margin-bottom: 40px;
  color: #8a958e;
  font-family: Georgia, serif;
  font-size: 13px;
}

.feature-grid h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.feature-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 32px 0 42px;
  border-top: 1px solid rgba(24, 63, 49, 0.14);
}

footer strong {
  font-size: 14px;
}

footer p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

footer > p {
  text-align: right;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  padding: 12px 16px;
  color: white;
  background: var(--forest);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(11, 36, 26, 0.28);
  font-size: 12px;
  font-weight: 750;
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 62px 48px;
  }

  .hero-card {
    width: min(520px, 100%);
  }

  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .workspace-shell {
    grid-template-columns: 1fr;
  }

  .inquiry-panel {
    position: static;
    max-height: none;
  }

  .inquiry-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 320px;
  }

  .local-data-note {
    margin-top: 0;
  }

  .output-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-header,
  .hero,
  .workspace-section,
  .how-it-works,
  footer {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    gap: 12px;
    align-items: flex-start;
    padding: 14px 0;
  }

  .header-status {
    max-width: 190px;
  }

  .site-tools-pill,
  .privacy-pill {
    font-size: 9px;
  }

  .privacy-pill {
    max-width: 132px;
    justify-content: center;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding: 48px 24px;
    border-radius: 23px;
  }

  h1 {
    font-size: clamp(42px, 15vw, 62px);
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .trust-list {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace-section {
    padding: 75px 0 65px;
  }

  .agent-strip {
    align-items: flex-start;
  }

  .inquiry-list {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .input-panel,
  .output-panel {
    padding: 20px;
    border-radius: 18px;
  }

  .two-column,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .result-card-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .output-text {
    min-height: 280px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  footer > p {
    text-align: left;
  }
}

@media print {
  body {
    background: white;
  }

  .site-header,
  .hero,
  .section-heading,
  .agent-strip,
  .inquiry-panel,
  .input-panel,
  .result-tabs,
  .copy-button,
  .result-footer,
  .how-it-works,
  footer,
  .icon-button,
  .toast {
    display: none !important;
  }

  .workspace-section,
  .workspace-shell,
  .workspace-grid {
    display: block;
    width: 100%;
    padding: 0;
  }

  .output-panel {
    min-height: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .panel-heading {
    display: none;
  }

  .results {
    display: block !important;
    padding: 0;
  }

  .result-card,
  .result-card[hidden] {
    display: block !important;
    break-inside: avoid;
    margin: 0 0 18px;
  }

  .output-text,
  .checklist {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
