/* ============================================================================
   Jerenta product site — standalone stylesheet.

   Deliberately not shared with the firm portal's app.css: that stylesheet is
   re-themed at runtime by each firm's branding, and this site must always look
   like Jerenta. The brand and accent hues below are copied from the portal's
   :root so the two read as one family.
   ========================================================================= */

:root {
  /* Palette */
  --ink: #13253a;
  --ink-soft: #33465b;
  --muted: #5c6c7d;
  --brand: #0f5d78;
  --brand-strong: #08394b;
  --brand-deep: #062733;
  --brand-tint: #e7f1f5;
  --accent: #c08a2b;
  --accent-strong: #a86f1a;
  --accent-soft: #fff1d8;
  --success: #177245;
  --danger: #a3302f;

  /* Surfaces */
  --page: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f4f8fb;
  --surface-sunken: #eef3f7;
  --border: #d9e3ea;
  --border-soft: #e8eef3;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(19, 37, 58, 0.06);
  --shadow: 0 12px 32px rgba(8, 57, 75, 0.07);
  --shadow-lg: 0 26px 60px rgba(8, 57, 75, 0.13);

  /* Geometry */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1140px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(3rem, 7vw, 5.5rem);

  /* Type scale */
  --text-xs: 0.8125rem;
  --text-sm: 0.9125rem;
  --text-base: 1.0325rem;
  --text-lg: clamp(1.075rem, 0.98rem + 0.45vw, 1.2rem);
  --h3: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  --h2: clamp(1.55rem, 1.2rem + 1.6vw, 2.25rem);
  --h1: clamp(2rem, 1.45rem + 2.6vw, 3.1rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  /* Nothing on this site may push the viewport sideways on a phone. */
  overflow-x: hidden;
  /* Column flex so a short page still puts the footer at the bottom of the viewport. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main,
.staff-main,
.auth-shell {
  flex: 1 0 auto;
}

h1,
h2,
h3 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0 0 0.6rem;
  color: var(--ink);
}

h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }

p {
  margin: 0 0 1rem;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--brand-strong);
}

img {
  max-width: 100%;
  height: auto;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
}

code,
.mono {
  font-family: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-strong);
  color: #fff;
  padding: 0.7rem 1rem;
  z-index: 20;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Layout primitives ---------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container.narrow {
  max-width: 760px;
}

.section {
  padding-block: var(--section-y);
}

.section-alt {
  background: var(--surface-alt);
  border-block: 1px solid var(--border-soft);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.section-head p:last-child {
  margin-bottom: 0;
}

.grid {
  display: grid;
  gap: clamp(1rem, 2.4vw, 1.6rem);
  grid-template-columns: 1fr;
}

.eyebrow {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 0.7rem;
}

.lede {
  font-size: var(--text-lg);
  color: var(--ink-soft);
}

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

.fine-print {
  font-size: var(--text-sm);
  color: var(--muted);
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

/* ---------- Buttons --------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-strong);
  border-color: var(--brand-strong);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--surface-alt);
  border-color: var(--brand);
  color: var(--brand-strong);
}

.btn-light {
  background: #fff;
  border-color: #fff;
  color: var(--brand-strong);
}

.btn-light:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: var(--brand-strong);
}

.btn-sm {
  padding: 0.48rem 1rem;
  font-size: var(--text-sm);
}

.btn-lg {
  padding: 0.9rem 1.8rem;
}

.btn-block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ---------- Public header and footer ---------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 0.85rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-strong);
  text-decoration: none;
}

.wordmark img {
  border-radius: 8px;
}

.wordmark-light {
  color: #fff;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.35rem;
}

.site-nav a {
  color: var(--ink-soft);
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--brand);
}

.site-nav a.active:not(.btn) {
  color: var(--brand-strong);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.site-nav a.btn {
  color: #fff;
}

.site-footer {
  background: var(--brand-deep);
  color: rgba(238, 245, 249, 0.82);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: 1.5rem;
  margin-top: auto;
}

.site-footer h2 {
  color: #fff;
  font-size: var(--text-sm);
  font-family: "DM Sans", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.site-footer a {
  color: rgba(238, 245, 249, 0.82);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

.footer-brand p {
  margin: 0.6rem 0 0;
  font-size: var(--text-sm);
}

.footer-note {
  color: rgba(238, 245, 249, 0.6);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: var(--text-sm);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--text-xs);
  color: rgba(238, 245, 249, 0.6);
}

.footer-legal p {
  margin: 0;
}

/* ---------- Hero ------------------------------------------------------ */

.hero {
  background:
    radial-gradient(circle at 12% 0%, rgba(192, 138, 43, 0.12), transparent 24rem),
    radial-gradient(circle at 88% 12%, rgba(15, 93, 120, 0.16), transparent 26rem),
    linear-gradient(180deg, #ffffff 0%, var(--surface-sunken) 100%);
  border-bottom: 1px solid var(--border-soft);
  padding-block: clamp(3rem, 8vw, 6rem);
}

.hero-inner {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: center;
}

.hero-copy h1 {
  margin-bottom: 1rem;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: var(--text-sm);
  color: var(--muted);
}

.hero-points li {
  position: relative;
  padding-left: 1.2rem;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

.hero-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.4rem;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--muted);
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-soft);
}

.panel-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.panel-list {
  list-style: none;
  padding: 0;
  margin: 0.9rem 0;
}

.panel-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0;
  color: var(--muted);
}

.panel-list li::before {
  content: "";
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex: none;
}

.panel-list li.is-done {
  color: var(--ink);
}

.panel-list li.is-done::before {
  background: var(--success);
  border-color: var(--success);
}

.panel-list li.is-active {
  color: var(--brand-strong);
  font-weight: 600;
}

.panel-list li.is-active::before {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 3px var(--brand-tint);
}

.panel-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border-soft);
  font-size: var(--text-sm);
  color: var(--muted);
}

.panel-note {
  margin: 0.75rem 0 0;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  opacity: 0.7;
}

/* ---------- Cards, features, steps ------------------------------------ */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

.card > :last-child {
  margin-bottom: 0;
}

.card h2,
.card h3 {
  margin-bottom: 0.55rem;
}

.detail-grid .card h2 {
  font-size: var(--h3);
}

.feature-strip .feature {
  padding: 1.1rem 0 1.1rem 1.1rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: 1fr;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-top: 3.2rem;
}

.step-number {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.steps p {
  color: var(--ink-soft);
  margin-bottom: 0;
}

.tick-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.tick-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.45rem;
}

.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.65rem;
  height: 0.35rem;
  border-left: 2px solid var(--accent-strong);
  border-bottom: 2px solid var(--accent-strong);
  transform: rotate(-45deg);
}

.prose h2 {
  margin-top: 2.25rem;
}

.prose h2:first-child {
  margin-top: 0;
}

/* ---------- Page head, security bar, CTA ------------------------------ */

.page-head {
  background: linear-gradient(180deg, var(--surface-alt) 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-soft);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.page-head p:last-child {
  margin-bottom: 0;
}

.security-bar {
  background: var(--brand-strong);
  color: #fff;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}

.security-bar h2 {
  color: #fff;
}

.chip-row {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.chip-row li {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  font-size: var(--text-sm);
}

.cta-band {
  background: var(--accent-soft);
  border-top: 1px solid #f0dcb4;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.cta-inner h2 {
  margin-bottom: 0.35rem;
}

.cta-inner p {
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- Pricing --------------------------------------------------- */

.price-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.4rem, 3vw, 2rem);
}

.price-card.is-featured {
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

.price-flag {
  display: inline-block;
  align-self: flex-start;
  background: var(--brand-tint);
  color: var(--brand-strong);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.price-note {
  color: var(--muted);
  font-size: var(--text-sm);
}

.price-card .tick-list {
  flex: 1;
  margin-bottom: 1.5rem;
}

.price-card .btn {
  align-self: flex-start;
}

.included {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--surface-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
}

/* ---------- Forms ----------------------------------------------------- */

.form-card .field:first-of-type {
  margin-top: 0;
}

.field {
  margin-bottom: 1.15rem;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: var(--text-sm);
  margin-bottom: 0.35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: var(--text-sm);
}

.field textarea {
  resize: vertical;
  min-height: 6rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  outline: 2px solid rgba(15, 93, 120, 0.18);
  outline-offset: 0;
}

.field-row {
  display: grid;
  gap: 0 1rem;
  grid-template-columns: 1fr;
}

.hint {
  margin: 0.35rem 0 0;
  font-size: var(--text-xs);
  color: var(--muted);
}

.field-error {
  margin: 0.35rem 0 0;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--danger);
}

/* The honeypot must be invisible to people but still submitted by a bot that
   reads the DOM, so it is moved off-screen rather than display:none. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  margin-bottom: 1.25rem;
  font-size: var(--text-sm);
  border: 1px solid transparent;
}

.alert-ok {
  background: #e9f5ee;
  border-color: #bcdcc8;
  color: #12603a;
}

.alert-error {
  background: #fbecec;
  border-color: #efc9c8;
  color: var(--danger);
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  color: var(--muted);
}

.toggle input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--brand);
}

/* ---------- Owner sign-in -------------------------------------------- */

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background:
    radial-gradient(circle at 20% 10%, rgba(192, 138, 43, 0.14), transparent 22rem),
    linear-gradient(180deg, var(--brand-deep) 0%, #0b1c26 100%);
}

.auth-card {
  width: min(26rem, 100%);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.auth-wordmark {
  margin-bottom: 1.5rem;
}

.auth-card h1 {
  font-size: 1.6rem;
}

/* ---------- Staff control plane -------------------------------------- */

.staff-bar {
  background: var(--brand-deep);
  color: #eef5f9;
}

.staff-bar-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0.7rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.5rem;
}

.staff-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}

.staff-brand img {
  border-radius: 6px;
}

.staff-tag {
  font-family: "DM Sans", sans-serif;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(238, 245, 249, 0.6);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 0.6rem;
}

.staff-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  margin-right: auto;
  font-size: var(--text-sm);
}

.staff-nav a {
  color: rgba(238, 245, 249, 0.78);
  text-decoration: none;
  padding: 0.2rem 0;
}

.staff-nav a:hover {
  color: #fff;
}

.staff-nav a.active {
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--accent);
}

.staff-identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: var(--text-sm);
}

.staff-user {
  color: rgba(238, 245, 249, 0.72);
}

.staff-identity .btn-ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: #eef5f9;
}

.staff-identity .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.staff-main {
  background: var(--surface-sunken);
  min-height: calc(100vh - 3.5rem);
  padding-block: clamp(1.5rem, 4vw, 2.5rem);
}

.page-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.5rem;
}

.page-title h1 {
  margin: 0;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
}

.page-title p {
  margin: 0.25rem 0 0;
  font-size: var(--text-sm);
}

.stat-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  margin-bottom: 1.5rem;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.stat-value {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  color: var(--brand-strong);
}

.stat-label {
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.staff-columns {
  align-items: start;
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.card-head h2 {
  margin: 0;
  font-size: var(--h3);
}

.card-head a {
  font-size: var(--text-sm);
}

.record-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.record-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: var(--text-sm);
}

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

.record-list .mono {
  color: var(--muted);
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--surface-sunken);
  color: var(--muted);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.badge-draft {
  background: var(--surface-sunken);
  color: var(--muted);
}

.badge-provisioned {
  background: var(--accent-soft);
  border-color: #eed6a8;
  color: var(--accent-strong);
}

.badge-live {
  background: #e9f5ee;
  border-color: #bcdcc8;
  color: var(--success);
}

.badge-suspended {
  background: #fbecec;
  border-color: #efc9c8;
  color: var(--danger);
}

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

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  min-width: 44rem;
}

.table th,
.table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-soft);
  white-space: nowrap;
}

.table th {
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-alt);
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table .num {
  text-align: right;
}

.empty {
  text-align: center;
  padding-block: clamp(2rem, 5vw, 3rem);
}

.empty .btn {
  margin-top: 0.75rem;
}

.readonly-block {
  background: var(--surface-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.4rem;
}

.readonly-block h2 {
  font-size: var(--text-xs);
  font-family: "DM Sans", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.kv {
  margin: 0;
  display: grid;
  gap: 0.6rem 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

.kv div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.kv dt {
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.kv dd {
  margin: 0;
  font-weight: 500;
}

.deploy-card {
  margin-bottom: 1.4rem;
  border-color: var(--brand);
}

.command {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  background: var(--brand-deep);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  margin-bottom: 1.25rem;
}

.command code {
  flex: 1 1 20rem;
  min-width: 0;
  color: #e6f2f7;
  overflow-x: auto;
  white-space: pre;
  /* The command is long; it scrolls inside its own box rather than widening the page. */
  padding-bottom: 0.15rem;
}

.checklist {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

.checklist li {
  margin-bottom: 0.4rem;
}

.enquiry-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.enquiry.is-handled {
  opacity: 0.65;
}

.enquiry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  margin-bottom: 0.75rem;
}

.enquiry-head h2 {
  margin: 0;
  font-size: var(--h3);
}

.enquiry-head p {
  margin: 0.2rem 0 0;
  font-size: var(--text-sm);
}

.enquiry-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--text-sm);
}

.enquiry-message {
  margin: 0;
  white-space: pre-wrap;
  color: var(--ink-soft);
  border-left: 3px solid var(--border);
  padding-left: 0.9rem;
}

/* ---------- Responsive steps ----------------------------------------- */

@media (min-width: 40rem) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .columns {
    columns: 2;
    column-gap: 2rem;
  }

  .columns li {
    break-inside: avoid;
  }
}

@media (min-width: 62rem) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .detail-grid .card.wide {
    grid-column: 1 / -1;
  }
}

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

  * {
    transition-duration: 0.01ms !important;
  }
}
