.public-home {
  width: 100%;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  color: var(--sek-ink);
  background: var(--sek-paper);
}

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

.public-home button {
  font: inherit;
}

.public-home a {
  color: inherit;
  text-decoration: none;
}

.public-home-section-inner,
.public-home-hero-inner {
  width: min(calc(100% - 84px), 1280px);
  margin: 0 auto;
}

.public-home-header {
  position: relative;
  z-index: 40;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 max(42px, calc((100vw - 1440px) / 2 + 42px));
  color: #ede7d8;
  background: var(--sek-ink);
  border-bottom: 1px solid rgba(237, 231, 216, 0.16);
}

.public-home-brand {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.public-home-brand-name,
.public-home-footer-name {
  color: #ffffff;
  font-family: "Old Standard TT", Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.public-home-brand-name span,
.public-home-footer-name span,
.public-home-hero-copy h1 span {
  color: var(--sek-brand-red);
}

.public-home-brand-note {
  color: #8b877f;
  font-size: 11px;
  white-space: nowrap;
}

.public-home-nav,
.public-home-actions {
  display: flex;
  align-items: center;
}

.public-home-nav {
  gap: 28px;
  margin-left: auto;
  color: #bbb7af;
  font-size: 13px;
}

.public-home-nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
}

.public-home-nav a:hover {
  color: #ffffff;
}

.public-home-actions {
  gap: 9px;
  padding-left: 24px;
  border-left: 1px solid rgba(237, 231, 216, 0.18);
}

.public-home-login,
.public-home-start,
.public-home-primary,
.public-home-secondary {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(237, 231, 216, 0.28);
  border-radius: 3px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.public-home-login {
  color: #ffffff;
  background: transparent;
}

.public-home-login:hover,
.public-home-secondary:hover {
  background: rgba(237, 231, 216, 0.08);
}

.public-home-start,
.public-home-primary {
  color: var(--sek-ink);
  background: #d8c79a;
  border-color: #d8c79a;
}

.public-home-start:hover,
.public-home-primary:hover {
  background: #e3d4ab;
  border-color: #e3d4ab;
}

.public-home-main {
  display: block;
}

.testing-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  color: var(--sek-ink);
  background: #fbf7ec;
  border: 1px solid #cfc3a6;
  border-left: 4px solid var(--sek-burgundy);
  border-radius: 3px;
  box-shadow: 0 8px 22px rgba(37, 31, 24, 0.06);
}

.testing-notice--public,
.testing-notice--pricing {
  width: min(calc(100% - 84px), 1280px);
  margin: 18px auto;
}

.testing-notice--workspace {
  margin: 18px 0 0;
}

.testing-notice-badge {
  display: grid;
  place-items: center;
  min-width: 52px;
  min-height: 30px;
  padding: 4px 9px;
  color: #fffdf6;
  background: var(--sek-burgundy);
  border-radius: 2px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.testing-notice-copy {
  display: grid;
  gap: 2px;
}

.testing-notice-copy strong {
  color: var(--sek-ink);
  font-size: 13px;
}

.testing-notice-copy p {
  margin: 0;
  color: #625b50;
  font-size: 12px;
  line-height: 1.45;
}

.testing-notice-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  color: var(--sek-burgundy) !important;
  border: 1px solid rgba(123, 34, 48, 0.42);
  border-radius: 3px;
  font-size: 11.5px;
  font-weight: 750;
  white-space: nowrap;
}

.testing-notice-action:hover {
  color: #fffdf8 !important;
  background: var(--sek-burgundy);
  border-color: var(--sek-burgundy);
}

.public-home-hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #f1ede2;
  background: #17140f;
  border-bottom: 6px double var(--sek-gold);
}

.public-home-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.25;
  pointer-events: none;
}

.public-scene-document {
  position: absolute;
  top: 7%;
  right: 4%;
  bottom: 82px;
  left: 34%;
  padding: 58px 8% 42px;
  color: #2f2a23;
  background: #e7e2d5;
  border: 1px solid #8b8272;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  transform: rotate(-1deg);
}

.public-scene-document::before {
  content: "ПРОТОКОЛ СУДЕБНОГО ЗАСЕДАНИЯ";
  display: block;
  margin-bottom: 29px;
  font-family: "Old Standard TT", Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.public-scene-line {
  height: 9px;
  margin-top: 13px;
  background: #90887a;
}

.public-scene-line.short {
  width: 64%;
}

.public-scene-line.medium {
  width: 82%;
}

.public-scene-line.audio {
  background: #a28643;
}

.public-scene-line.case {
  background: #54705a;
}

.public-scene-note {
  position: absolute;
  top: 39%;
  right: 3%;
  width: 180px;
  padding: 12px;
  color: #ede7d8;
  background: var(--sek-ink);
  border-left: 3px solid #d8c79a;
  font-size: 10px;
  line-height: 1.4;
}

.public-scene-player {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 7%;
  background: #0e0c09;
  border-top: 1px solid #4c4438;
}

.public-scene-player span {
  width: 5px;
  height: 24px;
  flex: 1;
  max-width: 14px;
  background: #847b6c;
}

.public-scene-player span:nth-child(-n + 9) {
  background: #d8c79a;
}

.public-scene-player span:nth-child(3n + 1) {
  height: 42px;
}

.public-scene-player span:nth-child(4n + 2) {
  height: 52px;
}

.public-scene-player span:nth-child(5n) {
  height: 17px;
}

.public-home-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 410px);
  gap: clamp(44px, 7vw, 100px);
  align-items: center;
  padding: 66px 0 76px;
}

.public-home-hero-copy {
  min-width: 0;
}

.public-home-eyebrow,
.public-home-kicker,
.auth-kicker {
  color: #d8c79a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.public-home-hero-copy h1 {
  max-width: 760px;
  margin: 14px 0 0;
  color: #ffffff;
  font-family: "Old Standard TT", Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 7vw, 86px);
  font-weight: 700;
  line-height: 0.98;
  text-transform: uppercase;
}

.public-home-hero-copy > p {
  max-width: 640px;
  margin: 25px 0 0;
  color: #d0c8b8;
  font-family: "Old Standard TT", Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.52;
}

.public-home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.public-home-primary,
.public-home-secondary {
  min-height: 46px;
  padding: 0 20px;
}

.public-home-secondary {
  color: #ede7d8;
  background: rgba(23, 20, 15, 0.72);
  border-color: #d8c79a;
}

.public-home-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 27px;
  color: #aaa294;
  font-size: 11.5px;
}

.public-home-proof span::before {
  content: "✓";
  margin-right: 7px;
  color: #d8c79a;
}

.public-home .landing-auth-card {
  position: relative;
  width: 100%;
  align-self: center;
  padding: 31px 29px 27px;
  color: var(--sek-ink);
  background:
    linear-gradient(rgba(123, 34, 48, 0.025) 1px, transparent 1px),
    rgba(250, 248, 241, 0.985);
  background-size: 100% 26px;
  border: 1px solid #7f7565;
  border-radius: 1px;
  box-shadow: 0 26px 68px rgba(0, 0, 0, 0.32);
}

.public-home .landing-auth-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--sek-burgundy);
  content: "";
}

.public-home .landing-auth-card::after {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(127, 117, 101, 0.32);
  content: "";
  pointer-events: none;
}

.public-home .auth-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 17px;
  padding-bottom: 17px;
  border-bottom: 1px solid #bcb2a1;
  text-align: left;
}

.public-home .auth-seal {
  display: grid;
  place-items: center;
  width: 52px;
  height: 58px;
  flex: 0 0 52px;
  color: #f8f3e8;
  background: var(--sek-burgundy);
  border: 1px solid #591620;
  box-shadow: inset 0 0 0 3px rgba(255, 254, 250, 0.12);
}

.public-home .auth-seal span {
  align-self: end;
  font-family: "Old Standard TT", Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1;
}

.public-home .auth-seal small {
  align-self: start;
  margin-top: 2px;
  color: #d9c8bd;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.public-home .auth-kicker {
  color: var(--sek-burgundy);
  font-size: 9px;
}

.public-home .auth-head h2 {
  margin: 3px 0 0;
  font-family: "Old Standard TT", Georgia, "Times New Roman", serif;
  font-size: 23px;
  line-height: 1.08;
}

.public-home #authSubtitle {
  margin-top: 3px;
  color: #6b6357;
  font-size: 12px;
}

.public-home .auth-ledger-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: #7d7467;
  font-family: "PT Mono", Consolas, monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.public-home .auth-form {
  gap: 12px;
}

.public-home .field > span {
  color: #5e584e;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.public-home .auth-form input {
  min-height: 44px;
  color: var(--sek-ink);
  background: rgba(255, 254, 250, 0.88);
  border-color: #aaa08f;
  border-radius: 1px;
  box-shadow: inset 3px 0 0 #d8c79a;
}

.public-home .auth-form input:focus {
  border-color: var(--sek-burgundy);
  box-shadow: 0 0 0 3px rgba(123, 34, 48, 0.12);
}

.public-home .auth-submit {
  min-height: 45px;
  margin-top: 5px;
  color: #fffefa;
  background: var(--sek-ink-soft);
  border: 1px solid var(--sek-ink);
  border-radius: 1px;
  box-shadow: inset 0 -3px 0 var(--sek-burgundy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-home .auth-submit:hover:not(:disabled) {
  background: var(--sek-burgundy);
  border-color: #5d1722;
  box-shadow: inset 0 -3px 0 #b99342;
}

.public-home .auth-switch {
  margin-top: 17px;
  padding-top: 14px;
  color: #6b6357;
  border-top: 1px solid #d1c8b8;
  font-size: 12px;
}

.public-home .link-btn {
  color: var(--sek-burgundy);
}

.public-home .auth-error {
  border-radius: 1px;
}

.public-home .auth-security-note {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 7px;
  margin-top: 14px;
  color: #746b5f;
  font-size: 10px;
  line-height: 1.45;
}

.public-home .auth-security-note > span {
  color: var(--sek-gold);
  font-size: 8px;
  transform: translateY(2px);
}

.public-home .auth-security-note p {
  margin: 0;
}

.public-home-access-note {
  margin: 14px 0 0;
  padding-top: 13px;
  color: #766f64;
  border-top: 1px solid #d8d0c0;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.public-home-flow {
  background: #f8f6ef;
}

.public-home-flow-grid {
  display: grid;
  grid-template-columns: 0.82fr repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid #c9bfac;
}

.public-home-flow-intro,
.public-home-flow-step {
  min-height: 172px;
  padding: 30px 26px;
  border-right: 1px solid #d8d0c0;
}

.public-home-flow-step:last-child {
  border-right: 0;
}

.public-home-flow-intro {
  padding-left: 0;
}

.public-home-kicker {
  color: var(--sek-burgundy);
}

.public-home-flow-intro h2,
.public-home-flow-step h3,
.public-home-rule-title h2,
.public-home-panel-copy h3,
.public-home-trust h2,
.public-home-closing h2 {
  font-family: "Old Standard TT", Georgia, "Times New Roman", serif;
}

.public-home-flow-intro h2 {
  margin: 7px 0 0;
  font-size: 25px;
  line-height: 1.2;
}

.public-home-flow-number {
  color: var(--sek-burgundy);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.public-home-flow-step h3 {
  margin: 8px 0 0;
  font-size: 18px;
}

.public-home-flow-step p {
  margin: 7px 0 0;
  color: #6b6357;
  font-size: 12.5px;
}

.public-home-product {
  padding: 72px 0 82px;
  background: #f1ede2;
}

.public-home-rule-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--sek-ink);
}

.public-home-rule-title h2 {
  margin: 5px 0 0;
  font-size: 31px;
  line-height: 1.15;
}

.public-home-rule-title > p {
  max-width: 520px;
  margin: 0;
  color: #6b6357;
  font-size: 13px;
}

.public-home-tabs {
  display: flex;
  gap: 29px;
  margin-top: 26px;
  border-bottom: 1px solid #c9bfac;
}

.public-home-tabs button {
  min-height: 43px;
  padding: 0 0 10px;
  color: #6b6357;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 13px;
}

.public-home-tabs button[aria-selected="true"] {
  color: var(--sek-ink);
  border-bottom-color: var(--sek-burgundy);
  font-weight: 700;
}

.public-home-panel {
  min-height: 430px;
  display: grid;
  grid-template-columns: minmax(240px, 0.68fr) minmax(0, 1.32fr);
  gap: 58px;
  align-items: center;
  padding-top: 45px;
}

.public-home-panel[hidden] {
  display: none;
}

.public-home-panel-copy h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.public-home-panel-copy p {
  margin: 13px 0 0;
  color: #6b6357;
  font-size: 14px;
  line-height: 1.65;
}

.public-home-panel-copy ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.public-home-panel-copy li {
  padding: 8px 0;
  border-bottom: 1px solid #d8d0c0;
  font-size: 12.5px;
}

.public-home-panel-copy li::before {
  content: "—";
  margin-right: 9px;
  color: var(--sek-burgundy);
}

.public-registry-scene,
.public-editor-scene,
.public-materials-scene {
  min-width: 0;
  min-height: 370px;
  overflow: hidden;
  background: #f9f8f3;
  border: 1px solid #c9bfac;
  border-radius: 4px;
  box-shadow: 0 18px 36px rgba(33, 29, 23, 0.12);
}

.public-registry-head,
.public-materials-head {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px;
  border-bottom: 2px solid var(--sek-ink);
}

.public-registry-head div:first-child span,
.public-registry-head div:first-child strong,
.public-materials-head div span,
.public-materials-head div strong {
  display: block;
}

.public-registry-head span,
.public-materials-head div span {
  color: var(--sek-burgundy);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.public-registry-head strong,
.public-materials-head div strong {
  margin-top: 4px;
  font-family: "Old Standard TT", Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.public-demo-button {
  padding: 7px 10px;
  color: #ede7d8;
  background: var(--sek-ink);
  border-radius: 2px;
  font-size: 9.5px;
  text-align: center;
  white-space: nowrap;
}

.public-demo-button.quiet {
  color: #6b6357;
  background: #eae4d4;
}

.public-registry-toolbar {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  color: #8b8272;
  background: #eae4d4;
  border-bottom: 1px solid #c9bfac;
  font-size: 9px;
}

.public-registry-toolbar span:first-child {
  width: 45%;
  margin-right: auto;
  padding: 6px 10px;
  color: #8b8272;
  background: #fffefa;
  border: 1px solid #d8d0c0;
}

.public-registry-row {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 105px 90px 58px;
  gap: 13px;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid #d8d0c0;
  font-size: 9.5px;
}

.public-registry-row:last-child {
  border-bottom: 0;
}

.public-registry-row > div:first-child {
  min-width: 0;
}

.public-registry-row strong,
.public-registry-row > div:first-child span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-registry-row > div:first-child span {
  margin-top: 5px;
  color: #8b8272;
}

.public-demo-status.processing {
  color: #946817;
}

.public-demo-status.ready {
  color: #3e5c43;
}

.public-demo-progress {
  height: 4px;
  overflow: hidden;
  background: #d8d0c0;
}

.public-demo-progress span {
  width: 62%;
  height: 100%;
  display: block;
  background: var(--sek-gold);
}

.public-demo-meta {
  color: #8b8272;
}

.public-editor-scene {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  background: #dcdad3;
}

.public-editor-paper {
  margin: 23px 24px 60px;
  padding: 29px 35px;
  background: #fffefa;
  border: 1px solid #c9c3b6;
}

.public-editor-paper h4 {
  margin: 0 0 20px;
  font-family: "Old Standard TT", Georgia, "Times New Roman", serif;
  font-size: 14px;
  text-align: center;
}

.public-editor-paper p {
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px solid #e0dbcf;
  font-family: Georgia, serif;
  font-size: 10.5px;
  line-height: 1.55;
}

.public-editor-paper p span {
  display: block;
  margin-bottom: 3px;
  color: #7e7466;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 8.5px;
}

.public-editor-paper p.active {
  margin: 0 -9px;
  padding-right: 9px;
  padding-left: 9px;
  background: #eee4be;
  border-left: 2px solid var(--sek-gold);
}

.public-editor-aside {
  padding: 23px 15px 60px;
  background: #efede7;
  border-left: 1px solid #c9bfac;
}

.public-editor-aside > strong {
  font-family: "Old Standard TT", Georgia, "Times New Roman", serif;
  font-size: 15px;
}

.public-editor-aside > div {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 0;
  color: #6b6357;
  border-bottom: 1px solid #d8d0c0;
  font-size: 9.5px;
}

.speaker-mark {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #777069;
}

.speaker-mark.judge {
  background: var(--sek-burgundy);
}

.speaker-mark.claimant {
  background: #a28643;
}

.speaker-mark.respondent {
  background: #54705a;
}

.public-editor-player {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  color: #ede7d8;
  background: var(--sek-ink);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
}

.public-editor-player > div {
  height: 4px;
  flex: 1;
  background: #675f52;
}

.public-editor-player i {
  width: 38%;
  height: 100%;
  display: block;
  background: #d8c79a;
}

.public-materials-scene {
  padding-bottom: 22px;
}

.public-materials-state {
  padding: 6px 9px;
  color: #3e5c43;
  background: #e2e9df;
  border: 1px solid #c4d2c0;
  font-size: 9px;
  white-space: nowrap;
}

.public-materials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 10px 22px 0;
}

.public-materials-grid > div {
  min-height: 66px;
  padding: 14px 10px 12px 0;
  border-bottom: 1px solid #d8d0c0;
}

.public-materials-grid > div:nth-child(even) {
  padding-left: 18px;
  border-left: 1px solid #d8d0c0;
}

.public-materials-grid > div.wide {
  grid-column: 1 / -1;
  padding-left: 0;
  border-left: 0;
}

.public-materials-grid span,
.public-materials-grid strong {
  display: block;
}

.public-materials-grid span {
  color: #8b8272;
  font-size: 8.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.public-materials-grid strong {
  margin-top: 5px;
  font-size: 10.5px;
}

.public-materials-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 17px 22px 0;
}

.public-materials-files span {
  padding: 7px 9px;
  color: #5e584e;
  background: #eae4d4;
  border: 1px solid #d8d0c0;
  font-size: 9px;
}

.public-home-trust {
  padding: 64px 0;
  color: #ede7d8;
  background: var(--sek-ink);
}

.public-home-trust-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 76px;
}

.public-home-trust h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
}

.public-home-trust h2 span {
  color: #d8c79a;
}

.public-home-trust-list {
  border-top: 1px solid #655d50;
}

.public-home-trust-list > div {
  min-height: 72px;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid #4d473e;
  font-size: 12px;
}

.public-home-trust-list strong {
  color: #ffffff;
  font-size: 12.5px;
}

.public-home-trust-list span {
  color: #aaa294;
}

.public-home-closing {
  padding: 52px 0;
  background: #eae4d4;
}

.public-home-closing-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.public-home-closing h2 {
  margin: 6px 0 0;
  font-size: 29px;
}

.public-home-closing p {
  margin: 7px 0 0;
  color: #6b6357;
  font-size: 13px;
}

.public-home-primary.dark {
  flex: 0 0 auto;
  color: #ffffff;
  background: var(--sek-ink);
  border-color: var(--sek-ink);
}

.public-home-primary.dark:hover {
  background: #2b2721;
  border-color: #2b2721;
}

.public-home-footer {
  color: #b7ae9b;
  background: #17140f;
  border-top: 1px solid #0b0907;
}

.public-home-footer-inner {
  min-height: 114px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.public-home-footer-name {
  font-size: 20px;
}

.public-home-footer-copy {
  margin-top: 4px;
  color: #8b8272;
  font-size: 11px;
}

.public-home-footer-domain {
  margin-top: 5px;
  color: #9f9686;
  font-size: 10px;
  letter-spacing: 0.02em;
}

.public-home-footer nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 12px;
}

.public-home-footer nav button {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.public-home-footer nav a:hover,
.public-home-footer nav button:hover {
  color: #ffffff;
}

@media (max-width: 1080px) {
  .public-home-header {
    padding-right: 28px;
    padding-left: 28px;
  }

  .public-home-brand-note {
    display: none;
  }

  .public-home-nav {
    gap: 19px;
  }

  .public-home-hero-inner {
    gap: 38px;
  }

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

  .public-home-flow-intro {
    grid-column: 1 / -1;
    min-height: auto;
    padding: 26px 0 20px;
    border-right: 0;
    border-bottom: 1px solid #d8d0c0;
  }

  .public-home-panel {
    gap: 36px;
  }
}

@media (max-width: 860px) {
  .public-home-section-inner,
  .public-home-hero-inner {
    width: min(calc(100% - 48px), 1280px);
  }

  .testing-notice--public,
  .testing-notice--pricing {
    width: min(calc(100% - 48px), 1280px);
  }

  .public-home-nav {
    display: none;
  }

  .public-home-actions {
    margin-left: auto;
  }

  .public-home-hero-inner {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-top: 58px;
  }

  .public-home-hero-copy {
    max-width: 680px;
  }

  .public-home .landing-auth-card {
    width: min(100%, 460px);
  }

  .public-scene-document {
    right: -12%;
    left: 20%;
  }

  .public-home-rule-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-home-panel {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .public-home-panel-copy {
    max-width: 620px;
  }

  .public-home-trust-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 640px) {
  .public-home-section-inner,
  .public-home-hero-inner {
    width: min(calc(100% - 28px), 1280px);
  }

  .testing-notice {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 12px;
  }

  .testing-notice--public,
  .testing-notice--pricing {
    width: min(calc(100% - 28px), 1280px);
    margin: 12px auto;
  }

  .testing-notice-action {
    grid-column: 1 / -1;
    width: 100%;
  }

  .public-home-header {
    min-height: 62px;
    gap: 12px;
    padding: 0 14px;
  }

  .public-home-brand-name {
    font-size: 17px;
  }

  .public-home-actions {
    gap: 6px;
    padding-left: 10px;
  }

  .public-home-login,
  .public-home-start {
    min-height: 34px;
    padding: 0 10px;
    font-size: 11px;
  }

  .public-home-hero {
    min-height: auto;
  }

  .public-home-hero-inner {
    padding: 44px 0 54px;
  }

  .public-home-hero-copy h1 {
    font-size: clamp(44px, 15vw, 62px);
  }

  .public-home-hero-copy > p {
    font-size: 17px;
  }

  .public-home-primary,
  .public-home-secondary {
    width: 100%;
  }

  .public-home-proof {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-home .landing-auth-card {
    padding: 22px 18px;
  }

  .public-home .auth-head h2 {
    font-size: 20px;
  }

  .public-home-flow-grid {
    grid-template-columns: 1fr;
  }

  .public-home-flow-step {
    min-height: auto;
    padding: 23px 0;
    border-right: 0;
    border-bottom: 1px solid #d8d0c0;
  }

  .public-home-product {
    padding: 54px 0 60px;
  }

  .public-home-rule-title h2,
  .public-home-trust h2 {
    font-size: 27px;
  }

  .public-home-tabs {
    gap: 20px;
    overflow-x: auto;
  }

  .public-home-tabs button {
    flex: 0 0 auto;
    font-size: 12px;
    white-space: nowrap;
  }

  .public-home-panel {
    gap: 30px;
    padding-top: 34px;
  }

  .public-home-panel-copy h3 {
    font-size: 24px;
  }

  .public-registry-scene,
  .public-editor-scene,
  .public-materials-scene {
    min-height: 0;
  }

  .public-registry-row {
    grid-template-columns: minmax(0, 1fr) 62px;
    min-height: 82px;
    padding: 0 13px;
  }

  .public-registry-row .public-demo-status,
  .public-registry-row .public-demo-meta {
    display: none;
  }

  .public-registry-toolbar {
    padding: 0 13px;
  }

  .public-registry-toolbar span:first-child {
    width: auto;
    flex: 1;
  }

  .public-editor-scene {
    grid-template-columns: 1fr;
  }

  .public-editor-paper {
    margin: 16px 14px 56px;
    padding: 22px 18px;
  }

  .public-editor-aside {
    display: none;
  }

  .public-editor-player > span:last-child {
    display: none;
  }

  .public-materials-grid {
    grid-template-columns: 1fr;
    padding-right: 14px;
    padding-left: 14px;
  }

  .public-materials-grid > div:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .public-materials-grid > div.wide {
    grid-column: auto;
  }

  .public-materials-state {
    display: none;
  }

  .public-home-trust {
    padding: 48px 0;
  }

  .public-home-trust-list > div {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 17px 0;
  }

  .public-home-closing-inner,
  .public-home-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-home-closing h2 {
    font-size: 25px;
  }

  .public-home-footer-inner {
    padding: 28px 0;
  }

  .public-home-footer nav {
    flex-wrap: wrap;
    gap: 14px 20px;
  }
}

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

/* Refined home: product-first hero and modal account access. */
body.public-auth-open {
  overflow: hidden;
}

.public-home--refined :focus-visible {
  outline-color: var(--sek-gold);
  outline-offset: 3px;
}

.public-home--refined .public-home-header {
  position: sticky;
  top: 0;
  z-index: 80;
  box-shadow: 0 8px 28px rgba(10, 8, 6, 0.14);
}

.public-home--refined .public-home-hero {
  min-height: 690px;
  color: var(--sek-ink);
  background:
    linear-gradient(90deg, rgba(123, 34, 48, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(123, 34, 48, 0.045) 1px, transparent 1px),
    #eee8da;
  background-size: 52px 52px;
  border-bottom: 1px solid #b9ae9b;
}

.public-home--refined .public-home-hero::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 79% 43%, rgba(185, 147, 66, 0.18), transparent 25%),
    linear-gradient(90deg, rgba(238, 232, 218, 0.18) 0%, #eee8da 46%, rgba(238, 232, 218, 0.08) 100%);
  content: "";
  pointer-events: none;
}

.public-home--refined .public-home-hero::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: max(24px, calc((100vw - 1280px) / 2));
  width: 2px;
  background: rgba(123, 34, 48, 0.32);
  content: "";
}

.public-home--refined .public-home-hero-inner {
  grid-template-columns: minmax(0, 0.98fr) minmax(420px, 0.86fr);
  gap: clamp(54px, 7vw, 104px);
  padding: 78px 0 86px;
}

.public-home--refined .public-home-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--sek-burgundy);
  font-size: 10px;
  letter-spacing: 0.11em;
}

.public-home--refined .public-home-eyebrow span {
  color: var(--sek-gold);
  font-size: 8px;
}

.public-home--refined .public-home-hero-copy h1 {
  max-width: 720px;
  margin-top: 18px;
  color: var(--sek-ink);
  font-size: clamp(48px, 5.35vw, 72px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-transform: none;
}

.public-home--refined .public-home-hero-copy h1 span {
  display: block;
  color: var(--sek-burgundy);
}

.public-home--refined .public-home-hero-copy > p {
  max-width: 650px;
  margin-top: 25px;
  color: #554e43;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.public-home--refined .public-home-hero-actions {
  margin-top: 31px;
}

.public-home--refined .public-home-primary {
  min-height: 48px;
  padding: 0 22px;
  color: #fffdf7;
  background: var(--sek-burgundy);
  border-color: var(--sek-burgundy);
  border-radius: 2px;
  box-shadow: 0 8px 20px rgba(77, 18, 28, 0.17);
}

.public-home--refined .public-home-primary:hover {
  color: #ffffff;
  background: #651b27;
  border-color: #651b27;
}

.public-home--refined .public-home-secondary {
  min-height: 48px;
  padding: 0 20px;
  color: var(--sek-ink);
  background: rgba(255, 253, 247, 0.48);
  border-color: #968b78;
  border-radius: 2px;
}

.public-home--refined .public-home-secondary:hover {
  background: rgba(255, 253, 247, 0.86);
  border-color: #6f6658;
}

.public-home--refined .public-home-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 680px;
  margin-top: 39px;
  padding-top: 18px;
  color: #6b6357;
  border-top: 1px solid #bdb3a1;
  font-size: 10.5px;
  line-height: 1.45;
}

.public-home--refined .public-home-proof span {
  padding: 0 15px;
  border-right: 1px solid #c9bfac;
}

.public-home--refined .public-home-proof span:first-child {
  padding-left: 0;
}

.public-home--refined .public-home-proof span:last-child {
  padding-right: 0;
  border-right: 0;
}

.public-home--refined .public-home-proof span::before {
  display: none;
}

.public-home--refined .public-home-proof strong {
  display: block;
  margin-bottom: 2px;
  color: var(--sek-ink);
  font-size: 11px;
}

.public-home-hero-demo {
  position: relative;
  min-width: 0;
  overflow: hidden;
  color: #f5f0e4;
  background: #201c17;
  border: 1px solid #51493d;
  border-radius: 3px;
  box-shadow: 0 34px 72px rgba(43, 33, 23, 0.26), 13px 13px 0 rgba(123, 34, 48, 0.1);
  transform: rotate(0.55deg);
}

.public-home-hero-demo::before {
  position: absolute;
  inset: 7px;
  z-index: 2;
  border: 1px solid rgba(216, 199, 154, 0.18);
  content: "";
  pointer-events: none;
}

.public-demo-window-head,
.public-demo-window-foot {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.public-demo-window-head {
  min-height: 76px;
  padding: 16px 21px;
  border-bottom: 1px solid #4c4439;
}

.public-demo-window-head > div span,
.public-demo-window-head > div strong {
  display: block;
}

.public-demo-window-kicker {
  color: #b6ad9d;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.public-demo-window-head > div strong {
  margin-top: 5px;
  font-family: "Old Standard TT", Georgia, serif;
  font-size: 17px;
}

.public-demo-live {
  color: #cad8c7;
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.public-demo-live i {
  width: 6px;
  height: 6px;
  display: inline-block;
  margin-right: 6px;
  background: #76937a;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(118, 147, 122, 0.12);
}

.public-demo-workspace {
  position: relative;
  z-index: 3;
  padding: 23px 21px 25px;
}

.public-demo-source-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 13px;
  color: var(--sek-ink);
  background: #e9e3d5;
  border-left: 3px solid var(--sek-gold);
}

.public-demo-file-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #f4ead4;
  background: var(--sek-burgundy);
  font-size: 9px;
}

.public-demo-source-card span,
.public-demo-source-card strong,
.public-demo-source-card small {
  display: block;
}

.public-demo-source-card span,
.public-demo-result-copy > span {
  color: #807667;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.public-demo-source-card strong {
  margin-top: 2px;
  overflow: hidden;
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-demo-source-card small {
  margin-top: 2px;
  color: #807667;
  font-size: 8px;
}

.public-demo-pipeline {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  gap: 7px;
  align-items: center;
  padding: 22px 7px;
}

.public-demo-pipeline > div {
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #b6ad9d;
  font-size: 7.5px;
  white-space: nowrap;
}

.public-demo-pipeline i {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #1f281f;
  background: #9db09d;
  border: 1px solid #c8d5c5;
  border-radius: 50%;
  font-size: 9px;
  font-style: normal;
}

.public-demo-pipeline .is-current i {
  color: #fff8e8;
  background: var(--sek-burgundy);
  border-color: #c06b78;
  box-shadow: 0 0 0 5px rgba(123, 34, 48, 0.2);
}

.public-demo-pipeline b {
  height: 1px;
  background: linear-gradient(90deg, #718571, #a28c55);
}

.public-demo-result-card {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  min-height: 176px;
  overflow: hidden;
  color: var(--sek-ink);
  background: #f7f3e9;
  border: 1px solid #706758;
}

.public-demo-paper {
  margin: 16px 14px;
  padding: 19px 13px;
  background: #fffefa;
  border: 1px solid #c9bfac;
  box-shadow: 0 9px 20px rgba(23, 21, 18, 0.13);
}

.public-demo-paper span {
  display: block;
  margin-bottom: 16px;
  font-family: "Old Standard TT", Georgia, serif;
  font-size: 8px;
  font-weight: 700;
  text-align: center;
}

.public-demo-paper i {
  width: 100%;
  height: 3px;
  display: block;
  margin-top: 8px;
  background: #c1baae;
}

.public-demo-paper i.medium {
  width: 82%;
}

.public-demo-paper i.short {
  width: 64%;
}

.public-demo-result-copy {
  align-self: center;
  padding: 20px 19px 20px 5px;
}

.public-demo-result-copy strong,
.public-demo-result-copy small {
  display: block;
}

.public-demo-result-copy strong {
  margin-top: 5px;
  font-family: "Old Standard TT", Georgia, serif;
  font-size: 19px;
  line-height: 1.12;
}

.public-demo-result-copy small {
  margin-top: 8px;
  color: #706758;
  font-size: 9px;
  line-height: 1.5;
}

.public-demo-result-copy > div {
  display: flex;
  gap: 6px;
  margin-top: 13px;
}

.public-demo-result-copy > div span {
  padding: 5px 8px;
  color: #fffdf7;
  background: var(--sek-ink);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.public-demo-window-foot {
  min-height: 40px;
  padding: 0 21px;
  color: #938b7d;
  border-top: 1px solid #4c4439;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 7.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.public-demo-window-foot span:first-child {
  color: #c6d4c4;
}

.public-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
}

.public-auth-overlay[hidden] {
  display: none;
}

.public-auth-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(12, 10, 8, 0.76);
  border: 0;
  cursor: default;
  backdrop-filter: blur(5px);
}

.public-auth-overlay .landing-auth-card {
  z-index: 1;
  width: min(100%, 420px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  animation: public-auth-enter 180ms ease-out both;
}

.public-auth-close {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 4;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #6b6357;
  background: rgba(255, 254, 250, 0.82);
  border: 1px solid #c9bfac;
  border-radius: 50%;
  cursor: pointer;
  font-size: 19px;
  line-height: 1;
}

.public-auth-close:hover {
  color: #ffffff;
  background: var(--sek-burgundy);
  border-color: var(--sek-burgundy);
}

.public-home--refined .public-home-flow {
  background: #fbfaf6;
}

.public-home--refined .public-home-flow-grid {
  border-bottom-color: #d7cdbc;
}

.public-home--refined .public-home-product {
  background: #f3eee3;
}

.public-home--refined .public-home-text-link {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #d8c79a;
  border-bottom: 1px solid #4d473e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.public-home--refined .public-home-text-link span {
  color: inherit;
  font-size: 17px;
}

.public-home--refined .public-home-text-link:hover {
  color: #ffffff;
}

.public-home--refined .public-home-closing-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 9px;
}

.public-home--refined .public-home-secondary.light {
  color: var(--sek-ink);
  background: rgba(255, 254, 250, 0.35);
  border-color: #9c917d;
}

.public-home--refined .public-home-primary.dark {
  box-shadow: none;
}

@keyframes public-auth-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1080px) {
  .public-home--refined .public-home-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.82fr);
    gap: 42px;
  }

  .public-home--refined .public-home-hero-copy h1 {
    font-size: clamp(44px, 5.6vw, 61px);
  }

  .public-home--refined .public-home-proof {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .public-home--refined .public-home-proof span,
  .public-home--refined .public-home-proof span:first-child,
  .public-home--refined .public-home-proof span:last-child {
    padding: 0;
    border: 0;
  }

  .public-home--refined .public-home-proof strong {
    display: inline;
  }
}

@media (max-width: 860px) {
  .public-home--refined .public-home-hero {
    min-height: auto;
  }

  .public-home--refined .public-home-hero-inner {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 66px 0 72px;
  }

  .public-home--refined .public-home-hero-copy {
    max-width: 720px;
  }

  .public-home--refined .public-home-hero-demo {
    width: min(100%, 650px);
    transform: none;
  }

  .public-home--refined .public-home-closing-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .public-home--refined .public-home-header {
    position: relative;
  }

  .public-home--refined .public-home-hero::after {
    left: 7px;
  }

  .public-home--refined .public-home-hero-inner {
    gap: 39px;
    padding: 50px 0 55px;
  }

  .public-home--refined .public-home-hero-copy h1 {
    font-size: clamp(39px, 12.7vw, 54px);
    line-height: 1.02;
  }

  .public-home--refined .public-home-hero-copy > p {
    font-size: 15.5px;
  }

  .public-home--refined .public-home-proof {
    margin-top: 29px;
  }

  .public-demo-window-head {
    min-height: 68px;
    padding: 14px 15px;
  }

  .public-demo-live {
    display: none;
  }

  .public-demo-workspace {
    padding: 16px 14px 19px;
  }

  .public-demo-pipeline {
    padding: 18px 2px;
  }

  .public-demo-pipeline > div {
    font-size: 6.5px;
  }

  .public-demo-pipeline i {
    width: 19px;
    height: 19px;
  }

  .public-demo-result-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .public-demo-paper {
    margin: 13px 9px;
    padding: 17px 9px;
  }

  .public-demo-result-copy {
    padding: 16px 12px 16px 3px;
  }

  .public-demo-result-copy strong {
    font-size: 16px;
  }

  .public-demo-result-copy small {
    font-size: 8px;
  }

  .public-home--refined .public-home-closing-actions {
    width: 100%;
    flex-direction: column-reverse;
  }

  .public-auth-overlay {
    align-items: end;
    padding: 0;
  }

  .public-auth-overlay .landing-auth-card {
    width: 100%;
    max-height: min(92vh, 720px);
    padding: 26px 20px 22px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-auth-overlay .landing-auth-card {
    animation: none;
  }
}
