/* Takeoff Studio section (takeoffstudio-*.html and the hub's section blocks) - 2026-10-31.
   Built by scripts/site/build-takeoffstudio-section.py. Loaded after site.css, app-page.css and guide.css;
   only adds what those don't have. */

/* Section nav under the hero: Overview, Features, Guides, Help, Downloads, Free vs Pro, What's new */
.tos-subnav { border-bottom: 1px solid var(--line); background: #ffffff; }
.tos-subnav .wrap { display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.tos-subnav .wrap::-webkit-scrollbar { display: none; }
.tos-subnav a {
  flex: none; padding: 14px 12px; font-family: var(--mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); text-decoration: none;
  border-bottom: 2px solid transparent;
}
.tos-subnav a:hover { color: var(--ink); }
.tos-subnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--tape); }

/* Free / Pro badge beside a heading or card title */
.tos-badge {
  display: inline-block; vertical-align: middle; margin-left: 8px; padding: 3px 8px; border-radius: 6px;
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.05em; line-height: 1.4;
  background: var(--web-bg); color: var(--web-fg);
}
.tos-badge.pro { background: var(--ink); color: var(--tape); }
h1 .tos-badge { font-size: 14px; padding: 5px 10px; position: relative; top: -10px; letter-spacing: 0.06em; }

/* Feature page hero: copy above, the annotated screenshot full width below */
.tos-hero .lede { max-width: 760px; }
.tos-hero .shot-frame { margin-top: 36px; }
.tos-hero .shot-frame img, .tos-shot img { display: block; width: 100%; height: auto; }
.tos-shot { margin-top: 28px; }
.tos-shot figcaption { margin-top: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.02em; }

/* Feature cards on the hub and in "more features" rows */
.tos-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.tos-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit; background: #ffffff;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.tos-card:hover { border-color: #b9c4d3; transform: translateY(-2px); color: inherit; }
.tos-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }
.tos-card .tos-card-body { padding: 16px 18px 20px; }
.tos-card h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.02em; color: var(--ink); }
.tos-card h3 .tos-badge { margin-left: 6px; position: relative; top: -2px; }
.tos-card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--slate); }

/* Who it's for */
.tos-who { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 28px; }
.tos-who li { border-left: 3px solid var(--tape); padding: 4px 0 4px 14px; line-height: 1.6; color: var(--slate); }
.tos-who strong { color: var(--ink); }

/* Help: topic list beside the topic */
.tos-help { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: start; }
.tos-help-nav { position: sticky; top: 20px; border: 1px solid var(--line); border-radius: 14px; padding: 10px; background: #ffffff; }
.tos-help-nav p { margin: 6px 8px 8px; }
.tos-help-nav a { display: block; padding: 8px 10px; border-radius: 9px; color: var(--slate); text-decoration: none; font-size: 15px; }
.tos-help-nav a:hover { background: var(--mist); color: var(--ink); }
.tos-help-nav a[aria-current="page"] { background: var(--ink); color: #ffffff; }
.tos-help-items { display: grid; gap: 0; }
.tos-help-item { padding: 22px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
.tos-help-item:first-child { padding-top: 0; }
.tos-help-item h2 { font-size: 22px; line-height: 1.25; margin: 0 0 8px; letter-spacing: -0.02em; }
.tos-help-item p { margin: 0; font-size: 16px; line-height: 1.75; color: var(--slate); }
.tos-help-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.tos-note { border-radius: 12px; background: var(--tape-soft); border: 1px solid #f0d9a8; padding: 14px 18px; margin: 0 0 28px; font-size: 15px; line-height: 1.6; }
.tos-note p { margin: 0; }
kbd {
  display: inline-block; min-width: 1.6em; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line-strong);
  border-bottom-width: 2px; background: #ffffff; font-family: var(--mono); font-size: 0.86em; font-weight: 600;
  color: var(--ink); text-align: center; line-height: 1.5; white-space: nowrap;
}
.tos-keys { min-width: 0; }
.tos-keys td:first-child { white-space: nowrap; width: 1%; padding-right: 22px; }

/* Downloads */
.tos-downloads { display: grid; gap: 18px; }
.tos-download { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 20px; align-items: start; border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: #ffffff; }
.tos-download .tos-ext { width: 64px; height: 64px; border-radius: 14px; background: var(--ink); color: var(--tape); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 600; font-size: 12px; letter-spacing: 0.02em; }
.tos-download h3 { margin: 0 0 6px; font-size: 19px; }
.tos-download p { margin: 0 0 8px; color: var(--slate); line-height: 1.6; font-size: 15.5px; }
.tos-download .tos-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 0; }

/* Pricing */
.tos-prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.tos-price { border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: #ffffff; }
.tos-price.pro { background: var(--ink); border-color: var(--ink); color: #ffffff; }
.tos-price .mono { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.05em; color: var(--muted); }
.tos-price.pro .mono { color: var(--tape); }
.tos-price .amount { display: block; margin: 10px 0 4px; font-size: 40px; font-weight: 700; letter-spacing: -0.04em; color: var(--ink); }
.tos-price.pro .amount { color: #ffffff; }
.tos-price p { margin: 0; color: var(--slate); line-height: 1.6; font-size: 15px; }
.tos-price.pro p { color: #c7d0dc; }

/* What's new */
.tos-release { border-top: 2px solid var(--ink); padding-top: 18px; margin-top: 44px; }
.tos-release:first-child { margin-top: 0; }
.tos-release h2 { margin: 0 0 4px; font-size: 30px; }
.tos-release .tos-date { margin: 0 0 16px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); letter-spacing: 0.03em; }
.tos-release h3 { margin: 22px 0 8px; font-size: 18px; }
.tos-release ul { margin: 0; padding-left: 20px; line-height: 1.75; color: var(--slate); }

/* "Measure it from your drawing" panel on calculator pages and written guides */
.tos-measure { margin-top: 18px; max-width: 860px; }
.tos-measure .related-grid { margin-top: 10px; }

@media (max-width: 900px) {
  .tos-help { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tos-help-nav { position: static; order: 2; }
}
@media (max-width: 560px) {
  .tos-download { grid-template-columns: 1fr; }
  .tos-download .tos-ext { width: 56px; height: 56px; font-size: 10.5px; }
  h1 .tos-badge { top: -6px; }
}

/* Steps: up to five in a row */
.tos-steps { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.tos-subnav a:first-child { padding-left: 0; }
