/* Home page (templates/home.html). Builds on tc-site.css. */
.accent { color: var(--tc-sky); }

/* Hero (P4–P6) */
.tc-hero { position: relative; padding: 64px 28px; text-align: center; }
.tc-hero__glyphs { opacity: .16; -webkit-mask-image: radial-gradient(ellipse 42% 60% at 50% 48%, transparent 45%, #000 90%); mask-image: radial-gradient(ellipse 42% 60% at 50% 48%, transparent 45%, #000 90%); }
.tc-hero__content { position: relative; z-index: 2; max-width: 740px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.tc-hero h1 { margin-top: 5px; font-size: 61px; line-height: 1.09; letter-spacing: -.055em; }
.tc-hero h1 .accent { color: var(--tc-sky); }
.tc-hero__lead { max-width: 580px; margin-bottom: 15px; font-size: 15px; line-height: 1.75; color: #adb3bf; }
.tc-hero__checks { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 8px; margin: 0; padding: 0; list-style: none; font-size: 12px; color: #8d97a7; }
.tc-hero__checks li { display: inline-flex; align-items: center; gap: 8px; }
.tc-hero__checks li + li::before { content: "·"; color: #5d6575; }
.tc-hero__checks svg { width: 14px; height: 14px; color: var(--tc-sky); }

@media (max-width: 640px) {
  .tc-hero { padding: 46px 22px; }
  .tc-hero__content { gap: 22px; }
  .tc-hero h1 { font-size: 37px; line-height: 1.13; }
  .tc-hero__lead { font-size: 13px; line-height: 1.8; margin-bottom: 7px; }
  .tc-hero .tc-proof { font-size: 9px; padding: 8px 10px; gap: 6px; }
  .tc-picker { padding: 14px; }
  .tc-picker__controls { grid-template-columns: minmax(0,1fr) 44px minmax(0,1fr); }
  .tc-picker__go { grid-column: 1 / -1; width: 100%; }
  .tc-picker__note { flex-direction: column; gap: 4px; }
  .tc-picker__note span { text-align: left; }
  .tc-hero__checks { font-size: 11px; }
}

/* Formats ledger (P7) */
.tc-ledger { display: grid; grid-template-columns: 300px minmax(0,1fr); align-items: center; gap: 24px; padding: 28px; }
.tc-ledger h2 { margin-top: 12px; font-size: 23px; line-height: 1.4; }
.tc-ledger__grid { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, 96px); grid-template-columns: repeat(2, minmax(0,1fr)); gap: 2px; }
.tc-ledger__tile { position: relative; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--border); border-radius: var(--tc-radius); }
.tc-ledger__tile:nth-child(n+5) { display: none; }
.tc-ledger__tile span { font-size: 14px; font-weight: 700; color: var(--muted); transition: opacity 360ms var(--tc-ease-out), transform 360ms var(--tc-ease-out); }
.tc-ledger__tile:hover span { color: var(--text); }
.tc-ledger__tile span.is-out { opacity: 0; transform: scale(.92); transition: opacity 200ms cubic-bezier(.4,0,1,1), transform 200ms cubic-bezier(.4,0,1,1); }
.tc-ledger__tile span.is-in { opacity: 0; transform: scale(.8) rotate(-6deg); transition: none; }
@media (min-width: 640px) { .tc-ledger__grid { grid-template-rows: repeat(2, 112px); grid-template-columns: repeat(4, minmax(0,1fr)); } .tc-ledger__tile:nth-child(n+5) { display: grid; } .tc-ledger__tile:nth-child(n+9) { display: none; } }
@media (min-width: 1280px) { .tc-ledger__grid { grid-template-columns: repeat(5, minmax(0,1fr)); } .tc-ledger__tile:nth-child(n+9) { display: grid; } }
@media (max-width: 1000px) { .tc-ledger { grid-template-columns: 220px minmax(0,1fr); } }
@media (max-width: 640px) { .tc-ledger { grid-template-columns: 1fr; padding: 27px 20px; gap: 18px; } .tc-ledger h2 { font-size: 22px; } }

/* Catalog (P12) */
.tc-catalog-tile { padding: 24px 24px 0; }
.tc-catalog__bar { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 12px; }
.tc-catalog__bar .tc-pills { flex: 0 1 auto; min-width: 0; }
.tc-search { position: relative; display: block; flex: 0 0 240px; min-width: 0; }
@media (max-width: 1023px) { .tc-catalog__bar { flex-wrap: wrap; } .tc-catalog__bar .tc-pills { flex: 1 1 100%; } .tc-catalog__bar .tc-search { flex: 1 1 100%; order: -1; } }
.tc-search svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: #9da7b6; pointer-events: none; }
.tc-search input { width: 100%; height: 40px; padding: 0 12px 0 34px; border: 1px solid var(--tc-line-strong); border-radius: 999px; background: #fff; font-size: 13px; color: var(--tc-text); }
.tc-search input:focus-visible { outline: 3px solid var(--tc-sky); outline-offset: 0; border-color: var(--tc-blue-600); }
.tc-catalog .tc-tools { margin: 24px -24px 0; }
.tc-catalog__more { display: flex; justify-content: center; padding: 22px; margin: 0 -24px; }
.tc-catalog__empty { padding: 48px 0; text-align: center; color: var(--muted); }
.tc-skeleton-line { display: block; border-radius: 8px; background: linear-gradient(90deg, #eef0f3, #f6f7f9, #eef0f3); background-size: 200% 100%; animation: tc-shimmer 1.4s linear infinite; }
@keyframes tc-shimmer { to { background-position: -200% 0; } }
@media (max-width: 640px) { .tc-catalog-tile { padding: 16px 12px 0; } .tc-catalog .tc-tools { margin: 18px -12px 0; } .tc-catalog__more { margin: 0 -12px; padding: 20px 8px; } }

/* Timed tabs (P15) */
.tc-timed { display: grid; }
.tc-timed__tab:first-child { border-top-left-radius: 9px; }
.tc-timed__tabs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-bottom: 1px solid var(--border); }
.tc-timed__tab { flex: 0 0 85%; display: flex; flex-direction: column; gap: 8px; padding: 26px; border: 0; border-right: 1px solid var(--border); background: none; text-align: left; scroll-snap-align: center; color: var(--text); transition: background .2s; }
.tc-timed__tab:last-child { border-right: 0; }
.tc-timed__tab strong { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.tc-timed__desc { font-size: 13px; line-height: 1.7; color: var(--muted); }
.tc-timed__tab.is-active { background: var(--surface-2); }
.tc-timed__tab:not(.is-active) strong { color: var(--muted); }
.tc-timed__chip { position: relative; isolation: isolate; overflow: hidden; align-self: flex-start; padding: 2px 6px; border: 1px solid var(--border); border-radius: 8px; font-family: var(--tc-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tc-timed__fill { position: absolute; inset: 0; z-index: -1; background: var(--accent); opacity: .15; transform: scaleX(0); transform-origin: left; }
.tc-timed.is-timed .tc-timed__tab.is-active .tc-timed__fill { animation: tc-progress 5s linear both; }
.tc-timed.is-static .tc-timed__tab.is-active .tc-timed__fill { transform: scaleX(1); }
.tc-timed__tab.is-active .tc-timed__chip { color: var(--accent); border-color: var(--tc-blue-100); }
@keyframes tc-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.tc-timed__panels { display: grid; min-width: 0; }
.tc-timed__panel { grid-area: 1 / 1; display: grid; grid-template-rows: auto 1fr; opacity: 0; visibility: hidden; transition: opacity 320ms, visibility 320ms; }
.tc-timed__panel.is-active { opacity: 1; visibility: visible; }
.tc-timed__panel > .tc-check-list { padding: 26px 32px 0; }
.tc-timed__art { display: grid; place-items: center; padding: 28px 20px 36px; overflow: hidden; }
@media (min-width: 768px) {
  .tc-timed { grid-template-columns: 372px minmax(0,1fr); }
  .tc-timed__tabs { flex-direction: column; overflow: visible; border-bottom: 0; border-right: 1px solid var(--border); }
  .tc-timed__tab { flex: 1; border-right: 0; border-bottom: 1px solid var(--border); }
  .tc-timed__tab:last-child { border-bottom: 0; }
}
/* Queue vignette (illustrative) */
.tc-queue { width: 90%; max-width: 440px; padding: 0 20px; border: 1px solid #dfe5ef; border-radius: 20px; background: #fff; box-shadow: 0 20px 60px rgba(28,64,108,.1); font-size: 12px; transform: rotate(-2deg); }
.tc-queue__head, .tc-queue__foot { display: flex; align-items: center; gap: 8px; padding: 18px 0; font-weight: 600; }
.tc-queue__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tc-blue-600); }
.tc-queue__tag { margin-left: auto; padding: 4px 6px; border-radius: 5px; background: var(--tc-blue-50); color: var(--tc-blue-600); font-family: var(--tc-mono); font-size: 9px; }
.tc-queue__file { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-top: 1px solid var(--tc-line); }
.tc-queue__file > div { flex: 1; min-width: 0; }
.tc-queue__file strong, .tc-queue__file small { display: block; }
.tc-queue__file strong { font-size: 11px; font-weight: 600; }
.tc-queue__file small { margin-top: 4px; font-family: var(--tc-mono); font-size: 10px; color: #8992a1; }
.tc-queue__ok { color: var(--tc-success); } .tc-queue__ok svg { width: 16px; height: 16px; }
.tc-queue__pct { font-family: var(--tc-mono); font-size: 10px; color: var(--tc-blue-600); }
.tc-queue__bar { display: block; height: 3px; margin-top: 8px; border-radius: 3px; background: var(--tc-line); }
.tc-queue__bar span { display: block; width: 64%; height: 100%; border-radius: 3px; background: var(--tc-blue-600); }
.tc-queue__foot { justify-content: space-between; border-top: 1px solid var(--tc-line); font-size: 11px; }
.tc-queue__foot strong { color: var(--tc-success); }
.tc-queue__timeline { padding: 16px; margin-bottom: 4px; border-radius: 10px; background: var(--tc-blue-100); color: var(--tc-blue-600); }
.tc-queue__frames { display: block; height: 22px; border-radius: 4px; background: repeating-linear-gradient(90deg, rgba(38,114,196,.55) 0 22px, transparent 22px 26px); }
.tc-queue__timeline small { display: block; margin-top: 8px; font-family: var(--tc-mono); font-size: 10px; }

/* Conversion rail (P10) */
.tc-convert { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: 24px; padding: 35px 55px; }
.tc-convert h2 { margin: 15px 0; font-size: 32px; line-height: 1.25; }
.tc-convert p { font-size: 13px; color: #6b7280; }
.tc-connector { position: relative; justify-self: center; width: 100%; max-width: 468px; aspect-ratio: 468 / 378; overflow: hidden; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.tc-connector__hub { position: absolute; z-index: 2; top: 12%; left: 25%; width: 50%; height: 29%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 1px solid var(--border); border-radius: 10px; background: #fff; box-shadow: 0 8px 24px rgba(16,24,40,.12); }
.tc-connector__hub img { width: 40px; height: 40px; }
.tc-connector__hub strong { font-size: 14px; }
.tc-connector__hub small { font-family: var(--tc-mono); font-size: 10px; color: var(--tc-blue-600); }
.tc-connector__line { position: absolute; left: 50%; top: 41%; width: 1px; height: 20%; background: var(--border-strong); }
.tc-rail-badge { position: absolute; z-index: 3; top: 48%; left: calc(50% - 12px); display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--border); border-radius: 50%; background: #fff; color: var(--faint); }
.tc-rail-badge svg { width: 13px; height: 13px; }
.tc-rail-badge.is-connected { color: var(--accent); animation: tc-connected 2200ms ease-in-out infinite; }
@keyframes tc-connected { 0%,100% { box-shadow: 0 0 0 0 rgba(38,114,196,.2); } 50% { box-shadow: 0 0 0 3px rgba(38,114,196,.2); } }
.tc-rail-track { position: absolute; inset: 0; transition: transform 750ms cubic-bezier(.65,0,.35,1); }
.tc-node { position: absolute; top: 73.5%; width: 26.9%; aspect-ratio: 1; padding: 2.8%; transform: translate(-50%,-50%); border: 1px solid var(--border); border-radius: 50%; background: #fff; color: var(--faint); }
.tc-node > span { display: grid; place-items: center; width: 100%; height: 100%; border: 1px solid var(--border); border-radius: 50%; font-family: var(--tc-mono); font-size: 12px; font-weight: 500; transition: color 600ms; }
.tc-node.is-active { color: var(--accent); }
.tc-node.is-active > span { border-color: var(--tc-blue-100); }

/* Benefits (P16) */
.tc-benefits { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }
.tc-benefits .tc-card { padding: 32px 26px; gap: 14px; }
.tc-benefits h3 { font-size: 15px; }
.tc-benefits p { font-size: 12px; line-height: 1.7; }
@media (max-width: 1000px) { .tc-benefits { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) {
  .tc-convert { grid-template-columns: 1fr; padding: 30px 22px; }
  .tc-convert h2 { font-size: 28px; }
  .tc-benefits .tc-card { padding: 22px 16px; }
  .tc-benefits h3 { font-size: 13px; } .tc-benefits p { font-size: 11px; }
  .tc-queue { width: 94%; padding: 0 12px; }
  .tc-timed__panel > .tc-check-list { padding: 22px 20px 0; }
}

/* Browser tools ticker (P19) */
.tc-browser-title { padding: 40px; text-align: center; }
.tc-browser-title h2 { margin-bottom: 12px; font-size: 27px; }
.tc-browser-title p { font-size: 13px; color: #6b7280; }
.tc-ticker { display: flex; align-items: stretch; height: 56px; }
.tc-ticker__action { border-radius: 0 9px 9px 0; }
.tc-ticker__viewport { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 48px), transparent); }
.tc-ticker.is-manual .tc-ticker__viewport, .tc-ticker:not(.is-moving) .tc-ticker__viewport { overflow-x: auto; scrollbar-width: none; }
.tc-ticker__track { display: flex; width: max-content; }
.tc-ticker.is-moving .tc-ticker__track { animation: tc-ticker var(--dur, 40s) linear infinite; }
.tc-ticker:is(:hover, :focus-within) .tc-ticker__track { animation-play-state: paused; }
.tc-ticker__set { display: flex; }
.tc-ticker__set a { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 28px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.tc-ticker__set a:hover { color: var(--accent); }
.tc-ticker__set .tc-ico3d { width: 24px; height: 24px; }
.tc-ticker__action { flex: none; padding: 0 20px; border-left: 1px solid var(--border); background: var(--surface); font-size: 13px; }
@keyframes tc-ticker { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (max-width: 640px) { .tc-browser-title { padding: 30px 20px; } .tc-browser-title h2 { font-size: 24px; } .tc-ticker__action { padding: 0 12px; font-size: 12px; } }

/* Developer API split (P13/P14) */
.tc-code-split { display: grid; }
.tc-split-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; min-height: 320px; padding: 26px; }
.tc-split-copy h3 { font-size: 31px; line-height: 1.3; }
.tc-split-copy > p { font-size: 13px; line-height: 1.8; color: #6b7280; }
.tc-code-split .tc-editor { border-radius: 0 9px 9px 0; }
@media (min-width: 768px) { .tc-code-split { grid-template-columns: minmax(0,7fr) minmax(0,5fr); } .tc-split-copy { min-height: 428px; padding: 32px 48px; } }
@media (max-width: 767px) { .tc-code-split .tc-editor { border-radius: 0 0 9px 9px; } .tc-split-copy h3 { font-size: 26px; } }

/* Pricing (packs rendered by components/pricing.html JS) */
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
.pricing-card { position: relative; display: flex; flex-direction: column; padding: 33px 26px; border: 1px solid var(--border); border-radius: var(--tc-radius-lg); background: var(--surface); }
.pricing-card.featured { border-color: var(--tc-blue-600); box-shadow: inset 0 4px var(--tc-blue-600); }
.featured-badge { align-self: flex-start; order: -1; margin-bottom: 10px; font-family: var(--tc-mono); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: var(--tc-blue-600); }
.package-name { font-size: 16px; letter-spacing: -.02em; }
.package-description { margin: 8px 0 20px; font-size: 12px; color: #6b7280; }
.package-price { font-size: 40px; font-weight: 800; letter-spacing: -2px; line-height: 1; }
.package-price span { margin-left: 8px; font-size: 11px; font-weight: 400; letter-spacing: 0; color: #6b7280; }
.package-features { flex: 1; display: grid; align-content: start; gap: 4px; margin: 22px 0; padding: 14px 0 0; border-top: 1px solid var(--border); list-style: none; font-size: 12px; line-height: 2.2; color: #6b7280; }
.package-features li { display: flex; align-items: center; gap: 8px; }
.package-features li strong { color: var(--tc-blue-600); font-size: 14px; }
.package-features svg { width: 16px; height: 16px; flex: none; color: var(--tc-blue-600); }
.purchase-button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 16px; border: 1px solid var(--tc-line-strong); border-radius: var(--tc-radius); background: #fff; color: var(--tc-blue-600); font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s; }
.purchase-button:hover { background: var(--tc-blue-50); border-color: var(--tc-blue-600); }
.featured .purchase-button { background: var(--tc-blue-600); border-color: var(--tc-blue-600); color: #fff; }
.featured .purchase-button:hover { background: var(--tc-blue-700); }
.purchase-button:disabled { opacity: .6; cursor: wait; }
.login-prompt { margin: 0; }
.error-message { grid-column: 1 / -1; padding: 32px; text-align: center; color: #b91c1c; border: 1px solid var(--border); border-radius: var(--tc-radius); background: #fff; }
.loading-spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: tc-spin 1s linear infinite; }
@media (max-width: 760px) { .pricing-grid { grid-template-columns: 1fr; } .pricing-card { padding: 30px; } }
