:root {
  color-scheme: light;
  --bg: #f6f4ef;
  --surface: #fffdf8;
  --panel: #ffffff;
  --ink: #20231f;
  --muted: #6a7068;
  --line: #d9d6cc;
  --brand-navy: #173a75;
  --brand-navy-strong: #0f2d5d;
  --brand-navy-soft: #eaf0f8;
  --brand-teal: #249b9a;
  --brand-teal-strong: #176f72;
  --brand-teal-soft: #e4f5f4;
  --brand-gold: #e9a514;
  --brand-gold-strong: #a86f00;
  --brand-gold-soft: #fff3d5;
  --accent: var(--brand-teal-strong);
  --accent-strong: #0f5c5c;
  --accent-soft: var(--brand-teal-soft);
  --action: var(--brand-navy);
  --action-strong: var(--brand-navy-strong);
  --action-soft: var(--brand-navy-soft);
  --warning: #8a5a10;
  --warning-soft: var(--brand-gold-soft);
  --focus-ring: 0 0 0 4px rgba(36, 155, 154, 0.24);
  --action-shadow: rgba(23, 58, 117, 0.24);
  --action-shadow-strong: rgba(23, 58, 117, 0.3);
  --shadow: 0 18px 45px rgba(32, 35, 31, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring);
}

.ui-icon {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shell {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.workspace {
  min-height: 100vh;
  background: var(--surface);
  border: 0;
  box-shadow: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 102px;
  padding: 14px 32px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(32, 35, 31, 0.06);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0;
}

.account {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.account-label,
.account strong {
  display: none;
}

.account-links {
  display: flex;
  gap: 10px;
  margin-top: 0;
}

.account-links a,
.account-logout {
  border: 0;
  background: transparent;
  color: #374151;
  font: inherit;
  font-size: 17px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.account-logout {
  justify-self: start;
  padding: 0;
}

.account-links[hidden],
.account-logout[hidden],
.mobile-auth-actions[hidden] {
  display: none !important;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-name {
  font-size: 29px;
  font-weight: 950;
  letter-spacing: 0;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.icon-button,
.menu-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #68707e;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.icon-button {
  border-radius: 50%;
}

.icon-button .ui-icon {
  width: 25px;
  height: 25px;
  stroke-width: 2.2;
}

.icon-button:hover {
  background: var(--brand-teal-soft);
  color: var(--brand-teal-strong);
}

.icon-button:active {
  transform: translateY(1px) scale(0.97);
}

.search-icon::before {
  content: "";
  width: 17px;
  height: 17px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 3px;
  transform: translate(11px, 11px) rotate(45deg);
  background: currentColor;
  border-radius: 2px;
}

.globe-icon::before {
  content: "";
  width: 24px;
  height: 24px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.globe-icon::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 18px;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
  border-radius: 50%;
}

.globe-icon {
  overflow: hidden;
}

.globe-icon span,
.search-icon span {
  pointer-events: none;
}

.menu-button {
  display: none;
  width: 44px;
  min-height: 44px;
  margin: 0;
  border-radius: 50%;
  background: transparent;
  color: #68707e;
  transform: none;
}

.menu-button .ui-icon {
  width: 28px;
  height: 28px;
  color: currentColor;
  stroke-width: 2.35;
  transform: none;
}

.menu-button span {
  width: 24px;
  height: 3px;
  margin: 2px 0;
  background: #ffffff;
  border-radius: 3px;
  transform: skewX(10deg);
}

.menu-button:hover {
  background: var(--brand-teal-soft);
  color: var(--brand-teal-strong);
}

.menu-button:active {
  transform: translateY(1px) scale(0.97);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
  padding: 0;
  border-bottom: 0;
  background: transparent;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border-bottom: 0;
  color: #344054;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  border-bottom-color: transparent;
  color: var(--action);
  background: transparent;
}

.header-test-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  min-height: 60px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--action);
  color: #ffffff;
  font-size: 17px;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 14px 26px var(--action-shadow);
  transition:
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.header-test-link:hover {
  background: var(--action-strong);
  box-shadow: 0 18px 30px var(--action-shadow-strong);
  transform: translateY(-1px);
}

body[data-route-mode="assessment"] .topbar {
  min-height: 88px;
  box-shadow: none;
}

body[data-route-mode="assessment"] .header-test-link,
body[data-route-mode="assessment"] #searchButton {
  display: none;
}

body[data-route-mode="assessment"] .top-actions {
  gap: 16px;
}

body[data-route-mode="assessment"] .main-nav a.active {
  color: #2c3344;
}

body[data-route-mode="assessment"] .main-nav a.active::before {
  position: absolute;
  top: -23px;
  right: 0;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--brand-gold);
  content: "";
}

.page-section[hidden] {
  display: none !important;
}

.page-padding {
  padding: 24px;
}

.page-heading {
  margin-bottom: 18px;
}

.page-heading h2 {
  font-size: 24px;
}

.page-heading p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.page-masthead {
  display: grid;
  justify-items: center;
  min-width: 0;
  padding: 50px 34px 44px;
  background: #edf7f1;
  text-align: center;
}

.page-masthead h2 {
  max-width: 780px;
  margin-bottom: 14px;
  color: #2c3344;
  font-size: 38px;
  line-height: 1.12;
}

.page-masthead p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: #566170;
  font-size: 16px;
  line-height: 1.7;
}

.test-masthead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 66px 34px 92px;
  background: #f7f7f7;
}

.test-masthead::before,
.test-masthead::after {
  position: absolute;
  right: -4vw;
  left: -4vw;
  z-index: -1;
  height: 150px;
  background: #ffffff;
  content: "";
  pointer-events: none;
}

.test-masthead::before {
  top: -92px;
  clip-path: polygon(0 42%, 18% 58%, 42% 48%, 64% 62%, 82% 46%, 100% 55%, 100% 0, 0 0);
}

.test-masthead::after {
  bottom: -96px;
  clip-path: polygon(0 46%, 20% 60%, 43% 48%, 64% 62%, 84% 48%, 100% 56%, 100% 100%, 0 100%);
}

.test-masthead .eyebrow {
  background: #dff3ed;
  color: #0f735f;
}

.test-masthead h2 {
  max-width: 920px;
  margin-bottom: 18px;
  font-size: 50px;
  line-height: 1.08;
}

.test-masthead p:not(.eyebrow) {
  max-width: 780px;
  color: #394759;
  font-size: 18px;
  line-height: 1.72;
}

.assessment-mark {
  display: grid;
  grid-template-columns: repeat(3, 12px);
  gap: 7px;
  margin-bottom: 28px;
}

.assessment-mark span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #4a9db7;
}

.assessment-mark span:nth-child(2),
.assessment-mark span:nth-child(6) {
  background: #e4b526;
}

.assessment-mark span:nth-child(3),
.assessment-mark span:nth-child(7) {
  background: #8e61a6;
}

.assessment-mark span:nth-child(4),
.assessment-mark span:nth-child(8) {
  background: #36a47a;
}

.assessment-mark span:nth-child(5) {
  background: #5fb2c7;
}

.types-masthead {
  background: #eef7f8;
}

.types-home {
  background: #ffffff;
}

.types-hero {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 42px 24px 34px;
  text-align: center;
  background: #ffffff;
}

.types-hero h2 {
  margin: 0;
  color: #2c3344;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: 0;
}

.types-hero p:not(.eyebrow) {
  width: min(640px, 100%);
  margin: 0;
  color: #5b6571;
  font-size: 16px;
  line-height: 1.6;
}

.types-hero .primary-link,
.types-final .primary-link {
  width: min(360px, 100%);
  min-height: 46px;
  margin-top: 8px;
  font-size: 15px;
}

.type-band {
  display: grid;
  gap: 18px;
  padding: 38px 20px 44px;
  text-align: center;
}

.type-band h3 {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 38px;
  line-height: 1;
  letter-spacing: 0;
}

.type-band-purple {
  background: #eaddec;
}

.type-band-green {
  background: #dff1e8;
}

.type-band-blue {
  background: #dff1f6;
}

.type-band-yellow {
  background: #fbefce;
}

.type-band-yellow h3 {
  color: rgba(175, 128, 23, 0.34);
}

.type-stack {
  display: grid;
  gap: 24px;
  width: min(520px, 100%);
  margin: 0 auto;
}

.type-person-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
}

.type-person-card img {
  display: block;
  width: min(230px, 74vw);
  max-height: 210px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.type-person-card h4 {
  margin: 0;
  color: #2d3443;
  font-size: 21px;
  line-height: 1.12;
}

.type-code {
  margin: 0;
  color: #6d7480;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.type-person-card p:not(.type-code) {
  width: min(360px, 100%);
  margin: 0;
  color: #626b76;
  font-size: 14px;
  line-height: 1.58;
}

.type-person-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  margin-top: 3px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: #3f5964;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.type-person-card a:hover {
  background: #ffffff;
  color: var(--brand-teal-strong);
}

.types-final {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 38px 20px 44px;
  background: #ffffff;
  text-align: center;
}

.types-final p {
  margin: 0;
  color: #4f5967;
  font-weight: 850;
}

.framework-masthead {
  background: #f3f1f8;
}

.resources-masthead {
  background: #f7f3ea;
}

.resource-home {
  background: #f5f6f7;
}

.resource-hero {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 42px 24px 28px;
  background: var(--brand-teal-soft);
  text-align: center;
}

.resource-hero h2 {
  margin: 0;
  color: #2c3344;
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: 0;
}

.resource-hero p:not(.eyebrow) {
  width: min(640px, 100%);
  margin: 0;
  color: #566170;
  font-size: 16px;
  line-height: 1.58;
}

.resource-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  align-items: center;
  width: min(520px, 100%);
  min-height: 48px;
  margin-top: 8px;
  border: 1px solid #d9e4e7;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(32, 35, 31, 0.08);
  overflow: hidden;
}

.resource-search input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 0 0 0 18px;
  border: 0;
  background: transparent;
  color: #2d3443;
  font-size: 15px;
  outline: 0;
}

.resource-search button {
  display: grid;
  place-items: center;
  width: 46px;
  min-height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #5d6673;
}

.resource-search button:hover {
  background: var(--brand-teal-soft);
  color: var(--brand-teal-strong);
  box-shadow: none;
}

.resource-search .ui-icon {
  width: 22px;
  height: 22px;
}

.resource-home-inner {
  display: grid;
  gap: 18px;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 22px 20px 44px;
}

.resource-latest {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid #bfdce3;
  border-left: 5px solid var(--brand-gold);
  border-radius: 8px;
  background: #eaf7f8;
  color: #2d3443;
  text-decoration: none;
}

.resource-latest span {
  color: var(--brand-teal-strong);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.resource-latest strong {
  font-size: 16px;
  line-height: 1.25;
}

.resource-latest small {
  color: #596473;
  font-size: 13px;
  line-height: 1.45;
}

.resource-category-list {
  display: grid;
  gap: 16px;
}

.resource-category-card {
  display: grid;
  grid-template-columns: minmax(140px, 0.7fr) minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e1e5e8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(32, 35, 31, 0.05);
}

.resource-category-card[hidden] {
  display: none;
}

.resource-category-card img {
  width: 100%;
  height: 100%;
  min-height: 188px;
  object-fit: cover;
  object-position: center;
  background: #f4f8f7;
}

.resource-category-body {
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
  padding: 18px 18px 18px 20px;
}

.resource-category-body h3 {
  margin: 0;
  color: #2d3443;
  font-size: 22px;
  line-height: 1.15;
}

.resource-meta {
  margin: 0;
  color: #737b87;
  font-size: 13px;
  line-height: 1.35;
}

.resource-category-body p:not(.resource-meta) {
  margin: 0;
  color: #596473;
  font-size: 15px;
  line-height: 1.58;
}

.resource-category-body a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: fit-content;
  min-height: 36px;
  margin-top: 4px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--action);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.resource-category-body a:hover {
  background: var(--action-strong);
}

.resource-category-body a .ui-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.3;
}

.resource-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed #cfd8dd;
  border-radius: 8px;
  background: #ffffff;
  color: #596473;
  text-align: center;
}

.resource-view-all {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid #d7dde3;
  border-radius: 999px;
  background: #ffffff;
  color: #3f4857;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.resource-view-all:hover {
  border-color: var(--brand-teal);
  background: var(--brand-teal-soft);
  color: var(--brand-teal-strong);
}

.resource-view-all .ui-icon {
  width: 17px;
  height: 17px;
}

.premium-masthead {
  background: #f3edf7;
}

.result-masthead {
  background: #eef7f8;
}

.account-masthead {
  background: #f2f7ed;
}

.profile-suite-page {
  background: #f5f6f7;
}

.profile-suite-hero {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 42px 22px 34px;
  background: #ffffff;
  text-align: center;
}

.profile-suite-hero img {
  display: block;
  width: min(260px, 76vw);
  max-height: 190px;
  object-fit: contain;
  margin-bottom: 4px;
}

.profile-suite-hero h2 {
  margin: 0;
  color: #2c3344;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: 0;
}

.profile-suite-hero p {
  width: min(560px, 100%);
  margin: 0;
  color: #596473;
  font-size: 15px;
  line-height: 1.6;
}

.profile-suite-hero .profile-price {
  color: #2d3443;
  font-size: 24px;
  font-weight: 950;
  line-height: 1.1;
}

.profile-price span {
  color: #6f7783;
  font-size: 14px;
  font-weight: 800;
}

.profile-suite-hero .primary-link,
.profile-suite-product .primary-link {
  width: min(420px, 100%);
  min-height: 44px;
  font-size: 15px;
}

.profile-suite-hero small {
  width: min(520px, 100%);
  color: #7a828d;
  font-size: 12px;
  line-height: 1.45;
}

.profile-suite-card,
.profile-suite-product,
.profile-live-panel,
.profile-faq,
.profile-testimonials,
.profile-risk-free {
  width: min(760px, calc(100% - 40px));
  margin: 18px auto;
  border: 1px solid #e1e5e8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(32, 35, 31, 0.05);
}

.profile-suite-card {
  padding: 22px 18px;
}

.profile-suite-card h3,
.profile-suite-product h3,
.profile-faq h3,
.profile-risk-free h3 {
  margin: 0 0 16px;
  color: #2d3443;
  font-size: 22px;
  line-height: 1.18;
}

.profile-benefit-list {
  display: grid;
  gap: 16px;
}

.profile-benefit-list article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.profile-benefit-list span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eaf7f0;
  color: #176b5b;
  font-weight: 950;
}

.profile-benefit-list article:nth-child(2) span {
  background: #f0e7f4;
  color: #8b61a7;
}

.profile-benefit-list article:nth-child(3) span {
  background: #eef7f8;
  color: #3f8fa1;
}

.profile-benefit-list article:nth-child(4) span {
  background: #fff1cc;
  color: #9a6a09;
}

.profile-benefit-list h4 {
  margin: 0 0 5px;
  color: #303746;
  font-size: 17px;
  line-height: 1.25;
}

.profile-benefit-list p,
.profile-suite-product p,
.profile-faq p,
.profile-risk-free p,
.profile-testimonials p {
  margin: 0;
  color: #596473;
  font-size: 14px;
  line-height: 1.6;
}

.profile-suite-product {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 26px 18px;
  text-align: center;
}

.profile-suite-product img {
  display: block;
  width: min(300px, 80vw);
  max-height: 190px;
  object-fit: contain;
}

.profile-product-links {
  display: grid;
  gap: 10px;
  width: min(460px, 100%);
  margin: 8px 0 6px;
}

.profile-product-links a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #e1e5e8;
  border-radius: 8px;
  background: #fbfaf5;
  color: #3f5964;
  font-weight: 900;
  text-decoration: none;
}

.profile-product-links a:hover {
  background: var(--brand-teal-soft);
  color: var(--brand-teal-strong);
}

.profile-live-panel {
  padding: 0;
  overflow: hidden;
}

.profile-live-panel .page-heading {
  padding: 26px 20px 18px;
  border-bottom: 1px solid #e1e5e8;
}

.profile-live-panel #profileDashboard {
  margin: 0;
  padding: 20px;
}

.profile-faq {
  display: grid;
  padding: 22px 18px;
}

.profile-faq details {
  border-top: 1px solid #e6e9ec;
}

.profile-faq details:last-child {
  border-bottom: 1px solid #e6e9ec;
}

.profile-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  min-height: 52px;
  color: #303746;
  font-weight: 900;
  cursor: pointer;
}

.profile-faq summary::-webkit-details-marker {
  display: none;
}

.profile-faq summary::after {
  content: "+";
  color: var(--brand-teal);
  font-size: 22px;
  line-height: 1;
}

.profile-faq details[open] summary::after {
  content: "-";
}

.profile-faq details p {
  padding: 0 0 16px;
}

.profile-testimonials {
  display: flex;
  gap: 16px;
  padding: 22px 18px;
  overflow-x: auto;
  background: #eef7f8;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.profile-testimonials::-webkit-scrollbar {
  display: none;
}

.profile-testimonials article {
  flex: 0 0 min(76vw, 300px);
  display: grid;
  gap: 10px;
  min-height: 170px;
  padding: 18px;
  border-radius: 8px;
  background: #ffffff;
  scroll-snap-align: start;
}

.profile-testimonials strong {
  color: #2d3443;
}

.profile-suite-hero.compact {
  margin-top: 18px;
  background: #ffffff;
}

.profile-suite-hero.compact img {
  max-height: 150px;
}

.profile-risk-free {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-bottom: 34px;
  padding: 22px 18px;
  text-align: center;
}

.profile-risk-free h3 {
  margin-bottom: 0;
  color: #176b5b;
}

.premium-sales-page {
  background: #f5f6f7;
}

.premium-sales-hero,
.premium-info-card,
.premium-image-section,
.premium-included,
.premium-calculator,
.premium-faq {
  width: min(760px, calc(100% - 40px));
  margin: 18px auto;
  border: 1px solid #e1e5e8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(32, 35, 31, 0.05);
}

.premium-sales-hero {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 0;
  padding: 38px 22px 30px;
  text-align: center;
}

.premium-sales-hero h2,
.premium-image-section h3,
.premium-included h3,
.premium-calculator h3,
.premium-faq h3 {
  margin: 0;
  color: #2c3344;
  font-size: 28px;
  line-height: 1.14;
  letter-spacing: 0;
}

.premium-sales-hero p,
.premium-image-section p,
.premium-calculator > p,
.premium-faq p {
  width: min(580px, 100%);
  margin: 0;
  color: #596473;
  font-size: 15px;
  line-height: 1.6;
}

.premium-sales-hero img {
  display: block;
  width: min(340px, 82vw);
  max-height: 230px;
  object-fit: contain;
}

.premium-sales-hero .primary-link,
.premium-calculator .primary-link {
  width: min(430px, 100%);
  min-height: 44px;
  font-size: 15px;
}

.premium-sales-hero small,
.premium-calculator small {
  width: min(520px, 100%);
  color: #7a828d;
  font-size: 12px;
  line-height: 1.45;
}

.premium-info-card,
.premium-image-section,
.premium-included,
.premium-calculator,
.premium-faq {
  padding: 22px 18px;
}

.premium-info-card h3 {
  margin: 0 0 16px;
  color: #2d3443;
  font-size: 22px;
  line-height: 1.18;
}

.premium-bullet-list {
  display: grid;
  gap: 16px;
}

.premium-bullet-list article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
}

.premium-bullet-list span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eaf7f0;
  color: #176b5b;
  font-weight: 950;
}

.premium-bullet-list article:nth-child(2) span {
  background: #eef7f8;
  color: #3f8fa1;
}

.premium-bullet-list article:nth-child(3) span {
  background: #f0e7f4;
  color: #8b61a7;
}

.premium-bullet-list article:nth-child(4) span {
  background: #fff1cc;
  color: #9a6a09;
}

.premium-bullet-list h4 {
  margin: 0 0 5px;
  color: #303746;
  font-size: 17px;
  line-height: 1.25;
}

.premium-bullet-list p,
.premium-capability-list span,
.premium-included-list p {
  margin: 0;
  color: #596473;
  font-size: 14px;
  line-height: 1.6;
}

.premium-image-section {
  display: grid;
  gap: 14px;
  text-align: center;
}

.premium-capability-list {
  display: grid;
  gap: 12px;
  margin-top: 4px;
  text-align: left;
}

.premium-capability-list article {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid #e1e5e8;
  border-radius: 8px;
  background: #fbfaf5;
}

.premium-capability-list strong,
.premium-included-list h4 {
  color: #2d3443;
  font-size: 16px;
  line-height: 1.25;
}

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

.premium-included-list article {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 14px;
  border: 1px solid #e1e5e8;
  border-radius: 8px;
  background: #ffffff;
}

.premium-included-list img {
  width: 100%;
  height: 92px;
  object-fit: contain;
  border-radius: 6px;
  background: #f4f8f7;
}

.premium-included-list div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.premium-included-list h4 {
  margin: 0;
}

.premium-included-list a {
  color: #3f8fa1;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.premium-calculator {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

.premium-plan-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: min(460px, 100%);
  padding: 6px;
  border-radius: 999px;
  background: var(--brand-teal-soft);
}

.premium-plan-options button {
  min-height: 38px;
  padding: 8px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #3f5964;
  font-size: 14px;
  font-weight: 900;
}

.premium-plan-options button.active {
  background: var(--brand-gold-soft);
  color: var(--brand-navy);
  box-shadow: inset 0 0 0 2px var(--brand-gold);
}

.premium-price-box {
  display: grid;
  gap: 6px;
  width: min(430px, 100%);
  padding: 18px;
  border: 1px solid #dbe6ea;
  border-radius: 8px;
  background: #ffffff;
}

.premium-price-box span {
  color: #3f8fa1;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.premium-price-box strong {
  color: #2d3443;
  font-size: 36px;
  line-height: 1;
}

.premium-price-box p {
  margin: 0;
  color: #596473;
}

.premium-faq {
  display: grid;
}

.premium-faq h3 {
  margin-bottom: 14px;
}

.premium-faq details {
  border-top: 1px solid #e6e9ec;
}

.premium-faq details:last-child {
  border-bottom: 1px solid #e6e9ec;
}

.premium-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  min-height: 52px;
  color: #303746;
  font-weight: 900;
  cursor: pointer;
}

.premium-faq summary::-webkit-details-marker {
  display: none;
}

.premium-faq summary::after {
  content: "+";
  color: #3f8fa1;
  font-size: 22px;
}

.premium-faq details[open] summary::after {
  content: "-";
}

.premium-faq details p {
  padding: 0 0 16px;
}

.legal-masthead {
  background: #f7f6f1;
}

.masthead-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  width: min(900px, 100%);
  margin-top: 42px;
}

.masthead-steps span {
  display: grid;
  align-content: end;
  justify-items: start;
  min-height: 210px;
  padding: 24px 22px 22px;
  border: 0;
  border-top: 5px solid #4a9db7;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 44px rgba(42, 51, 67, 0.08);
  color: #2c3344;
  text-align: left;
}

.masthead-steps span::before {
  display: block;
  width: 86px;
  height: 74px;
  margin: 0 auto 24px;
  border-radius: 18px 18px 8px 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), transparent 48%) 12px 12px / 28px 24px no-repeat,
    linear-gradient(150deg, #6fc2d2, #3f8fa1);
  box-shadow:
    22px 12px 0 -6px rgba(74, 157, 183, 0.35),
    -18px 22px 0 -9px rgba(74, 157, 183, 0.28);
  content: "";
}

.masthead-steps span.step-yellow {
  border-top-color: #e4b526;
  background: #fffbef;
}

.masthead-steps span.step-yellow::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), transparent 48%) 12px 12px / 28px 24px no-repeat,
    linear-gradient(150deg, #f4d154, #dca91e);
  box-shadow:
    22px 12px 0 -6px rgba(228, 181, 38, 0.28),
    -18px 22px 0 -9px rgba(228, 181, 38, 0.24);
}

.masthead-steps span.step-purple {
  border-top-color: #8e61a6;
  background: #faf6fb;
}

.masthead-steps span.step-purple::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.6), transparent 48%) 12px 12px / 28px 24px no-repeat,
    linear-gradient(150deg, #b18ac5, #8e61a6);
  box-shadow:
    22px 12px 0 -6px rgba(142, 97, 166, 0.26),
    -18px 22px 0 -9px rgba(142, 97, 166, 0.22);
}

.masthead-steps strong {
  display: block;
  font-size: 21px;
  font-weight: 900;
  line-height: 1.2;
}

.masthead-steps small {
  display: block;
  margin-top: 10px;
  color: #5d6875;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
}

.content-page {
  background: #ffffff;
}

.type-family-grid,
.framework-grid,
.resource-grid,
.pricing-layout,
.settings-grid,
.sitemap-grid,
.scenario-grid,
.faq-list,
.language-page-list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

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

.type-family,
.framework-grid article,
.resource-grid article,
.pricing-plan,
.type-article,
.type-index,
.scenario-grid article,
.faq-list article,
.language-page-list article,
.comparison-band > div {
  border: 1px solid #e1e5e8;
  background: #ffffff;
  padding: 20px;
}

.type-family {
  display: grid;
  align-content: start;
  gap: 10px;
}

.family-mark {
  display: grid;
  place-items: center;
  width: 52px;
  min-height: 52px;
  background: #4a9db7;
  color: #ffffff;
  font-size: 22px;
  font-weight: 950;
}

.type-family h3,
.framework-grid h3,
.resource-grid h3,
.pricing-plan h3,
.type-article h3,
.comparison-band h3 {
  margin: 0;
  color: #2d3443;
  font-size: 20px;
  line-height: 1.25;
}

.type-family p,
.framework-grid p,
.resource-grid p,
.pricing-plan li,
.type-article p,
.comparison-band p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.type-family a,
.resource-grid a {
  color: #4a8fa5;
  font-weight: 900;
  text-decoration: none;
}

.type-detail-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.type-index {
  align-self: start;
  display: grid;
  gap: 12px;
  background: #fbfaf5;
}

.type-index h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.type-index a {
  color: #4c5665;
  font-weight: 850;
  text-decoration: none;
}

.type-article {
  display: grid;
  gap: 16px;
}

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

.article-columns div {
  padding: 16px;
  background: #f7faf9;
}

.article-columns h4 {
  margin: 0 0 8px;
  color: #303746;
  font-size: 16px;
}

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

.framework-grid article {
  display: grid;
  gap: 10px;
}

.framework-grid span {
  color: #8b61a7;
  font-size: 13px;
  font-weight: 950;
}

.comparison-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.comparison-band > div:first-child {
  background: #f7fbfa;
}

.comparison-band > div:last-child {
  background: #fbf7fc;
}

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

.resource-grid article,
.settings-grid article,
.sitemap-grid article,
.scenario-grid article,
.faq-list article,
.language-page-list article {
  display: grid;
  gap: 12px;
}

.resource-type {
  width: fit-content;
  padding: 4px 8px;
  background: #edf6f8;
  color: #3f8fa1;
  font-size: 12px;
  font-weight: 950;
}

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

.scenario-grid span {
  width: fit-content;
  padding: 4px 9px;
  background: #fbfaf5;
  color: #8b61a7;
  font-size: 12px;
  font-weight: 950;
}

.scenario-grid h3,
.faq-list h3,
.language-page-list strong {
  margin: 0;
  color: #2d3443;
  font-size: 19px;
  line-height: 1.25;
}

.scenario-grid p,
.faq-list p,
.language-page-list span {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.scenario-grid a {
  color: #4a8fa5;
  font-weight: 900;
  text-decoration: none;
}

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

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

.pricing-layout {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

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

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

.pricing-plan {
  display: grid;
  gap: 16px;
  align-content: start;
}

.pricing-plan.featured {
  border-color: var(--brand-navy);
  box-shadow: 0 16px 34px rgba(23, 58, 117, 0.14);
}

.price {
  margin: 0;
  color: var(--brand-gold-strong);
  font-size: 28px;
  font-weight: 950;
}

.pricing-plan ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
}

.pricing-plan .primary-link,
.pricing-plan .secondary-link {
  width: 100%;
  margin-top: auto;
  font-size: 16px;
}

.detail-panel {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.result-hero-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 24px;
  border: 1px solid #dce6e7;
  background: #f7fbfa;
}

.result-hero-card h3 {
  margin: 0 0 8px;
  color: #2d3443;
  font-size: 30px;
  line-height: 1.15;
}

.result-hero-card p:not(.eyebrow),
.legal-copy p,
.auth-form p,
.auth-note li {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.detail-grid article,
.auth-form,
.auth-note,
.legal-copy,
.settings-grid article,
.billing-status,
.billing-table,
.sitemap-grid article,
.article-page {
  border: 1px solid #e1e5e8;
  background: #ffffff;
  padding: 20px;
}

.detail-grid h3,
.auth-note h3,
.legal-copy h3,
.settings-grid h3,
.billing-layout h3,
.sitemap-grid h3,
.article-page h3 {
  margin: 0 0 8px;
  color: #2d3443;
  font-size: 19px;
  line-height: 1.25;
}

.settings-grid p,
.billing-layout p,
.sitemap-grid a,
.article-page p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.danger-button {
  border-color: #8c2f28;
  background: #a13d33;
}

.danger-button:hover {
  background: #7e2b25;
}

.billing-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  margin-top: 24px;
}

.billing-status {
  display: grid;
  align-content: start;
  gap: 14px;
}

.billing-table {
  display: grid;
  gap: 14px;
}

.table-like {
  display: grid;
  border: 1px solid var(--line);
}

.table-like div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
}

.table-like div + div {
  border-top: 1px solid var(--line);
}

.table-like strong {
  color: #303746;
}

.table-like a {
  color: #3f8fa1;
  font-weight: 850;
  text-decoration: none;
}

.sitemap-grid a {
  color: #3f8fa1;
  font-weight: 850;
  text-decoration: none;
}

.article-page {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.article-page h3 {
  font-size: 28px;
}

.article-lede {
  max-width: 780px;
  font-size: 17px;
}

.article-section-list {
  display: grid;
  gap: 12px;
}

.article-section-list section {
  padding: 16px;
  background: #f7faf9;
}

.article-section-list h4 {
  margin: 0 0 8px;
  color: #303746;
  font-size: 17px;
}

.page-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-actions-row .primary-link,
.page-actions-row .secondary-link {
  width: auto;
  min-width: 180px;
  font-size: 16px;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 18px;
  margin-top: 24px;
}

.auth-modal-page {
  min-height: calc(100vh - 130px);
  padding: 72px 20px 96px;
  background:
    linear-gradient(rgba(245, 247, 248, 0.78), rgba(245, 247, 248, 0.78)),
    linear-gradient(135deg, #eef7f8, #fbfaf5);
}

.auth-modal-backdrop {
  display: grid;
  place-items: start center;
}

.auth-modal-card {
  position: relative;
  box-sizing: border-box;
  min-width: 0;
  width: min(560px, calc(100vw - 40px));
  border: 1px solid #dfe4e8;
  border-radius: 10px;
  background: #ffffff;
  padding: 28px;
  box-shadow: 0 18px 50px rgba(28, 35, 45, 0.16);
}

.auth-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #d9dce2;
  border-radius: 50%;
  background: #ffffff;
  color: #8a91a0;
  font-size: 28px;
  line-height: 1;
  text-decoration: none;
}

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

.auth-link-form > * {
  min-width: 0;
  max-width: 100%;
}

.auth-link-form h2 {
  margin: 0;
  color: #2d3443;
  font-size: 34px;
  line-height: 1.1;
}

.auth-modal-lede,
.auth-new-user {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.email-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 68px;
  border: 2px solid var(--brand-teal);
  border-radius: 6px;
  background: #ffffff;
  padding: 0 16px;
}

.email-field .ui-icon {
  width: 28px;
  height: 28px;
  color: var(--brand-teal);
}

.email-field input {
  border: 0;
  padding: 0;
  box-shadow: none;
  font-size: 22px;
}

.auth-code-link {
  justify-self: center;
  border: 0;
  background: transparent;
  color: #2f879b;
  font: inherit;
  font-size: 16px;
  font-weight: 850;
  cursor: pointer;
}

.social-auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 64px;
  width: 100%;
  border: 1px solid #d9dce2;
  border-radius: 999px;
  background: #ffffff;
  color: #303746;
  font-size: 21px;
  font-weight: 850;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.social-auth-button:hover {
  border-color: var(--brand-teal);
  background: var(--brand-teal-soft);
}

.auth-new-user {
  text-align: center;
}

.auth-new-user a {
  color: #2f879b;
  font-weight: 850;
  text-decoration: none;
}

.auth-link-form .auth-submit {
  min-height: 68px;
  font-size: 21px;
}

.create-profile-page {
  min-height: calc(100vh - 130px);
  display: grid;
  align-content: start;
  gap: 24px;
  padding: 44px 36px 128px;
  background: #ffffff;
}

.create-profile-header {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.create-profile-back {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid #d9dce2;
  border-radius: 50%;
  color: #9aa1ad;
  font-size: 36px;
  line-height: 1;
  text-decoration: none;
}

.create-profile-header h2 {
  margin: 0;
  color: #2d3443;
  font-size: 42px;
  line-height: 1.08;
}

.create-profile-header p {
  margin: 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.5;
}

.create-profile-actions {
  display: grid;
  gap: 14px;
  width: min(720px, 100%);
}

.create-profile-actions .primary-link,
.secondary-choice-button {
  min-height: 70px;
  width: 100%;
  border-radius: 999px;
  font-size: 21px;
}

.secondary-choice-button {
  border: 1px solid #d9dce2;
  background: #ffffff;
  color: #303746;
  font-weight: 850;
  cursor: pointer;
}

.secondary-choice-button:hover {
  border-color: var(--brand-teal);
  background: var(--brand-teal-soft);
}

.known-result-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 18px;
  width: min(980px, 100%);
  margin-top: 8px;
}

.known-result-panel[hidden],
.profile-after-test[hidden] {
  display: none !important;
}

.profile-after-test {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  border: 1px solid #dfe4e8;
  background: #fbfaf5;
  padding: 18px;
}

.profile-after-test h3 {
  margin: 0;
  color: #2d3443;
  font-size: 22px;
}

.profile-after-test p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-provider-group {
  display: grid;
  gap: 14px;
  margin-bottom: 4px;
}

.google-auth-button,
.auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  width: 100%;
  border: 1px solid #d9dce2;
  border-radius: 999px;
  background: #ffffff;
  color: #303746;
  font-size: 16px;
  font-weight: 850;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.google-auth-button:hover,
.auth-submit:hover {
  border-color: var(--brand-teal);
  background: var(--brand-teal-soft);
}

.auth-submit {
  border-color: var(--action);
  background: var(--action);
  color: #ffffff;
}

.auth-submit:hover {
  border-color: var(--action-strong);
  background: var(--action-strong);
}

.google-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #d9dce2;
  border-radius: 50%;
  background: #ffffff;
  color: #4285f4;
  font-size: 16px;
  font-weight: 900;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid #d9dce2;
  background: #ffffff;
}

.password-field:focus-within {
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(36, 155, 154, 0.16);
}

.password-field input {
  border: 0;
  box-shadow: none;
}

.password-field button {
  min-width: 56px;
  height: 100%;
  border: 0;
  border-left: 1px solid #e3e7eb;
  background: #f8faf9;
  color: var(--brand-teal-strong);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.password-rules {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.auth-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.auth-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.auth-status {
  min-width: 0;
  min-height: 24px;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.auth-modal-card .page-actions-row {
  min-width: 0;
  max-width: 100%;
}

.auth-status.success,
.auth-status.error,
.auth-status.info {
  padding: 10px 12px;
  border: 1px solid;
}

.auth-status.success {
  border-color: #b7dfc7;
  background: #f1faf4;
  color: #247346;
}

.auth-status.error {
  border-color: #efc4bd;
  background: #fff5f3;
  color: #9a3428;
}

.auth-status.info {
  border-color: #c5dfe8;
  background: #f1f8fa;
  color: #2f6d7e;
}

.auth-boundary {
  padding: 12px;
  background: #f7faf9;
  font-size: 14px;
}

.auth-form-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.auth-form-links a {
  color: var(--brand-teal-strong);
  font-weight: 850;
  text-decoration: none;
}

.auth-note {
  display: grid;
  align-content: start;
  gap: 14px;
  background: #fbfaf5;
}

.auth-note ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.auth-note .secondary-link {
  width: 100%;
  font-size: 16px;
}

.legal-copy {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.profile-heading {
  padding: 34px;
  margin: -24px -24px 24px;
  background: #edf7f1;
}

.profile-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.profile-subnav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #d5e3df;
  background: #ffffff;
  color: #3f5964;
  font-weight: 850;
  text-decoration: none;
}

.hero {
  position: relative;
  display: grid;
  justify-items: center;
  min-width: 0;
  padding: 92px 0 0;
  overflow: hidden;
  background: #eef7f8;
}

.hero::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -2%;
  right: -2%;
  height: 44px;
  background: #ffffff;
  clip-path: polygon(0 0, 100% 0, 100% 12%, 78% 70%, 58% 18%, 19% 70%, 0 18%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -1px;
  height: 12%;
  background: #ffffff;
  clip-path: polygon(0 54%, 14% 36%, 31% 28%, 51% 45%, 64% 31%, 78% 40%, 100% 26%, 100% 100%, 0 100%);
  pointer-events: none;
}

.hero-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  margin-bottom: 18px;
}

.slider-arrow {
  display: inline-grid;
  place-items: center;
  width: 52px;
  min-height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: #c6cbd1;
  box-shadow: 0 10px 24px rgba(32, 35, 31, 0.08);
}

.slider-arrow:hover {
  background: #ffffff;
  color: var(--brand-teal);
  box-shadow: 0 14px 26px rgba(32, 35, 31, 0.12);
}

.slider-arrow .ui-icon {
  width: 26px;
  height: 26px;
  stroke-width: 2.3;
}

.slider-dots {
  display: flex;
  gap: 12px;
}

.slider-dots span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #d9dde3;
}

.slider-dots .active {
  background: var(--brand-gold);
}

.hero-picture {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 500px;
  margin: 34px auto -4px;
  overflow: hidden;
}

.hero-picture::after {
  content: none;
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(980px, 100%);
  min-width: 0;
  padding: 0 34px;
  text-align: center;
}

.hero-copy h2 {
  max-width: 980px;
  margin-bottom: 18px;
  color: #2c3344;
  font-size: 54px;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 690px;
  color: #4e5866;
  font-size: 21px;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: min(330px, 100%);
  margin: 30px 0 0;
}

.primary-link,
.secondary-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 12px 28px;
  border: 1px solid var(--accent-strong);
  border-radius: 999px;
  font-weight: 900;
  font-size: 18px;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.primary-link {
  width: 100%;
  background: var(--action);
  border-color: var(--action);
  color: #ffffff;
  box-shadow: 0 14px 26px var(--action-shadow);
}

.secondary-link {
  background: #ffffff;
  color: var(--accent-strong);
}

.primary-link:hover,
.secondary-link:hover {
  transform: translateY(-1px);
}

.primary-link .ui-icon,
.secondary-link .ui-icon {
  width: 22px;
  height: 22px;
  stroke-width: 2.35;
}

.primary-link:hover {
  background: var(--action-strong);
  border-color: var(--action-strong);
  box-shadow: 0 18px 30px var(--action-shadow-strong);
}

.secondary-link:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.primary-link:active,
.secondary-link:active {
  transform: translateY(1px);
  box-shadow: none;
}

.link-arrow,
.chevron-icon,
.close-icon,
.tool-icon,
.nav-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.link-arrow {
  width: 20px;
  height: 20px;
}

.link-arrow::before {
  content: "";
  width: 12px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.link-arrow::after {
  content: "";
  position: absolute;
  width: 17px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.chevron-icon {
  width: 18px;
  height: 18px;
}

.chevron-icon::before {
  content: "";
  width: 11px;
  height: 11px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

.chevron-left::before {
  transform: rotate(-135deg);
}

.chevron-right::before {
  transform: rotate(45deg);
}

.close-icon {
  width: 24px;
  height: 24px;
}

.close-icon::before,
.close-icon::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.close-icon::before {
  transform: rotate(45deg);
}

.close-icon::after {
  transform: rotate(-45deg);
}

.hero-note {
  max-width: 580px;
  margin-bottom: 0;
  color: #6f7480;
  font-size: 13px;
  line-height: 1.6;
}

.home-stats,
.home-testimonials,
.home-final-cta {
  position: relative;
  padding: 56px 34px;
}

.home-stats {
  padding-top: 0;
  padding-bottom: 62px;
  background: #ffffff;
}

.home-section-heading {
  width: min(760px, 100%);
  margin: 0 auto 24px;
}

.home-section-heading.centered {
  text-align: center;
}

.home-section-heading h2,
.home-story-copy h2,
.home-final-cta h2 {
  margin: 0;
  color: #2c3344;
  font-size: 38px;
  line-height: 1.14;
  letter-spacing: 0;
}

.home-section-heading p:not(.home-pill),
.home-story-copy p:not(.home-pill),
.home-final-cta p {
  margin: 14px 0 0;
  color: #4f5967;
  font-size: 17px;
  line-height: 1.68;
}

.home-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  margin: 0 0 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #dcece7;
  color: #176b5b;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
}

.home-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: min(1040px, 100%);
  margin: 0 auto;
}

.home-stat-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 148px;
  padding: 26px 22px 22px;
  border: 1px solid #e3e0d8;
  border-top: 6px solid var(--stat-color, #4a9db7);
  border-radius: 8px;
  background: var(--stat-bg, #f5fbfd);
}

.home-stat-card strong {
  color: #2c3344;
  font-size: 42px;
  line-height: 1;
  letter-spacing: 0;
}

.home-stat-card span {
  color: #4f5967;
  font-size: 15px;
  line-height: 1.55;
}

.stat-blue {
  --stat-color: #4a9db7;
  --stat-bg: #eef8fb;
}

.stat-gold {
  --stat-color: #d7a62f;
  --stat-bg: #fff8e8;
}

.stat-green {
  --stat-color: #37a47c;
  --stat-bg: #eef8f3;
}

.stat-purple {
  --stat-color: #8b61a7;
  --stat-bg: #f5eff8;
}

.home-story-section {
  position: relative;
  padding: 120px 34px 110px;
  overflow: hidden;
  background: #f6f6f6;
}

.home-story-section::before,
.home-story-section::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  height: 76px;
  pointer-events: none;
}

.home-story-section::before {
  top: -1px;
  background: #ffffff;
  clip-path: polygon(0 0, 100% 0, 100% 44%, 78% 28%, 58% 58%, 19% 24%, 0 43%);
}

.home-story-section::after {
  bottom: -1px;
  background: #ffffff;
  clip-path: polygon(0 58%, 15% 78%, 42% 58%, 66% 70%, 91% 50%, 100% 42%, 100% 100%, 0 100%);
}

.story-team {
  background: #f6f6f6;
}

.story-team .home-story-inner {
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  justify-content: initial;
  gap: 72px;
  text-align: left;
}

.story-team .home-story-art {
  min-height: 360px;
}

.story-team .home-story-art::before {
  inset: 30px 20px;
  border-radius: 0;
  clip-path: polygon(13% 13%, 51% 0, 91% 14%, 100% 70%, 53% 100%, 4% 72%);
  background: rgba(255, 255, 255, 0.82);
}

.story-team .home-story-art img {
  width: min(500px, 86%);
  max-height: 330px;
}

.story-team .home-story-copy {
  display: grid;
  justify-items: start;
}

.story-team .home-story-copy p:not(.home-pill) {
  width: auto;
}

.story-team .home-story-copy .primary-link {
  width: auto;
  min-width: 278px;
}

.home-story-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  align-items: center;
  gap: 72px;
  width: min(1300px, 100%);
  margin: 0 auto;
}

.home-story-inner.reverse {
  grid-template-columns: minmax(340px, 1.1fr) minmax(0, 0.9fr);
}

.home-story-inner.reverse .home-story-art {
  order: 0;
}

.home-story-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 360px;
}

.home-story-art::before {
  content: "";
  position: absolute;
  inset: 30px 20px;
  background: rgba(255, 255, 255, 0.82);
  clip-path: polygon(13% 13%, 51% 0, 91% 14%, 100% 70%, 53% 100%, 4% 72%);
}

.home-story-art img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(430px, 78%);
  max-height: 320px;
  object-fit: contain;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.home-story-copy {
  min-width: 0;
}

.home-story-copy .primary-link {
  width: auto;
  min-width: 278px;
  margin-top: 30px;
  padding-inline: 34px;
}

.home-testimonials {
  padding-top: 76px;
  background: #f7f7f7;
  overflow: hidden;
}

.home-testimonials .home-section-heading::before {
  content: "“";
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 14px 14px 18px 18px;
  background: #e0aa2d;
  color: #ffffff;
  font-size: 42px;
  font-weight: 950;
  line-height: 1;
}

.testimonial-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(980px, 100%);
  margin: 28px auto 0;
}

.testimonial-card {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 250px;
  padding: 26px 24px;
  border: 1px solid #e4e1da;
  border-top: 6px solid var(--quote-color, #8b61a7);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(32, 35, 31, 0.06);
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.testimonial-person span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--quote-soft, #f0e7f4);
  color: var(--quote-color, #8b61a7);
  font-weight: 950;
}

.testimonial-person strong {
  min-width: 0;
  color: #2f3745;
  font-size: 18px;
}

.testimonial-card p {
  margin: 0;
  color: #4f5967;
  font-size: 16px;
  line-height: 1.7;
}

.testimonial-purple {
  --quote-color: #8b61a7;
  --quote-soft: #f0e7f4;
}

.testimonial-green {
  --quote-color: #37a47c;
  --quote-soft: #e5f4ee;
}

.testimonial-gold {
  --quote-color: #d7a62f;
  --quote-soft: #fff1cc;
}

.testimonial-dots {
  justify-content: center;
  margin-top: 28px;
}

.home-final-cta {
  display: grid;
  justify-items: center;
  overflow: hidden;
  text-align: center;
  padding-top: 0;
  padding-bottom: 96px;
  background: #eaf7f0;
}

.home-final-cta::before {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  top: -1px;
  height: 92px;
  background: #ffffff;
  clip-path: polygon(0 0, 100% 0, 100% 46%, 84% 28%, 58% 58%, 31% 34%, 9% 50%, 0 42%);
  pointer-events: none;
}

.home-final-cta::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -1px;
  height: 96px;
  background: #ffffff;
  clip-path: polygon(0 54%, 18% 42%, 45% 48%, 64% 36%, 87% 47%, 100% 38%, 100% 100%, 0 100%);
}

.home-final-cta > * {
  position: relative;
  z-index: 1;
}

.home-final-picture {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 170px;
  margin: -18px 0 24px;
  overflow: hidden;
}

.home-final-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.home-final-cta h2 {
  width: min(720px, 100%);
  padding: 0 24px;
  font-size: 40px;
}

.home-final-cta p {
  width: min(640px, 100%);
  padding: 0 24px;
}

.home-final-cta .primary-link {
  width: min(560px, calc(100% - 48px));
  margin-top: 30px;
}

.site-footer {
  position: relative;
  padding: 76px 42px 42px;
  border-top: 0;
  background: #ffffff;
  color: #303746;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 38px;
  width: min(1320px, 100%);
  margin: 0 auto;
}

.footer-group {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}

.footer-group h2 {
  margin: 0 0 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e4e7eb;
  color: #2d3443;
  font-size: 18px;
  line-height: 1.25;
}

.footer-group a,
.footer-link-button,
.legal-links a {
  color: #3c4454;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
  text-align: left;
  text-decoration: none;
}

.footer-group a:hover,
.footer-link-button:hover,
.legal-links a:hover {
  color: var(--brand-teal-strong);
}

.footer-link-button {
  width: fit-content;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.footer-legal {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: center;
  width: min(1320px, 100%);
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid #e6e8eb;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
}

.copyright {
  margin: 0;
  color: #747c89;
  font-size: 14px;
  line-height: 1.45;
}

.bottom-nav {
  display: none;
}

.mobile-menu[hidden] {
  display: none !important;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(72px, 1fr) min(520px, calc(100vw - 72px));
}

.mobile-menu-scrim {
  min-height: 100vh;
  border: 0;
  border-radius: 0;
  background: rgba(31, 37, 44, 0.35);
  backdrop-filter: blur(2px);
}

.mobile-menu-panel {
  min-width: 0;
  min-height: 100vh;
  overflow-y: auto;
  background: #ffffff;
  box-shadow: -18px 0 36px rgba(20, 25, 32, 0.18);
}

.mobile-menu-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 14px;
  align-items: center;
  min-height: 96px;
  padding: 14px 22px 14px 28px;
  border-bottom: 1px solid #e5e7eb;
}

.mobile-menu-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border-radius: 999px;
  background: var(--action);
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 14px 24px var(--action-shadow);
  transition:
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.mobile-menu-cta:hover {
  background: var(--action-strong);
  transform: translateY(-1px);
}

.mobile-menu-close {
  display: inline-grid;
  place-items: center;
  width: 48px;
  min-height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: #2f3746;
}

.mobile-menu-close .ui-icon,
.language-close .ui-icon {
  width: 25px;
  height: 25px;
  stroke-width: 2.2;
}

.mobile-menu-close:hover {
  background: #f3f5f7;
  color: #111827;
  box-shadow: none;
}

.mobile-menu-list {
  display: grid;
}

.mobile-menu-list a {
  display: flex;
  align-items: center;
  min-height: 62px;
  padding: 0 28px;
  border-bottom: 1px solid #eceef1;
  color: #303746;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 140ms ease,
    color 140ms ease,
    padding-left 140ms ease;
}

.mobile-menu-list a:hover {
  background: var(--brand-teal-soft);
  color: var(--brand-teal-strong);
  padding-left: 32px;
}

.mobile-menu-tools {
  display: grid;
  padding: 12px 0;
  border-bottom: 1px solid #eceef1;
}

.mobile-menu-tools button,
.mobile-menu-tools a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  min-height: 54px;
  padding: 0 28px;
  border: 0;
  background: #ffffff;
  color: #303746;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.mobile-menu-tools .ui-icon {
  width: 25px;
  height: 25px;
  color: #303746;
  stroke-width: 2.15;
}

.mobile-menu-tools span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  color: #303746;
}

.tool-icon {
  width: 28px;
  height: 28px;
  color: #303746;
}

.tool-icon-report {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.tool-icon-report::before,
.tool-icon-report::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
}

.tool-icon-report::before {
  width: 3px;
  height: 11px;
  top: 6px;
}

.tool-icon-report::after {
  width: 4px;
  height: 4px;
  bottom: 5px;
}

.tool-icon-faq::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.tool-icon-faq::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 3px;
  right: 1px;
  bottom: 3px;
  transform: rotate(45deg);
  background: currentColor;
  border-radius: 2px;
}

.mobile-auth-actions {
  display: grid;
  gap: 10px;
  width: calc(100% - 56px);
  margin: 16px 28px 28px;
}

.mobile-menu-login {
  display: grid;
  place-items: center;
  min-height: 52px;
  border: 1px solid #d9dce2;
  border-radius: 999px;
  background: #ffffff;
  color: #303746;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.mobile-menu-login:hover {
  border-color: var(--brand-teal);
  background: var(--brand-teal-soft);
  color: var(--brand-teal-strong);
}

.mobile-menu-login.secondary {
  background: #f8faf9;
}

.language-modal[hidden] {
  display: none !important;
}

.language-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: start center;
  padding: 92px 20px 24px;
}

.language-modal-scrim {
  position: fixed;
  inset: 0;
  border: 0;
  border-radius: 0;
  background: rgba(37, 43, 52, 0.34);
}

.language-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(760px, calc(100vh - 120px));
  overflow: hidden;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(24, 31, 42, 0.22);
}

.language-card-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 86px;
  padding: 22px 26px;
  border-bottom: 1px solid #edf0f2;
  background: #ffffff;
}

.language-card-head h2 {
  margin: 0;
  color: #303746;
  font-size: 34px;
  line-height: 1;
}

.language-close {
  display: inline-grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #e2e5e8;
  border-radius: 50%;
  background: #ffffff;
  color: #9aa1ab;
}

.language-close:hover {
  border-color: var(--brand-teal);
  background: var(--brand-teal-soft);
  color: var(--brand-teal-strong);
  box-shadow: none;
}

.language-list {
  max-height: calc(min(760px, 100vh - 120px) - 86px);
  overflow-y: auto;
  padding-bottom: 14px;
}

.language-option {
  display: grid;
  justify-items: start;
  width: 100%;
  min-height: 72px;
  padding: 12px 26px;
  border: 0;
  background: #ffffff;
  color: #303746;
  text-align: left;
}

.language-option.active {
  background: var(--brand-teal-soft);
  color: var(--brand-navy);
  box-shadow: inset 4px 0 0 var(--brand-gold);
}

.language-option strong {
  display: block;
  font-size: 21px;
  line-height: 1.25;
}

.language-option span {
  display: block;
  margin-top: 3px;
  color: #68707e;
  font-size: 17px;
  line-height: 1.25;
}

.account-label {
  color: var(--muted);
  font-size: 12px;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(310px, 0.9fr);
  gap: 0;
}

.question-pane,
.profile-pane {
  padding: 24px;
}

.profile-pane {
  border-left: 1px solid var(--line);
  background: #fbfaf5;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title.compact {
  margin-bottom: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid #b9d5cc;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

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

.badge.warning {
  border-color: #ddc288;
  background: var(--warning-soft);
  color: var(--warning);
}

.ask-form {
  display: grid;
  gap: 12px;
}

.divination-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fbfaf5;
}

.form-row {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.form-row.wide {
  grid-column: 1 / -1;
}

.field-hint {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.field-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.timezone-auto-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.timezone-auto-panel strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.timezone-manual-panel {
  display: grid;
  gap: 7px;
}

.timezone-manual-panel[hidden] {
  display: none;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  outline: none;
}

textarea {
  min-height: 130px;
  resize: vertical;
  padding: 14px;
  line-height: 1.6;
}

input,
select {
  min-height: 40px;
  padding: 9px 10px;
}

textarea:focus,
input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(23, 107, 91, 0.14);
}

.tier-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  overflow: hidden;
}

.tier-row label {
  min-height: 42px;
  color: var(--ink);
  cursor: pointer;
}

.tier-row label + label {
  border-left: 1px solid var(--line);
}

.tier-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.tier-row span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 10px 8px;
  text-align: center;
}

.tier-row input:checked + span {
  background: var(--accent);
  color: #ffffff;
}

.actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

button {
  min-height: 46px;
  border: 1px solid var(--action);
  border-radius: 999px;
  background: var(--action);
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
  padding: 11px 18px;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

button:hover {
  border-color: var(--action-strong);
  background: var(--action-strong);
  box-shadow: 0 10px 22px var(--action-shadow);
}

.icon-button:hover {
  background: var(--brand-teal-soft);
  box-shadow: none;
}

.menu-button:hover {
  background: var(--brand-teal-soft);
  color: var(--brand-teal-strong);
  box-shadow: none;
}

button:active {
  transform: translateY(1px);
  box-shadow: none;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

#formHint {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.answer-box {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.answer {
  min-height: 220px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  line-height: 1.7;
  white-space: pre-wrap;
}

.result-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr);
  gap: 14px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fbfaf5;
}

.result-summary p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.result-summary dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.result-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.result-summary dt,
.result-summary dd {
  margin: 0;
}

.result-summary dt {
  color: var(--muted);
}

.result-summary dd {
  font-weight: 800;
}

.hexagram-api-summary {
  background: #f5fbf8;
}

.hexagram-api-result {
  display: grid;
  gap: 16px;
  white-space: normal;
}

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

.hexagram-result-grid article {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.hexagram-result-grid h3 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
}

.hexagram-result-grid p {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
}

.hexagram-result-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.hexagram-line-table {
  display: grid;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.hexagram-line-head,
.hexagram-line-row {
  display: grid;
  grid-template-columns: 52px minmax(72px, 1fr) minmax(72px, 1fr) minmax(72px, 1fr) 56px 56px;
  min-width: 560px;
}

.hexagram-line-head span,
.hexagram-line-row span {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.hexagram-line-head span {
  background: #f3f6f4;
  color: var(--muted);
  font-weight: 900;
}

.hexagram-line-row:last-child span {
  border-bottom: 0;
}

.raw-json-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101418;
  color: #edf2f7;
}

.raw-json-panel summary {
  cursor: pointer;
  padding: 12px 14px;
  color: #ffffff;
  font-weight: 900;
}

.raw-json-panel pre {
  max-height: 520px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  line-height: 1.5;
  white-space: pre;
}

.type-code {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  min-height: 32px;
  margin-right: 8px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
  font-weight: 900;
}

.type-code.small {
  min-width: 34px;
  min-height: 26px;
  font-size: 12px;
}

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

.profile-tools {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 16px;
}

.profile-tools label {
  grid-column: 1 / -1;
}

.profile-tools button {
  min-width: 92px;
}

.snapshot-panel,
.history-panel {
  margin-top: 18px;
}

.snapshot-panel h3,
.history-panel h3 {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.3;
}

#page-assessment {
  background: #ffffff;
}

#page-assessment .grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  width: min(1180px, calc(100% - 64px));
  margin: -34px auto 84px;
}

#page-assessment .question-pane,
#page-assessment .profile-pane {
  border: 0;
  border-top: 5px solid var(--brand-teal);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 44px rgba(42, 51, 67, 0.08);
}

#page-assessment .question-pane {
  padding: 30px;
}

#page-assessment .profile-pane {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px 24px;
  padding: 28px 30px;
  border-top-color: var(--brand-gold);
}

#page-assessment .profile-pane > .section-title,
#page-assessment .profile-tools {
  grid-column: 1 / -1;
}

#page-assessment .section-title {
  margin-bottom: 18px;
}

#page-assessment .section-title h2 {
  color: #2c3344;
  font-size: 24px;
  line-height: 1.2;
}

#page-assessment .badge {
  min-height: 30px;
  border-radius: 999px;
  padding: 5px 12px;
  font-weight: 900;
}

#page-assessment .divination-fields {
  gap: 16px;
  padding: 0;
  border: 0;
  background: transparent;
}

#page-assessment label,
#page-assessment .field-label {
  color: #344153;
  font-size: 14px;
  font-weight: 850;
}

#page-assessment textarea,
#page-assessment input,
#page-assessment select {
  min-height: 54px;
  border-color: #dfe5e8;
  border-radius: 6px;
  background: #ffffff;
  font-size: 16px;
}

#page-assessment textarea {
  min-height: 158px;
}

#page-assessment textarea:focus,
#page-assessment input:focus,
#page-assessment select:focus {
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 4px rgba(36, 155, 154, 0.18);
}

#page-assessment .timezone-auto-panel {
  min-height: 98px;
  border-color: #dfe5e8;
  border-radius: 8px;
  background: #f7faf9;
  padding: 16px 18px;
}

#page-assessment .timezone-auto-panel strong {
  color: #2c3344;
  font-size: 15px;
}

#page-assessment .timezone-auto-panel .secondary-choice-button {
  width: auto;
  min-width: 104px;
  min-height: 58px;
  font-size: 17px;
}

#page-assessment .tier-row {
  gap: 10px;
  margin-top: 4px;
  border: 0;
  overflow: visible;
}

#page-assessment .tier-row label {
  min-height: 56px;
  border: 1px solid #dfe5e8;
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
}

#page-assessment .tier-row label + label {
  border-left: 1px solid #dfe5e8;
}

#page-assessment .tier-row span {
  color: #344153;
  font-size: 15px;
  font-weight: 900;
}

#page-assessment .tier-row input:checked + span {
  background: var(--brand-gold-soft);
  color: var(--brand-navy);
  box-shadow: inset 0 0 0 2px var(--brand-gold);
}

#page-assessment .actions {
  display: grid;
  grid-template-columns: minmax(240px, 0.45fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 6px;
}

#page-assessment #submitButton {
  min-height: 62px;
  border-color: var(--action);
  background: var(--action);
  font-size: 18px;
  box-shadow: 0 18px 34px var(--action-shadow);
}

#page-assessment #submitButton:hover {
  border-color: var(--action-strong);
  background: var(--action-strong);
}

#page-assessment #formHint {
  max-width: 620px;
  color: #68707e;
  font-size: 14px;
}

#page-assessment .answer-box {
  margin-top: 30px;
  padding-top: 26px;
}

#page-assessment .result-summary,
#page-assessment .answer,
#page-assessment .profile-after-test,
#page-assessment .snapshot-item {
  border-color: #dfe5e8;
  border-radius: 8px;
  background: #f9fbfa;
}

#page-assessment .answer {
  min-height: 190px;
  padding: 18px;
}

#page-assessment .profile-tools {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-bottom: 0;
}

#page-assessment .profile-tools button,
#page-assessment .auth-submit {
  min-height: 54px;
  border-color: var(--brand-teal-strong);
  background: var(--brand-teal-strong);
}

#page-assessment .snapshot-panel,
#page-assessment .history-panel {
  min-height: 140px;
  margin-top: 0;
  padding: 18px;
  border: 1px solid #dfe5e8;
  border-radius: 8px;
  background: #f9fbfa;
}

#page-assessment .snapshot-panel {
  grid-column: span 1;
}

#page-assessment .history-panel {
  grid-column: span 2;
}

#page-assessment .snapshot-panel h3,
#page-assessment .history-panel h3 {
  color: #2c3344;
  font-size: 18px;
  font-weight: 900;
}

.snapshot-list {
  display: grid;
  gap: 10px;
}

.snapshot-item {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 12px;
}

.snapshot-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.snapshot-head time {
  color: var(--muted);
  font-size: 12px;
}

.snapshot-item p {
  margin: 8px 0;
  color: var(--muted);
  line-height: 1.5;
}

.risk-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.risk-row span {
  padding: 3px 7px;
  border: 1px solid #ddc288;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 12px;
  font-weight: 700;
}

.history {
  display: grid;
  gap: 10px;
  max-height: calc(100vh - 250px);
  overflow: auto;
  padding-right: 4px;
  line-height: 1.5;
}

.history-item {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 12px;
}

.history-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.history-question {
  margin: 0 0 8px;
  color: var(--ink);
  font-weight: 800;
}

.history-answer {
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

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

.metric-card,
.risk-card,
.timeline-item,
.action-item {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 16px;
}

.metric-card.wide {
  grid-column: span 3;
}

.metric-card h3,
.risk-card h3 {
  margin: 8px 0 6px;
  font-size: 22px;
  line-height: 1.2;
}

.metric-card p,
.risk-card p,
.timeline-item p,
.action-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
}

.timeline-item time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.timeline-item strong,
.action-item strong {
  display: block;
  margin-bottom: 6px;
  line-height: 1.4;
}

.timeline-item .risk-row {
  margin-top: 10px;
}

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

.risk-card {
  border-left: 5px solid #8ca49c;
}

.risk-card.medium {
  border-left-color: #b98425;
}

.risk-card.high {
  border-left-color: #a13d33;
}

.risk-card span {
  display: inline-flex;
  margin-top: 12px;
  padding: 4px 8px;
  background: #f0eee7;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.risk-card.medium span,
.risk-card.high span {
  background: var(--warning-soft);
  color: var(--warning);
}

.action-list {
  display: grid;
  gap: 10px;
}

.action-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

@media (min-width: 861px) {
  .hero {
    isolation: isolate;
    min-height: calc(100vh - 102px);
    padding-top: clamp(78px, 10vh, 118px);
    align-content: start;
  }

  .hero::before,
  .hero::after {
    z-index: 2;
  }

  .hero-picture {
    position: absolute;
    inset: 0;
    z-index: 0;
    height: 100%;
    margin: 0;
  }

  .hero-picture::after {
    position: absolute;
    inset: 0;
    display: block;
    background:
      linear-gradient(
        180deg,
        rgba(238, 247, 248, 0.78) 0%,
        rgba(238, 247, 248, 0.66) 28%,
        rgba(238, 247, 248, 0.18) 48%,
        rgba(255, 255, 255, 0) 100%
      );
    content: "";
  }

  .hero-image {
    object-position: center center;
  }

  .hero-copy {
    z-index: 3;
    margin-top: clamp(10px, 2vh, 34px);
  }

  .hero .primary-link {
    width: auto;
    min-width: 256px;
  }

  .home-stats {
    margin-top: -8px;
  }

  .story-types .home-story-copy,
  .story-team .home-story-copy {
    order: -1;
  }

  .home-story-copy h2 {
    font-size: 44px;
    line-height: 1.12;
  }
}

@media (min-width: 861px) and (max-width: 1220px) {
  .topbar {
    gap: 18px;
    padding-inline: 24px;
  }

  .brand-name {
    font-size: 24px;
  }

  .main-nav {
    gap: 18px;
  }

  .main-nav a,
  .account-links a,
  .account-logout {
    font-size: 15px;
  }

  .header-test-link {
    min-width: 136px;
    padding-inline: 22px;
  }
}

@media (max-width: 860px) {
  body {
    padding-bottom: 76px;
  }

  .shell {
    width: 100%;
    padding: 0;
  }

  .workspace {
    min-height: 100vh;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }

  .topbar {
    min-height: 66px;
    padding: 10px 16px;
  }

  body[data-route-mode="assessment"] .topbar {
    min-height: 66px;
  }

  .brand-name {
    font-size: 22px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .account {
    display: none;
  }

  .top-actions {
    gap: 8px;
  }

  .icon-button {
    width: 34px;
    min-height: 34px;
  }

  .menu-button {
    display: inline-grid;
    width: 66px;
    min-height: 56px;
    margin: -10px 0 -10px 2px;
  }

  .header-test-link {
    display: none;
  }

  .main-nav {
    display: none;
  }

  .page-padding {
    padding: 18px;
  }

  .page-masthead {
    padding: 38px 20px 34px;
  }

  .page-masthead h2 {
    font-size: 31px;
  }

  .masthead-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
  }

  .masthead-steps span {
    min-height: 172px;
    padding: 20px 18px;
  }

  .masthead-steps span::before {
    width: 72px;
    height: 62px;
    margin-bottom: 18px;
  }

  .masthead-steps strong {
    font-size: 19px;
  }

  .masthead-steps small {
    font-size: 14px;
  }

  .hero {
    isolation: isolate;
    min-height: calc(100svh - 66px);
    padding: 68px 20px 150px;
    align-content: start;
  }

  .hero-copy {
    position: relative;
    z-index: 3;
    padding: 0;
  }

  .hero-copy h2 {
    font-size: 34px;
    max-width: 540px;
  }

  .hero-lede {
    font-size: 16px;
  }

  .hero-picture {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
  }

  .hero-picture::before {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 0;
    background:
      radial-gradient(circle at 50% 62%, rgba(255, 237, 196, 0.36), transparent 32%),
      linear-gradient(
        180deg,
        #eef7f8 0%,
        #edf7f8 36%,
        #f4f7f1 58%,
        rgba(245, 241, 229, 0.72) 76%,
        rgba(255, 255, 255, 0) 100%
      );
    content: "";
  }

  .hero-picture::after {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 2;
    background:
      linear-gradient(
        180deg,
        rgba(238, 247, 248, 0.9) 0%,
        rgba(238, 247, 248, 0.72) 42%,
        rgba(238, 247, 248, 0.18) 62%,
        rgba(255, 255, 255, 0) 100%
      );
    content: "";
  }

  .hero-picture[data-hero-scene="dawn"]::before,
  .hero-picture[data-hero-scene="dusk"]::before {
    background:
      radial-gradient(circle at 52% 60%, rgba(255, 218, 142, 0.42), transparent 31%),
      linear-gradient(
        180deg,
        #edf5f8 0%,
        #f7eee8 38%,
        #fff4dc 58%,
        rgba(252, 219, 178, 0.68) 78%,
        rgba(255, 255, 255, 0) 100%
      );
  }

  .hero-picture[data-hero-scene="night"]::before {
    background:
      radial-gradient(circle at 42% 18%, rgba(231, 241, 255, 0.38), transparent 18%),
      linear-gradient(
        180deg,
        #dfeaf2 0%,
        #dbe8f2 42%,
        #e6eef2 64%,
        rgba(219, 231, 237, 0.68) 82%,
        rgba(255, 255, 255, 0) 100%
      );
  }

  .hero-image {
    position: absolute;
    bottom: 74px;
    left: 50%;
    z-index: 1;
    width: min(172vw, 760px);
    height: auto;
    max-height: none;
    margin: 0;
    object-fit: contain;
    object-position: center bottom;
    opacity: 0.94;
    transform: translateX(-50%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 8%, #000000 24%);
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 8%, #000000 24%);
  }

  .slider-arrow {
    width: 44px;
    min-height: 44px;
    font-size: 30px;
  }

  .slider-dots {
    gap: 10px;
  }

  .slider-dots span {
    width: 11px;
    height: 11px;
  }

  .home-stats,
  .home-testimonials,
  .home-final-cta {
    padding: 46px 20px;
  }

  .home-stats {
    padding-top: 16px;
    padding-bottom: 58px;
  }

  .home-section-heading h2,
  .home-story-copy h2,
  .home-final-cta h2 {
    font-size: 32px;
  }

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

  .home-stat-card {
    min-height: 136px;
    padding: 22px 18px 18px;
  }

  .home-stat-card strong {
    font-size: 36px;
  }

  .home-story-section {
    padding: 74px 20px 58px;
  }

  .home-story-inner,
  .home-story-inner.reverse {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .story-team .home-story-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .story-types .home-story-copy,
  .story-team .home-story-copy {
    order: 0;
  }

  .home-story-inner.reverse .home-story-art {
    order: 0;
  }

  .home-story-art {
    min-height: 210px;
  }

  .story-team .home-story-art {
    min-height: 210px;
  }

  .story-team .home-story-art img {
    width: min(360px, 100%);
    max-height: 250px;
  }

  .home-story-art img {
    width: min(360px, 100%);
    max-height: 250px;
  }

  .home-story-copy .primary-link {
    width: 100%;
  }

  .story-team .home-story-copy .primary-link {
    width: 100%;
  }

  .testimonial-row {
    display: flex;
    gap: 14px;
    width: calc(100vw - 40px);
    margin-top: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .testimonial-row::-webkit-scrollbar {
    display: none;
  }

  .testimonial-card {
    flex: 0 0 min(78vw, 310px);
    min-height: 246px;
    scroll-snap-align: start;
  }

  .home-final-image {
    height: auto;
    max-height: 300px;
    object-fit: contain;
  }

  .home-final-picture {
    width: min(520px, 100%);
    height: auto;
    margin: 0 auto 20px;
    overflow: visible;
  }

  .resource-hero {
    padding: 36px 20px 24px;
  }

  .resource-hero h2 {
    font-size: 34px;
  }

  .resource-home-inner {
    padding: 18px 20px 42px;
  }

  .resource-category-card {
    grid-template-columns: 1fr;
  }

  .resource-category-card img {
    height: 160px;
    min-height: 160px;
    object-fit: contain;
    padding: 10px 20px;
  }

  .resource-category-body {
    padding: 16px 16px 18px;
  }

  .types-hero {
    padding: 34px 20px 28px;
  }

  .types-hero h2 {
    font-size: 33px;
  }

  .types-hero .primary-link,
  .types-final .primary-link {
    width: min(280px, 100%);
    min-height: 42px;
    font-size: 14px;
  }

  .type-band {
    gap: 15px;
    padding: 34px 20px 40px;
  }

  .type-band h3 {
    font-size: 34px;
  }

  .type-stack {
    gap: 22px;
  }

  .type-person-card img {
    width: min(210px, 72vw);
    max-height: 190px;
  }

  .types-final {
    padding-bottom: 104px;
  }

  .profile-suite-page {
    padding-bottom: 76px;
  }

  .profile-suite-card,
  .profile-suite-product,
  .profile-live-panel,
  .profile-faq,
  .profile-testimonials,
  .profile-risk-free {
    width: calc(100% - 40px);
  }

  .profile-risk-free {
    margin-bottom: 118px;
  }

  .premium-sales-page {
    padding-bottom: 76px;
  }

  .premium-sales-hero,
  .premium-info-card,
  .premium-image-section,
  .premium-included,
  .premium-calculator,
  .premium-faq {
    width: calc(100% - 40px);
  }

  .premium-included-list article {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .premium-included-list img {
    height: 82px;
  }

  .premium-faq {
    margin-bottom: 110px;
  }

  .type-family-grid,
  .framework-grid,
  .resource-grid,
  .pricing-layout,
  .comparison-band,
  .article-columns,
  .detail-grid,
  .auth-layout,
  .known-result-panel,
  .settings-grid,
  .billing-layout,
  .sitemap-grid,
  .scenario-grid,
  .faq-list,
  .language-page-list {
    grid-template-columns: 1fr;
  }

  .type-detail-layout {
    grid-template-columns: 1fr;
  }

  .result-hero-card {
    grid-template-columns: 1fr;
  }

  .result-hero-card h3 {
    font-size: 26px;
  }

  .page-actions-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .page-actions-row .primary-link,
  .page-actions-row .secondary-link {
    width: 100%;
  }

  .auth-modal-page {
    padding: 28px 16px calc(156px + env(safe-area-inset-bottom));
  }

  .create-profile-page {
    padding-bottom: calc(168px + env(safe-area-inset-bottom));
  }

  .auth-modal-card {
    width: 100%;
    padding: 24px 18px;
  }

  .auth-link-form {
    gap: 14px;
  }

  .auth-link-form h2 {
    font-size: 32px;
  }

  .auth-link-form .auth-submit,
  .email-field,
  .social-auth-button {
    min-height: 60px;
  }

  .email-field input {
    font-size: 20px;
  }

  .table-like div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .article-page h3 {
    font-size: 24px;
  }

  .type-index {
    position: static;
  }

  .profile-heading {
    margin: -18px -18px 20px;
    padding: 28px 20px;
  }

  .profile-subnav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 44px 20px 110px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }

  .footer-group {
    gap: 13px;
  }

  .footer-group h2 {
    font-size: 17px;
  }

  .footer-group a,
  .footer-link-button,
  .legal-links a {
    font-size: 15px;
  }

  .footer-legal {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 30px;
  }

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

  .footer-link-button {
    width: auto;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .question-pane,
  .profile-pane {
    padding: 18px;
  }

  .profile-pane {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  #page-assessment .grid {
    width: calc(100% - 40px);
    margin: -18px auto 64px;
  }

  #page-assessment .question-pane,
  #page-assessment .profile-pane {
    padding: 22px;
  }

  #page-assessment .profile-pane {
    grid-template-columns: minmax(0, 1fr);
    border-top: 5px solid #36a47a;
  }

  #page-assessment .profile-pane > .section-title,
  #page-assessment .profile-tools,
  #page-assessment .snapshot-panel,
  #page-assessment .history-panel {
    grid-column: 1 / -1;
  }

  #page-assessment .actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  button {
    width: 100%;
  }

  .top-actions button,
  .slider-arrow,
  .mobile-menu-close,
  .mobile-menu-scrim,
  .language-close,
  .language-modal-scrim,
  .footer-link-button {
    width: auto;
  }

  .top-actions .icon-button {
    width: 42px;
    min-height: 44px;
  }

  .top-actions .menu-button {
    width: 44px;
    min-height: 44px;
  }

  .mobile-menu-tools button,
  .mobile-menu-tools a,
  .language-option {
    width: 100%;
  }

  .mobile-menu-login {
    width: calc(100% - 56px);
  }

  .history {
    max-height: none;
  }

  .divination-fields {
    grid-template-columns: 1fr;
  }

  .result-summary {
    grid-template-columns: 1fr;
  }

  .hexagram-result-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid,
  .risk-grid {
    grid-template-columns: 1fr;
  }

  .metric-card.wide {
    grid-column: span 1;
  }

  .timeline-item,
  .action-item {
    grid-template-columns: 1fr;
  }

  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: 72px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -12px 30px rgba(32, 35, 31, 0.12);
  }

  .bottom-nav a {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 5px;
    min-width: 0;
    min-height: 72px;
    color: #596170;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition:
      background 160ms ease,
      color 160ms ease;
  }

  .bottom-nav a:hover {
    background: var(--brand-teal-soft);
  }

  .bottom-nav .nav-svg {
    width: 29px;
    height: 29px;
    color: var(--brand-teal);
    stroke-width: 2.15;
    transition:
      color 160ms ease,
      transform 160ms ease;
  }

  .bottom-nav .nav-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: var(--brand-teal);
    transition:
      color 160ms ease,
      transform 160ms ease;
  }

  .nav-icon-assessment::before,
  .nav-icon-assessment::after,
  .nav-icon-resources::before,
  .nav-icon-resources::after {
    content: "";
    position: absolute;
    width: 19px;
    height: 3px;
    border-radius: 3px;
    background: currentColor;
  }

  .nav-icon-assessment::before {
    transform: translateY(-5px) rotate(32deg);
  }

  .nav-icon-assessment::after {
    transform: translateY(5px) rotate(-32deg);
  }

  .nav-icon-types::before,
  .nav-icon-types::after {
    content: "";
    position: absolute;
    width: 13px;
    height: 13px;
    border: 3px solid currentColor;
    transform: rotate(45deg);
  }

  .nav-icon-types::before {
    left: 1px;
    top: 2px;
  }

  .nav-icon-types::after {
    right: 1px;
    bottom: 2px;
  }

  .nav-icon-profile {
    border: 3px solid currentColor;
    border-radius: 7px;
  }

  .nav-icon-profile::before {
    content: "";
    width: 10px;
    height: 10px;
    border: 2px solid currentColor;
    border-radius: 50%;
  }

  .nav-icon-premium::before,
  .nav-icon-premium::after {
    content: "";
    position: absolute;
    width: 13px;
    height: 17px;
    border: 3px solid currentColor;
    border-radius: 4px;
  }

  .nav-icon-premium::before {
    left: 3px;
    transform: rotate(-8deg);
  }

  .nav-icon-premium::after {
    right: 3px;
    transform: rotate(8deg);
  }

  .nav-icon-resources {
    border: 3px solid currentColor;
    border-radius: 4px;
  }

  .nav-icon-resources::before {
    top: 8px;
  }

  .nav-icon-resources::after {
    bottom: 8px;
  }

  .bottom-nav a.active {
    color: var(--brand-navy);
  }

  .bottom-nav a.active .nav-svg {
    color: var(--brand-navy);
    transform: translateY(-2px);
  }

  .bottom-nav a.active .nav-icon {
    color: var(--brand-navy);
    transform: translateY(-2px);
  }
}

@media (max-width: 520px) {
  .topbar {
    gap: 8px;
  }

  .brand-name {
    font-size: 21px;
  }

  .test-masthead {
    padding: 42px 20px 66px;
  }

  .test-masthead h2 {
    font-size: 32px;
  }

  .test-masthead p:not(.eyebrow) {
    font-size: 15px;
  }

  .assessment-mark {
    grid-template-columns: repeat(3, 10px);
    gap: 6px;
    margin-bottom: 20px;
  }

  .assessment-mark span {
    width: 10px;
    height: 10px;
  }

  .masthead-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .masthead-steps span {
    min-height: 156px;
    padding: 16px 14px;
  }

  .masthead-steps span::before {
    width: 56px;
    height: 50px;
    margin-bottom: 14px;
  }

  .masthead-steps strong {
    font-size: 17px;
  }

  .masthead-steps small {
    font-size: 13px;
  }

  #page-assessment .grid {
    width: calc(100% - 28px);
    margin-bottom: 104px;
  }

  #page-assessment .question-pane,
  #page-assessment .profile-pane {
    padding: 18px;
  }

  #page-assessment .section-title {
    align-items: flex-start;
  }

  #page-assessment .section-title h2 {
    font-size: 21px;
  }

  #page-assessment .divination-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  #page-assessment .timezone-auto-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .create-profile-page {
    padding: 28px 20px 118px;
  }

  .create-profile-back {
    width: 54px;
    height: 54px;
  }

  .create-profile-header h2 {
    font-size: 34px;
  }

  .create-profile-header p {
    font-size: 18px;
  }

  .create-profile-actions .primary-link,
  .secondary-choice-button {
    min-height: 64px;
    font-size: 18px;
  }

  .hero {
    min-height: calc(100svh - 66px);
    padding: 58px 20px 140px;
  }

  .hero-slider {
    margin-bottom: 12px;
  }

  .hero-picture {
    width: 100%;
    margin-top: 0;
  }

  .hero-image {
    max-height: none;
  }

  .hero-copy h2 {
    font-size: 31px;
  }

  .hero-lede {
    font-size: 17px;
    line-height: 1.5;
  }

  .primary-link {
    min-height: 58px;
    font-size: 17px;
  }

  .home-section-heading h2,
  .home-story-copy h2,
  .home-final-cta h2 {
    font-size: 30px;
  }

  .home-section-heading p:not(.home-pill),
  .home-story-copy p:not(.home-pill),
  .home-final-cta p {
    font-size: 16px;
  }

  .home-stat-grid {
    gap: 12px;
  }

  .home-stats {
    padding-top: 12px;
    padding-bottom: 54px;
  }

  .home-stat-card {
    min-height: 128px;
    padding: 20px 16px 16px;
  }

  .home-stat-card strong {
    font-size: 34px;
  }

  .home-stat-card span {
    font-size: 14px;
  }

  .home-story-art img,
  .home-final-image {
    max-height: 260px;
  }

  .testimonial-card {
    flex-basis: min(82vw, 300px);
    padding: 24px 22px;
  }

  .resource-hero {
    padding-top: 32px;
  }

  .resource-hero h2 {
    font-size: 31px;
  }

  .resource-search {
    min-height: 46px;
  }

  .resource-search input {
    min-height: 46px;
    font-size: 14px;
  }

  .resource-category-card img {
    height: 142px;
    min-height: 142px;
  }

  .resource-category-body h3 {
    font-size: 20px;
  }

  .resource-category-body p:not(.resource-meta) {
    font-size: 14px;
  }

  .types-hero h2 {
    font-size: 31px;
  }

  .types-hero p:not(.eyebrow) {
    font-size: 15px;
  }

  .type-band {
    padding: 32px 20px 38px;
  }

  .type-person-card h4 {
    font-size: 20px;
  }

  .type-person-card p:not(.type-code) {
    font-size: 13px;
  }

  .premium-sales-hero h2,
  .premium-image-section h3,
  .premium-included h3,
  .premium-calculator h3,
  .premium-faq h3 {
    font-size: 24px;
  }

  .premium-sales-hero {
    padding-top: 32px;
  }

  .premium-plan-options {
    border-radius: 18px;
    grid-template-columns: 1fr;
  }

  .premium-plan-options button {
    border-radius: 14px;
  }

  .premium-included-list article {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .premium-included-list img {
    width: min(240px, 100%);
    height: 120px;
    justify-self: center;
  }

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

  .tier-row label:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .tier-row label:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .profile-tools {
    grid-template-columns: 1fr;
  }
}
