/* Homepage layout for the October 2026 refresh. Tokens and shared parts live in site.css. */

/* ---------- hero ---------- */
.tma-v2 .v-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: 48px; padding: 56px 0 40px; }
.tma-v2 .v-hero h1 { margin: 0; max-width: 620px; color: var(--v-ink); font-size: clamp(40px, 5.4vw, 66px); font-weight: 650; letter-spacing: -.045em; line-height: 1.02; text-wrap: balance; }
.tma-v2 .v-hero__lede { margin: 22px 0 0; max-width: 540px; color: var(--v-text); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; }
.tma-v2 .v-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.tma-v2 .v-hero__actions .button { min-height: 52px; padding: 14px 24px; font-size: 16px; }
.tma-v2 .v-hero__trust { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 20px 0 0; color: var(--v-muted); font-size: 14px; }
.tma-v2 .v-hero__trust strong { color: var(--v-ink); font-weight: 650; }
.tma-v2 .v-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--v-line-strong); }
.tma-v2 .v-hero__art { padding: 0; }
.tma-v2 .v-hero__art .hero__cloud-art { width: 100%; max-width: 520px; margin: 0 auto; }
/* The light artwork is opaque on #fafafa. Lifting it 2% makes that backdrop white, and multiply
   then shows the warm page through it. The dark artwork is already transparent. */
.tma-v2 .v-hero__art .hero__cloud-art:not(.hero__cloud-art--dark) { filter: brightness(1.021); mix-blend-mode: multiply; }

/* ---------- paste-a-link card ---------- */
.tma-v2 .v-try { margin: 8px 0 0; padding: 28px 32px 24px; border: 1px solid var(--v-line); border-radius: var(--v-radius); background: var(--v-surface); box-shadow: var(--v-shadow); }
.tma-v2 .v-try__title { margin: 0 0 16px; color: var(--v-ink); font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.tma-v2 .v-try .homepage-downloader { width: 100%; max-width: none; margin: 0; }
.tma-v2 .v-try .web-downloader__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tma-v2 .v-try .web-downloader__bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.tma-v2 .v-try .web-downloader__bar:focus-within { box-shadow: none; }
.tma-v2 .v-try .web-downloader__bar input { min-height: 52px; padding: 12px 18px; border: 1px solid var(--v-line-strong); border-radius: 999px; background: var(--v-bg); color: var(--v-ink); font-size: 16px; }
.tma-v2 .v-try .web-downloader__bar input::placeholder { color: var(--v-muted); opacity: .8; }
.tma-v2 .v-try .web-downloader__bar input:focus { border-color: var(--v-ink); outline: none; }
.tma-v2 .v-try .web-downloader__submit { min-height: 52px; min-width: 128px; padding: 12px 24px; font-size: 16px; }
.tma-v2 .v-try .web-downloader__cloud-hint { justify-content: flex-start; margin: 14px 0 0; font-size: 14px; text-align: left; }
.tma-v2 .v-try .web-downloader__cloud-hint a { color: var(--v-muted); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.tma-v2 .v-try .web-downloader__cloud-hint a:hover { color: var(--v-ink); }
.tma-v2 .v-try .web-downloader__support, .tma-v2 .v-try .web-downloader__status { margin: 12px 0 0; color: var(--v-text); font-size: 14px; }
.tma-v2 .v-try .website-support { margin-top: 10px; border: 0; }
.tma-v2 .v-try .website-support > summary { width: fit-content; padding: 4px 0; color: var(--v-muted); font-size: 14px; font-weight: 500; cursor: pointer; }
.tma-v2 .v-try .website-support > summary:hover { color: var(--v-ink); }

/* ---------- supported sites ---------- */
.tma-v2 .v-platforms { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 18px; padding: 36px 0 8px; }
.tma-v2 .v-platforms__label { color: var(--v-muted); font-size: 14px; font-weight: 500; }
.tma-v2 .v-platforms .headline-source-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; transform: none; }
.tma-v2 .v-platforms .headline-source-logo { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--v-line); border-radius: 12px; background: var(--v-surface); opacity: 1; filter: none; }
.tma-v2 .v-platforms .headline-source-logo img { width: 22px; height: 22px; border-radius: 5px; }

/* ---------- how it works ---------- */
.tma-v2 .v-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0 0 40px; padding: 0; list-style: none; counter-reset: none; }
.tma-v2 .v-steps li { padding: 24px; border: 1px solid var(--v-line); border-radius: var(--v-radius); background: var(--v-surface); }
.tma-v2 .v-steps__num { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 18px; border-radius: 50%; background: var(--v-accent-soft); color: var(--v-accent); font-size: 15px; font-weight: 700; }
.tma-v2 .v-steps h3 { margin: 0 0 8px; font-size: 18px; font-weight: 620; letter-spacing: -.015em; line-height: 1.3; }
.tma-v2 .v-steps p { margin: 0; color: var(--v-muted); font-size: 15px; line-height: 1.6; }

.tma-v2 .v-demo { padding: 14px; border: 1px solid var(--v-line); border-radius: 24px; background: var(--v-surface-2); }
.tma-v2 .v-demo__tabs { display: flex; gap: 6px; padding: 2px 2px 14px; overflow-x: auto; scrollbar-width: none; }
.tma-v2 .v-demo__tabs::-webkit-scrollbar { display: none; }
.tma-v2 .v-demo__tabs button { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--v-muted); font: inherit; font-size: 14px; font-weight: 560; cursor: pointer; }
.tma-v2 .v-demo__tabs button:hover { color: var(--v-ink); background: var(--v-surface); }
.tma-v2 .v-demo__tabs button[aria-selected="true"] { border-color: var(--v-line); background: var(--v-surface); color: var(--v-ink); box-shadow: 0 1px 2px #1a19170f; }
.tma-v2 .v-demo__tab-icon { width: 18px; height: 18px; border-radius: 4px; }
.tma-v2 .v-demo__stage { margin: 0; }
.tma-v2 .v-demo__frame { position: relative; overflow: hidden; border-radius: 14px; background: #0f0f0e; aspect-ratio: 1280 / 846; }
.tma-v2 .v-demo__frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.tma-v2 .v-demo__toggle { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #ffffffe6; color: #1a1917; box-shadow: 0 4px 14px #0004; cursor: pointer; }
.tma-v2 .v-demo__toggle[hidden] { display: none; }
.tma-v2 .v-demo__play { width: 0; height: 0; margin-left: 3px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent currentColor; }
.tma-v2 .v-demo__toggle[aria-pressed="true"] .v-demo__play { width: 12px; height: 14px; margin: 0; border: 0; border-inline: 4px solid currentColor; }
.tma-v2 .v-demo__stage figcaption { padding: 16px 6px 4px; color: var(--v-text); font-size: 15px; line-height: 1.55; }
.tma-v2 .v-cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.tma-v2 .v-credit { max-width: 860px; margin: 22px auto 0; color: var(--v-muted); font-size: 12px; line-height: 1.6; text-align: center; }
.tma-v2 .v-credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- features ---------- */
.tma-v2 .v-features__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tma-v2 .v-feature { display: flex; flex-direction: column; margin: 0; overflow: hidden; border: 1px solid var(--v-line); border-radius: var(--v-radius); background: var(--v-surface); }
.tma-v2 .v-feature__media { overflow: hidden; background: #0f0f0e; aspect-ratio: 1280 / 808; }
.tma-v2 .v-feature__media { position: relative; }
.tma-v2 .v-feature__media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.tma-v2 .v-feature__toggle { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: #ffffffe6; color: #1a1917; box-shadow: 0 4px 14px #0004; cursor: pointer; }
.tma-v2 .v-feature__toggle .v-demo__play { border-width: 7px 0 7px 11px; }
.tma-v2 .v-feature__toggle[aria-pressed="true"] .v-demo__play { width: 11px; height: 12px; margin: 0; border: 0; border-inline: 4px solid currentColor; }
.tma-v2 .v-feature figcaption { display: grid; gap: 8px; padding: 22px 22px 26px; }
.tma-v2 .v-feature strong { color: var(--v-ink); font-size: 18px; font-weight: 620; letter-spacing: -.015em; line-height: 1.3; }
.tma-v2 .v-feature span { color: var(--v-muted); font-size: 15px; line-height: 1.6; }

/* ---------- pricing ---------- */
.tma-v2 .pricing { margin: 0; border-left: 0; border-right: 0; border-bottom: 0; }
.tma-v2 .pricing__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 860px; margin: 0 auto; }
.tma-v2 .pricing-card { display: flex; flex-direction: column; gap: 14px; min-height: 0; padding: 32px; border: 1px solid var(--v-line); border-radius: 22px; background: var(--v-surface); box-shadow: none; }
.tma-v2 .pricing-card--featured { border-color: var(--v-ink); box-shadow: var(--v-shadow); }
.tma-v2 .pricing-card__top { display: grid; gap: 14px; margin-bottom: 8px; }
.tma-v2 .pricing-card__banner { margin: 0; padding: 0; background: transparent; color: var(--v-ink); font-size: 16px; font-weight: 620; letter-spacing: 0; text-transform: none; }
.tma-v2 .pricing-card__price { display: flex; align-items: baseline; gap: 6px; margin: 0; }
.tma-v2 .pricing-card__price span { color: var(--v-ink); font-size: 48px; font-weight: 660; letter-spacing: -.04em; line-height: 1; }
.tma-v2 .pricing-card__price small { color: var(--v-muted); font-size: 15px; font-weight: 450; }
.tma-v2 .pricing-card__update { position: relative; display: block; margin: 0; padding-left: 28px; color: var(--v-text); font-size: 15px; line-height: 1.5; }
.tma-v2 .pricing-card__update::before { content: ""; position: absolute; top: 4px; left: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--v-accent-soft); }
.tma-v2 .pricing-card__update::after { content: ""; position: absolute; top: 7px; left: 7px; width: 4px; height: 8px; border: solid var(--v-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tma-v2 .pricing-card__sources { display: grid; gap: 10px; margin: 6px 0 0; padding: 0; border: 0; }
.tma-v2 .pricing-card__sources p { margin: 0; color: var(--v-muted); font-size: 13px; }
.tma-v2 .pricing-card__source-icons { display: flex; flex-wrap: wrap; gap: 10px; }
.tma-v2 .pricing-source-icon { width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: transparent; box-shadow: none; }
.tma-v2 .pricing-card__action { margin-top: auto; padding-top: 10px; }
.tma-v2 .pricing-card__action .button { width: 100%; }
.tma-v2 .pricing-card .pricing__grandfathered { margin: 0; padding: 0; border: 0; background: transparent; color: var(--v-muted); font-size: 13px; font-weight: 450; text-align: center; }

/* ---------- FAQ ---------- */
.tma-v2 .homepage-faq { max-width: 780px; margin: 0 auto; }
.tma-v2 .homepage-faq__heading { margin-bottom: 28px; text-align: center; }
.tma-v2 .homepage-faq__heading h2 { margin: 0; font-size: clamp(30px, 4vw, 44px); font-weight: 640; letter-spacing: -.035em; line-height: 1.08; }
.tma-v2 .homepage-faq__list { border-top: 1px solid var(--v-line); }
.tma-v2 .homepage-faq__item, .tma-v2 .homepage-faq__item[open] { border: 0; border-bottom: 1px solid var(--v-line); border-radius: 0; background: transparent; box-shadow: none; }
.tma-v2 .homepage-faq__item summary { padding: 20px 4px; color: var(--v-ink); font-size: 16px; font-weight: 560; }
.tma-v2 .homepage-faq__item summary span:first-child { font-size: 16px; letter-spacing: -.01em; }
.tma-v2 .homepage-faq__item p { margin: 0; padding: 0 4px 22px; color: var(--v-text); font-size: 15px; line-height: 1.7; }
.tma-v2 .homepage-faq__item a { color: var(--v-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
  .tma-v2 .v-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 32px 0 28px; text-align: center; }
  .tma-v2 .v-hero h1, .tma-v2 .v-hero__lede { margin-inline: auto; }
  .tma-v2 .v-hero__actions, .tma-v2 .v-hero__trust { justify-content: center; }
  .tma-v2 .v-hero__art { order: -1; }
  .tma-v2 .v-hero__art .hero__cloud-art { max-width: 300px; }
  .tma-v2 .v-steps, .tma-v2 .v-features__grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
  .tma-v2 .v-steps { margin-bottom: 32px; }
}
@media (max-width: 640px) {
  .tma-v2 .v-hero h1 { font-size: clamp(34px, 9vw, 44px); }
  .tma-v2 .v-hero__lede { font-size: 17px; }
  .tma-v2 .v-hero__actions { flex-direction: column; align-items: stretch; }
  .tma-v2 .v-hero__actions .button { width: 100%; }
  .tma-v2 .v-hero__art .hero__cloud-art { max-width: 240px; }
  .tma-v2 .v-try { padding: 20px 18px; border-radius: 16px; }
  .tma-v2 .v-platforms { flex-direction: column; gap: 12px; padding-top: 28px; }
  .tma-v2 .v-platforms .headline-source-logos { flex-wrap: nowrap; gap: 8px; }
  .tma-v2 .v-platforms .headline-source-logo { width: 36px; height: 36px; border-radius: 10px; }
  .tma-v2 .v-platforms .headline-source-logo img { width: 20px; height: 20px; }
  .tma-v2 .v-steps { gap: 12px; }
  .tma-v2 .v-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 14px; padding: 18px; }
  .tma-v2 .v-steps__num { grid-row: 1 / span 2; margin: 0; }
  .tma-v2 .v-steps h3 { margin-bottom: 4px; font-size: 17px; }
  .tma-v2 .v-steps p { font-size: 14px; }
  .tma-v2 .v-try .web-downloader__bar { grid-template-columns: minmax(0, 1fr); }
  .tma-v2 .v-try .web-downloader__submit { width: 100%; }
  .tma-v2 .v-demo { padding: 10px; border-radius: 18px; }
  .tma-v2 .v-demo__frame { border-radius: 10px; }
  .tma-v2 .pricing__grid { grid-template-columns: minmax(0, 1fr); max-width: 460px; }
  .tma-v2 .pricing-card { padding: 24px; }
  .tma-v2 .v-cta-row { flex-direction: column; align-items: stretch; }
}
