/* Site-wide pages — auth, dashboard, pricing, products, assessments */

/* ── Uniform card layout (CTA pinned to bottom) ── */
.t-card-stretch {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.t-card-stretch__body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.t-card-stretch__cta {
  margin-top: auto;
  padding-top: 1.5rem;
}

.t-card-stretch__cta .btn,
.t-card-stretch__cta .home-btn {
  width: 100%;
}

/* ── Page atmosphere (home-style mesh) ── */
.page-atmosphere {
  position: relative;
}

.page-atmosphere__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 15% 20%, rgba(79, 70, 229, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 45% 40% at 85% 75%, rgba(37, 99, 235, 0.05) 0%, transparent 55%);
}

.page-atmosphere__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--t-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--t-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 15%, transparent 75%);
  opacity: 0.45;
}

.page-atmosphere > .container,
.page-atmosphere > section,
.page-atmosphere > div:not([class*="__"]) {
  position: relative;
}

.dash-atmosphere {
  position: relative;
  min-height: calc(100vh - 72px);
}

.dash-atmosphere::before {
  content: '';
  position: fixed;
  inset: 72px 0 0 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 50% 40% at 90% 10%, rgba(79, 70, 229, 0.04) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 5% 90%, rgba(13, 148, 136, 0.04) 0%, transparent 50%);
}

.dash-atmosphere .container {
  position: relative;
  z-index: 1;
}

/* ── Typography helpers ── */
.t-serif { font-family: var(--t-serif); }
.t-page-title {
  font-family: var(--t-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--t-ink);
}

.t-page-sub {
  color: var(--t-muted);
  font-size: 1rem;
  margin: 0 0 2rem;
  line-height: 1.65;
}

.t-section-title {
  font-family: var(--t-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

/* ── Auth pages ── */
.auth-shell {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  position: relative;
  overflow: hidden;
}

.auth-shell__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.auth-shell__mesh {
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(ellipse 50% 40% at 30% 20%, rgba(79, 70, 229, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 70% 80%, rgba(37, 99, 235, 0.06) 0%, transparent 55%);
}

.auth-shell__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--t-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--t-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black 10%, transparent 70%);
  opacity: 0.5;
}

.form-card, .auth-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--t-white);
  padding: 2.25rem;
  border-radius: 20px;
  border: 1px solid var(--t-line);
  box-shadow: var(--t-shadow-lg);
}

.form-card::before, .auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 1.5rem; right: 1.5rem;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, #4f46e5, #2563eb, #0d9488);
}

.auth-card h1, .form-card h1 {
  font-family: var(--t-serif);
  font-size: 1.75rem;
  font-weight: 400;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.auth-card__sub {
  color: var(--t-muted);
  font-size: 0.92rem;
  margin: 0 0 1.75rem;
  line-height: 1.6;
}

.auth-card__footer {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  text-align: center;
  color: var(--t-muted);
}

.auth-card__footer a { font-weight: 600; }

.auth-card--wide { max-width: 520px; }

.auth-card--center { text-align: center; }
.auth-card--center .auth-card__sub { margin-bottom: 1.5rem; }

/* ── Dashboard ── */
.dash-shell {
  padding: 2.5rem 0 4rem;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 860px) {
  .dashboard-layout { grid-template-columns: 1fr; }
}

.sidebar {
  background: var(--t-white);
  border-radius: var(--t-radius);
  padding: 1.5rem;
  border: 1px solid var(--t-line);
  box-shadow: var(--t-shadow);
  position: sticky;
  top: 88px;
}

.sidebar__org {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: var(--t-ink);
}

.sidebar__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--t-muted);
  margin-bottom: 1rem;
}

.sidebar a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--t-radius-sm);
  color: var(--t-muted);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
  transition: all 0.2s ease;
}

.sidebar a:hover {
  background: #f1f5f9;
  color: var(--t-ink);
}

.sidebar a.active {
  background: #eff6ff;
  color: var(--t-accent);
  font-weight: 600;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

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

.stat-card {
  background: var(--t-white);
  padding: 1.35rem 1.5rem;
  border-radius: var(--t-radius);
  border: 1px solid var(--t-line);
  box-shadow: var(--t-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--t-shadow-lg);
}

.stat-card .value {
  font-family: var(--t-serif);
  font-size: 2rem;
  font-style: italic;
  font-weight: 400;
  color: var(--t-ink);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-card .label {
  font-size: 0.82rem;
  color: var(--t-muted);
  font-weight: 500;
}

.t-panel {
  background: var(--t-white);
  border-radius: var(--t-radius);
  border: 1px solid var(--t-line);
  box-shadow: var(--t-shadow);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.t-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #4f46e5, #2563eb, #0d9488);
  opacity: 0.6;
}

.t-panel--stretch {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.t-panel--stretch .t-panel__content { flex: 1; }

.t-panel--stretch .t-panel__cta {
  margin-top: auto;
  padding-top: 1.25rem;
}

.t-panel__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--t-ink);
}

table.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--t-white);
  border-radius: var(--t-radius);
  border: 1px solid var(--t-line);
  box-shadow: var(--t-shadow);
  overflow: hidden;
}

table.data-table th,
table.data-table td {
  padding: 0.85rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--t-line);
  font-size: 0.88rem;
}

table.data-table th {
  background: #f8fafc;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--t-muted);
}

table.data-table tr:last-child td { border-bottom: none; }

table.data-table tbody tr {
  transition: background 0.15s ease;
}

table.data-table tbody tr:hover {
  background: #fafbfe;
}

table.data-table a {
  font-weight: 600;
  font-size: 0.85rem;
}

.t-action-link {
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
}

.t-action-link + .t-action-link::before {
  content: '·';
  margin: 0 0.35rem;
  color: var(--t-muted);
  font-weight: 400;
}

.t-empty {
  color: var(--t-muted);
  font-size: 0.9rem;
  padding: 2rem;
  text-align: center;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
}

.form-grid .form-group { margin: 0; }

.t-code-block {
  background: #f8fafc;
  border: 1px solid var(--t-line);
  border-radius: var(--t-radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.8rem;
  overflow: auto;
  margin-top: 1.25rem;
  color: var(--t-slate);
  line-height: 1.7;
}

.t-readonly-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--t-line);
  border-radius: var(--t-radius-sm);
  font-size: 0.88rem;
  background: #f8fafc;
  color: var(--t-ink);
  font-family: ui-monospace, monospace;
}

/* ── Assessments ── */
.assess-atmosphere {
  position: relative;
  min-height: calc(100vh - 72px);
  padding: 3rem 0 4rem;
}

.assess-atmosphere::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 80% 15%, rgba(79, 70, 229, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 10% 85%, rgba(13, 148, 136, 0.04) 0%, transparent 50%);
}

.assess-atmosphere > .container {
  position: relative;
  z-index: 1;
}

.assess-shell {
  padding: 0;
}

.assess-shell--narrow {
  max-width: 720px;
  margin: 0 auto;
}

.assess-shell--medium {
  max-width: 800px;
  margin: 0 auto;
}

.assess-card {
  background: var(--t-white);
  border-radius: 20px;
  border: 1px solid var(--t-line);
  box-shadow: var(--t-shadow-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.assess-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4f46e5, #2563eb, #0d9488);
}

.assess-complete {
  text-align: center;
  padding: 4rem 1rem;
}

.assess-complete h1 {
  font-family: var(--t-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  margin: 0 0 0.75rem;
}

.assess-complete p {
  color: var(--t-muted);
  max-width: 440px;
  margin: 0 auto 2rem;
}

/* RIASEC bars */
.riasec-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.65rem;
}

.riasec-bar .label {
  width: 28px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--t-muted);
}

.riasec-bar .track {
  flex: 1;
  height: 8px;
  background: #f1f5f9;
  border-radius: 99px;
  overflow: hidden;
}

.riasec-bar .fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #4f46e5, #2563eb);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.riasec-bar .fill.is-animated { width: var(--w) !important; }

.riasec-dims .riasec-bar:nth-child(1) .fill { background: #6366f1; }
.riasec-dims .riasec-bar:nth-child(2) .fill { background: #3b82f6; }
.riasec-dims .riasec-bar:nth-child(3) .fill { background: #8b5cf6; }
.riasec-dims .riasec-bar:nth-child(4) .fill { background: #14b8a6; }
.riasec-dims .riasec-bar:nth-child(5) .fill { background: #f59e0b; }
.riasec-dims .riasec-bar:nth-child(6) .fill { background: #64748b; }

.result-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.result-code {
  font-family: var(--t-serif);
  font-size: 3rem;
  font-style: italic;
  line-height: 1;
  color: var(--t-ink);
}

.result-code span { color: #4f46e5; }

.result-fit {
  font-size: 2rem;
  font-family: var(--t-serif);
  font-style: italic;
  color: #4f46e5;
}

.result-badge {
  display: inline-block;
  background: #ecfdf5;
  color: #059669;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: 99px;
  margin-top: 0.5rem;
}

.likert-group {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--t-line);
}

.likert-group:last-of-type { border-bottom: none; }

.likert-group legend {
  font-weight: 600;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  color: var(--t-ink);
  line-height: 1.5;
}

.likert-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.likert-options label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--t-muted);
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.likert-options label:has(input:checked) {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: var(--t-ink);
  font-weight: 600;
}

.likert-options input { accent-color: var(--t-accent); }

/* ── Page hero (marketing sub-pages) ── */
.page-hero {
  position: relative;
  padding: 4.5rem 0 4rem;
  overflow: hidden;
  border-bottom: 1px solid var(--t-line);
  background: var(--t-bg);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-hero__mesh {
  position: absolute;
  inset: -20%;
  opacity: 0.8;
}

.page-hero__inner {
  position: relative;
}

.page-hero__split {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 340px);
  gap: 3rem;
  align-items: start;
}

.page-hero__copy {
  max-width: 580px;
}

@media (max-width: 900px) {
  .page-hero__split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-glass-preview {
    max-width: 360px;
    margin: 0 auto;
  }
}

.page-hero .t-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: var(--t-white);
  border: 1px solid var(--t-line);
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--t-muted);
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(12, 18, 34, 0.04);
}

.page-hero h1 {
  font-family: var(--t-serif);
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  line-height: 1.1;
}

.page-hero .t-lead {
  font-size: 1.1rem;
  color: var(--t-muted);
  max-width: 560px;
  line-height: 1.7;
  margin: 0 0 1.75rem;
}

/* ── Pricing (upgraded) ── */
.pricing-page { padding-bottom: 4rem; }

.pricing-header {
  text-align: center;
  padding: 4.5rem 0 2rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--t-line);
  background: var(--t-bg);
}

.pricing-header h1 {
  font-family: var(--t-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.pricing-header .t-lead {
  color: var(--t-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  line-height: 1.65;
}

.pricing-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.pricing-tab {
  padding: 0.65rem 1.35rem;
  border-radius: 99px;
  border: 1px solid var(--t-line);
  background: var(--t-white);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--t-muted);
  text-decoration: none;
  transition: all 0.25s ease;
}

.pricing-tab:hover {
  border-color: #cbd5e1;
  color: var(--t-ink);
}

.pricing-tab.active {
  background: var(--t-ink);
  color: white;
  border-color: var(--t-ink);
  box-shadow: 0 4px 16px rgba(12, 18, 34, 0.15);
}

.size-tabs {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.size-tab {
  padding: 0.5rem 1rem;
  border-radius: var(--t-radius-sm);
  border: 1px solid var(--t-line);
  background: var(--t-white);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--t-muted);
  text-decoration: none;
  transition: all 0.2s ease;
}

.size-tab.active {
  border-color: var(--product-primary, var(--t-accent));
  color: var(--product-primary, var(--t-accent));
  background: color-mix(in srgb, var(--product-primary, var(--t-accent)) 10%, white);
  font-weight: 600;
}

.pricing-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding-bottom: 2rem;
  align-items: stretch;
  overflow: visible;
}

@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.pricing-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--t-white);
  border-radius: var(--t-radius);
  padding: 2rem 1.75rem;
  border: 1px solid var(--t-line);
  box-shadow: var(--t-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
  overflow: visible;
}

.pricing-card__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
  overflow: visible;
}

.pricing-card__ring-path {
  stroke: var(--product-primary, var(--t-accent));
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pricing-card__body { flex: 1; }

.pricing-card__cta {
  margin-top: auto;
  padding-top: 1.5rem;
}

.pricing-card__cta .btn {
  width: 100%;
}

.pricing-card.is-hover-target {
  z-index: 10;
  transform: translateY(-4px);
  box-shadow: var(--t-shadow-lg);
}

/* Only non-active tabs get preview highlight — active tab keeps .active styles */
.size-tab.is-hover-preview {
  border-color: var(--product-primary, var(--t-accent));
  color: var(--product-primary, var(--t-accent));
  background: color-mix(in srgb, var(--product-primary, var(--t-accent)) 10%, white);
  font-weight: 600;
}

.pricing-card .tier-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.pricing-card .price {
  font-family: var(--t-serif);
  font-size: 2.5rem;
  font-style: italic;
  margin: 0.75rem 0 0.25rem;
  color: var(--t-ink);
  line-height: 1;
}

.pricing-card .price span {
  font-family: var(--t-sans);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 500;
  color: var(--t-muted);
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.pricing-card li {
  font-size: 0.88rem;
  color: var(--t-slate);
  padding: 0.4rem 0;
  padding-left: 1.35rem;
  position: relative;
  line-height: 1.5;
}

.pricing-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 700;
}

.pricing-admin-note {
  text-align: center;
  color: var(--t-muted);
  font-size: 0.9rem;
  padding: 1.5rem;
  background: var(--t-white);
  border-radius: var(--t-radius);
  border: 1px solid var(--t-line);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Product pages ── */
.theme-aptitude { --product-primary: #4f46e5; --product-accent-soft: rgba(79, 70, 229, 0.1); --product-mesh: rgba(79, 70, 229, 0.1); }
.theme-survey   { --product-primary: #0d9488; --product-accent-soft: rgba(13, 148, 136, 0.1); --product-mesh: rgba(13, 148, 136, 0.1); }
.theme-onboarding { --product-primary: #d97706; --product-accent-soft: rgba(217, 119, 6, 0.1); --product-mesh: rgba(217, 119, 6, 0.1); }

.product-page .page-hero__mesh {
  background: radial-gradient(ellipse 60% 50% at 30% 40%, var(--product-mesh) 0%, transparent 65%);
}

.product-page .t-eyebrow {
  color: var(--product-primary);
  background: var(--product-accent-soft);
  border-color: transparent;
}

.feature-section {
  padding: 5rem 0;
}

.feature-section .t-section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.feature-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--t-bg);
  border-radius: var(--t-radius);
  padding: 1.75rem;
  border: 1px solid var(--t-line);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item p { flex: 1; }

.feature-item__cta {
  margin-top: auto;
  padding-top: 1.25rem;
}

.feature-item__cta .btn {
  width: 100%;
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--t-shadow);
}

.feature-item h3 {
  margin: 0 0 0.6rem;
  color: var(--product-primary);
  font-size: 1.05rem;
  font-weight: 700;
}

.feature-item p {
  margin: 0;
  color: var(--t-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.product-cta {
  padding: 5rem 2rem;
  background: var(--product-primary);
  position: relative;
  overflow: hidden;
}

.product-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 120%, rgba(255,255,255,0.15) 0%, transparent 55%),
    radial-gradient(ellipse 40% 60% at 90% 0%, rgba(0,0,0,0.08) 0%, transparent 50%);
}

.product-cta__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.product-cta h2 {
  font-family: var(--t-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  color: white;
  margin: 0 0 0.75rem;
  text-align: center;
  width: 100%;
}

.product-cta p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1.75rem;
  max-width: 480px;
  font-size: 1.05rem;
  line-height: 1.65;
  text-align: center;
}

.product-cta .btn, .product-cta .t-btn {
  background: white;
  color: var(--product-primary) !important;
  font-weight: 600;
}

.product-cta .btn:hover, .product-cta .t-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  color: var(--product-primary) !important;
}

/* ── Product glass preview (hero upper-right) ── */
.product-glass-preview {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 1.5rem 1.35rem;
  box-shadow:
    0 16px 48px rgba(12, 18, 34, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  justify-self: end;
  width: 100%;
  max-width: 340px;
}

.product-glass-preview .glass-panel__shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(
    400px circle at var(--glass-x, 50%) var(--glass-y, 50%),
    rgba(255, 255, 255, 0.5) 0%,
    transparent 60%
  );
}

.product-glass-preview.is-glass-active .glass-panel__shine {
  opacity: 1;
}

.product-glass-preview .glass-panel__border {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    color-mix(in srgb, var(--product-primary) 30%, transparent) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.75;
}

.product-glass-preview > :not(.glass-panel__shine):not(.glass-panel__border) {
  position: relative;
  z-index: 1;
}

.product-glass-preview__label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--t-muted);
  margin-bottom: 0.35rem;
}

.product-glass-preview__title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--t-ink);
  margin-bottom: 0.5rem;
}

.product-glass-preview__code {
  font-family: var(--t-serif);
  font-size: 2.25rem;
  font-style: italic;
  line-height: 1;
  color: var(--t-ink);
  margin-bottom: 0.35rem;
}

.product-glass-preview__code span {
  color: var(--product-primary);
}

.product-glass-preview__score {
  font-family: var(--t-serif);
  font-size: 2.5rem;
  font-style: italic;
  color: var(--product-primary);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.product-glass-preview__score span {
  font-family: var(--t-sans);
  font-size: 1rem;
  font-style: normal;
  color: var(--t-muted);
}

.product-glass-preview__meta {
  font-size: 0.82rem;
  color: var(--t-muted);
  margin-bottom: 1rem;
}

.product-glass-preview__bars {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.pg-bar {
  display: grid;
  grid-template-columns: 16px 1fr;
  align-items: center;
  gap: 0.5rem;
}

.pg-bar > span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--t-muted);
}

.pg-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.pg-fill {
  height: 100%;
  width: var(--w);
  border-radius: 99px;
  background: var(--product-primary);
}

.product-glass-preview__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.pg-metric {
  text-align: center;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  padding: 0.65rem 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.pg-metric__val {
  display: block;
  font-family: var(--t-serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--product-primary);
  line-height: 1;
}

.pg-metric__lbl {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--t-muted);
  margin-top: 0.2rem;
}

.product-glass-preview__checks {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.82rem;
}

.product-glass-preview__checks li {
  padding: 0.4rem 0 0.4rem 1.35rem;
  position: relative;
  color: var(--t-slate);
}

.product-glass-preview__checks li::before {
  content: '○';
  position: absolute;
  left: 0;
  color: var(--t-muted);
}

.product-glass-preview__checks li.is-done::before {
  content: '✓';
  color: #22c55e;
  font-weight: 700;
}

.product-glass-preview__checks li.is-warn::before {
  content: '!';
  color: #f59e0b;
  font-weight: 700;
}

.product-glass-preview__chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 99px;
  background: color-mix(in srgb, var(--product-primary) 12%, white);
  color: var(--product-primary);
  border: 1px solid color-mix(in srgb, var(--product-primary) 25%, transparent);
}

.product-glass-preview__chip--fit,
.product-glass-preview__chip--ready {
  background: rgba(236, 253, 245, 0.7);
  color: #059669;
  border-color: rgba(5, 150, 105, 0.25);
}

.product-page .page-hero .btn-primary,
.product-page .page-hero .t-btn--primary {
  background: var(--product-primary);
  box-shadow: 0 4px 20px color-mix(in srgb, var(--product-primary) 35%, transparent);
}

.product-page .page-hero .btn-primary:hover {
  background: var(--product-primary);
  filter: brightness(0.92);
}

.product-page .feature-item__cta .btn {
  background: var(--product-primary);
  color: white !important;
}

.product-page .feature-item__cta .btn:hover {
  filter: brightness(0.92);
  color: white !important;
}

.feature-section {
  background: var(--t-bg);
}

/* ── Free trials ── */
.trial-page .trial-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  background: color-mix(in srgb, var(--product-primary, var(--t-accent)) 8%, white);
  border: 1px solid color-mix(in srgb, var(--product-primary, var(--t-accent)) 22%, transparent);
  border-radius: var(--t-radius-sm);
}

.trial-banner__badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.7rem;
  border-radius: 99px;
  background: var(--product-primary, var(--t-accent));
  color: white;
  white-space: nowrap;
}

.trial-banner__sub {
  display: block;
  font-size: 0.85rem;
  color: var(--t-muted);
  margin-top: 0.15rem;
}

.trial-preview-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.75rem;
  border-radius: 99px;
  background: #fef3c7;
  color: #b45309;
  margin-bottom: 1rem;
}

.trial-locked-note {
  font-size: 0.82rem;
  color: var(--t-muted);
  margin: 0.5rem 0 0;
  font-style: italic;
}

.trial-locked-block {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  background: var(--t-bg);
  border-radius: var(--t-radius-sm);
  border: 1px dashed var(--t-line);
}

.trial-locked-block__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--t-muted);
  margin-bottom: 0.5rem;
}

.trial-locked-block__blur {
  font-family: var(--t-serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--t-muted);
  filter: blur(5px);
  user-select: none;
  opacity: 0.55;
}

.trial-locked-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.trial-locked-grid .trial-locked-block__blur {
  font-size: 1rem;
  text-align: center;
  padding: 0.5rem;
  background: white;
  border-radius: 8px;
}

.trial-upgrade {
  margin-top: 2rem;
  padding: 1.75rem;
  background: var(--t-white);
  border: 1px solid var(--t-line);
  border-radius: var(--t-radius);
  box-shadow: var(--t-shadow);
}

.trial-upgrade__header h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.trial-upgrade__header p {
  margin: 0;
  color: var(--t-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.trial-upgrade__list {
  margin: 1.25rem 0;
  padding-left: 1.25rem;
  color: var(--t-slate);
  line-height: 1.75;
  font-size: 0.92rem;
}

.trial-upgrade__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.trial-upgrade__pricing {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  background: color-mix(in srgb, var(--product-primary, var(--t-accent)) 6%, white);
  border: 1px solid color-mix(in srgb, var(--product-primary, var(--t-accent)) 18%, transparent);
  border-radius: var(--t-radius-sm);
}

.trial-upgrade__tier {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  color: var(--t-slate);
}

.trial-upgrade__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
}

.trial-upgrade__price {
  font-family: var(--t-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--t-ink);
}

.trial-upgrade__price-alt {
  font-size: 0.88rem;
  color: var(--t-muted);
}

.trial-upgrade__link {
  font-size: 0.88rem;
  color: var(--t-muted);
  text-decoration: underline;
}

.trial-size-note {
  font-size: 0.88rem;
  color: var(--t-muted);
  margin: -0.5rem 0 1.25rem;
}

.trial-size-note a {
  color: var(--product-primary, var(--t-accent));
}

.trial-wizard-card {
  padding: 1.5rem;
}

.trial-size-picker {
  border: none;
  margin: 0;
  padding: 0;
}

.trial-size-picker__legend {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--t-muted);
  margin-bottom: 0.75rem;
}

.trial-size-options {
  display: grid;
  gap: 0.65rem;
}

.trial-size-option {
  display: block;
  padding: 1rem 1.15rem;
  border: 1px solid var(--t-line);
  border-radius: var(--t-radius-sm);
  background: var(--t-white);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.trial-size-option:has(input:checked),
.trial-size-option.is-selected {
  border-color: var(--t-accent);
  box-shadow: 0 0 0 1px var(--t-accent);
}

.trial-size-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.trial-size-option__label {
  display: block;
  font-weight: 600;
  color: var(--t-ink);
}

.trial-size-option__cap {
  display: block;
  font-size: 0.85rem;
  color: var(--t-muted);
  margin-top: 0.15rem;
}

.trial-wizard-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--t-muted);
  margin: 1rem 0 0;
}

.trial-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .trial-product-grid {
    grid-template-columns: 1fr;
  }
}

.trial-product-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--t-white);
  border: 1px solid var(--t-line);
  border-radius: var(--t-radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.trial-product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--t-shadow);
}

.trial-product-card--aptitude:hover { border-color: #4f46e5; }
.trial-product-card--survey:hover { border-color: #0d9488; }
.trial-product-card--onboarding:hover { border-color: #d97706; }

.trial-product-card__badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.65rem;
  border-radius: 99px;
  background: var(--t-bg);
  color: var(--t-muted);
  margin-bottom: 0.75rem;
}

.trial-product-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.trial-product-card__tagline {
  font-size: 0.88rem;
  color: var(--t-muted);
  margin: 0 0 0.75rem;
}

.trial-product-card__trial {
  font-size: 0.82rem;
  color: var(--t-slate);
  margin: 0 0 1rem;
}

.trial-product-card__price {
  margin-bottom: 1rem;
}

.trial-product-card__amount {
  font-family: var(--t-serif);
  font-size: 1.5rem;
  font-weight: 600;
}

.trial-product-card__period {
  font-size: 0.88rem;
  color: var(--t-muted);
}

.trial-product-card__alt {
  display: block;
  font-size: 0.82rem;
  color: var(--t-muted);
  margin-top: 0.15rem;
}

.trial-product-card__cta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--t-accent);
}

.trial-product-card--aptitude .trial-product-card__cta { color: #4f46e5; }
.trial-product-card--survey .trial-product-card__cta { color: #0d9488; }
.trial-product-card--onboarding .trial-product-card__cta { color: #d97706; }

.pricing-trial-note {
  text-align: center;
  font-size: 0.92rem;
  color: var(--t-muted);
  margin: 0 0 1.5rem;
}

.pricing-trial-note a {
  color: var(--product-primary, var(--t-accent));
  font-weight: 600;
}

.page-hero__copy .btn {
  margin-top: 0.5rem;
}

.page-hero__copy .btn + .btn {
  margin-left: 0.5rem;
}

.billing-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: var(--t-radius-sm);
  font-size: 0.92rem;
}

.billing-banner span {
  display: block;
  color: var(--t-muted);
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

.billing-status {
  margin-bottom: 0;
  line-height: 1.6;
}

.billing-status--active {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.billing-status--pending {
  background: #fffbeb;
  border-color: #fde68a;
}

.billing-status--trial {
  background: var(--t-bg);
}

.legal-page {
  max-width: 720px;
  padding: 3rem 0 4rem;
}

.legal-body {
  margin-top: 2rem;
  line-height: 1.75;
  color: var(--t-slate);
}

.legal-body h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.05rem;
  color: var(--t-ink);
}

.legal-body p {
  margin: 0 0 1rem;
}

.pricing-footnote {
  text-align: center;
  font-size: 0.88rem;
  color: var(--t-muted);
  margin: 2rem 0 0;
  line-height: 1.65;
}

.pricing-footnote a {
  color: var(--product-primary, var(--t-accent));
  font-weight: 600;
}

.contact-email-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-email-list li {
  margin: 0;
}
