* {
  box-sizing: border-box;
}

:root {
  --ink: #111316;
  --ink-soft: #303842;
  --muted-strong: #5e6875;
  --line: color-mix(in srgb, var(--border) 72%, #ffffff 28%);
  --glass: color-mix(in srgb, var(--surface) 84%, transparent);
  --tint: color-mix(in srgb, var(--brand-secondary) 10%, #ffffff 90%);
  --tint-strong: color-mix(in srgb, var(--brand-secondary) 18%, #ffffff 82%);
  --accent-soft: color-mix(in srgb, var(--brand-accent) 16%, #ffffff 84%);
  --shadow-sm: 0 10px 28px rgba(17, 19, 22, 0.08);
  --shadow-md: 0 18px 48px rgba(17, 19, 22, 0.12);
  --shadow-lg: 0 28px 80px rgba(17, 19, 22, 0.16);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --max-page: 1180px;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.10), transparent 26rem),
    radial-gradient(circle at 84% 10%, rgba(249, 115, 22, 0.10), transparent 22rem),
    linear-gradient(180deg, #ffffff 0%, var(--page-bg) 44%, #f6f7f9 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  min-height: 100%;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand-secondary) 38%, transparent);
  outline-offset: 3px;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.72) inset;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 clamp(18px, 4vw, 48px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand-mark {
  align-items: center;
  color: var(--brand-primary);
  display: inline-flex;
  font-size: 20px;
  font-weight: 850;
  gap: 10px;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark::before {
  background:
    linear-gradient(135deg, var(--brand-secondary), var(--brand-accent)),
    var(--brand-primary);
  border-radius: 8px;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--brand-secondary) 22%, transparent);
  content: "";
  height: 28px;
  width: 28px;
}

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

.site-nav form {
  margin: 0;
}

.site-nav a,
.site-nav button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--ink-soft);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  padding: 10px 12px;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav button:hover {
  background: var(--tint);
  color: var(--brand-primary);
  transform: translateY(-1px);
}

.site-nav .nav-cta,
.button {
  align-items: center;
  background: linear-gradient(135deg, var(--brand-secondary), color-mix(in srgb, var(--brand-secondary) 70%, var(--brand-accent) 30%));
  border: 0;
  border-radius: 999px;
  box-shadow: 0 16px 34px color-mix(in srgb, var(--brand-secondary) 22%, transparent);
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 850;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  text-decoration: none;
  transition: box-shadow 180ms ease, transform 180ms ease, filter 180ms ease;
}

.button:hover,
.site-nav .nav-cta:hover {
  color: #ffffff;
  filter: saturate(1.05);
  transform: translateY(-2px);
  box-shadow: 0 20px 42px color-mix(in srgb, var(--brand-secondary) 28%, transparent);
}

.button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.2);
  opacity: 0.48;
  transform: none;
}

.button-muted {
  background: linear-gradient(135deg, #606b79, #2f3741);
  box-shadow: 0 16px 34px rgba(47, 55, 65, 0.18);
}

main {
  min-height: calc(100vh - 76px);
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: clamp(36px, 6vw, 72px);
  padding: clamp(34px, 5vw, 58px) clamp(20px, 4vw, 44px) 26px;
}

.footer-shell {
  display: grid;
  gap: clamp(24px, 4vw, 42px);
  grid-template-columns: minmax(260px, 1.45fr) repeat(4, minmax(140px, 1fr));
  margin: 0 auto;
  max-width: var(--max-page);
}

.portal-writer .footer-shell,
.portal-admin .footer-shell {
  grid-template-columns: minmax(260px, 1.6fr) repeat(2, minmax(160px, 0.7fr));
}

.footer-brand {
  display: grid;
  gap: 16px;
}

.footer-brand .brand-mark {
  width: fit-content;
}

.footer-brand p,
.footer-bottom,
.footer-links a,
.footer-links span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.footer-brand p {
  margin: 0;
  max-width: 420px;
}

.footer-links {
  display: grid;
  gap: 9px;
}

address.footer-links {
  font-style: normal;
}

.footer-links h2 {
  color: var(--brand-primary);
  font-size: 13px;
  letter-spacing: 0;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.footer-links a {
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.footer-links a:hover {
  color: var(--brand-secondary);
  transform: translateX(2px);
}

.footer-bottom {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 32px auto 0;
  max-width: var(--max-page);
  padding-top: 18px;
}

.hero,
.panel,
.auth-panel {
  margin: 0 auto;
  max-width: var(--max-page);
  padding: clamp(48px, 7vw, 86px) clamp(20px, 4vw, 44px);
}

.auth-panel {
  max-width: 560px;
}

.panel-narrow {
  max-width: 860px;
}

.hero-shell,
.dashboard-hero,
.split-workspace,
.humanizer-workbench,
.order-layout,
.seo-hero {
  align-items: stretch;
  display: grid;
  gap: clamp(24px, 4vw, 44px);
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
}

.dashboard-hero,
.seo-hero {
  align-items: center;
}

.hero-copy,
.panel-lede {
  animation: rise-in 420ms ease both;
}

.hero h1,
.panel h1,
.auth-panel h1 {
  color: var(--brand-primary);
  font-size: clamp(44px, 7vw, 72px);
  letter-spacing: 0;
  line-height: 0.95;
  margin: 10px 0 20px;
  max-width: 980px;
}

.panel h1,
.auth-panel h1 {
  font-size: clamp(36px, 5vw, 56px);
}

.hero p,
.panel p,
.auth-panel p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
  max-width: 760px;
}

.lede {
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.6;
}

.eyebrow {
  align-items: center;
  color: var(--brand-secondary);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 8px;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  background: linear-gradient(135deg, var(--brand-secondary), var(--brand-accent));
  border-radius: 999px;
  content: "";
  height: 8px;
  width: 8px;
}

.hero-actions,
.action-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.text-link {
  color: var(--brand-primary);
  font-weight: 850;
  text-decoration: none;
}

.text-link:hover {
  color: var(--brand-secondary);
}

.product-preview,
.workspace-panel,
.subscription-panel,
.quote-panel,
.compact-form,
.text-output,
.table-shell,
.metric-card,
.timeline-card {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, #ffffff 6%), var(--surface)),
    #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.product-preview {
  display: grid;
  gap: 16px;
  min-height: 360px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.product-preview::before {
  background: linear-gradient(135deg, var(--tint-strong), var(--accent-soft));
  content: "";
  height: 120px;
  inset: 0 0 auto 0;
  position: absolute;
}

.preview-bar,
.preview-card,
.preview-output {
  position: relative;
}

.preview-bar {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.preview-dots {
  display: flex;
  gap: 6px;
}

.preview-dots span {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  height: 10px;
  width: 10px;
}

.preview-pill {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 850;
  padding: 8px 10px;
}

.preview-card,
.preview-output {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

.preview-card h2,
.preview-output h2 {
  color: var(--brand-primary);
  font-size: 18px;
  letter-spacing: 0;
  margin: 0 0 10px;
}

.preview-lines {
  display: grid;
  gap: 9px;
}

.preview-lines span {
  background: linear-gradient(90deg, #dfe7f1, #f1f5f9);
  border-radius: 999px;
  height: 10px;
}

.preview-lines span:nth-child(2) {
  width: 86%;
}

.preview-lines span:nth-child(3) {
  width: 64%;
}

.trust-strip,
.step-strip,
.status-timeline {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-top: 30px;
}

.trust-item,
.step-item,
.status-step {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
}

.trust-item strong,
.step-item strong,
.status-step strong {
  color: var(--brand-primary);
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

.trust-item span,
.step-item span,
.status-step span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 750;
  margin-top: 6px;
}

.workspace-grid,
.feature-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-top: 32px;
}

.workspace-card,
.feature-card {
  background: linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--surface) 96%, var(--tint) 4%));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 40px rgba(17, 19, 22, 0.07);
  color: inherit;
  display: block;
  padding: 22px;
  position: relative;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.workspace-card::before,
.feature-card::before {
  background: linear-gradient(135deg, var(--brand-secondary), var(--brand-accent));
  border-radius: 999px;
  content: "";
  display: block;
  height: 10px;
  margin-bottom: 18px;
  width: 42px;
}

.workspace-card:hover,
a.workspace-card:hover,
.feature-card:hover {
  border-color: color-mix(in srgb, var(--brand-secondary) 42%, var(--line) 58%);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.workspace-card h2,
.feature-card h2,
.section-header h2 {
  color: var(--brand-primary);
  font-size: 22px;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0 0 10px;
}

.workspace-card p,
.feature-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

.workspace-panel {
  padding: clamp(20px, 3vw, 28px);
}

.subscription-panel {
  align-items: center;
  background:
    linear-gradient(135deg, var(--tint-strong), #ffffff 58%),
    var(--surface);
  display: flex;
  gap: 22px;
  justify-content: space-between;
  margin: 30px 0;
  padding: clamp(20px, 3vw, 28px);
}

.subscription-panel h2,
.text-output h2 {
  color: var(--brand-primary);
  font-size: 24px;
  margin: 0 0 10px;
}

.subscription-panel p {
  margin: 0;
}

.workspace-panel h2 {
  color: var(--brand-primary);
  font-size: 24px;
  margin: 0 0 12px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

form p {
  display: grid;
  gap: 7px;
  margin: 0;
}

label {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 850;
}

input,
select,
textarea {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  color: var(--text);
  font: inherit;
  min-height: 44px;
  padding: 11px 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

textarea {
  line-height: 1.55;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: color-mix(in srgb, var(--brand-secondary) 58%, var(--line) 42%);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-secondary) 12%, transparent);
}

.compact-form {
  margin-top: 20px;
  padding: clamp(20px, 3vw, 28px);
}

.form-section {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 16px;
  padding-top: 22px;
}

.form-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.form-section h2 {
  color: var(--brand-primary);
  font-size: 24px;
  margin: 4px 0 0;
}

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

.field-block small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.field-block .errorlist,
.compact-form .errorlist,
.workspace-panel .errorlist {
  color: #b42318;
  display: grid;
  font-size: 14px;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.field-row {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.choice-grid ul,
.choice-grid > div:not(.errorlist) {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.choice-grid li,
.choice-grid > div:not(.errorlist) > div {
  display: flex;
  min-width: min(190px, 100%);
}

.choice-grid-tight li,
.choice-grid-tight > div:not(.errorlist) > div {
  min-width: min(140px, 100%);
}

.choice-grid li label,
.choice-grid > div:not(.errorlist) > div label {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(17, 19, 22, 0.05);
  cursor: pointer;
  display: flex;
  gap: 10px;
  min-height: 48px;
  padding: 12px 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
  width: 100%;
}

.choice-grid input[type="radio"],
.choice-grid input[type="checkbox"] {
  accent-color: var(--brand-secondary);
  min-height: auto;
  width: auto;
}

.choice-grid li label:has(input:checked),
.choice-grid > div:not(.errorlist) > div label:has(input:checked) {
  border-color: color-mix(in srgb, var(--brand-secondary) 58%, var(--line) 42%);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--brand-secondary) 14%, transparent);
  color: var(--brand-primary);
  transform: translateY(-1px);
}

.choice-grid li label:hover,
.choice-grid > div:not(.errorlist) > div label:hover {
  border-color: color-mix(in srgb, var(--brand-secondary) 36%, var(--line) 64%);
}

.derived-words {
  background: linear-gradient(135deg, var(--tint), #ffffff);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: grid;
  gap: 8px;
  padding: 16px;
}

.derived-words span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.derived-words strong {
  color: var(--brand-primary);
  font-size: 24px;
}

.account-fields {
  background: color-mix(in srgb, var(--tint) 52%, #ffffff 48%);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
}

.humanizer-workbench {
  align-items: stretch;
  margin-top: 30px;
}

.humanizer-workbench textarea {
  min-height: 360px;
}

.output-panel {
  display: grid;
  gap: 18px;
  grid-template-rows: auto 1fr;
}

.output-header {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.output-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 16px;
  line-height: 1.75;
  min-height: 360px;
  padding: 18px;
  white-space: normal;
}

.output-box span {
  color: var(--muted);
}

.section-header {
  align-items: end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-top: 40px;
}

.section-header p {
  font-size: 16px;
  margin: 6px 0 0;
}

.inline-form {
  display: inline-flex;
  margin: 2px 4px 2px 0;
}

.message-stack {
  display: grid;
  gap: 10px;
  margin: 24px auto 0;
  max-width: var(--max-page);
  padding: 0 clamp(20px, 4vw, 44px);
}

.message {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand-secondary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  padding: 14px 16px;
}

.detail-grid,
.metric-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin: 30px 0;
}

.detail-grid div,
.metric-card {
  background: linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--surface) 96%, var(--tint) 4%));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 36px rgba(17, 19, 22, 0.07);
  padding: 18px;
}

.detail-grid span,
.metric-card span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.detail-grid strong,
.metric-card strong {
  color: var(--brand-primary);
  display: block;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.1;
}

.metric-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 10px 0 0;
}

.table-shell {
  margin-top: 18px;
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 720px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
  text-align: left;
  vertical-align: middle;
}

th {
  background: color-mix(in srgb, var(--surface) 86%, var(--tint) 14%);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

tbody tr {
  transition: background 140ms ease;
}

tbody tr:hover {
  background: color-mix(in srgb, var(--tint) 42%, transparent);
}

td a {
  color: var(--brand-secondary);
  font-weight: 850;
  text-decoration: none;
}

.badge {
  background: var(--tint);
  border: 1px solid color-mix(in srgb, var(--brand-secondary) 20%, var(--line) 80%);
  border-radius: 999px;
  color: var(--brand-primary);
  display: inline-flex;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  padding: 7px 10px;
}

.status-timeline {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.status-step {
  position: relative;
}

.status-step::before {
  background: linear-gradient(135deg, var(--brand-secondary), var(--brand-accent));
  border-radius: 999px;
  content: "";
  display: block;
  height: 10px;
  margin-bottom: 12px;
  width: 10px;
}

.message-thread {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.thread-message {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  max-width: 760px;
  padding: 18px;
}

.thread-message-own {
  border-left: 5px solid var(--brand-secondary);
  margin-left: auto;
}

.thread-message-meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.thread-message-meta strong {
  color: var(--brand-primary);
}

.thread-message p {
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  margin: 10px 0 0;
}

.thread-message small {
  color: var(--muted);
  display: block;
  margin-top: 10px;
}

.text-output {
  color: var(--text);
  font-size: 17px;
  line-height: 1.75;
  margin-top: 16px;
  padding: 24px;
  white-space: normal;
}

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

.breadcrumbs {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 8px;
  margin-bottom: 22px;
}

.breadcrumbs a {
  color: var(--brand-secondary);
  font-weight: 850;
  text-decoration: none;
}

.breadcrumbs span::before {
  color: var(--muted);
  content: "/";
  margin-right: 8px;
}

.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.quote-panel {
  margin-top: 34px;
  padding: clamp(22px, 3vw, 30px);
}

.quote-panel h2 {
  color: var(--brand-primary);
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: 0;
  line-height: 1;
  margin: 8px 0 18px;
}

.portal-writer {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.10), transparent 28rem),
    radial-gradient(circle at 86% 14%, rgba(245, 158, 11, 0.12), transparent 20rem),
    linear-gradient(180deg, #ffffff, var(--page-bg));
}

.portal-admin {
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.09), transparent 28rem),
    radial-gradient(circle at 86% 14%, rgba(249, 115, 22, 0.12), transparent 20rem),
    linear-gradient(180deg, #ffffff, var(--page-bg));
}

.portal-writer .brand-mark::before {
  background: linear-gradient(135deg, #0f766e, #f59e0b);
}

.portal-admin .brand-mark::before {
  background: linear-gradient(135deg, #7c3aed, #f97316);
}

.portal-writer .site-header {
  border-bottom-color: color-mix(in srgb, #99f6e4 58%, var(--border) 42%);
}

.portal-admin .site-header {
  border-bottom-color: color-mix(in srgb, #ddd6fe 58%, var(--border) 42%);
}

.mini-chart {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(9, 1fr);
  height: 160px;
  margin-top: 18px;
}

.mini-chart span {
  background: linear-gradient(180deg, var(--brand-secondary), var(--brand-accent));
  border-radius: 999px 999px 4px 4px;
  min-height: 24px;
}

.mini-chart span:nth-child(1) { height: 34%; }
.mini-chart span:nth-child(2) { height: 48%; }
.mini-chart span:nth-child(3) { height: 38%; }
.mini-chart span:nth-child(4) { height: 62%; }
.mini-chart span:nth-child(5) { height: 72%; }
.mini-chart span:nth-child(6) { height: 56%; }
.mini-chart span:nth-child(7) { height: 82%; }
.mini-chart span:nth-child(8) { height: 68%; }
.mini-chart span:nth-child(9) { height: 92%; }

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 16px;
    padding-top: 16px;
    position: static;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero-shell,
  .dashboard-hero,
  .split-workspace,
  .humanizer-workbench,
  .order-layout,
  .seo-hero {
    grid-template-columns: 1fr;
  }

  .footer-shell,
  .portal-writer .footer-shell,
  .portal-admin .footer-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

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

  .subscription-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .hero,
  .panel,
  .auth-panel {
    padding: 40px 18px;
  }

  .hero h1,
  .panel h1,
  .auth-panel h1 {
    font-size: 38px;
  }

  .site-nav a,
  .site-nav button {
    padding: 9px 10px;
  }

  .product-preview {
    min-height: 300px;
  }

  .footer-shell,
  .portal-writer .footer-shell,
  .portal-admin .footer-shell {
    grid-template-columns: 1fr;
  }

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