/* Time Blindness Landing Page — Polished
   Palette: warm amber on deep navy, cursor tessellation texture
   Font: Onest (headings) + system-ui (body) */

/* ---- Page base ---- */
.tb-page {
  background-color: #1a1a2e;
  background-image: url('/images/time-blindness/cursor-tile.svg');
  background-repeat: repeat;
  background-size: 54px 54px;
  color: #e2e8f0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
}

/* ---- Minimal Header ---- */
.tb-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.tb-header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tb-header-logo img {
  height: 32px;
  width: auto;
}

.tb-header-cta {
  background: #1f7a6f;
  color: #fff;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tb-header-cta:hover {
  background: #186b62;
  color: #fff;
  transform: translateY(-1px);
}

.tb-header-cta:active {
  transform: translateY(0);
}

/* ---- Sections (shared) ---- */
.tb-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.tb-section-wide {
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* ---- Hero (split layout: text left, image right) ---- */
.tb-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  padding: 5rem 2rem 3rem;
  max-width: 960px;
  margin: 0 auto;
}

.tb-hero h1 {
  font-family: 'Onest', system-ui, sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 1rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.tb-hero-sub {
  font-size: 1.15rem;
  color: #9ca8b8;
  margin: 0 0 2rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.tb-hero-img {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  justify-self: center;
}

/* ---- Download buttons ---- */
.tb-download-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.tb-hero .tb-download-buttons {
  justify-content: flex-start;
}

.tb-download-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tb-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.tb-download-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.tb-download-btn.mac {
  background: #1f7a6f;
  color: #fff;
}

.tb-download-btn.mac:hover {
  background: #186b62;
  color: #fff;
}

.tb-download-btn.windows {
  background: #2a3348;
  color: #e2e8f0;
  border: 1px solid #3a4560;
}

.tb-download-btn.windows:hover {
  background: #334058;
  color: #e2e8f0;
  border-color: #4a567a;
}

.tb-download-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.tb-download-btn .tb-btn-text strong {
  display: block;
  font-size: 0.95rem;
}

.tb-download-btn .tb-btn-text {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.3;
}

.tb-download-sub {
  text-align: center;
  font-size: 0.8rem;
  color: #8b96a6;
  margin-top: 0.75rem;
}

.tb-hero .tb-download-sub {
  text-align: left;
}

/* ---- Insight split (quote + text) ---- */
.tb-insight-split {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4rem;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  padding: 5rem 3rem;
  background-color: #1a1a2e;
}

/* Quote side — editorial pull-quote */
.tb-insight-quote {
  position: relative;
}

.tb-quote-figure {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
}

.tb-quote-figure blockquote {
  font-family: 'Onest', system-ui, sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-style: italic;
  font-weight: 700;
  color: #fff;
  margin: 0;
  padding: 0;
  border: none;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.tb-quote-figure figcaption {
  margin-top: 1.25rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tb-quote-figure figcaption strong {
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 0.85rem;
  color: #e2e8f0;
  font-weight: 600;
}

.tb-quote-figure figcaption span {
  font-size: 0.8rem;
  color: #8a95a8;
}

/* Text side */
.tb-insight-text {
}

.tb-insight-text p {
  color: #9ca8b8;
  font-size: 1rem;
  line-height: 1.8;
  margin: 0 0 1.25rem;
}

.tb-insight-text p:last-child {
  margin-bottom: 0;
}

.tb-insight-text strong {
  color: #fff;
}

/* ---- Texture bumpers (parallax dividers) ---- */
.tb-texture-bumper {
  position: relative;
  height: 120px;
  background-color: #1a1a2e;          /* solid base covers tessellation */
  overflow: hidden;
  pointer-events: none;
}

.tb-texture-bumper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 0.15;
}

.tb-texture-bars::before {
  background-image: url('/images/time-blindness/Timer Bar Pattern.png');
  background-image: image-set(
    url('/images/time-blindness/Timer Bar Pattern.png') 1x,
    url('/images/time-blindness/Timer Bar Pattern@2x.png') 2x
  );
  background-size: 100vw auto;
  background-repeat: no-repeat;
}

.tb-texture-circles::before {
  background-image: url('/images/time-blindness/Circle-BG Pattern.png');
  background-image: image-set(
    url('/images/time-blindness/Circle-BG Pattern.png') 1x,
    url('/images/time-blindness/Circle-BG Pattern@2x.png') 2x
  );
}

/* Fixed attachment breaks on touch devices — fall back to scroll */
@media (hover: none), (pointer: coarse) {
  .tb-texture-bumper::before {
    background-attachment: scroll;
  }
}

/* ---- Features section ---- */
.tb-features-heading {
  text-align: center;
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 2rem;
  text-wrap: balance;
}

.tb-feature-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: rgba(42, 157, 143, 0.04);
  border: 1px solid rgba(42, 157, 143, 0.08);
  border-radius: 12px;
  margin-bottom: 1.25rem;
  transition: border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tb-feature-card:hover {
  border-color: rgba(42, 157, 143, 0.18);
}

.tb-feature-card:last-of-type {
  margin-bottom: 0;
}

.tb-feature-card img {
  width: 160px;
  height: auto;
  border-radius: 8px;
  flex-shrink: 0;
}

.tb-feature-card h3 {
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.4rem;
}

.tb-feature-card p {
  font-size: 0.95rem;
  color: #9ca8b8;
  margin: 0;
  line-height: 1.7;
}

/* ---- Styling showcase ---- */
.tb-showcase-heading {
  text-align: center;
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.4rem;
  text-wrap: balance;
}

.tb-showcase-sub {
  text-align: center;
  font-size: 0.95rem;
  color: #9ca8b8;
  margin: 0 0 2rem;
}

.tb-showcase-label {
  font-family: 'Onest', system-ui, sans-serif;
  font-weight: 600;
  color: #4db8aa;
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
}

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

.tb-showcase-card {
  background: #212640;
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
  border: 1px solid #2d3350;
  transition: border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tb-showcase-card:hover {
  border-color: #3d4570;
}

.tb-showcase-card img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.tb-showcase-card .tb-placeholder-img {
  width: 100%;
  height: 80px;
  background: #2a3048;
  border: 1px dashed #3d4570;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #8b96a6;
}

.tb-showcase-card .tb-showcase-card-label {
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
  margin: 0;
}

.tb-showcase-card .tb-showcase-card-desc {
  font-size: 0.8rem;
  color: #8b96a6;
  margin: 0.4rem 0 0;
  line-height: 1.5;
}

.tb-showcase-card .tb-showcase-card-detail {
  font-size: 0.75rem;
  color: #8b96a6;
  margin: 0.2rem 0 0;
}

.tb-showcase-note {
  text-align: center;
  font-size: 0.8rem;
  color: #8b96a6;
  margin-top: -1rem;
  margin-bottom: 2rem;
}

/* ---- Pricing section ---- */
.tb-pricing-heading {
  text-align: center;
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 2rem;
  text-wrap: balance;
}

.tb-pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.tb-pricing-card {
  border: 1px solid #2d3350;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tb-pricing-card:hover {
  border-color: #3d4570;
}

.tb-pricing-card.featured {
  border-color: #2d3350;
}

.tb-pricing-tier {
  font-size: 0.85rem;
  color: #8b96a6;
  margin: 0 0 0.25rem;
  font-weight: 600;
}

.tb-pricing-card.featured .tb-pricing-tier {
  color: #2a9d8f;
}

.tb-pricing-amount {
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.1;
}

.tb-pricing-period {
  font-size: 0.85rem;
  color: #9ca8b8;
  margin: 0 0 0.5rem;
}

.tb-pricing-desc {
  font-size: 0.85rem;
  color: #9ca8b8;
  margin: 0 0 1rem;
}

.tb-pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  font-size: 0.85rem;
  color: #9ca8b8;
}

.tb-pricing-features li {
  margin: 0.3rem 0;
}

.tb-pricing-buy {
  display: inline-block;
  background: #1f7a6f;
  color: #fff;
  padding: 0.6rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 0.9rem;
  transition: background 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tb-pricing-buy:hover {
  background: #186b62;
  color: #fff;
  transform: translateY(-1px);
}

.tb-pricing-buy:active {
  transform: translateY(0);
}

.tb-pricing-sub {
  text-align: center;
  font-size: 0.8rem;
  color: #8b96a6;
  margin-top: 1.5rem;
}

/* ---- Final CTA ---- */
.tb-final-cta {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.tb-final-cta h2 {
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}

.tb-final-cta p {
  color: #9ca8b8;
  margin: 0 0 1.5rem;
}

/* ---- Footer ---- */
.tb-footer {
  border-top: 1px solid #2d3350;
  padding: 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.tb-footer-copyright {
  font-size: 0.8rem;
  color: #8b96a6;
}

.tb-footer-links {
  display: flex;
  gap: 1.5rem;
}

.tb-footer-links a {
  font-size: 0.8rem;
  color: #2a9d8f;
  text-decoration: none;
  transition: color 0.2s;
}

.tb-footer-links a:hover {
  color: #5ec4b6;
}

/* ---- Footer override (Webflow footer is light by default) ---- */
.tb-page .footer-dark {
  background-color: #141425;
  border-bottom: none;
}

.tb-page .footer-link {
  color: #9ca8b8;
}

.tb-page .footer-link:hover {
  color: #e2e8f0;
}

.tb-page .footer-divider {
  background-color: #2d3350;
}

.tb-page .footer-copyright-center {
  color: #8b96a6;
}

/* ---- Focus styles ---- */
.tb-header-cta:focus-visible,
.tb-download-btn:focus-visible,
.tb-pricing-buy:focus-visible {
  outline: 2px solid #5ec4b6;
  outline-offset: 2px;
}

.tb-footer-links a:focus-visible,
.tb-header-logo:focus-visible {
  outline: 2px solid #5ec4b6;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---- Send link (mobile-only) ---- */
.tb-send-link {
  display: none;
}

@media screen and (max-width: 991px) {
  .tb-send-link {
    display: block;
    max-width: 380px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    text-align: center;
  }

  .tb-send-link-heading {
    font-family: 'Onest', system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.125rem;
  }

  .tb-send-link-sub {
    font-size: 0.8rem;
    color: #9ca8b8;
    margin: 0 0 0.75rem;
    line-height: 1.4;
  }

  .tb-send-link-form {
    display: flex;
    gap: 0.5rem;
  }

  .tb-send-link-input {
    flex: 1;
    padding: 0.625rem 0.75rem;
    border: 1px solid #3a4560;
    border-radius: 8px;
    font-size: 0.875rem;
    background: #212640;
    color: #e2e8f0;
    outline: none;
    transition: border-color 0.2s;
  }

  .tb-send-link-input::placeholder {
    color: #6b7688;
  }

  .tb-send-link-input:focus {
    border-color: #1f7a6f;
  }

  .tb-send-link-btn {
    padding: 0.625rem 1.125rem;
    background: #1f7a6f;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Onest', system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .tb-send-link-btn:hover {
    background: #186b62;
  }

  .tb-send-link-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }

  .tb-send-link-msg {
    font-size: 0.8rem;
    margin-top: 0.75rem;
    line-height: 1.4;
  }

  .tb-send-link-success {
    color: #4db8aa;
  }

  .tb-send-link-error {
    color: #e57373;
  }
}

@media screen and (max-width: 479px) {
  .tb-send-link {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
  }

  .tb-send-link-form {
    flex-direction: column;
    gap: 0.375rem;
  }

  .tb-send-link-input {
    padding: 0.625rem 0.75rem;
    font-size: 0.9375rem;
  }

  .tb-send-link-btn {
    width: 100%;
    padding: 0.625rem 1.125rem;
    font-size: 0.9375rem;
  }
}

/* ---- Scroll reveal ---- */
@media (prefers-reduced-motion: no-preference) {
  .tb-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .tb-reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ---- Responsive ---- */

/* Tablet (≤991px) */
@media screen and (max-width: 991px) {
  .tb-hero {
    grid-template-columns: 1fr;
    text-align: center;
    max-width: 600px;
  }

  /* Reorder: headline/image come from the grid children.
     .tb-hero-text is order 0 by default, but we want:
     h1 (inside text) → image → sub + buttons (inside text).
     Use display:contents on .tb-hero-text to dissolve it,
     then order the children individually. */
  .tb-hero-text {
    display: contents;
  }

  .tb-hero h1 {
    order: 1;
  }

  .tb-hero-img {
    order: 2;
    max-width: 300px;
    margin: 0 auto;
  }

  .tb-hero-sub {
    order: 3;
  }

  .tb-hero .tb-download-buttons {
    order: 4;
    justify-content: center;
  }

  .tb-hero .tb-download-sub {
    order: 5;
    text-align: center;
  }

  .tb-feature-card img {
    width: 120px;
  }
}

/* Mobile landscape (≤767px) */
@media screen and (max-width: 767px) {
  .tb-hero {
    padding: 3rem 1.5rem 2rem;
  }

  .tb-section,
  .tb-section-wide {
    padding: 3rem 1.5rem;
  }

  .tb-insight-split {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 3rem 1.5rem;
  }

  .tb-insight-quote {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #2d3350;
    margin-bottom: 1.5rem;
  }

  .tb-texture-bumper {
    height: 80px;
  }

  .tb-feature-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .tb-feature-card img {
    width: 200px;
  }

  .tb-pricing-cards {
    grid-template-columns: 1fr;
    max-width: 350px;
  }

  .tb-footer {
    flex-direction: column;
    text-align: center;
  }

  /* Touch targets: footer links */
  .tb-page .footer-link {
    display: inline-block;
    padding: 0.625rem 0;
  }
}

/* Phone (≤479px) */
@media screen and (max-width: 479px) {
  .tb-hero-sub {
    font-size: 1rem;
  }

  .tb-download-buttons {
    flex-direction: column;
    align-items: center;
  }

  .tb-download-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .tb-insight-quote blockquote {
    font-size: 1.2rem;
  }

  .tb-header {
    padding: 0.75rem 1rem;
  }
}
