/* Time Balance page - extracted from the new design mockup */

body {
  background:
    radial-gradient(circle at 8% 0%, rgba(127, 159, 141, 0.16), transparent 30rem),
    radial-gradient(circle at 86% 6%, rgba(216, 229, 223, 0.55), transparent 34rem),
    linear-gradient(180deg, var(--c-cream), #f4efe7 58%, var(--c-cream));
}

.tb-page {
  --tb-charcoal: #24211e;
  --tb-charcoal-2: #1e1b19;
  --tb-brown: #6e5f55;
  --tb-muted: #8c8379;
  --tb-sage: #7f9f8d;
  --tb-sage-dk: #5f8272;
  --tb-sage-soft: #d8e5df;
  --tb-line: rgba(36, 33, 30, 0.1);
  --tb-shadow-sm: 0 8px 24px rgba(36, 33, 30, 0.08);
  --tb-shadow-md: 0 18px 48px rgba(36, 33, 30, 0.12);
  --tb-shadow-lg: 0 28px 80px rgba(36, 33, 30, 0.16);
  overflow: hidden;
  color: var(--tb-charcoal);
}

.tb-section {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.tb-btn {
  min-height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
  background: var(--tb-sage);
  box-shadow: 0 18px 40px rgba(95, 130, 114, 0.24);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.tb-btn:hover {
  transform: translateY(-2px);
  color: #fff;
  background: var(--tb-sage-dk);
  box-shadow: 0 22px 48px rgba(95, 130, 114, 0.28);
}

.tb-btn--secondary {
  color: var(--tb-sage-dk);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(36, 33, 30, 0.1);
  box-shadow: none;
}

.tb-btn--secondary:hover {
  color: #fff;
  background: var(--tb-sage-dk);
}

.tb-hero {
  padding: 86px 0 58px;
}

.tb-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(340px, 0.97fr);
  gap: 48px;
  align-items: center;
}

.tb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--tb-sage-dk);
  background: rgba(127, 159, 141, 0.12);
  border: 1px solid rgba(127, 159, 141, 0.22);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tb-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tb-sage);
  box-shadow: 0 0 0 7px rgba(127, 159, 141, 0.15);
}

.tb-hero h1 {
  max-width: 760px;
  margin: 24px 0 18px;
  color: var(--tb-charcoal);
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 104px);
  line-height: 0.9;
  letter-spacing: -0.035em;
}

.tb-hero__lead {
  max-width: 690px;
  margin: 0;
  color: var(--tb-brown);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.74;
}

.tb-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.tb-hero .btn--ghost {
  background: rgba(37,35,32,.06);
  color: var(--c-charcoal);
  border: 1.5px solid rgba(37,35,32,.18);
}

.tb-hero .btn--ghost:hover {
  background: rgba(37,35,32,.10);
  border-color: rgba(37,35,32,.28);
  transform: translateY(-2px);
  box-shadow: none;
}

.tb-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.tb-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--tb-brown);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(36, 33, 30, 0.08);
  font-size: 14px;
}

.tb-hero__visual {
  position: relative;
  min-height: 560px;
}

.tb-time-card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 48px;
  background:
    radial-gradient(circle at 26% 20%, rgba(127, 159, 141, 0.24), transparent 16rem),
    radial-gradient(circle at 82% 74%, rgba(216, 229, 223, 0.76), transparent 18rem),
    rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--tb-shadow-lg);
}

.tb-time-card::before,
.tb-time-card::after {
  content: "";
  position: absolute;
  inset: 62px;
  border: 1px solid rgba(36, 33, 30, 0.1);
  border-radius: 50%;
}

.tb-time-card::after {
  inset: 116px;
  border-style: dashed;
  border-color: rgba(95, 130, 114, 0.24);
}

.tb-orbit {
  position: absolute;
  inset: 48px;
  display: grid;
  place-items: center;
}

.tb-dial {
  position: relative;
  width: min(94%, 420px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(from -90deg, var(--tb-sage) 0deg 92deg, var(--tb-sage-soft) 92deg 178deg, var(--c-linen) 178deg 244deg, #c9d6cf 244deg 314deg, var(--tb-sage-dk) 314deg 360deg);
  box-shadow: inset 0 0 0 18px rgba(255, 255, 255, 0.54), 0 28px 60px rgba(36, 33, 30, 0.18);
}

.tb-dial::before {
  content: "";
  position: absolute;
  inset: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(36, 33, 30, 0.08);
}

.tb-dial::after {
  content: "";
  position: absolute;
  inset: 118px;
  border-radius: 50%;
  background: var(--c-cream);
  box-shadow: var(--tb-shadow-sm);
}

.tb-center {
  position: relative;
  z-index: 2;
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: 50%;
  color: var(--tb-sage-dk);
  background: #fff;
  border: 1px solid rgba(36, 33, 30, 0.08);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.04;
  text-align: center;
}

.tb-mark {
  position: absolute;
  z-index: 3;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--tb-charcoal);
  font-weight: 700;
  box-shadow: var(--tb-shadow-sm);
}

.tb-mark--top { top: 34px; left: calc(50% - 26px); }
.tb-mark--right { right: 30px; top: calc(50% - 26px); }
.tb-mark--bottom { bottom: 34px; left: calc(50% - 26px); }
.tb-mark--left { left: 30px; top: calc(50% - 26px); }

.tb-floating-note {
  position: absolute;
  z-index: 4;
  max-width: 194px;
  padding: 15px 16px;
  border-radius: 20px;
  color: var(--tb-brown);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--tb-shadow-sm);
  font-size: 14px;
  line-height: 1.46;
}

.tb-floating-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--tb-charcoal);
}

.tb-note--top { top: 34px; right: 26px; }
.tb-note--bottom { left: 26px; bottom: 36px; }

.tb-stat-card {
  position: absolute;
  right: -12px;
  bottom: 112px;
  z-index: 5;
  min-width: 166px;
  padding: 18px;
  border-radius: 24px;
  color: #fff;
  background: var(--tb-charcoal);
  box-shadow: var(--tb-shadow-md);
}

.tb-stat-card span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.tb-stat-card strong {
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.tb-intro-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.tb-info-card {
  padding: 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--tb-shadow-sm);
}

.tb-info-card__number {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #fff;
  background: var(--tb-sage);
  font-weight: 700;
}

.tb-info-card h3,
.tb-insight-card h3 {
  margin: 0 0 8px;
  color: var(--tb-charcoal);
  font-size: 21px;
  letter-spacing: -0.02em;
}

.tb-info-card p,
.tb-insight-card p {
  margin: 0;
  color: var(--tb-brown);
  font-size: 15px;
  line-height: 1.64;
}

.tb-test {
  padding: 58px 0 76px;
}

.tb-test-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(380px, 1.04fr);
  gap: 22px;
  align-items: start;
  padding: 18px;
  border-radius: 42px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--tb-shadow-lg);
  backdrop-filter: blur(18px);
}

.tb-panel {
  overflow: hidden;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(36, 33, 30, 0.08);
  box-shadow: var(--tb-shadow-sm);
}

.tb-panel__head {
  padding: 28px 28px 20px;
  border-bottom: 1px solid rgba(36, 33, 30, 0.08);
}

.tb-panel__kicker {
  margin: 0 0 9px;
  color: var(--tb-sage-dk);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tb-panel__title {
  margin: 0;
  color: var(--tb-charcoal);
  font-family: var(--font-display);
  font-size: clamp(34px, 3vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.tb-panel__subtitle {
  margin: 12px 0 0;
  color: var(--tb-brown);
  line-height: 1.62;
}

.time-list {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.time-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(36, 33, 30, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.time-item:hover {
  transform: translateY(-2px);
  border-color: rgba(127, 159, 141, 0.24);
  box-shadow: var(--tb-shadow-sm);
}

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

.time-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--tb-sage-dk);
  background: rgba(127, 159, 141, 0.13);
  font-size: 20px;
}

.time-name {
  display: block;
  color: var(--tb-charcoal);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.time-hint {
  display: block;
  margin-top: 3px;
  color: var(--tb-muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.time-value {
  min-width: 74px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--tb-charcoal);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.time-range {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--tb-sage);
}

.tb-result-panel {
  position: sticky;
  top: 142px;
}

.tb-chart-wrap {
  display: grid;
  gap: 18px;
  padding: 26px;
}

.tb-chart-card {
  min-height: 390px;
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: 28px;
  background:
    radial-gradient(circle at center, rgba(127, 159, 141, 0.11), transparent 13rem),
    linear-gradient(180deg, #fff, rgba(237, 232, 224, 0.54));
  border: 1px solid rgba(36, 33, 30, 0.08);
}

#timeCanvas {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
}

.tb-result-summary {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 14px;
}

.tb-result-score {
  padding: 20px;
  border-radius: 24px;
  color: #fff;
  background: var(--tb-charcoal);
}

.tb-result-score span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.tb-result-score strong {
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.tb-result-text {
  padding: 20px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(36, 33, 30, 0.08);
}

.tb-result-text h3,
.tb-recommendation h3 {
  margin: 0 0 7px;
  color: var(--tb-charcoal);
  font-size: 18px;
  letter-spacing: -0.02em;
}

.tb-result-text p,
.tb-recommendation p {
  margin: 0;
  color: var(--tb-brown);
  font-size: 14px;
  line-height: 1.58;
}

.tb-recommendation {
  padding: 22px;
  border-radius: 26px;
  background: rgba(127, 159, 141, 0.1);
  border: 1px solid rgba(127, 159, 141, 0.18);
}

.tb-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tb-panel .btn--ghost,
.tb-result-actions .btn--ghost {
  background: rgba(37,35,32,.05);
  color: var(--c-charcoal);
  border: 1.5px solid rgba(37,35,32,.14);
}

.tb-panel .btn--ghost:hover,
.tb-result-actions .btn--ghost:hover {
  background: rgba(37,35,32,.09);
  border-color: rgba(37,35,32,.22);
  transform: translateY(-2px);
  box-shadow: none;
}

.tb-deep {
  padding: 8px 0 86px;
}

.tb-deep__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  align-items: stretch;
}

.tb-quote-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 38px;
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 100% 0%, rgba(127, 159, 141, 0.24), transparent 20rem),
    var(--tb-charcoal);
  box-shadow: var(--tb-shadow-md);
}

.tb-quote-card p {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.tb-quote-card span {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.62;
}

.tb-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.tb-insight-card {
  padding: 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--tb-shadow-sm);
}

.tb-cta {
  padding: 0 0 96px;
}

.tb-cta__box {
  position: relative;
  overflow: hidden;
  padding: clamp(38px, 6vw, 76px);
  border-radius: 42px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 20%, rgba(127, 159, 141, 0.28), transparent 18rem),
    var(--tb-charcoal);
  box-shadow: var(--tb-shadow-lg);
}

.tb-cta__box::before {
  content: "";
  position: absolute;
  right: -160px;
  bottom: -190px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.tb-cta__content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.tb-cta h2 {
  margin: 0 0 18px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.tb-cta p {
  max-width: 690px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.74;
}

.tb-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.tb-cta__box .btn--ghost {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.22);
}

.tb-cta__box .btn--ghost:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.35);
}

@media (max-width: 980px) {
  .tb-hero__grid,
  .tb-test-shell,
  .tb-deep__grid {
    grid-template-columns: 1fr;
  }

  .tb-hero {
    padding-top: 54px;
  }

  .tb-hero__visual {
    min-height: 500px;
  }

  .tb-result-panel {
    position: static;
  }

  .tb-intro-cards,
  .tb-insight-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .tb-section {
    width: min(100% - 32px, 1160px);
  }

  .tb-hero {
    padding: 42px 0 34px;
  }

  .tb-hero h1 {
    font-size: clamp(48px, 15vw, 68px);
  }

  .tb-hero__actions .btn,
  .tb-result-actions .btn,
  .tb-cta__actions .btn {
    width: 100%;
  }

  .tb-hero__visual {
    min-height: 420px;
  }

  .tb-orbit {
    inset: 26px;
  }

  .tb-floating-note,
  .tb-stat-card,
  .tb-mark {
    display: none;
  }

  .tb-test-shell {
    padding: 10px;
    border-radius: 30px;
  }

  .tb-panel,
  .tb-chart-card {
    border-radius: 24px;
  }

  .tb-panel__head,
  .tb-chart-wrap {
    padding: 20px;
  }

  .time-item {
    padding: 14px;
  }

  .time-hint {
    white-space: normal;
  }

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

  .tb-chart-card {
    min-height: 320px;
  }

  .tb-quote-card,
  .tb-cta__box {
    border-radius: 32px;
  }
}
