/* Thumbsight product page: light, Astryx-style look (warm cream, Figtree, pill buttons, pastel cards).
   Loaded after style.css and scoped to body.tsa, so the rest of the site keeps its dark theme. */

.tsa {
  color-scheme: light;
  --bg: #f7f3ee;
  --bg-alt: #f1ece5;
  --bg-2: #ffffff;
  --bg-3: #e9e4dc;
  --ink: #15110c;
  --ink-2: #15110c;
  --on-ink: #ffffff;
  --text: #15110c;
  --text-2: #3f3a33;
  --muted: #6d675e;
  --muted-dark: #6d675e;
  --line: rgba(21, 17, 12, 0.08);
  --line-strong: rgba(21, 17, 12, 0.16);
  --line-dark: rgba(21, 17, 12, 0.1);
  --accent: #b7791f;
  --font-display: "Figtree", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;

  --amber: #fbbf24;
  --navy: #111827;
  --p-amber: #fdf1d3;
  --p-blue: #e5ecfd;
  --p-pink: #fbe7ee;
  --p-green: #e3f3e8;
  --p-violet: #ece8fc;
  --p-sand: #efe9e0;
  --shadow: 0 1px 2px rgba(21, 17, 12, 0.06), 0 12px 32px -12px rgba(21, 17, 12, 0.18);
  --shadow-lg: 0 2px 4px rgba(21, 17, 12, 0.05), 0 40px 80px -30px rgba(21, 17, 12, 0.35);

  background: var(--bg);
  color: var(--text);
}
.tsa ::selection { background: rgba(251, 191, 36, 0.4); color: var(--ink); }
.tsa h1, .tsa h2, .tsa h3, .tsa h4 { font-weight: 700; letter-spacing: -0.025em; }

/* Shared header and footer, in light */
.tsa .header { background: rgba(247, 243, 238, 0.82); }
.tsa .btn--dark:hover { background: #3a342c; }
.tsa .btn--light { background: var(--bg-3); color: var(--ink); }
.tsa .btn--light:hover { background: #ddd6cc; }
.tsa .logo img { box-shadow: none; }
.tsa .footer { background: var(--bg); }
.tsa .footer__mega { color: var(--bg-3); }
.tsa .socials a:hover { background: var(--ink); color: var(--on-ink); }

.tsa .section--grey { background: var(--bg-alt); border-color: transparent; }
.tsa .kicker { color: var(--muted); font-weight: 600; }
.tsa .head h2 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.04; }
.tsa .head h2 .light { color: var(--muted); font-weight: 400; }
.tsa .head p a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Hero ---------- */

.tsa-hero { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 48px) 0 0; isolation: isolate; }
.tsa-hero::before {
  content: ""; position: absolute; inset: auto -10% -18% -10%; height: 70%; z-index: -1;
  background:
    radial-gradient(40% 55% at 22% 70%, rgba(251, 191, 36, 0.28), transparent 70%),
    radial-gradient(38% 50% at 78% 72%, rgba(244, 114, 182, 0.18), transparent 70%),
    radial-gradient(50% 60% at 50% 95%, rgba(147, 197, 253, 0.22), transparent 70%);
  filter: blur(10px);
}
.tsa-hero .crumbs { justify-content: center; }
.tsa-hero__top { text-align: center; max-width: 920px; margin: 0 auto; }
.tsa-word { display: inline-flex; align-items: center; gap: 16px; margin-top: clamp(28px, 4vw, 44px); }
.tsa-word img { width: clamp(52px, 6vw, 72px); height: auto; border-radius: 22%; box-shadow: var(--shadow); }
.tsa-word span { font-size: clamp(44px, 7vw, 92px); letter-spacing: -0.04em; line-height: 1; font-weight: 400; }
.tsa-word b { font-weight: 800; }
.tsa-hero h1 { font-size: clamp(30px, 4vw, 48px); font-weight: 400; line-height: 1.15; letter-spacing: -0.02em; margin-top: 22px; }
.tsa-hero h1 strong { display: block; font-weight: 700; }
.tsa-hero__lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 640px; margin: 20px auto 0; }
.tsa-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.tsa-actions .btn { min-width: 200px; }
.tsa-meta { margin-top: 18px; color: var(--muted); font-size: 14.5px; }
.tsa-meta a { text-decoration: underline; text-underline-offset: 3px; }

.tsa-stage { position: relative; height: clamp(420px, 42vw, 560px); margin-top: clamp(36px, 4vw, 56px); overflow: hidden; }
.tsa-stage .tsa-phone { position: absolute; left: 50%; top: 24px; }
.tsa-stage .tsa-phone--c { width: clamp(230px, 22vw, 290px); transform: translateX(-50%); z-index: 3; }
.tsa-stage .tsa-phone--l { width: clamp(200px, 19vw, 250px); transform: translateX(-50%) translateX(-112%) rotate(-6deg); top: 96px; z-index: 2; }
.tsa-stage .tsa-phone--r { width: clamp(200px, 19vw, 250px); transform: translateX(-50%) translateX(112%) rotate(6deg); top: 96px; z-index: 2; }

.tsa-float {
  position: absolute; z-index: 4; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 14px 16px; font-size: 14px; line-height: 1.35; animation: tsa-bob 6s ease-in-out infinite;
}
.tsa-float small { display: block; color: var(--muted); font-size: 12.5px; }
.tsa-float strong { font-size: 15px; }
.tsa-float--pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 9px 14px 9px 10px; font-weight: 600; }
.tsa-float--pill i { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.25); }
.tsa-float--gate { width: 210px; }
.tsa-float--gate .sum { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 6px 0 10px; }
.tsa-float--gate .keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tsa-float--gate .keys span { background: var(--bg-alt); border-radius: 10px; text-align: center; padding: 6px 0; font-weight: 600; font-size: 13px; }
.tsa-float--ai { width: 200px; }
.tsa-float--ai .big { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.tsa-float--ai .bar { height: 6px; border-radius: 99px; background: var(--bg-3); margin-top: 8px; overflow: hidden; }
.tsa-float--ai .bar i { display: block; height: 100%; width: 38%; background: var(--ink); border-radius: inherit; }
.tsa-float--tag { display: inline-flex; gap: 6px; padding: 8px; border-radius: 999px; }
.tsa-float--tag span { background: var(--p-green); color: #166534; border-radius: 999px; padding: 4px 10px; font-size: 12.5px; font-weight: 600; }
.tsa-float--tag span + span { background: var(--p-amber); color: #92400e; }
.f1 { left: 7%; top: 8%; }
.f2 { left: 3%; top: 40%; animation-delay: -2s; }
.f3 { right: 4%; top: 12%; animation-delay: -4s; }
.f4 { right: 7%; top: 62%; animation-delay: -1s; }
@keyframes tsa-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .tsa-float { animation: none; } }

/* ---------- Phone frame ---------- */

.tsa-phone { background: var(--ink); border-radius: 40px; padding: 9px; box-shadow: var(--shadow-lg); }
.tsa-phone img { width: 100%; height: auto; border-radius: 32px; display: block; background: #f2f2f2; }

/* ---------- Trailer ---------- */

.tsa .video { margin: 0 auto; max-width: 1040px; border: 0; box-shadow: var(--shadow-lg); border-radius: 28px; }
.tsa .video__play { background: #fff; color: var(--ink); box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.25); }
.tsa-center { text-align: center; margin-left: auto; margin-right: auto; }
.tsa-center p { margin-left: auto; margin-right: auto; }

/* ---------- Screens gallery ---------- */

.tsa-gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 48px); }
.tsa-gallery-head .head { margin-bottom: 0; }
.tsa-nav { display: flex; gap: 10px; }
.tsa-nav button {
  width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--bg-2); box-shadow: var(--shadow);
  display: grid; place-items: center; cursor: pointer; transition: background 0.2s, color 0.2s, transform 160ms var(--ease);
}
.tsa-nav button:hover { background: var(--ink); color: var(--on-ink); }
.tsa-nav button:active { transform: scale(0.95); }
.tsa-nav svg { width: 18px; height: 18px; }
.tsa-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(230px, 22vw, 272px); gap: clamp(18px, 2.4vw, 28px);
  --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  padding: 8px var(--edge) 28px; scrollbar-width: none;
}
.tsa-rail::-webkit-scrollbar { display: none; }
.tsa-shot { margin: 0; scroll-snap-align: start; }
.tsa-shot figcaption { margin-top: 18px; padding: 0 4px; }
.tsa-shot strong { display: block; font-size: 17px; }
.tsa-shot span { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.45; margin-top: 4px; }
.tsa-note { color: var(--muted); font-size: 13.5px; margin-top: 4px; }

/* ---------- Stats ---------- */

.tsa-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tsa-stat { border-radius: 24px; padding: 26px 24px; }
.tsa-stat strong { display: block; font-size: clamp(40px, 4.4vw, 56px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.tsa-stat span { display: block; margin-top: 12px; color: var(--text-2); font-size: 15px; line-height: 1.45; }

/* ---------- Problem ---------- */

.tsa-problem { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.tsa-problem .head { margin-bottom: 0; }
.tsa-cmp { display: grid; gap: 14px; }
.tsa-cmp div { border-radius: 24px; padding: 24px 26px; background: var(--bg-2); box-shadow: var(--shadow); }
.tsa-cmp small { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.tsa-cmp p { font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.35; }
.tsa-cmp .is-ts { background: var(--navy); color: #fff; }
.tsa-cmp .is-ts small { color: var(--amber); }

/* ---------- Feature bento ---------- */

.tsa-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tsa-card { grid-column: span 2; border-radius: 28px; padding: clamp(26px, 2.6vw, 36px); display: flex; flex-direction: column; overflow: hidden; position: relative; }
.tsa-card--wide { grid-column: span 4; }
.tsa-card--half { grid-column: span 3; }
.tsa-card__n { font-size: 13px; font-weight: 600; color: var(--text-2); opacity: 0.8; }
.tsa-card h3 { font-size: clamp(22px, 2vw, 26px); line-height: 1.15; margin-top: 10px; }
.tsa-card > p { color: var(--text-2); margin-top: 10px; font-size: 16px; line-height: 1.5; }
.tsa-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
.tsa-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--text-2); }
.tsa-list li::before {
  content: ""; width: 20px; height: 20px; border-radius: 50%; margin-top: 1px;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.tsa-list strong { color: var(--ink); font-weight: 600; }
.tsa-card--wide .tsa-list { grid-template-columns: 1fr 1fr; column-gap: 28px; }
.tsa-card__shot { margin: 26px auto -60px; width: min(240px, 80%); }
.tsa-card__shot .tsa-phone { border-radius: 34px; padding: 7px; }
.tsa-card__shot .tsa-phone img { border-radius: 28px; }
.tsa-split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; align-items: start; }
.tsa-split .tsa-card__shot { margin: 0 0 -80px; width: 100%; max-width: 240px; justify-self: center; }
.tsa-optin { display: inline-flex; align-self: flex-start; margin-top: 14px; font-size: 12.5px; font-weight: 600; background: rgba(255, 255, 255, 0.7); border-radius: 999px; padding: 5px 11px; }

.bg-amber { background: var(--p-amber); }
.bg-blue { background: var(--p-blue); }
.bg-pink { background: var(--p-pink); }
.bg-green { background: var(--p-green); }
.bg-violet { background: var(--p-violet); }
.bg-sand { background: var(--p-sand); }
.bg-white { background: var(--bg-2); box-shadow: var(--shadow); }
.bg-white .tsa-optin { background: var(--p-amber); }
.bg-navy { background: var(--navy); color: #fff; }
.bg-navy .tsa-card__n, .bg-navy > p, .bg-navy .tsa-list li { color: rgba(255, 255, 255, 0.72); }
.bg-navy .tsa-list strong { color: #fff; }
.bg-navy .tsa-list li::before { background-color: var(--amber); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.bg-navy .tsa-optin { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ---------- Comparison table ---------- */

.tsa-table-wrap { overflow-x: auto; border-radius: 28px; background: var(--bg-2); box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
.tsa-table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 15.5px; }
.tsa-table th, .tsa-table td { padding: 16px 20px; text-align: center; border-bottom: 1px solid var(--line); }
.tsa-table tbody tr:last-child td { border-bottom: 0; }
.tsa-table th:first-child, .tsa-table td:first-child { text-align: left; color: var(--text-2); }
.tsa-table thead th { font-size: 14px; font-weight: 600; color: var(--muted); padding-top: 22px; }
.tsa-table .is-ts { background: var(--p-amber); color: var(--ink); }
.tsa-table thead .is-ts { color: var(--ink); border-radius: 18px 18px 0 0; }
.tsa .ts-y, .tsa .ts-p, .tsa .ts-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 700; font-size: 14px; }
.tsa .ts-y { background: var(--ink); color: #fff; }
.tsa .ts-p { background: var(--bg-3); color: var(--text-2); }
.tsa .ts-n { color: var(--muted); }
.tsa .ts-legend { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 18px; color: var(--muted); font-size: 14px; }
.tsa .ts-legend > span { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Steps ---------- */

.tsa-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tsa-step { border-radius: 28px; padding: 30px 28px; background: var(--bg-2); box-shadow: var(--shadow); }
.tsa-step b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 16px; }
.tsa-step h3 { font-size: 21px; margin-top: 22px; }
.tsa-step p { color: var(--muted); margin-top: 10px; font-size: 15.5px; line-height: 1.5; }

/* ---------- Privacy ---------- */

.tsa-privacy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tsa-priv { border-radius: 24px; padding: 26px; }
.tsa-priv h3 { font-size: 19px; display: flex; align-items: center; gap: 10px; }
.tsa-priv h3 svg { width: 22px; height: 22px; flex: none; }
.tsa-priv p { color: var(--text-2); margin-top: 10px; font-size: 15.5px; line-height: 1.5; }

/* ---------- FAQ and CTA ---------- */

.tsa .faq summary i { background: var(--bg-2); box-shadow: var(--shadow); }
.tsa .faq details[open] summary i { background: var(--ink); color: #fff; }
.tsa-cta {
  border-radius: 36px; background: var(--bg-alt); padding: clamp(44px, 7vw, 96px) var(--gutter); text-align: center;
  position: relative; overflow: hidden; isolation: isolate;
}
.tsa-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(40% 70% at 15% 110%, rgba(251, 191, 36, 0.3), transparent 70%), radial-gradient(40% 70% at 85% 110%, rgba(244, 114, 182, 0.2), transparent 70%);
}
.tsa-cta img { width: 72px; height: 72px; border-radius: 22%; margin: 0 auto; box-shadow: var(--shadow); }
.tsa-cta h2 { font-size: clamp(36px, 5.4vw, 68px); line-height: 1.04; margin-top: 24px; font-weight: 400; }
.tsa-cta h2 strong { font-weight: 700; }
.tsa-cta p { color: var(--muted); max-width: 560px; margin: 18px auto 0; font-size: 18px; }

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

@media (max-width: 1080px) {
  .tsa-float.f2, .tsa-float.f4 { display: none; }
  .tsa-card, .tsa-card--half { grid-column: span 3; }
  .tsa-card--wide { grid-column: span 6; }
}
@media (max-width: 860px) {
  .tsa-stats { grid-template-columns: 1fr 1fr; }
  .tsa-problem, .tsa-split { grid-template-columns: 1fr; }
  .tsa-steps, .tsa-privacy { grid-template-columns: 1fr; }
  .tsa-card, .tsa-card--half, .tsa-card--wide { grid-column: span 6; }
  .tsa-card--wide .tsa-list { grid-template-columns: 1fr; }
  .tsa-float { display: none; }
  .tsa-stage { height: clamp(360px, 92vw, 480px); }
  .tsa-stage .tsa-phone--c { width: min(240px, 56vw); top: 16px; }
  .tsa-stage .tsa-phone--l, .tsa-stage .tsa-phone--r { width: min(200px, 46vw); top: 64px; }
  .tsa-stage .tsa-phone--l { transform: translateX(-50%) translateX(-78%) rotate(-7deg); }
  .tsa-stage .tsa-phone--r { transform: translateX(-50%) translateX(78%) rotate(7deg); }
  .tsa-split .tsa-card__shot { margin: 8px auto -80px; }
}
@media (max-width: 520px) {
  .tsa-actions .btn { width: 100%; }
  .tsa-stats { gap: 10px; }
  .tsa-stat { padding: 20px 18px; border-radius: 20px; }
}
