/* Harmonia Legal — public home and sign-in theme.
   Palette and interactive variants are intentionally shared across both pages. */
:root {
  color-scheme: light;
  --home-navy: #061725;
  --home-panel: #0b2235;
  --home-gold: #d6ad62;
  --home-ink: #000;
  --home-text: #f1ede4;
  --home-muted: #b7c3cc;
  --home-line: rgba(214, 173, 98, .23);
  --home-line-soft: rgba(214, 173, 98, .13);
  --home-width: 1200px;
  --home-header: 92px;
}
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--home-header) + 20px); }
.public-site,
.public-site *,
.public-site *::before,
.public-site *::after { box-sizing: border-box; }
body.public-site {
  margin: 0;
  background: var(--home-navy);
  color: var(--home-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.public-site h1,
.public-site h2,
.public-site h3 {
  margin: 0;
  color: var(--home-text);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.public-site p { margin: 0; }
.public-site a {
  color:var(--home-accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.public-site button,
.public-site input,
.public-site select,
.public-site textarea { font: inherit; }
.public-site button { -webkit-tap-highlight-color: transparent; }
.public-site img { display: block; max-width: 100%; }
.public-site a,
.public-site button,
.public-site summary { touch-action: manipulation; }
.public-site :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 1px solid var(--home-gold);
  outline-offset: 3px;
}
.public-site :is(main, section, h1, h2, h3)[tabindex="-1"]:focus { outline: none; }
.public-site ::selection { background: var(--home-gold); color: var(--home-ink); }
.public-site .skip-link {
  position: fixed;
  z-index: 300;
  top: 12px;
  left: 16px;
  min-height: 44px;
  padding: 10px 16px;
  transform: translateY(-180%);
  background: var(--home-gold);
  color: var(--home-ink);
  font-weight: 650;
}
.public-site .skip-link:focus { transform: translateY(0); }

/* Header */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--home-header);
  background: var(--home-navy);
  border-bottom: 1px solid var(--home-line);
}
.header-inner {
  width: min(var(--home-width), calc(100% - 64px));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  color:var(--home-accent-text);
  text-decoration: none;
}
.site-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-type {
  display: block;
  color:var(--home-accent-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: .13em;
  white-space: nowrap;
}
.brand-type > span {
  display: block;
  margin-top: 3px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10px;
  letter-spacing: .38em;
}
.main-nav,
#publicNav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-width: 0;
}
.main-nav a,
#publicNav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--home-text);
  font-size: 13px;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}
.main-nav a::after,
#publicNav a::after {
  position: absolute;
  content: "";
  right: 0;
  bottom: 6px;
  left: 0;
  height: 1px;
  background: var(--home-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .16s ease;
}
.main-nav a:hover,
#publicNav a:hover,
.main-nav a[aria-current],
#publicNav a[aria-current] { color:var(--home-accent-text); }
.main-nav a:hover::after,
#publicNav a:hover::after,
.main-nav a[aria-current]::after,
#publicNav a[aria-current]::after { transform: scaleX(1); }
.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}
.header-actions > .button,
.header-actions > .locale-button { width: 112px; min-width: 112px; height: 48px; min-height: 48px; padding: 0 12px; font-size: 13px; }

/* Exactly two button colour variants. Hover and active retain their colours. */
.button,
.locale-button,
.menu-toggle,
#publicMenu {
  appearance: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-width: 44px;
  min-height: 48px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid var(--home-gold);
  border-radius: 5px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .14s ease;
}
.public-site .button-primary,
.public-site .button-primary:visited,
.public-site .button-primary:hover,
.public-site .button-primary:focus,
.public-site .button-primary:active,
.public-site .button-primary:disabled {
  border-color: #d6ad62;
  background: #d6ad62;
  color: #000;
}
.public-site .button-secondary,
.public-site .button-secondary:visited,
.public-site .button-secondary:hover,
.public-site .button-secondary:focus,
.public-site .button-secondary:active,
.public-site .button-secondary:disabled,
.public-site .locale-button,
.public-site .locale-button:hover,
.public-site .locale-button:focus,
.public-site .locale-button:active,
.public-site .locale-button:disabled,
.public-site .menu-toggle,
.public-site #publicMenu {
  border-color: #d6ad62;
  background: #0b2235;
  color: #d6ad62;
}
.public-site .button > span,
.public-site .locale-button > span { color: inherit; }
.button:not(:disabled):not([aria-disabled="true"]):hover,
.locale-button:not(:disabled):hover {
  transform: none;
  box-shadow: none;
}
.button:not(:disabled):not([aria-disabled="true"]):active,
.locale-button:not(:disabled):active {
  transform: translateY(0);
  box-shadow: none;
}
.button:disabled,
.button[aria-disabled="true"],
.locale-button:disabled {
  cursor: not-allowed;
  opacity: .62;
  transform: none;
  box-shadow: none;
}
.locale-button { font-size: 13px; letter-spacing: .06em; }
.menu-toggle,
#publicMenu { display: none; width: 48px; min-width: 48px; padding: 9px; }
.menu-toggle svg,
#publicMenu svg { width: 24px; height: 24px; color: inherit; }

/* One photographic hero; content surfaces are refined below. */
.home-main { background: var(--home-navy); }
.home-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(550px, calc(100svh - var(--home-header)), 650px);
  height: auto;
  overflow: hidden;
  background: var(--home-panel);
}
.hero-photo,
.home-hero img.hero-photo {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 47%;
}
.hero-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 23, 37, .96) 0%, rgba(6, 23, 37, .87) 36%, rgba(6, 23, 37, .43) 72%, rgba(6, 23, 37, .16) 100%),
              linear-gradient(0deg, rgba(6, 23, 37, .76), transparent 55%);
}
.hero-content {
  width: min(var(--home-width), calc(100% - 64px));
  margin-inline: auto;
  padding-block: 44px;
}
.eyebrow,
.login-kicker,
.example-label {
  color:var(--home-accent-text);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero-content h1 {
  max-width: 800px;
  margin-top: 17px;
  font-size: clamp(38px, 4.3vw, 60px);
  line-height: 1.08;
}
.hero-lead {
  max-width: 680px;
  margin-top: 23px !important;
  color: var(--home-text);
  font-size: 18px;
  line-height: 1.65;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}
.hero-note {
  max-width: 630px;
  margin-top: 18px !important;
  color: var(--home-muted);
  font-size: 12px;
  line-height: 1.6;
}

/* Public narrative sections */
.section-wrap {
  width: min(var(--home-width), calc(100% - 64px));
  margin-inline: auto;
}
.home-section { padding-block: 88px; scroll-margin-top: calc(var(--home-header) + 20px); }
.home-section + .home-section { border-top: 1px solid var(--home-line-soft); }
.section-heading { max-width: 780px; margin-bottom: 34px; }
.section-number {
  display: block;
  margin-bottom: 12px;
  color:var(--home-accent-text);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.section-heading h2,
.access-band h2,
.evidence-copy h2 {
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.18;
}
.section-heading p {
  max-width: 720px;
  margin-top: 17px;
  color: var(--home-muted);
  font-size: 16px;
  line-height: 1.75;
}
.use-case-grid,
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.use-case-card,
.audience-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px;
  border: 1px solid var(--home-line);
  border-radius: 12px;
  background: var(--home-panel);
}
.case-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-height: 40px;
  margin-bottom: 21px;
  color:var(--home-accent-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
}
.case-icon svg { width: 28px; height: 28px; color: inherit; stroke: currentColor; fill: none; }
.case-status {
  display: inline-block;
  max-width: 100%;
  margin-block: 0 18px;
  padding: 6px 9px;
  border: 1px solid var(--home-line);
  border-radius: 4px;
  color:var(--home-accent-text);
  font-size: 11px;
  line-height: 1.5;
}
.use-case-card h3,
.audience-card h3 { min-height: 2.46em; font-size: 26px; line-height: 1.23; }
.use-case-card > p,
.audience-card > p {
  margin-top: 15px;
  color: var(--home-muted);
  font-size: 15px;
  line-height: 1.75;
}
.case-flow { flex: 1; margin: 24px 0 0; padding-top: 22px; border-top: 1px solid var(--home-line); }
.case-flow dt {
  margin-top: 19px;
  color:var(--home-accent-text);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.case-flow dt:first-child { margin-top: 0; }
.case-flow dd { margin: 5px 0 0; color: var(--home-text); font-size: 14px; line-height: 1.7; }
.case-flow > div + div { margin-top: 19px; }
.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.method-step { min-width: 0; padding: 8px 0 8px 22px; border-left: 1px solid var(--home-gold); }
.step-index { display: block; margin-bottom: 17px; color:var(--home-accent-text); font-family: Georgia, serif; font-size: 30px; line-height: 1; }
.method-step h3 { margin-bottom: 12px; font-size: 26px; line-height: 1.2; }
.method-step p { color: var(--home-muted); font-size: 15px; line-height: 1.75; }
.method-footer { max-width: 820px; margin-top: 30px; color: var(--home-muted); font-size: 13px; line-height: 1.75; }
.example-box {
  margin-top: 46px;
  padding: 34px;
  border: 1px solid var(--home-line);
  border-radius: 12px;
  background: var(--home-panel);
}
.example-box h3 { margin-top: 12px; font-size: 30px; line-height: 1.25; }
.example-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 27px; }
.example-cell { min-width: 0; padding: 22px; border: 1px solid var(--home-line-soft); border-radius: 8px; background: var(--home-navy); }
.example-cell > p { color: var(--home-muted); font-size: 13px; }
.example-cell blockquote {
  margin: 13px 0 0;
  padding-left: 17px;
  border-left: 2px solid var(--home-gold);
  color: var(--home-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.5;
}
.example-result { margin-top: 24px; padding-top: 23px; border-top: 1px solid var(--home-line); color: var(--home-text); font-size: 15px; line-height: 1.75; }
.example-result p + p { margin-top: 12px; }
.evidence-chip { display: inline-block; margin-block: 0 12px; padding: 5px 9px; border: 1px solid var(--home-line); border-radius: 4px; color:var(--home-accent-text); font-size: 11px; line-height: 1.5; }
.role-index { display: block; margin-bottom: 22px; color:var(--home-accent-text); font-size: 11px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.audience-card ul { margin: 20px 0 0; padding-left: 19px; color: var(--home-muted); font-size: 14px; line-height: 1.8; }
.audience-card li + li { margin-top: 7px; }
.audience-card li::marker { color:var(--home-accent-text); }
.audience-card a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 18px; font-size: 13px; font-weight: 600; }
.evidence-layout { display: grid; grid-template-columns: 1fr 1.25fr; align-items: start; gap: 64px; }
.evidence-copy p { margin-top: 18px; color: var(--home-muted); font-size: 15px; line-height: 1.8; }
.evidence-list { min-width: 0; border-top: 1px solid var(--home-line); }
.evidence-row { display: grid; grid-template-columns: 152px minmax(0, 1fr); align-items: baseline; gap: 23px; padding-block: 23px; border-bottom: 1px solid var(--home-line); }
.evidence-state { color:var(--home-accent-text); font-family: Georgia, "Times New Roman", serif; font-size: clamp(22px, 2vw, 26px); font-weight: 400; line-height: 1.25; letter-spacing: -.01em; }
.evidence-state.evidence-number { font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 4vw, 52px); font-weight: 400; font-variant-numeric: lining-nums tabular-nums; line-height: 1.12; letter-spacing: -.035em; white-space: nowrap; }
.evidence-description { color: var(--home-muted); font-size: 14px; line-height: 1.8; }
.evidence-description strong { color: var(--home-text); font-weight: 600; }
.access-band { margin-block: 20px 80px; padding: 44px; border: 1px solid var(--home-line); border-radius: 12px; background: var(--home-panel); }
.access-band h2 { max-width: 850px; }
.access-band p { max-width: 790px; margin-top: 19px; color: var(--home-muted); font-size: 16px; line-height: 1.8; }
.access-band .button { margin-top: 24px; margin-right: 12px; }
.site-footer { background: var(--home-navy); border-top: 1px solid var(--home-line); }
.footer-inner { width: min(var(--home-width), calc(100% - 64px)); min-height: 88px; margin-inline: auto; padding-block: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; color: var(--home-muted); font-size: 11px; line-height: 1.7; letter-spacing: .03em; }
.footer-brand { display: grid; gap: 3px; justify-items: start; text-align: left; }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-links .button { width: 140px; min-width: 140px; height: 48px; min-height: 48px; margin: 0; padding: 0 12px; font-size: 12px; font-weight: 550; }
.footer-inner a { display: inline-flex; align-items: center; min-height: 44px; }
details.public-faq { margin-top: 28px; padding-block: 5px; border-top: 1px solid var(--home-line); border-bottom: 1px solid var(--home-line); }
details.public-faq summary { min-height: 44px; padding: 13px 8px 13px 0; color:var(--home-accent-text); font-size: 14px; line-height: 1.6; cursor: pointer; }
details.public-faq summary::marker { color:var(--home-accent-text); }
details.public-faq p { padding: 0 0 17px; color: var(--home-muted); font-size: 13px; line-height: 1.85; }

/* Sign-in */
body.login-site { display: flex; flex-direction: column; min-height: 100dvh; background: var(--home-navy); }
.login-site .site-header { flex: 0 0 var(--home-header); }
.login-main { display: grid; flex: 1 0 auto; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 0; }
.login-visual { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 0; background: var(--home-panel); }
.login-photo,
.login-visual img.login-photo { position: absolute; z-index: -3; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 52% center; }
.login-shade { position: absolute; z-index: -2; inset: 0; background: linear-gradient(0deg, rgba(6, 23, 37, .97) 0%, rgba(6, 23, 37, .81) 29%, rgba(6, 23, 37, .25) 68%, rgba(6, 23, 37, .2) 100%); }
.login-intro { width: 100%; padding: clamp(28px, 4vw, 58px); }
.login-intro h2 { max-width: 570px; margin-top: 16px; font-size: clamp(34px, 3.5vw, 50px); line-height: 1.15; }
.login-intro > p:last-child { max-width: 500px; margin-top: 22px; color: var(--home-text); font-size: 16px; line-height: 1.8; }
.login-panel { display: flex; justify-content: center; align-items: center; min-width: 0; padding: 24px clamp(28px, 4vw, 64px); overflow: visible; background: var(--home-navy); }
.login-card { width: 100%; max-width: 460px; }
.login-kicker { margin-bottom: 10px !important; }
.login-card h1 { font-size: clamp(34px, 3.3vw, 44px); line-height: 1.13; }
.login-lead { margin-top: 12px !important; color: var(--home-muted); font-size: 14px; line-height: 1.6; }
.access-status { display: flex; align-items: flex-start; gap: 11px; margin-top: 16px; padding: 12px 14px; border: 1px solid var(--home-line); border-radius: 6px; background: var(--home-panel); }
.access-status-dot { display: block; flex: 0 0 7px; width: 7px; height: 7px; margin-top: 8px; border-radius: 50%; background: var(--home-gold); }
.access-status strong { display: block; color: var(--home-text); font-size: 13px; font-weight: 600; line-height: 1.65; }
.access-detail { margin-top: 5px !important; color: var(--home-muted); font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }
.passkey-actions { display: grid; gap: 10px; margin-top: 16px; }
/* A normal sign-in field: label above, full-width white input. */
.public-site .form-field { display: grid; gap: 8px; margin-top: 20px; color: var(--home-text); font-size: 14px; }
.public-site .form-field input { width: 100%; height: 48px; padding: 0 14px; color: #0b1520; background: #fff; border: 1px solid #d6ad62; border-radius: 8px; color-scheme: light; }
.public-site .form-field input::placeholder { color: #5b6670; }
.public-site .visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.auth-choice { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; justify-content: stretch; gap: 13px; width: 100%; height: 48px; min-height: 48px; padding: 8px 16px; text-align: left; }
.auth-choice svg { display: block; width: 24px; height: 24px; color: inherit; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.auth-choice svg * { stroke: currentColor; fill: none; }
.auth-choice > span:last-child { justify-self: end; }
.login-method-note { margin-top: 12px !important; color: var(--home-muted); font-size: 12px; line-height: 1.65; }
.auth-feedback { margin-top: 12px !important; padding: 10px 13px; border-left: 1px solid var(--home-gold); background: var(--home-panel); color: var(--home-text); font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.auth-feedback:empty { display: none; }
.login-card > .button { width: 100%; margin-top: 10px; }
.login-followup-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.login-followup-actions:has(> :not([hidden])) { margin-top: 10px; }
.login-followup-actions .button { width: 100%; font-size: 12px; line-height: 1.2; padding: 6px 12px; }
.login-followup-actions #ownerSignIn,
.login-followup-actions #retryAuth { grid-column: 1 / -1; }
.login-card details.public-faq { margin-top: 14px; padding-block: 0; }
.login-card details.public-faq summary { min-height: 44px; padding-block: 10px; font-size: 13px; }
.login-card details.public-faq p { padding-bottom: 12px; }
.back-link { min-height: 44px; }
.login-source { margin-top: 8px !important; color: var(--home-muted); font-size: 11px; line-height: 1.8; }
.login-source a { display: inline-flex; align-items: center; min-height: 44px; }

/* Tablet and mobile navigation */
@media (max-width: 960px) {
  .header-inner { gap: 16px; }
  .site-brand { gap: 11px; }
  .brand-type { font-size: 15px; }
  .main-nav,
  #publicNav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    gap: 0;
    max-height: calc(100svh - var(--home-header));
    overflow-y: auto;
    padding: 16px 32px 24px;
    background: var(--home-navy);
    border-bottom: 1px solid var(--home-gold);
    box-shadow: 0 16px 24px rgba(0, 0, 0, .18);
  }
  .main-nav.is-open,
  #publicNav.is-open,
  .site-header.is-open .main-nav,
  .site-header.is-open #publicNav { display: flex; }
  .main-nav a,
  #publicNav a { min-height: 48px; padding: 12px 3px; font-size: 15px; white-space: normal; }
  .main-nav a::after,
  #publicNav a::after { bottom: 5px; }
  .menu-toggle,
  #publicMenu { display: inline-flex; }
  .home-hero { min-height: 550px; height: auto; }
  .hero-content { padding-block: 50px; }
  .hero-content h1 { max-width: 710px; font-size: clamp(38px, 5.7vw, 54px); }
  .hero-lead { max-width: 640px; font-size: 17px; }
  .hero-shade { background: linear-gradient(90deg, rgba(6, 23, 37, .96), rgba(6, 23, 37, .69) 68%, rgba(6, 23, 37, .48)); }
  .home-section { padding-block: 66px; }
  .use-case-grid,
  .audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .use-case-grid > :last-child:nth-child(odd),
  .audience-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .evidence-layout { grid-template-columns: 1fr; gap: 30px; }
  .evidence-copy { max-width: 750px; }
  .access-band { margin-bottom: 60px; padding: 34px; }
  .login-main { grid-template-columns: 1fr; min-height: 0; }
  .login-visual { min-height: 230px; height: 230px; }
  .login-photo,
  .login-visual img.login-photo { object-position: center 48%; }
  .login-shade { background: linear-gradient(90deg, rgba(6, 23, 37, .94), rgba(6, 23, 37, .64) 68%, rgba(6, 23, 37, .35)); }
  .login-intro { width: min(var(--home-width), calc(100% - 64px)); margin-inline: auto; padding: 25px 0; }
  .login-intro h2 { max-width: 650px; margin-top: 8px; font-size: 34px; }
  .login-intro > p:last-child { max-width: 630px; margin-top: 12px; font-size: 14px; line-height: 1.65; }
  .login-panel { padding: 44px 32px 60px; }
  .login-card { max-width: 520px; }
}
@media (max-width: 640px) {
  :root { --home-header: 76px; }
  .header-inner,
  .hero-content,
  .section-wrap,
  .footer-inner { width: calc(100% - 40px); }
  .header-inner { gap: 10px; }
  .site-brand { gap: 8px; }
  .site-brand img { width: 46px; height: 46px; }
  .brand-type { font-size: 12px; letter-spacing: .1em; }
  .brand-type > span { margin-top: 2px; font-size: 8px; letter-spacing: .28em; }
  .header-actions { gap: 7px; }
  .header-actions > .button,
  .header-actions > .locale-button { width: 82px; min-width: 82px; height: 48px; padding: 0 8px; font-size: 12px; }
  .header-actions > #publicMenu { width: 48px; min-width: 48px; }
  .main-nav,
  #publicNav { padding: 12px 20px 20px; }
  .home-hero { min-height: 550px; }
  .hero-content { padding-block: 38px; }
  .hero-content h1 { margin-top: 15px; font-size: clamp(33px, 8.6vw, 43px); line-height: 1.12; }
  .hero-lead { margin-top: 19px !important; font-size: 16px; line-height: 1.7; }
  .hero-photo,
  .home-hero img.hero-photo { object-position: 64% center; }
  .hero-actions { gap: 10px; margin-top: 24px; }
  .hero-actions .button { flex: 1 1 auto; padding-inline: 15px; }
  .hero-note { font-size: 11px; }
  .eyebrow,
  .login-kicker,
  .example-label { font-size: 10px; letter-spacing: .13em; }
  .home-section { padding-block: 48px; }
  .section-heading { margin-bottom: 26px; }
  .section-heading h2,
  .access-band h2,
  .evidence-copy h2 { font-size: 31px; line-height: 1.2; }
  .section-heading p { margin-top: 14px; font-size: 15px; }
  .use-case-grid,
  .audience-grid,
  .method-grid,
  .example-grid { grid-template-columns: 1fr; }
  .use-case-grid > :last-child:nth-child(odd),
  .audience-grid > :last-child:nth-child(odd) { grid-column: auto; }
  .use-case-card,
  .audience-card { padding: 24px; }
  .use-case-card h3,
  .audience-card h3 { font-size: 25px; }
  .method-grid { gap: 25px; }
  .method-step { padding: 5px 0 5px 20px; }
  .step-index { margin-bottom: 13px; font-size: 27px; }
  .method-step h3 { font-size: 25px; }
  .example-box { margin-top: 33px; padding: 24px; }
  .example-box h3 { font-size: 26px; }
  .example-grid { gap: 14px; margin-top: 22px; }
  .example-cell { padding: 19px; }
  .example-cell blockquote { font-size: 20px; }
  .example-result { font-size: 14px; }
  .evidence-row { grid-template-columns: 1fr; gap: 9px; padding-block: 20px; }
  .access-band { margin-block: 10px 46px; padding: 27px 24px; }
  .access-band p { font-size: 15px; }
  .access-band .button { width: 100%; margin-right: 0; }
  .access-band .button + .button { margin-top: 12px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 8px; padding-block: 20px; }
  .footer-links { width: 100%; gap: 8px; }
  .footer-links .button { flex: 1 1 calc(50% - 8px); min-width: 0; }
  .login-intro { width: calc(100% - 40px); padding-block: 20px; }
  .login-intro h2 { font-size: 30px; line-height: 1.15; }
  .login-intro > p:last-child { max-width: 470px; font-size: 13px; line-height: 1.65; }
  .login-panel { padding: 36px 20px 45px; }
  .login-card h1 { font-size: 38px; }
  .login-lead { margin-top: 17px !important; font-size: 15px; }
  .access-status { margin-top: 23px; padding: 16px; }
  .auth-choice { gap: 12px; height: 48px; min-height: 48px; padding: 8px 14px; font-size: 13px; }
  .login-followup-actions { grid-template-columns: 1fr; }
  .login-method-note { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .public-site *,
  .public-site *::before,
  .public-site *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .button:hover,
  .button:active,
  .locale-button:hover,
  .locale-button:active { transform: none !important; }
}

/* Match the document controls and preserve flow with longer translations. */
#publicMenu {flex-direction:column;gap:4px;}
#publicMenu span {display:block;width:20px;height:2px;background:currentColor;}
.public-site .method-footer {margin-top:24px;}
.use-case-card>.case-status {margin-top:24px;margin-bottom:0;color:var(--home-accent-text);font-size:11px;line-height:1.5;}
.audience-card>.audience-material {margin-top:auto;padding-top:20px;border-top:1px solid var(--home-line);font-size:13px;}
.audience-card>p:not(.audience-material) {margin-bottom:22px;}
.use-case-card>.case-details {margin-top:24px;margin-bottom:0;}
.evidence-copy>.button {margin-top:24px;}
@media(max-width:640px){.brand-type{display:none;}}
@media(max-width:420px){.header-inner{width:calc(100% - 24px);gap:6px;}.header-actions{gap:6px;}}

.decision-section {padding-block:42px 12px;}
.decision-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;}
.decision-card {display:flex;flex-direction:column;padding:26px;border:1px solid var(--home-line);border-radius:8px;background:var(--home-panel);min-width:0;}
.decision-card-stage {display:grid;flex:1;min-width:0;}
.decision-face {grid-area:1 / 1;display:flex;flex-direction:column;min-width:0;transition:opacity .18s ease,transform .18s ease;}
.decision-face[aria-hidden="true"] {visibility:hidden;opacity:0;pointer-events:none;transform:translateY(5px);}
.decision-face[aria-hidden="false"] {visibility:visible;opacity:1;transform:none;}
.decision-card h2,
.decision-card h3 {min-height:2.4em;margin-top:16px;font-size:27px;line-height:1.2;}
.decision-card .decision-number {display:flex;align-items:center;min-height:calc(27px * 2.4);color:var(--home-accent-text);font-size:48px;font-variant-numeric:lining-nums tabular-nums;line-height:1;}
.decision-summary {margin-top:18px!important;font-size:14px;line-height:1.75;color:var(--home-muted);}
.decision-points {margin:18px 0 0;padding:0 0 0 18px;color:var(--home-text);font-size:13px;line-height:1.65;}
.decision-points li+li {margin-top:9px;}
.decision-points li::marker {color:var(--home-accent-text);}
.decision-note {margin-top:16px!important;color:var(--home-muted);font-size:12px;line-height:1.65;}
.decision-link {display:inline-flex;align-items:center;min-height:44px;margin-top:auto;padding-top:12px;font-size:13px;}
.decision-toggle.button {width:100%;margin-top:22px;flex-shrink:0;}

/* Shared tracks keep heading baselines, input/process/output rows and lower
   dividers aligned across cards, including longer Polish translations. */
@supports (grid-template-rows: subgrid) {
  .use-case-card {display:grid;grid-row:span 6;grid-template-rows:subgrid;row-gap:0;}
  .use-case-card h3 {min-height:0;}
  .case-flow {display:grid;grid-row:span 3;grid-template-rows:subgrid;row-gap:0;}
  .audience-card {display:grid;grid-row:span 4;grid-template-rows:subgrid;row-gap:0;}
  .audience-card h3 {min-height:0;}
  .audience-card>.audience-material {margin-top:0;}
}
@media (min-width:961px) and (max-height:760px) {
  .login-site {--home-header:76px;}
  .login-panel {padding:16px 28px;}
  .login-card h1 {font-size:36px;}
  .login-intro {padding:28px;}
  .login-intro h2 {font-size:36px;}
  .login-intro>p:last-child {margin-top:14px;font-size:14px;line-height:1.6;}
  .login-site .footer-inner {min-height:72px;padding-block:12px;}
}
@media(max-width:960px){.decision-grid{grid-template-columns:1fr;gap:16px;}.decision-card{padding:24px;}.decision-card h2,.decision-card h3{min-height:0;font-size:28px;}.decision-card .decision-number{min-height:0;font-size:48px;}.decision-card-stage{min-height:280px;}}
@media(max-width:640px){.decision-card{padding:24px;}.decision-card-stage{min-height:0;}.use-case-card h3,.audience-card h3{min-height:0;}.evidence-state.evidence-number{font-size:46px;}}
/* Header: the logo alone carries the name (its artwork already reads "Harmonia Legal Platform");
   the text stays for screen readers. Compact header buttons. */
.site-brand .brand-type { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.site-brand img { width: 72px; height: 72px; }
.header-actions > .button,
.header-actions > .locale-button { width: auto; min-width: 84px; height: 40px; min-height: 40px; padding: 0 14px; font-size: 12px; }
@media (max-width: 640px) {
  .site-brand img { width: 56px; height: 56px; }
  .header-actions > .button,
  .header-actions > .locale-button { min-width: 64px; height: 40px; min-height: 40px; padding: 0 10px; font-size: 11px; }
}

/* Framed text keeps the same inner space on every side. */
details.public-faq p.case-status,.use-case-card .case-status{display:block;padding:12px 14px;margin:6px 0 16px;line-height:1.6}

/* Login buttons: equal widths and heights in every row; a lone button spans the row. */
.login-pair-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.login-pair-actions .button, .login-followup-actions .button { width: 100%; min-height: 52px; margin: 0; font-size: 13px; font-weight: 600; line-height: 1.2; padding: 8px 14px; justify-content: center; text-align: center; }
.login-pair-actions > :only-child, .login-pair-actions > :not([hidden]):first-child:has(+ [hidden]),
.login-followup-actions > :not([hidden]):last-child:nth-child(odd of :not([hidden])) { grid-column: 1 / -1; }
@media (max-width: 640px) { .login-pair-actions { grid-template-columns: 1fr; } }
/* Footer buttons follow the same rules as the buttons above them: one height, one gap, one type size. */
.footer-links { gap: 10px; }
.footer-links .button { width: 150px; min-width: 150px; height: 52px; min-height: 52px; font-size: 13px; font-weight: 600; line-height: 1.2; justify-content: center; text-align: center; }
@media (max-width: 640px) { .footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .footer-links .button { width: 100%; min-width: 0; } }
/* One button size for header and footer. On the sign-in page the four footer buttons span exactly the
   width of the sign-in card ("Check again") and line up under it. */
.header-actions > .button, .header-actions > .locale-button, .footer-links .button { width: 140px; min-width: 140px; height: 46px; min-height: 46px; padding: 0 12px; font-size: 13px; font-weight: 600; line-height: 1.2; justify-content: center; text-align: center; }
.footer-links { flex-wrap: nowrap; gap: 10px; }
.login-followup-actions .button { height: 46px; min-height: 46px; padding: 0 10px; }
.login-site .footer-inner { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
.login-site .footer-brand { justify-self: start; text-align: left; padding-left: clamp(28px, 4vw, 64px); }
.login-site .footer-links { justify-self: center; width: min(460px, calc(100% - 2 * clamp(28px, 4vw, 64px))); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.login-site .footer-links .button, .login-site .header-actions > .button, .login-site .header-actions > .locale-button { width: 100%; min-width: 0; padding: 0 4px; font-size: 12px; letter-spacing: 0; white-space: nowrap; }
.login-site .header-actions > .button, .login-site .header-actions > .locale-button { width: 107px; min-width: 107px; }
@media (max-width: 960px) {
  .login-site .footer-inner { width: calc(100% - 64px); display: flex; flex-direction: column; align-items: flex-start; }
  .login-site .footer-brand { padding-left: 0; }
  .login-site .footer-links { width: min(520px, 100%); }
}
@media (max-width: 640px) {
  .header-actions > .button, .header-actions > .locale-button, .login-site .header-actions > .button, .login-site .header-actions > .locale-button { width: 82px; min-width: 82px; height: 46px; min-height: 46px; padding: 0 8px; font-size: 12px; }
  .footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-links .button { width: 100%; min-width: 0; height: 46px; min-height: 46px; font-size: 12px; }
  .login-site .footer-inner { width: calc(100% - 40px); }
  .login-site .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 641px) { .login-site .footer-links .button { font-size: 11.5px; padding: 0 3px; } .login-site .footer-links { gap: 8px; } }
/* The sign-in photo keeps its first size (passkeys.js); fade its lower edge so a taller form never shows a seam. */
.login-visual img.login-photo { -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent); mask-image: linear-gradient(180deg, #000 72%, transparent); }
/* Sign-in: the photo gets the room and keeps the whole "Harmonia Legal Platform" sign in view; the form
   panel is only as wide as the card plus a margin, and the footer buttons follow the same column. */
@media (min-width: 961px) {
  .login-main { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); }
  .login-panel { padding-inline: 50px; }
  .login-site .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); }
  .login-site .footer-links { width: min(460px, calc(100% - 100px)); }
}
.login-visual img.login-photo { object-position: 96% center; }
@media (max-width: 960px) { .login-visual img.login-photo { object-position: 90% 45%; } }
@media (min-width: 961px) { .login-visual.is-locked { align-self: start; } }
/* Wide screens: the photo is sized to the window (passkeys.js), so its lower edge is a clean line, not a fade. */
@media (min-width: 961px) { .login-visual img.login-photo { -webkit-mask-image: none; mask-image: none; } }
/* Wide screens: the form starts the same 50px below the header as its side margins, never closer. */
@media (min-width: 961px) { .login-panel { padding-top: 50px; padding-bottom: 50px; align-items: flex-start; } }
/* The white strip under the photo (its height is set in passkeys.js) shows the panel colour. */
@media (min-width: 961px) { .login-main { background: var(--home-navy); } }
:root[data-theme=light] .login-main { background: #fff; }

/* Sign-in, invitation and access request: calmer colours, one primary action, evenly laid out buttons. */
.login-site .login-card { display: flex; flex-direction: column; }
.login-site .login-card .button { min-height: 50px; border-radius: 10px; font-size: 14px; font-weight: 600; letter-spacing: .01em; }
.login-site .login-card .button-secondary { background: transparent; color: var(--home-text); border: 1px solid var(--home-line); }
.login-site .login-card .button-secondary:hover { border-color: var(--home-gold); color: var(--home-gold); }
.login-site .login-card .button-primary { background: var(--home-gold); color: #10151c; border: 1px solid var(--home-gold); }
.login-site .login-card .button-primary:hover { filter: brightness(1.06); }
.login-site .auth-choice { height: 54px; min-height: 54px; padding: 8px 18px; border-radius: 10px; }
.login-site .login-followup-actions .button { font-size: 13px; min-height: 46px; }
.invite-flow { display: flex; flex-direction: column; gap: 14px; }
.invite-flow h1 { outline: none; margin: 0; }
.invite-flow .login-lead { margin-top: 0 !important; }
.invite-flow .passkey-actions { margin-top: 2px; }
.invite-actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin-top: 4px; }
.invite-actions .button { width: 100%; margin: 0; justify-content: center; }
.invite-actions > :only-child { grid-column: 1 / -1; }
.auth-steps { display: flex; gap: 6px; margin: 0 0 4px; padding: 0; list-style: none; counter-reset: step; }
.auth-steps li { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--home-muted); counter-increment: step; }
.auth-steps li::before { content: ""; height: 3px; border-radius: 3px; background: var(--home-line); }
.auth-steps li.done::before, .auth-steps li.now::before { background: var(--home-gold); }
.auth-steps li.now { color: var(--home-text); font-weight: 600; }
.invite-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; padding: 12px 14px; border: 1px solid var(--home-line); border-radius: 10px; background: var(--home-panel); font-size: 13px; }
.invite-meta dt { color: var(--home-muted); }
.invite-meta dd { margin: 0; color: var(--home-text); font-weight: 600; text-align: right; }
.login-request { margin-top: 16px !important; color: var(--home-muted); font-size: 13px; text-align: center; }
.login-text-button { background: none; border: 0; padding: 4px 2px; min-height: 36px; color: var(--home-gold); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.request-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.request-form .full { grid-column: 1 / -1; }
.request-form label { display: grid; gap: 6px; color: var(--home-text); font-size: 13px; }
.request-form :is(input, select, textarea) { width: 100%; min-height: 46px; padding: 10px 12px; color: #0b1520; background: #fff; border: 1px solid #c9b48a; border-radius: 9px; font: 14px/1.4 inherit; color-scheme: light; }
.request-form textarea { min-height: 96px; resize: vertical; }
.request-form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--home-muted); }
.request-form .consent input { width: 18px; min-height: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--home-gold); }
.request-form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
:root[data-theme=light] .login-site .login-card .button-secondary { color: #0b1f3a; border-color: #c9b48a; }
:root[data-theme=light] .login-site .login-card .button-secondary:hover { color: #0b1f3a; border-color: #8a6a2c; background: #faf6ee; }
:root[data-theme=light] .login-site :is(.invite-meta) { background: #f7f5f0; border-color: #ddd6c9; }
:root[data-theme=light] .login-site :is(.invite-meta dd, .auth-steps li.now, .request-form label) { color: #0b1f3a; }
:root[data-theme=light] .login-site .login-text-button { color: #7a5a1e; }
:root[data-theme=light] .login-site .auth-steps li::before { background: #e4dccb; }
:root[data-theme=light] .login-site :is(.auth-steps li.done, .auth-steps li.now)::before { background: #c79a46; }
@media (max-width: 560px) { .invite-actions, .request-form { grid-template-columns: 1fr; } .invite-actions .button-primary { order: -1; } }

/* November 2026 news: four items in two even columns, one column on phones */
#news .section-lead { margin: 14px 0 22px; max-width: 760px; color: var(--home-muted); }
#news .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#news .news-grid .audience-card { min-height: 0; }
@media (max-width: 760px) { #news .news-grid { grid-template-columns: 1fr; } }
/* Login fits the window: hidden follow-up buttons take no space, and short desktop windows get a tighter card. */
.login-site .login-card [hidden], .login-site .login-card details[hidden] { display: none !important; }
.login-site .login-followup-actions:not(:has(> :not([hidden]))) { display: none; }
@media (min-width: 961px) and (max-height: 900px) {
  .login-site .login-panel { padding-top: 28px; padding-bottom: 20px; }
  .login-site .login-card h1 { font-size: clamp(34px, 3.2vw, 42px); }
  .login-site .login-lead { margin-top: 10px; }
  .login-site .access-status { padding-block: 10px; }
  .login-site .login-method-note, .login-site .login-source { margin-top: 8px; }
}
@media (min-width: 961px) and (max-height: 800px) {
  .login-site .login-panel { padding-top: 18px; padding-bottom: 14px; }
  .login-site .login-card .public-faq { margin-top: 14px; }
  .login-site .auth-choice { height: 50px; min-height: 50px; }
}
/* Desktop sign-in never scrolls: header, form and footer share exactly one window height.
   The photo fills its column (no JS height); the form column scrolls on its own only if the window is tiny. */
@media (min-width: 961px) {
  body.login-site { height: 100dvh; min-height: 0; overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
  body.login-site .login-main { min-height: 0; height: 100%; flex: none; }
  body.login-site .login-visual, body.login-site .login-visual.is-locked { height: auto !important; margin-bottom: 0 !important; align-self: stretch !important; }
  body.login-site .login-panel { min-height: 0; overflow-y: auto; align-items: center; padding-top: clamp(14px, 3vh, 40px); padding-bottom: clamp(14px, 3vh, 40px); }
  body.login-site .site-footer .footer-inner { min-height: 0; padding-block: 12px; }
}
@media (min-width: 961px) and (max-height: 820px) {
  body.login-site .login-lead { display: none; }
  body.login-site .login-card .public-faq { margin-top: 10px; }
}
/* Phones: a short photo strip so the form starts within the first screen. */
@media (max-width: 960px) {
  body.login-site .login-visual { min-height: 120px; height: 120px !important; }
  body.login-site .login-visual .login-intro { display: none; }
}
