/* Tool Cloud phone apps: /apps/ showcase page, header Apps dropdown, footer Apps column,
   home apps strip and tool-page callout. Adapted from the 2026-11 mockup (apps.css):
   the mockup's --k-* kit tokens map onto tc-site.css contextual vars
   (--k-surface-2 -> var(--surface-2), --k-muted -> var(--muted), --k-border -> var(--border),
   --k-border-strong -> var(--border-strong)); literal colors map to --tc-* tokens
   (#2672c4 -> --tc-blue-600, #16181d -> --tc-text, #141518 -> --tc-ink-900, #f4f5f7 -> --tc-surface,
   #c5cad3 -> --tc-line-strong, #5b6170 -> --tc-muted). Everything is prefixed tc-apps-/tc-app-/tc-store-/tc-phone-.

/* ---------- Apps page hero (self-scoped: the shared .tc-hero lives in tc-home.css) ---------- */
.tc-apps-hero { position: relative; overflow: clip; padding: 64px 28px 72px; text-align: center; }
.tc-apps-hero .tc-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-apps-hero__content { position: relative; z-index: 2; max-width: 740px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.tc-apps-hero h1 { margin-top: 5px; font-size: 61px; line-height: 1.09; letter-spacing: -.055em; }
.tc-apps-hero h1 .accent { color: var(--tc-sky); }
.tc-apps-hero__lead { max-width: 580px; font-size: 15px; line-height: 1.75; color: #adb3bf; }

/* Jump instrument inside the hero (P4): white panel over the dark tile */
.tc-apps-instrument {
  width: 100%;
  max-width: 720px;
  text-align: left;
  background: #fff;
  color: var(--tc-text);
  border-radius: 16px;
  padding: 16px 16px 14px;
  box-shadow: 0 0 0 10px rgba(255,255,255,.035), 0 24px 45px rgba(0,0,0,.4), 0 60px 70px -30px rgba(38,114,196,.2);
}
.tc-apps-jump-caption { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-family: var(--tc-mono); font-size: 10px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--tc-blue-600); }
.tc-apps-jump-caption svg { width: 12px; height: 12px; flex: none; }
.tc-apps-jump { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.tc-apps-jump a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 72px; padding: 8px 2px; border-radius: 10px; color: var(--tc-text);
  font-size: 11px; font-weight: 700; line-height: 1.2; text-align: center;
  transition: background-color 150ms ease-out;
}
.tc-apps-jump a:hover,
.tc-apps-jump a:focus-visible { background: var(--tc-surface); }

/* ---------- App blocks ---------- */
/* html already carries scroll-padding-top: 96px (tc-site.css); the margin tops the remaining bit
   so anchors land clear of the 68-86px sticky header without double counting. */
html:has(.tc-apps-page) { scroll-behavior: smooth; }
.tc-app-block { position: relative; scroll-margin-top: 14px; }
.tc-store-badges { position: relative; z-index: 2; }
.tc-app-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: stretch; min-height: 100%; }
.tc-app-block.is-flip .tc-app-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.tc-app-block.is-flip .tc-app-copy { order: 2; }
.tc-app-copy { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 36px 40px; min-width: 0; }
.tc-app-kicker { margin: 0; font: 600 11px/1 var(--tc-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--tc-blue-600); }
.tc-app-name { display: flex; align-items: center; gap: 14px; }
.tc-app-name h3 { margin: 0; font-size: 32px; line-height: 1.1; letter-spacing: -.03em; }
.tc-app-line { margin: 0; font-size: 16px; line-height: 1.45; font-weight: 600; letter-spacing: -.02em; }
.tc-app-features { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.tc-app-features li { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; line-height: 1.4; }
.tc-app-features svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--tc-blue-600); }
.tc-app-art { margin: 0; display: flex; align-items: center; justify-content: center; padding: 28px 24px; background: var(--surface-2); min-height: 320px; }
.tc-app-art img { width: min(240px, 78%); height: auto; border-radius: 12px; box-shadow: 0 24px 48px -12px rgba(16,24,40,.28); }
.tc-app-icon { flex: none; display: block; border-radius: 22%; }

/* ---------- Store badges (P24) ---------- */
.tc-store-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tc-store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 6px 14px 6px 12px; border-radius: 10px;
  text-align: left; line-height: 1.15;
}
.tc-store-badge svg { width: 18px; height: 18px; flex: none; }
.tc-store-badge small,
.tc-store-badge strong { display: block; }
.tc-store-badge small { font-size: 10px; letter-spacing: .04em; text-transform: uppercase; font-weight: 700; }
.tc-store-badge strong { font-size: 14px; font-weight: 700; letter-spacing: -.02em; margin-top: 1px; }
a.tc-store-badge { background: var(--tc-ink-900); color: #fff; border: 1px solid var(--tc-ink-900); transition: background-color 150ms ease-out, border-color 150ms ease-out; }
a.tc-store-badge:hover,
a.tc-store-badge:focus-visible { background: var(--tc-blue-600); border-color: var(--tc-blue-600); }
.tc-store-badge.is-soon { background: var(--tc-surface); color: var(--tc-text); border: 1px dashed var(--tc-line-strong); cursor: not-allowed; }
.tc-store-badge.is-soon small { color: var(--tc-blue-600); }
.tc-store-badge.is-soon svg { color: var(--tc-muted); }

/* ---------- Header Apps dropdown (sits inside .tc-menu, dark) ---------- */
.tc-menu__grid.tc-apps-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tc-apps-menu .tc-menu__item { align-items: flex-start; gap: 10px; }
.tc-apps-menu .tc-ico3d { width: 36px; height: 36px; }
.tc-apps-menu__all {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 22%;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: #fff;
}
.tc-apps-menu__all svg { width: 18px; height: 18px; }
.tc-apps-menu .tc-menu__desc {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}

/* ---------- Home apps strip ---------- */
.tc-apps-strip { padding: 28px 28px 22px; }
.tc-apps-strip__inner { display: grid; gap: 18px; }
.tc-apps-strip__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 28px; }
.tc-apps-strip__head h2 { margin: 8px 0 6px; font-size: 28px; line-height: 1.2; }
.tc-apps-strip__head p { margin: 0; max-width: 520px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.tc-apps-rail { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.tc-apps-rail a {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-height: 44px; padding: 12px 6px 14px; border-radius: 10px; color: inherit; text-align: center;
  transition: background-color 150ms ease-out;
}
.tc-apps-rail a:hover,
.tc-apps-rail a:focus-visible { background: var(--tc-surface); }
.tc-apps-rail strong { font-size: 13px; font-weight: 700; }
.tc-apps-rail small { font-size: 11px; line-height: 1.35; color: var(--muted); }
.tc-apps-rail small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }

/* ---------- Tool page callout ---------- */
.tc-phone-callout { display: grid; gap: 14px; padding: 20px 24px 22px; }
.tc-phone-callout > div:first-child p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.tc-phone-callout-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.tc-phone-callout-row a {
  display: flex; align-items: center; gap: 12px;
  min-height: 64px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; color: inherit;
  transition: background-color 150ms ease-out, border-color 150ms ease-out;
}
.tc-phone-callout-row a:hover,
.tc-phone-callout-row a:focus-visible { background: var(--surface-2); border-color: var(--border-strong); }
.tc-phone-callout-row span { min-width: 0; display: grid; gap: 2px; flex: 1; }
.tc-phone-callout-row strong { font-size: 14px; }
.tc-phone-callout-row small { font-size: 12px; line-height: 1.35; color: var(--muted); }
.tc-phone-callout-row small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.tc-phone-callout-row .tc-arrow { flex: none; opacity: 1; color: var(--tc-blue-600); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .tc-apps-hero { padding: 44px 20px 56px; }
  .tc-apps-hero h1 { font-size: 37px; line-height: 1.13; }
  .tc-app-grid,
  .tc-app-block.is-flip .tc-app-grid { grid-template-columns: 1fr; }
  .tc-app-block.is-flip .tc-app-copy { order: 0; }
  .tc-app-copy { padding: 24px 20px 8px; }
  .tc-app-art { padding: 8px 20px 24px; min-height: 0; }
  .tc-app-name h3 { font-size: 28px; }
  .tc-apps-jump { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tc-apps-jump a { min-height: 68px; }
  .tc-apps-strip__head { flex-direction: column; align-items: flex-start; }
  .tc-apps-rail {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    scroll-snap-type: x mandatory;
  }
  .tc-apps-rail a { flex: 0 0 132px; scroll-snap-align: start; }
}
@media (max-width: 640px) {
  .tc-app-line { font-size: 15px; }
  .tc-apps-strip { padding: 22px 16px 16px; }
  .tc-apps-strip__head h2 { font-size: 24px; }
  .tc-phone-callout { padding: 18px 16px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html:has(.tc-apps-page) { scroll-behavior: auto; }
  .tc-apps-jump a,
  .tc-apps-rail a,
  .tc-phone-callout-row a,
  .tc-store-badge { transition: none; }
}
