/* =======================================================
   THREADMARK USE CASE — Save ChatGPT Conversations
   Premium polish. Matches GoodUse/Threadmark family.
   ======================================================= */

html { scroll-behavior: smooth; }

#demo-video { scroll-margin-top: 110px; }

.tm-uc-wrap {
  padding-top: 18px;
}

/* Make the shared header feel like a premium sticky bar */
.tm-uc-topbar{
  position: sticky;
  top: 0;
  z-index: 60;

  width: min(1320px, calc(100% - 24px)); /* or 1320px if you want */
  margin: 12px auto 0;
  padding: 10px 14px;
  border-radius: 16px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;

  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(100, 41, 183, 0.10);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);

  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* Brand tweaks without breaking your global header styles */
.tm-uc-brand-sub {
  font-weight: 800;
  letter-spacing: -0.2px;
  color: rgba(21, 21, 21, 0.65);
}

.tm-uc-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* HERO polish */
.tm-uc-hero {
  padding-top: 78px;
  padding-bottom: 46px;
}

.tm-uc-em {
  display: inline-block;
  background: linear-gradient(90deg, #6429b7 0%, #8f6be6 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tm-uc-sub {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

/* Proof strip */
.tm-uc-proof {
  margin: 30px auto 0;
  max-width: 920px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 0 10px;
}

.tm-uc-proof-card {
  border-radius: 18px;
  border: 1px solid rgba(100, 41, 183, 0.10);
  background: linear-gradient(180deg, rgba(252, 251, 255, 1) 0%, rgba(255,255,255,1) 100%);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.07);
  padding: 16px 16px 14px;
  text-align: left;
}

.tm-uc-proof-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(100, 41, 183, 0.62);
  margin-bottom: 10px;
}

.tm-uc-proof-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.tm-uc-proof-pill {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  white-space: nowrap;
}

.tm-uc-proof-pill.bad {
  color: #7a1f3a;
  background: rgba(225, 29, 72, 0.06);
  border-color: rgba(225, 29, 72, 0.14);
}

.tm-uc-proof-pill.good {
  color: #2f1b57;
  background: rgba(100, 41, 183, 0.06);
  border-color: rgba(100, 41, 183, 0.14);
}

.tm-uc-proof-text {
  color: rgba(27, 23, 46, 0.78);
  font-size: 13.5px;
  font-weight: 650;
}

/* Screenshot proof */
.tm-uc-shot {
  margin: 26px auto 0;
  max-width: 980px;
  padding: 0 10px;
}

.tm-uc-shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(100, 41, 183, 0.12);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.10);
}

/* Content grid */
.tm-uc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  margin-top: 8px;
  align-items: start;
}

/* Article sections */
.tm-uc-article {
  min-width: 0;
}

.tm-uc-section {
  margin-top: 18px;
  padding: 22px 22px 20px;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.05);
  background: #fff;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.06);
}

.tm-uc-h2 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.25px;
  color: rgba(27, 23, 46, 0.98);
}

.tm-uc-p {
  margin: 10px 0 0;
  font-size: 15.5px;
  line-height: 1.68;
  color: rgba(59, 54, 80, 0.90);
}

.tm-uc-bullets {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.tm-uc-bullet {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(100, 41, 183, 0.05);
  border: 1px solid rgba(100, 41, 183, 0.10);
  color: rgba(47, 27, 87, 0.95);
  font-weight: 650;
}

/* Cards / lists */
.tm-uc-card {
  margin-top: 14px;
  border-radius: 18px;
  border: 1px solid rgba(100, 41, 183, 0.10);
  background: linear-gradient(180deg, rgba(252, 251, 255, 1) 0%, rgba(255,255,255,1) 100%);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
  padding: 16px 16px 14px;
}

.tm-uc-card-title {
  font-weight: 800;
  letter-spacing: -0.2px;
  color: rgba(27, 23, 46, 0.98);
  margin-bottom: 10px;
}

.tm-uc-card-foot {
  margin-top: 10px;
  font-size: 13.5px;
  color: rgba(59, 54, 80, 0.70);
  font-weight: 650;
}

.tm-uc-list {
  margin: 0;
  padding-left: 18px;
  color: rgba(59, 54, 80, 0.88);
  font-size: 14.5px;
  line-height: 1.55;
}

.tm-uc-list li + li {
  margin-top: 6px;
}

/* Quote */
.tm-uc-quote {
  margin-top: 14px;
  border-radius: 18px;
  border: 1px solid rgba(100, 41, 183, 0.10);
  background: rgba(100, 41, 183, 0.04);
  padding: 16px 16px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.tm-uc-quote-mark {
  font-size: 34px;
  line-height: 1;
  color: rgba(100, 41, 183, 0.55);
  font-weight: 900;
}

.tm-uc-quote-text {
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(47, 27, 87, 0.98);
  font-weight: 700;
}

/* Split cards */
.tm-uc-split {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.tm-uc-split-card {
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.05);
  background: #fff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.05);
  padding: 14px 14px 12px;
}

.tm-uc-split-title {
  font-weight: 850;
  color: rgba(27, 23, 46, 0.98);
  margin-bottom: 8px;
}

/* Steps */
.tm-uc-steps {
  margin: 12px 0 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.tm-uc-steps li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
  color: rgba(59, 54, 80, 0.92);
  font-weight: 650;
}

.tm-uc-stepnum {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(100, 41, 183, 0.10);
  border: 1px solid rgba(100, 41, 183, 0.16);
  color: rgba(47, 27, 87, 0.98);
  font-weight: 900;
  flex: 0 0 auto;
}

/* Mini compare rows */
.tm-uc-mini {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 110px 40px 1fr;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(100, 41, 183, 0.04);
  border: 1px solid rgba(100, 41, 183, 0.10);
}

.tm-uc-mini-left {
  font-weight: 900;
  color: rgba(27, 23, 46, 0.98);
}

.tm-uc-mini-mid {
  text-align: center;
  color: rgba(100, 41, 183, 0.70);
  font-weight: 900;
}

.tm-uc-mini-right {
  color: rgba(59, 54, 80, 0.92);
  font-weight: 650;
}

/* Demo */
.tm-uc-demo .tm-uc-demo-steps {
  margin: 0;
  padding-left: 18px;
  color: rgba(59, 54, 80, 0.88);
  font-size: 14.5px;
  line-height: 1.55;
}

.tm-uc-demo-cta {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.tm-uc-video-intro {
  margin-top: 16px;
}

.tm-uc-video-frame{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(100, 41, 183, 0.12);
  background: #fff;
  aspect-ratio: 16 / 9;
  min-height: 240px; /* keeps it usable on tiny screens */
}
.tm-uc-video-frame iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 18px;
}

/* FAQ */
.tm-uc-faq-item {
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
  padding: 12px 14px;
  margin-top: 12px;
}

.tm-uc-faq-item summary {
  cursor: pointer;
  font-weight: 800;
  color: rgba(27, 23, 46, 0.96);
  list-style: none;
}

.tm-uc-faq-item summary::-webkit-details-marker {
  display: none;
}

.tm-uc-faq-item summary:after {
  content: "+";
  float: right;
  color: rgba(100, 41, 183, 0.70);
  font-weight: 900;
}

.tm-uc-faq-item[open] summary:after {
  content: "—";
}

.tm-uc-faq-body {
  margin-top: 10px;
  color: rgba(59, 54, 80, 0.90);
  line-height: 1.65;
  font-size: 14.5px;
}

/* Footer CTA strip */
.tm-uc-footer {
  margin-top: 18px;
}

.tm-uc-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 18px;
  border-radius: 22px;
  border: 1px solid rgba(100, 41, 183, 0.10);
  background: linear-gradient(90deg, rgba(100, 41, 183, 0.08), rgba(255,255,255,1));
  box-shadow: 0 18px 52px rgba(15, 23, 42, 0.07);
}

.tm-uc-footer-title {
  font-weight: 900;
  color: rgba(27, 23, 46, 0.98);
  letter-spacing: -0.2px;
}

.tm-uc-footer-sub {
  margin-top: 6px;
  color: rgba(59, 54, 80, 0.90);
  font-weight: 650;
}

/* Rail */
.tm-uc-rail {
  position: sticky;
  top: 96px;
}

.tm-uc-rail-card {
  border-radius: 22px;
  border: 1px solid rgba(100, 41, 183, 0.10);
  background: rgba(255,255,255,0.72);
  box-shadow: 0 18px 52px rgba(15, 23, 42, 0.10);
  padding: 18px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.tm-uc-rail-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(95, 75, 183, 1);
  background: rgba(100, 41, 183, 0.06);
  margin-bottom: 10px;
}

.tm-uc-rail-title {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.25px;
  color: rgba(27, 23, 46, 0.98);
}

.tm-uc-rail-sub {
  margin-top: 8px;
  color: rgba(59, 54, 80, 0.90);
  line-height: 1.5;
  font-weight: 650;
}

.tm-uc-rail-ctas {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.tm-uc-rail-fineprint {
  margin-top: 12px;
  font-size: 12.5px;
  color: rgba(59, 54, 80, 0.70);
  line-height: 1.5;
}

.tm-uc-hero-mark {
  width: 64px;
  height: 64px;
  margin: 18px auto 6px;
  border-radius: 18px;
  background: rgba(100, 41, 183, 0.06);
  border: 1px solid rgba(100, 41, 183, 0.12);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
}
.tm-uc-hero-mark img {
  width: 34px;
  height: 34px;
  display: block;
}

/* HERO meta: force vertical stack + centered */
.tm-uc-hero .tm-hero-meta{
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center;
  gap: 10px;
  margin-bottom: 10px;
}

/* make the hero video feel like your big screenshot card */
.tm-uc-hero-video{
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.10);
}

/* keep the demo embed comfortable on small screens */
#demo .tm-uc-video-frame {
  min-height: 240px;
}

/* optional: slightly taller on desktop so it feels “hero” */
@media (min-width: 900px){
  .tm-uc-hero-video.tm-uc-video-frame{
    aspect-ratio: 16 / 8.5;
  }
}

/* tighten eyebrow spacing */
.tm-uc-hero .home-eyebrow{
  margin: 0 !important;
}


/* keep badge centered */
.tm-uc-hero .tm-featured-badge{
  margin: 0 auto !important;
}


/* Nav spacing feels “too airy” right now */
.tm-uc-topbar .gu-nav a{
  padding: 8px 10px;
  border-radius: 10px;
}

/* CTA button aligns better vertically */
.tm-uc-topbar .tm-uc-actions{
  align-items: center;
}


.tm-uc-topbar .tm-uc-nav{
  flex: 1;                 /* KEY: take the middle space */
  display: flex;
  justify-content: center; /* center the links */
  align-items: center;
  gap: 14px;               /* more breathing room */
}

.tm-uc-topbar .tm-uc-brand { flex: 0 0 auto; }
.tm-uc-topbar .tm-uc-nav { min-width: 0; }
.tm-uc-actions { flex: 0 0 auto; }

.tm-uc-cta {
  justify-content: center;
}

.tm-uc-video-eyebrow{
  margin: 0 0 12px !important;
  text-align: center;
}


/* Responsive */
@media (max-width: 980px) {
  .tm-uc-grid {
    grid-template-columns: 1fr;
  }
  .tm-uc-rail {
    position: static;
  }
  .tm-uc-topbar {
    border-radius: 14px;
  }
}

@media (max-width: 760px) {
  .tm-uc-proof {
    grid-template-columns: 1fr;
  }
  .tm-uc-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .tm-uc-hero {
    padding-top: 64px;
  }
  .tm-uc-mini {
    grid-template-columns: 100px 36px 1fr;
  }
}

/* =========================
   MOBILE FIXES
   ========================= */
@media (max-width: 640px) {

  /* 1) Tighten the gap between header + hero icon */
  .tm-uc-wrap { padding-top: 8px; }          /* was 18 */
  .tm-uc-hero {
    padding-top: 36px;                       /* was 64/78 */
    padding-bottom: 34px;
  }

  .tm-uc-hero .tm-hero-meta { gap: 8px; }    /* was 10 */
  .tm-uc-hero-mark {
    margin: 10px auto 4px;                   /* was 18 auto 6 */
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  /* 2) Video overflow / cut-off on the right (iOS-safe) */
  body { overflow-x: hidden; }

  .tm-uc-shot {
    width: 100%;
    max-width: 100%;
    padding: 0 14px;                          /* keep comfy edge padding */
    box-sizing: border-box;
  }

  .tm-uc-video-frame {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;                         /* ensures rounded corners behave */
    box-sizing: border-box;
  }

  .tm-uc-video-frame iframe {
    width: 100%;
    height: 100%;
  }

  /* 3) Bottom “productivity system” module should stack */
  .tm-uc-footer-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .tm-uc-footer-cta { width: 100%; }

  .tm-uc-footer-cta .home-cta {
    width: 100%;
    justify-content: center;
  }

  /* 4) Center the rail buttons (mobile only) */
  .tm-uc-rail-ctas{
    justify-items: center; /* centers each grid item */
  }

  .tm-uc-rail-ctas .home-cta{
    width: 100%;
    max-width: 320px;
    margin: 0 auto;        /* extra-safe centering */
    text-align: center;
    justify-content: center;
  }
}