:root {
  color-scheme: light;
  --ink: #1f2528;
  --muted: #5e686c;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --line: #d9d4c8;
  --teal: #1d6b64;
  --teal-strong: #124c48;
  --blue: #275f8f;
  --amber: #b66a25;
  --red: #a13d32;
  --focus: #0b66d8;
  --shadow: 0 18px 50px rgba(32, 39, 42, 0.14);
  --radius: 8px;
  --shell: min(1160px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

[data-shell] {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius);
}

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

.site-header,
.admin-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding-block: 12px;
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(217, 212, 200, 0.8);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links,
.header-actions,
.hero-actions,
.admin-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  justify-content: center;
  flex-wrap: wrap;
}

.nav-links a,
.site-footer a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--ink);
}

.icon-button,
.button,
.tab-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  font-weight: 700;
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

.icon-button[aria-pressed="true"] {
  border-color: var(--teal);
  background: #e8f4f1;
  color: var(--teal-strong);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  min-width: 0;
  padding: 11px 16px;
  font-weight: 700;
  text-align: center;
  white-space: normal;
}

.button span {
  min-width: 0;
  overflow-wrap: break-word;
}

.button svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.button.primary {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.button.secondary {
  background: #fff;
  color: var(--teal-strong);
}

.button.danger {
  border-color: rgba(161, 61, 50, 0.35);
  color: var(--red);
}

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 76px));
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(251, 250, 246, 0.98) 0%, rgba(251, 250, 246, 0.88) 35%, rgba(251, 250, 246, 0.38) 70%, rgba(251, 250, 246, 0.12) 100%),
    linear-gradient(0deg, rgba(31, 37, 40, 0.28), rgba(31, 37, 40, 0));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding-block: clamp(52px, 7vw, 90px);
}

.hero-layout,
.hero-text {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
  word-break: normal;
}

h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(2.25rem, 4.8vw, 4.35rem);
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
  hyphens: manual;
}

h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.hero-copy {
  max-width: 670px;
  margin: 22px 0 0;
  color: #30383b;
  font-size: 1.08rem;
}

.hero-actions {
  flex-wrap: wrap;
  margin-top: 28px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 860px;
  margin: 30px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--shadow);
}

.trust-strip div {
  min-width: 0;
  background: rgba(255, 255, 255, 0.9);
  padding: 18px;
}

.trust-strip dt {
  font-weight: 800;
}

.trust-strip dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.section {
  padding-block: clamp(44px, 6vw, 76px);
}

.motion-ready [data-motion="reveal"] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 560ms ease,
    transform 560ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
  transition-delay: var(--motion-delay, 0ms);
}

.motion-ready [data-motion="reveal"].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 30px;
}

.split-text {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  color: var(--muted);
  font-size: 1.02rem;
}

.split-text p {
  margin: 0;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.focus-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf9;
}

.focus-card p {
  margin: 0;
  color: var(--muted);
}

.focus-card a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin-top: auto;
  padding-top: 18px;
  color: var(--teal-strong);
  font-weight: 900;
  text-decoration: none;
}

.focus-card a svg {
  width: 17px;
  height: 17px;
}

.service-pillars {
  display: grid;
  gap: 34px;
}

.service-pillar {
  display: grid;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.service-pillar-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.service-pillar-heading > div {
  max-width: 720px;
}

.service-pillar-heading h3 {
  margin-bottom: 8px;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}

.service-pillar-heading p:last-child {
  margin: 0;
  color: var(--muted);
}

.service-pillar-heading > span {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  background: #e8f4f1;
  color: var(--teal-strong);
  font-size: 0.82rem;
  font-weight: 900;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}

.service-card,
.legal-grid article,
.notice-panel,
.service-editor {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 18px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover,
.automation-card:hover,
.recipe-card:hover {
  transform: translateY(-3px);
  border-color: rgba(29, 107, 100, 0.28);
  box-shadow: 0 16px 36px rgba(31, 37, 40, 0.1);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #e8f4f1;
  color: var(--teal);
  transition: transform 180ms ease, background 180ms ease;
}

.service-card:hover .service-icon,
.automation-card:hover .service-icon,
.recipe-card:hover .service-icon {
  transform: scale(1.05);
  background: #dff1ed;
}

.service-icon svg {
  width: 23px;
  height: 23px;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.service-card h4 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.service-card .price {
  margin-top: auto;
  padding-top: 18px;
  color: var(--blue);
  font-weight: 800;
}

.service-tool-summary {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
}

.service-tool-summary div {
  display: grid;
  gap: 2px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.service-tool-summary dt {
  color: var(--amber);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.service-tool-summary dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
}

.service-card-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.service-card-actions .button {
  width: 100%;
}

.examples-section {
  background: #fffdf9;
  border-block: 1px solid rgba(217, 212, 200, 0.78);
}

.examples-section .section-heading > p:last-child {
  color: var(--muted);
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.example-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.example-card header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.example-card header .service-icon {
  margin: 0;
}

.example-label {
  margin: 0 0 3px;
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.example-card h3 {
  margin: 0;
}

.example-card dl {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.example-card dl div {
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.example-card dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.example-card dd {
  margin: 4px 0 0;
}

.service-detail-hero {
  background: #fbfaf6;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 28px;
  align-items: start;
}

.service-detail-grid h1 {
  color: var(--ink);
}

.service-detail-price {
  display: inline-flex;
  margin: 22px 0 0;
  padding: 9px 12px;
  border: 1px solid #cbdcda;
  border-radius: 999px;
  background: #e8f4f1;
  color: var(--teal-strong);
  font-weight: 900;
}

.service-story-section {
  background: #fffdf9;
  border-block: 1px solid rgba(217, 212, 200, 0.78);
}

.service-story-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1fr);
  gap: 28px;
  align-items: start;
}

.service-story-layout article p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.service-outcomes {
  display: grid;
  gap: 10px;
}

.service-outcomes div {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfaf6;
}

.service-outcomes svg {
  width: 20px;
  height: 20px;
  color: var(--teal);
}

.service-tool-section {
  background: #f3f0e8;
  border-block: 1px solid var(--line);
}

.service-tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.service-tool-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.service-tool-detail div {
  min-width: 0;
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf9;
}

.service-tool-detail dt {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.service-tool-detail dd {
  margin: 8px 0 0;
}

.service-tool-output {
  display: grid;
  gap: 16px;
}

.service-tool-output .button {
  width: 100%;
}

.service-tool-output .muted {
  margin: 0;
  font-size: 0.88rem;
}

.service-request-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 28px;
  align-items: start;
}

.service-request-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-check-section {
  background:
    linear-gradient(135deg, rgba(232, 244, 241, 0.86), rgba(255, 253, 249, 0.96)),
    #eef6f4;
  border-block: 1px solid var(--line);
}

.quick-check-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  align-items: start;
}

.quick-check-layout p {
  color: var(--muted);
}

.quick-check-form {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(31, 37, 40, 0.1);
}

.quick-check-form label {
  display: grid;
  gap: 8px;
  min-width: 0;
  font-weight: 800;
}

.quick-check-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--ink);
}

.quick-check-form p {
  margin: 0;
  font-size: 0.92rem;
}

.check-hero {
  background: #f4f0e7;
  border-bottom: 1px solid var(--line);
}

.check-result-head {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 24px;
}

.check-status-link-panel {
  margin-bottom: 18px;
}

.check-status-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.check-status-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.check-status-step.state-done {
  border-color: #b8d8d3;
  background: #f7fcfb;
}

.check-status-step.state-active {
  border-color: #d8c48a;
  background: #fffdf6;
}

.check-status-step.state-failed {
  border-color: #efb8b8;
  background: #fff7f7;
}

.check-status-step p {
  margin: 6px 0 0;
  color: var(--muted);
}

.score-badge {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  border: 8px solid #d8ebe7;
  border-radius: 50%;
  background: #fff;
  color: var(--teal-strong);
  box-shadow: 0 14px 30px rgba(31, 37, 40, 0.1);
}

.score-badge strong {
  font-size: 2.2rem;
  line-height: 1;
}

.score-badge span {
  color: var(--muted);
  font-weight: 800;
}

.check-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 14px;
}

.check-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.check-card > span {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef6f4;
  color: var(--teal-strong);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.check-card.state-warn > span {
  background: #fff4df;
  color: #8a4b12;
}

.check-card.state-bad > span {
  background: #fbe9e6;
  color: var(--red);
}

.check-card h3,
.check-card p {
  margin: 0;
}

.check-card p {
  color: var(--muted);
}

.check-card a {
  color: var(--teal-strong);
  font-weight: 800;
  text-decoration: none;
}

.result-followup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 18px;
  align-items: start;
  margin-top: 22px;
}

.automation-section {
  background: #f3f0e8;
  border-block: 1px solid var(--line);
}

.automation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}

.automation-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.automation-card header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.automation-card p {
  margin: 0;
  color: var(--muted);
}

.automation-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 128px), 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.automation-steps li {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #cbdcda;
  border-radius: var(--radius);
  background: #eef6f4;
  color: var(--teal-strong);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: break-word;
  word-break: normal;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 14px;
}

.guide-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.guide-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.ai-showcase {
  background: #182629;
  color: #f7fbfa;
}

.ai-showcase .eyebrow {
  color: #e4a75d;
}

.ai-showcase h2,
.ai-showcase h3 {
  color: #fff;
}

.ai-showcase-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: start;
}

.assistant-preview {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: #0f1719;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
}

.assistant-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.assistant-preview-modes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.assistant-preview-modes span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(228, 167, 93, 0.14);
  color: #ffd99f;
  font-size: 0.82rem;
  font-weight: 800;
}

.assistant-preview-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.preview-bubble {
  max-width: 86%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  color: #dce8e7;
}

.preview-bubble.user {
  justify-self: end;
  background: rgba(228, 167, 93, 0.18);
}

.preview-bubble.assistant {
  justify-self: start;
  background: rgba(255, 255, 255, 0.06);
}

.process-band {
  background: #eaf1ef;
  border-block: 1px solid #cbdcda;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  min-width: 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid #cbdcda;
  border-radius: var(--radius);
}

.process-list span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
}

.process-list strong {
  display: block;
  margin-bottom: 8px;
}

.process-list p {
  margin: 0;
  color: var(--muted);
}

.standards-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 24px;
  align-items: start;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: var(--muted);
}

.check-list svg {
  width: 22px;
  height: 22px;
  color: var(--teal);
}

.notice-panel {
  padding: 22px;
  border-left: 5px solid var(--amber);
}

.notice-panel p {
  margin: 0;
  color: var(--muted);
}

.contact-section {
  background: #f0ece2;
  border-block: 1px solid var(--line);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 36px;
  align-items: start;
}

.contact-copy {
  color: var(--muted);
}

.lead-form,
.settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.93rem;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #bfc5c4;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
}

textarea {
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.consent {
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  color: var(--muted);
  font-weight: 400;
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--teal-strong);
  font-weight: 700;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.legal-grid article {
  padding: 22px;
}

.legal-grid p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 28px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  font-weight: 800;
  color: var(--ink);
}

.site-footer div {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.kdp-ai-root {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  font-family: Arial, Helvetica, sans-serif;
  max-width: calc(100vw - 24px);
  box-sizing: border-box;
}

.kdp-ai-root *,
.kdp-ai-root *::before,
.kdp-ai-root *::after {
  box-sizing: border-box;
}

.kdp-ai-fab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 8px 12px;
  background: #124c48;
  color: #fff;
  box-shadow: 0 14px 34px rgba(20, 42, 45, 0.24);
  cursor: pointer;
  font-size: 0.92rem;
}

.kdp-ai-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: currentColor;
  font-weight: 900;
  font-size: 0.78rem;
}

.kdp-ai-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.kdp-ai-icon.is-ai {
  background: rgba(39, 95, 143, 0.14);
  color: var(--blue);
  font-size: 0.72rem;
}

.kdp-ai-panel {
  position: absolute;
  right: 0;
  bottom: 62px;
  display: flex;
  flex-direction: column;
  width: min(420px, calc(100vw - 24px));
  max-height: min(680px, calc(100dvh - 96px));
  overflow: hidden;
  border: 1px solid rgba(217, 212, 200, 0.9);
  border-radius: var(--radius);
  background: #fffdf9;
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(31, 37, 40, 0.28);
}

.kdp-ai-panel[hidden] {
  display: none;
}

.kdp-ai-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: #f4f0e7;
  flex: 0 0 auto;
}

.kdp-ai-title {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.kdp-ai-title .kdp-ai-icon {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.kdp-ai-head strong,
.kdp-ai-head small {
  display: block;
}

.kdp-ai-head small {
  color: var(--muted);
}

.kdp-ai-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  font-size: 1.4rem;
}

.kdp-ai-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: #fffdf9;
  flex: 0 0 auto;
}

.kdp-ai-mode,
.kdp-ai-quick button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.kdp-ai-mode {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 9px;
  text-align: left;
}

.kdp-ai-mode span:last-child {
  min-width: 0;
  overflow-wrap: break-word;
  line-height: 1.15;
}

.kdp-ai-mode-guide .kdp-ai-icon {
  background: rgba(39, 95, 143, 0.12);
  color: var(--blue);
}

.kdp-ai-mode-sales .kdp-ai-icon {
  background: rgba(182, 106, 37, 0.14);
  color: var(--amber);
}

.kdp-ai-mode[aria-pressed="true"] {
  background: #e8f4f1;
  border-color: var(--teal);
  color: var(--teal-strong);
}

.kdp-ai-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 220px;
  min-height: 180px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px;
  scrollbar-width: thin;
}

.kdp-ai-messages[hidden],
.kdp-ai-quick[hidden],
.kdp-ai-disclosure[hidden] {
  display: none;
}

.kdp-ai-disclosure {
  margin: 0 14px 10px;
  padding: 12px 14px;
  border: 2px solid #1a4d6d;
  border-radius: var(--radius);
  background: #e8f2fa;
  color: #12232f;
}

.kdp-ai-disclosure p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.kdp-ai-disclosure p:last-child {
  margin-bottom: 0;
}

.kdp-ai-disclosure-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 700;
}

.kdp-ai-disclosure-main .kdp-ai-icon {
  margin-top: 1px;
  background: #1a4d6d;
  color: #fff;
}

.kdp-ai-disclosure-welcome {
  color: #243845;
}

.kdp-ai-disclosure-more a {
  color: #0b4f8a;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.kdp-ai-disclosure-more a:hover,
.kdp-ai-disclosure-more a:focus-visible {
  color: #083a66;
}

.kdp-ai-disclosure-human {
  color: #243845;
  font-size: 0.84rem !important;
}

.kdp-ai-message {
  max-width: min(92%, 340px);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: normal;
  font-size: 0.94rem;
}

.kdp-ai-message.assistant {
  align-self: flex-start;
  background: #f7f4ed;
}

.kdp-ai-message.user {
  align-self: flex-end;
  background: #e8f4f1;
  border-color: #b8d8d3;
}

.kdp-ai-message.loading {
  opacity: 0.72;
}

.kdp-ai-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 12px 12px;
  overflow: visible;
  flex: 0 0 auto;
}

.kdp-ai-quick button {
  flex: 1 1 150px;
  padding: 8px 10px;
  color: var(--teal-strong);
  font-size: 0.84rem;
  min-width: 0;
  white-space: normal;
}

.kdp-ai-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(92px, auto);
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #f4f0e7;
  flex: 0 0 auto;
}

.kdp-ai-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  max-height: 96px;
  resize: none;
  overflow: hidden;
  line-height: 1.35;
}

.kdp-ai-form button {
  min-width: 90px;
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  background: var(--teal);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.kdp-ai-form button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.portal-main {
  padding-bottom: 64px;
}

.portal-main-app {
  padding-top: 24px;
}

.portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 28px;
  align-items: end;
  padding-block: 58px 28px;
}

.portal-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.98;
}

.portal-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.portal-architecture {
  display: grid;
  gap: 10px;
}

.portal-architecture span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf9;
  padding: 12px 14px;
  font-weight: 900;
  color: var(--teal-strong);
}

.portal-architecture svg {
  width: 20px;
  height: 20px;
}

.portal-auth-grid,
.portal-dashboard,
.portal-work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.portal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf9;
  padding: 18px;
  box-shadow: 0 18px 40px rgba(31, 37, 40, 0.06);
}

.portal-card h2,
.portal-card h3 {
  margin-top: 0;
}

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

.portal-app {
  display: grid;
  gap: 18px;
  padding-block: 28px;
}

.portal-app-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf9;
  padding: 20px;
  box-shadow: 0 18px 40px rgba(31, 37, 40, 0.06);
}

.portal-app-top h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.portal-app-top p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
}

.portal-app-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.portal-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.portal-kpi {
  display: grid;
  gap: 6px;
  min-height: 116px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf9;
  padding: 16px;
  text-decoration: none;
  color: var(--ink);
}

.portal-kpi strong {
  font-size: 2.4rem;
  line-height: 1;
}

.portal-kpi span {
  color: var(--muted);
  font-weight: 900;
}

.portal-process-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf9;
  padding: 18px;
}

.portal-embed-card {
  display: grid;
  gap: 12px;
}

.portal-embed-card label {
  display: grid;
  gap: 8px;
}

.portal-embed-snippet {
  width: 100%;
  min-height: 9rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 4px);
  background: #0f172a;
  color: #e2e8f0;
  font: 500 0.82rem/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  resize: vertical;
}

.portal-step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.portal-step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px;
  min-height: 150px;
}

.portal-step > span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #f4f0e7;
  color: var(--muted);
  margin-bottom: 10px;
}

.portal-step svg {
  width: 18px;
  height: 18px;
}

.portal-step strong,
.portal-step p {
  display: block;
  margin: 0;
}

.portal-step p {
  margin-top: 8px;
  color: var(--muted);
}

.portal-step.is-current {
  border-color: var(--amber);
  background: #fff8ec;
}

.portal-step.is-current > span {
  background: rgba(182, 106, 37, 0.14);
  color: var(--amber);
}

.portal-step.is-done {
  border-color: #b8d8d3;
  background: #f4fbf8;
}

.portal-step.is-done > span {
  background: #e8f4f1;
  color: var(--teal-strong);
}

.portal-form {
  display: grid;
  gap: 14px;
}

.form-grid.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.portal-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.portal-profile h2 {
  margin-bottom: 4px;
}

.portal-profile p {
  margin: 0;
  color: var(--muted);
}

.portal-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.portal-stats article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf9;
  padding: 18px;
}

.portal-stats strong {
  display: block;
  font-size: 2.2rem;
  line-height: 1;
}

.portal-stats span {
  color: var(--muted);
  font-weight: 800;
}

.portal-section {
  padding-block: 34px;
}

.portal-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.portal-plan {
  display: grid;
  gap: 14px;
  align-content: start;
}

.portal-plan.is-selected {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(23, 121, 109, 0.12);
}

.portal-price {
  margin: 0 0 8px;
  color: var(--teal-strong);
  font-weight: 900;
}

.portal-plan ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.portal-plan li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
}

.portal-plan li svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: var(--teal);
}

.portal-plan form {
  display: grid;
  gap: 10px;
}

.portal-plan textarea {
  width: 100%;
  min-height: 90px;
  resize: vertical;
}

.portal-work-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-ops-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.portal-ops-grid-wide {
  align-items: start;
}

.portal-ops-card {
  min-height: 220px;
}

.portal-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-block: 12px;
  border-top: 1px solid var(--line);
}

.portal-row:first-of-type {
  border-top: 0;
}

.portal-row strong,
.portal-row small {
  display: block;
}

.portal-row small,
.muted {
  color: var(--muted);
}

.portal-job-row,
.portal-document-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding-block: 12px;
  border-top: 1px solid var(--line);
}

.portal-job-row:first-of-type,
.portal-document-row:first-of-type {
  border-top: 0;
}

.portal-job-row strong,
.portal-job-row small,
.portal-document-row strong,
.portal-document-row small {
  display: block;
}

.portal-job-row small,
.portal-document-row small {
  color: var(--muted);
}

.portal-job-status,
.portal-document-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.portal-badge {
  flex: 0 0 auto;
  border: 1px solid #b8d8d3;
  border-radius: 999px;
  background: #e8f4f1;
  color: var(--teal-strong);
  padding: 5px 9px;
  font-size: 0.8rem;
  font-weight: 900;
}

.muted-badge {
  border-color: var(--line);
  background: #fff;
  color: var(--muted);
}

.portal-document-view {
  display: grid;
  gap: 18px;
  padding-block: 34px;
}

.portal-document-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf9;
  padding: 20px;
}

.portal-document-head h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.portal-document-head p:not(.eyebrow) {
  color: var(--muted);
}

.portal-document-body {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf9;
  padding: 22px;
  white-space: normal;
  line-height: 1.65;
}

.automation-main {
  min-height: calc(100vh - 150px);
  padding-bottom: 48px;
}

.automation-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.32fr);
  gap: 24px;
  align-items: end;
  padding-block: 52px 26px;
}

.automation-hero h1 {
  max-width: 820px;
}

.automation-package-summary {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf9;
}

.automation-package-summary .portal-price {
  margin: 0;
}

.automation-package-summary span {
  color: var(--muted);
}

.automation-progress {
  padding-block: 10px 22px;
}

.automation-progress ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.automation-progress li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.automation-progress li > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f4f0e7;
  color: var(--muted);
  font-weight: 900;
}

.automation-progress strong,
.automation-progress small {
  display: block;
}

.automation-progress small {
  margin-top: 4px;
  color: var(--muted);
}

.automation-progress .is-current {
  border-color: var(--amber);
  background: #fff8ec;
}

.automation-progress .is-current > span {
  background: var(--amber);
  color: #fff;
}

.automation-progress .is-done {
  border-color: #b8d8d3;
  background: #f4fbf8;
}

.automation-progress .is-done > span {
  background: var(--teal);
  color: #fff;
}

.automation-alert {
  padding-block: 10px;
}

.automation-alert ul {
  margin-bottom: 0;
}

.automation-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.automation-form {
  display: grid;
  gap: 20px;
  padding: 24px;
}

.automation-form .section-heading p:last-child,
.automation-preview .section-heading p:last-child {
  color: var(--muted);
}

.automation-safety {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 14px;
  border: 1px solid #cbdcda;
  border-radius: var(--radius);
  background: #eef6f4;
  color: var(--teal-strong);
}

.automation-safety svg {
  width: 22px;
  height: 22px;
}

.automation-safety p {
  margin: 0;
}

.automation-question-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field-hint,
.field-error {
  font-weight: 500;
}

.field-hint {
  color: var(--muted);
}

.field-error {
  color: var(--red);
  font-weight: 800;
}

.automation-action-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.automation-side {
  display: grid;
  gap: 14px;
}

.automation-side .portal-card {
  display: grid;
  gap: 14px;
}

.automation-side p {
  margin: 0;
  color: var(--muted);
}

.automation-preview {
  display: grid;
  gap: 18px;
}

.automation-preview-grid,
.automation-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.automation-answer-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.automation-answer-list div {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.automation-answer-list div:first-child {
  padding-top: 0;
  border-top: 0;
}

.automation-answer-list dt {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.automation-answer-list dd {
  margin: 3px 0 0;
  white-space: pre-wrap;
}

.automation-workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.automation-workflow-grid .portal-card {
  min-height: 190px;
}

.automation-workflow-grid h3 {
  margin-top: 14px;
}

.automation-workflow-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.automation-confirm {
  display: grid;
  gap: 16px;
  border-color: #c8b479;
  background: #fffaf0;
}

.automation-confirm p {
  color: var(--muted);
}

.automation-result {
  display: grid;
  gap: 18px;
}

.automation-success {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 22px;
  border: 1px solid #b8d8d3;
  border-radius: var(--radius);
  background: #f4fbf8;
}

.automation-success-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
}

.automation-success-icon svg {
  width: 28px;
  height: 28px;
}

.automation-success h2 {
  font-size: clamp(1.7rem, 3vw, 2.8rem);
}

.automation-success p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.automation-result-grid p {
  color: var(--muted);
}

.automation-immediate-artifact {
  display: grid;
  gap: 18px;
  border-color: #b8d8d3;
  background: #f7fcfb;
}

.automation-immediate-artifact > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.automation-immediate-artifact > header > div {
  max-width: 780px;
}

.automation-immediate-artifact > header p:last-child {
  margin: 0;
  color: var(--muted);
}

.automation-artifact-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.automation-artifact-sections section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.automation-artifact-sections h4 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.automation-artifact-sections ul {
  margin: 0;
  padding-left: 19px;
  color: var(--muted);
}

.automation-artifact-sections li + li {
  margin-top: 7px;
}

.automation-final-actions {
  justify-content: flex-start;
  padding-top: 4px;
}

.kdp-consent {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 80;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.kdp-consent-card {
  width: min(980px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf9;
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(31, 37, 40, 0.24);
  padding: 18px;
  pointer-events: auto;
}

.kdp-consent-copy h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.kdp-consent-copy p {
  margin: 0;
  color: var(--muted);
}

.kdp-consent-options {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7f4ed;
}

.kdp-consent-options[hidden] {
  display: none;
}

.kdp-consent-options label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 800;
}

.kdp-consent-options small {
  color: var(--muted);
  font-weight: 700;
}

.kdp-consent-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.kdp-consent-actions button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--teal-strong);
  padding: 10px 13px;
  font-weight: 900;
  cursor: pointer;
}

.kdp-consent-actions [data-consent-support-accept] {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.admin-body {
  background: #f6f2e9;
}

.admin-main {
  padding-block: 28px 72px;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.admin-hero h1 {
  max-width: 900px;
  font-size: clamp(1.8rem, 4vw, 3.6rem);
}

.admin-hero p:not(.eyebrow) {
  max-width: 860px;
  margin-bottom: 0;
  color: var(--muted);
}

.admin-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.file-button {
  position: relative;
  overflow: hidden;
}

.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-block: 22px;
}

.tab-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 13px;
  color: var(--muted);
  font-weight: 800;
}

.tab-button svg {
  width: 18px;
  height: 18px;
}

.tab-button.active {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.service-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.editor-top {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lead-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.lead-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.lead-table th,
.lead-table td {
  padding: 13px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.lead-table th {
  background: #eee7d9;
  font-size: 0.88rem;
}

.lead-table td {
  color: var(--muted);
  font-size: 0.92rem;
}

.assistant-admin-list {
  display: grid;
  gap: 16px;
}

.assistant-admin-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.assistant-admin-card header {
  padding: 16px;
  background: #eee7d9;
  border-bottom: 1px solid var(--line);
}

.assistant-admin-card header p {
  margin: 4px 0 0;
  color: var(--muted);
}

.assistant-admin-messages {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.assistant-admin-message {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.assistant-admin-message.user {
  background: #e8f4f1;
  border-color: #b8d8d3;
}

.assistant-admin-message.assistant {
  background: #faf8f2;
}

.assistant-admin-message p {
  margin: 6px 0 0;
  color: var(--muted);
}

.settings-form {
  max-width: 880px;
}

.checklist-admin {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.checklist-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.checklist-item input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.checklist-item strong {
  display: block;
}

.checklist-item p {
  margin: 4px 0 0;
  color: var(--muted);
}

@media (max-width: 920px) {
  .site-header,
  .admin-header {
    position: static;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .hero-overlay {
    background: rgba(251, 250, 246, 0.88);
  }

  .trust-strip,
  .split-text,
  .quick-check-layout,
  .result-followup,
  .contact-layout,
  .legal-grid,
  .standards-layout,
  .ai-showcase-layout,
  .service-detail-grid,
  .service-story-layout,
  .service-tool-layout,
  .service-request-layout,
  .admin-hero,
  .admin-grid,
  .checklist-admin {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .process-list,
  .automation-grid,
  .guide-grid,
  .focus-grid,
  .example-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  :root {
    --shell: min(100vw - 22px, 1160px);
  }

  .brand small,
  .nav-links {
    display: none;
  }

  .site-header,
  .admin-header {
    gap: 8px;
    min-height: 64px;
    padding-block: 10px;
  }

  .brand {
    flex: 1 1 auto;
    max-width: calc(100% - 96px);
    gap: 8px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .brand strong {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.94rem;
  }

  .header-actions {
    flex: 0 0 auto;
    gap: 6px;
    margin-left: 0;
  }

  .icon-button {
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
  }

  .header-actions .icon-button:not(.lang-button) {
    display: none;
  }

  .hero-content {
    padding-block: 48px;
  }

  h1 {
    font-size: clamp(2.05rem, 10vw, 2.75rem);
    line-height: 1.06;
  }

  .hero-actions,
  .admin-actions,
  .panel-heading,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .trust-strip,
  .service-grid,
  .process-list,
  .automation-grid,
  .guide-grid,
  .focus-grid,
  .example-grid,
  .service-tool-detail,
  .lead-form,
  .service-request-form,
  .settings-form,
  .service-editor {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .service-pillar-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .kdp-ai-root {
    right: max(10px, env(safe-area-inset-right));
    left: max(10px, env(safe-area-inset-left));
    bottom: max(10px, env(safe-area-inset-bottom));
    max-width: none;
  }

  .kdp-ai-fab {
    margin-left: auto;
  }

  .kdp-ai-panel {
    left: 0;
    right: 0;
    width: auto;
    bottom: 64px;
    max-height: min(560px, calc(100dvh - 110px));
  }

  .kdp-ai-form {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .kdp-ai-form button {
    min-height: 42px;
  }

  .kdp-ai-modes {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px 10px;
  }

  .kdp-ai-mode {
    min-height: 50px;
    padding: 8px 10px;
  }

  .kdp-ai-messages {
    flex: 1 1 auto;
    min-height: 0;
    padding: 10px;
  }

  .kdp-ai-message {
    max-width: 100%;
  }

  .kdp-ai-quick {
    max-height: 154px;
    overflow-y: auto;
    padding: 0 10px 10px;
  }

  .kdp-ai-quick button {
    flex-basis: 100%;
    min-height: 44px;
  }

  .kdp-ai-root.has-conversation .kdp-ai-modes {
    display: none;
  }
}

.hero-cockpit {
  width: min(760px, 100%);
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(18, 76, 72, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 253, 249, 0.86);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px rgba(31, 37, 40, 0.14);
}

.cockpit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(217, 212, 200, 0.78);
}

.cockpit-head span {
  color: var(--muted);
  font-weight: 800;
}

.cockpit-head strong {
  position: relative;
  padding-left: 18px;
  color: var(--teal-strong);
  font-size: 0.92rem;
}

.cockpit-head strong::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2f946f;
  transform: translateY(-50%);
  box-shadow: 0 0 0 5px rgba(47, 148, 111, 0.14);
}

.cockpit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding-top: 12px;
}

.cockpit-grid div {
  min-height: 86px;
  padding: 12px;
  border: 1px solid rgba(217, 212, 200, 0.86);
  border-radius: var(--radius);
  background: linear-gradient(160deg, #fff 0%, #f3f8f5 100%);
}

.cockpit-grid small,
.builder-topline span,
.recipe-card dt {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cockpit-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
}

.builder-section {
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.2), rgba(232, 244, 241, 0.42)),
    #fbfaf6;
}

.builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 18px;
  align-items: stretch;
}

.builder-panel,
.builder-result,
.recipe-card {
  border: 1px solid rgba(217, 212, 200, 0.92);
  border-radius: var(--radius);
  background: #fffdf9;
  box-shadow: 0 18px 45px rgba(31, 37, 40, 0.1);
}

.builder-panel {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.builder-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.builder-topline strong {
  padding: 5px 9px;
  border: 1px solid rgba(29, 107, 100, 0.22);
  border-radius: 999px;
  background: #e8f4f1;
  color: var(--teal-strong);
  font-size: 0.82rem;
}

.builder-panel fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.builder-panel legend,
.builder-controls label > span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 900;
}

.topic-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 10px;
}

.topic-pill {
  cursor: pointer;
}

.topic-pill input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.topic-pill span {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.18;
  overflow-wrap: break-word;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.topic-pill svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--teal);
}

.topic-pill input:checked + span {
  border-color: rgba(29, 107, 100, 0.55);
  background: #e8f4f1;
  box-shadow: inset 0 0 0 1px rgba(29, 107, 100, 0.16);
}

.topic-pill:hover span {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(31, 37, 40, 0.08);
}

.topic-pill input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.builder-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.builder-controls select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 9px 10px;
}

.builder-result {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(24, 38, 41, 0.98), rgba(18, 76, 72, 0.94)),
    #182629;
  color: #f7fbfa;
}

.builder-result .eyebrow {
  color: #f0b35f;
}

.builder-result h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1.1;
}

.builder-result p {
  color: rgba(247, 251, 250, 0.84);
}

.result-meter {
  position: relative;
  width: 120px;
  height: 120px;
}

.result-meter svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.result-meter circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 10;
}

.result-meter circle[data-builder-ring] {
  stroke: #e4a75d;
  stroke-linecap: round;
  transition: stroke-dashoffset 220ms ease;
}

.result-meter span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
}

.result-estimate {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 10px 0 12px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 800;
}

.mini-checks {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.mini-checks li {
  position: relative;
  padding-left: 22px;
  color: rgba(247, 251, 250, 0.84);
}

.mini-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e4a75d;
}

.recipes-section {
  padding-top: 36px;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 14px;
}

.recipe-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.recipe-card h3 {
  margin: 0;
}

.recipe-card dl {
  display: grid;
  gap: 11px;
  margin: 0;
}

.recipe-card dd {
  margin: 3px 0 0;
  color: var(--muted);
}

.nis2-hero {
  background:
    linear-gradient(135deg, rgba(232, 244, 241, 0.72), rgba(255, 253, 249, 0.92)),
    #fbfaf6;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.source-links a {
  padding: 7px 9px;
  border: 1px solid rgba(29, 107, 100, 0.22);
  border-radius: 999px;
  background: #e8f4f1;
  color: var(--teal-strong);
  font-weight: 800;
  text-decoration: none;
  font-size: 0.84rem;
}

.nis2-process li {
  background: #fffdf9;
}

.nis2-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 24px;
  align-items: start;
}

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

.form-fieldset {
  display: grid;
  gap: 9px;
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfaf6;
}

.form-fieldset legend {
  padding: 0 6px;
  color: var(--ink);
  font-weight: 900;
}

.nis2-score-card {
  grid-template-columns: 110px minmax(0, 1fr);
  margin-top: 22px;
}

.nis2-score-card .result-meter {
  width: 104px;
  height: 104px;
}

.nis2-score-card h3 {
  margin: 0;
}

.kdp-ai-fab {
  background: linear-gradient(135deg, #124c48, #275f8f);
}

.kdp-ai-panel {
  overflow: hidden;
  border-radius: var(--radius);
}

.kdp-ai-head {
  background: linear-gradient(135deg, #182629, #124c48);
  color: #fff;
}

.kdp-ai-head small {
  color: rgba(255, 255, 255, 0.72);
}

.kdp-ai-close {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

@media (max-width: 920px) {
  .hero-cockpit,
  .builder-result {
    width: 100%;
  }

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

  .builder-layout,
  .builder-result,
  .nis2-layout,
  .builder-controls,
  .automation-hero,
  .automation-workspace {
    grid-template-columns: 1fr;
  }

  .automation-progress ol,
  .automation-workflow-grid,
  .automation-artifact-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-meter {
    margin-inline: auto;
  }
}

@media (max-width: 620px) {
  .hero-cockpit {
    padding: 12px;
  }

  .cockpit-head,
  .builder-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .cockpit-grid,
  .topic-pills,
  .recipe-grid {
    grid-template-columns: 1fr;
  }

  .cockpit-grid div {
    min-height: 74px;
  }

  .builder-panel,
  .builder-result,
  .recipe-card {
    padding: 14px;
  }

  .nis2-form,
  .check-result-head,
  .nis2-score-card {
    grid-template-columns: 1fr;
  }

  .score-badge {
    width: 104px;
    height: 104px;
  }

  .portal-hero,
  .portal-auth-grid,
  .portal-dashboard,
  .portal-work-grid,
  .portal-kpi-grid,
  .portal-step-grid,
  .portal-ops-grid,
  .portal-plan-grid,
  .form-grid.two,
  .automation-progress ol,
  .automation-question-grid,
  .automation-preview-grid,
  .automation-result-grid,
  .automation-workflow-grid,
  .automation-artifact-sections {
    grid-template-columns: 1fr;
  }

  .automation-hero {
    gap: 16px;
    padding-block: 34px 18px;
  }

  .automation-form {
    padding: 14px;
  }

  .automation-progress li,
  .automation-workflow-grid .portal-card {
    min-height: 0;
  }

  .automation-action-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .automation-action-bar .button,
  .automation-action-bar button {
    width: 100%;
  }

  .automation-success {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .automation-immediate-artifact > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-hero {
    gap: 18px;
    padding-block: 34px 18px;
  }

  .portal-hero h1 {
    font-size: clamp(2rem, 14vw, 3.6rem);
  }

  .portal-profile {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-app {
    padding-block: 14px 24px;
  }

  .portal-app-top,
  .portal-document-head {
    align-items: stretch;
    flex-direction: column;
    padding: 14px;
  }

  .portal-app-actions {
    justify-content: stretch;
  }

  .portal-app-actions .button,
  .portal-app-actions form,
  .portal-app-actions button {
    width: 100%;
  }

  .portal-kpi,
  .portal-step,
  .portal-ops-card {
    min-height: 0;
  }

  .portal-job-row,
  .portal-document-row {
    grid-template-columns: 1fr;
  }

  .portal-job-status,
  .portal-document-actions {
    justify-content: flex-start;
  }

  .portal-document-actions .button {
    flex: 1 1 140px;
  }

  .portal-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .portal-stats article,
  .portal-card {
    padding: 14px;
  }

  .portal-stats strong {
    font-size: 1.7rem;
  }

  .portal-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .kdp-consent {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
  }

  .kdp-consent-card {
    padding: 14px;
  }

  .kdp-consent-actions {
    flex-direction: column;
  }

  .kdp-consent-actions button {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .motion-ready [data-motion="reveal"] {
    opacity: 1;
    transform: none;
  }
}
