/* TommyAPI homepage (2026-11-17). Loads after chrome.css and explore-v3.css (card styles are shared with /models/).
   Section order follows the reference API platform home the owner chose: hero, featured, why, kinds, operations,
   integration steps, FAQ, closing call to action. */
.tm-home { background: #fff; }
.home-wrap { width: min(1216px, calc(100% - 96px)); margin: 0 auto; }
.tm-home main a { color: inherit; }

/* hero */
.home-hero { position: relative; padding: 104px 0 96px; text-align: center; border-bottom: 1px solid #eef0f0;
  background: radial-gradient(60% 70% at 50% 0%, #eef8f7 0%, rgba(238,248,247,0) 70%), linear-gradient(180deg, #f8fbfb 0%, #fff 100%); }
.home-status { position: absolute; right: 0; top: 28px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid #e3e8e8; border-radius: 999px; background: rgba(255,255,255,.8); font-size: 12.5px; color: var(--muted); }
.home-hero .home-wrap { position: relative; }
.home-hero .home-status { top: -72px; }
.home-status:hover { border-color: var(--line-strong); color: var(--ink); }
.home-status i, .home-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: #1f9d55; box-shadow: 0 0 0 3px rgba(31,157,85,.16); }
.home-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; letter-spacing: .12em; color: var(--muted); }
.home-hero h1 { max-width: 15em; margin: 26px auto 0; font-size: clamp(38px, 6.2vw, 80px); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; text-wrap: balance; }
.home-hero h1 span { display: inline-block; }
.home-lead { max-width: 38em; margin: 28px auto 0 !important; font-size: 19px; line-height: 1.7; color: var(--muted); text-wrap: balance; }
.home-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.home-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 30px; border: 1.5px solid #c9cfcf; border-radius: 8px; background: #fff; color: var(--ink) !important; font-size: 17px; font-weight: 650; transition: border-color .15s ease, background-color .15s ease, transform .15s ease; }
.home-btn:hover { border-color: #111; }
.home-btn-primary { border-color: var(--teal); background: var(--teal); color: #fff !important; box-shadow: 0 8px 22px rgba(8,127,131,.22); }
.home-btn-primary:hover { border-color: #05666a; background: #05666a; }
.home-trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 22px; margin: 34px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--muted); }
.home-trust li { display: inline-flex; align-items: center; gap: 7px; }
.home-trust li::before { content: ""; width: 15px; height: 15px; border-radius: 50%; background: #e3f4f1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23087f83' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 8.3 2.3 2.3 4.7-4.9'/%3E%3C/svg%3E") center/12px no-repeat; }

/* sections */
.home-section { padding: 96px 0; }
.home-soft { background: #fafafa; border-top: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0; }
.home-featured { padding-top: 72px; }
.home-kicker { font: 500 12.5px/1 "SFMono-Regular", Consolas, "Liberation Mono", monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--subtle); }
.home-head { margin-bottom: 44px; }
.home-head h2 { margin-top: 16px; font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; letter-spacing: -.03em; line-height: 1.16; text-wrap: balance; }
.home-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.home-more { font-size: 15px; font-weight: 600; color: var(--teal) !important; white-space: nowrap; }
.home-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.home-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: end; }
.home-split > p { font-size: 16.5px; line-height: 1.8; color: var(--muted); }
.home-note { margin-top: 20px !important; font-size: 13px; color: var(--subtle); }

/* why */
.home-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.home-cols article { display: flex; flex-direction: column; padding: 36px 36px 8px 0; }
.home-cols article + article { padding-left: 36px; border-left: 1px solid var(--line); }
.home-cols span { font: 500 13px/1 "SFMono-Regular", Consolas, monospace; color: var(--subtle); }
.home-cols h3 { margin-top: 22px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.home-cols p { margin-top: 12px; font-size: 15.5px; line-height: 1.8; color: #4b5050; }
.home-cols a { margin-top: 20px; font-size: 15px; font-weight: 600; color: var(--teal) !important; }
.home-cols a:hover, .home-kind-body > a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* kinds */
.home-kind-list { border-top: 1px solid var(--line); }
.home-kind { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.home-kind:nth-child(even) .home-kind-media { order: 2; }
.home-kind-media { position: relative; min-height: 340px; background: #f2f3f5; overflow: hidden; }
.home-kind-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.home-kind-media figcaption { position: absolute; left: 14px; bottom: 14px; padding: 4px 9px; border-radius: 4px; background: rgba(17,17,17,.72); color: #fff; font-size: 12px; }
.home-kind-media figure { margin: 0; position: absolute; inset: 0; }
.home-kind-body { display: flex; flex-direction: column; justify-content: center; padding: 52px 56px; }
.home-kind-tag { display: flex; align-items: center; justify-content: space-between; font: 500 13px/1 "SFMono-Regular", Consolas, monospace; color: var(--subtle); }
.home-kind-tag b { padding: 5px 10px; border: 1px solid #cfe0de; border-radius: 4px; color: var(--teal); font-weight: 600; letter-spacing: .08em; }
.home-kind h3 { margin-top: 22px; font-size: 28px; font-weight: 740; letter-spacing: -.025em; }
.home-kind-body > p:not(.home-kind-tag) { margin-top: 14px; font-size: 16px; line-height: 1.85; color: #4b5050; }
.home-kind-body > p a { font-weight: 600; color: var(--ink) !important; text-decoration: underline; text-decoration-color: #c9cfcf; text-underline-offset: 4px; overflow-wrap: anywhere; }
.home-kind-body > p a:hover { text-decoration-color: currentColor; }
.home-kind-body > a { margin-top: 24px; font-size: 15px; font-weight: 600; color: var(--teal) !important; }

/* tiles */
.home-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.home-tile { display: flex; flex-direction: column; padding: 26px 24px 22px; border: 1px solid var(--line); border-radius: 8px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.home-tile:hover { border-color: var(--line-strong); box-shadow: 0 10px 28px rgba(17,24,39,.07); }
.home-tile h3 { font-size: 18px; font-weight: 700; letter-spacing: -.015em; }
.home-tile p { margin-top: 10px; flex: 1; font-size: 14.5px; line-height: 1.75; color: #4b5050; }
.home-tile span { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--teal); }

/* steps */
.home-steps-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: start; }
.home-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.home-steps li { display: grid; grid-template-columns: 56px minmax(0, 1fr); padding: 24px 0; border-bottom: 1px solid var(--line); }
.home-steps li > span { padding-top: 5px; font: 500 14px/1 "SFMono-Regular", Consolas, monospace; color: var(--teal); }
.home-steps h3 { font-size: 18px; font-weight: 700; }
.home-steps p { margin-top: 6px; font-size: 15px; line-height: 1.75; color: #4b5050; overflow-wrap: anywhere; }
.home-code { border: 1px solid #1f2937; border-radius: 10px; background: #0f172a; overflow: hidden; }
.home-code-head { display: flex; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid #1f2937; color: #94a3b8; font: 12.5px/1 "SFMono-Regular", Consolas, monospace; }
.home-code pre { margin: 0; padding: 20px 18px; overflow-x: auto; }
.home-code code { color: #e2e8f0; font: 13.5px/1.75 "SFMono-Regular", Consolas, "Liberation Mono", monospace; white-space: pre; }
.home-code p { padding: 14px 18px 16px; border-top: 1px solid #1f2937; color: #94a3b8; font-size: 13.5px; line-height: 1.7; }
.home-code p a { color: #7dd3d0 !important; text-decoration: underline; text-underline-offset: 4px; }

/* faq */
.home-faq-wrap { width: min(880px, calc(100% - 96px)); }
.home-faq { border-top: 1px solid var(--line); }
.home-faq details { border-bottom: 1px solid var(--line); }
.home-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 4px; font-size: 17.5px; font-weight: 650; cursor: pointer; list-style: none; }
.home-faq summary::-webkit-details-marker { display: none; }
.home-faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 6px; border-right: 1.8px solid #8a8f8f; border-bottom: 1.8px solid #8a8f8f; transform: rotate(45deg); transition: transform .15s ease; }
.home-faq details[open] summary::after { transform: rotate(225deg); }
.home-faq p { padding: 0 4px 24px; max-width: 46em; font-size: 15.5px; line-height: 1.85; color: #4b5050; }
.home-faq p a { color: #05666a !important; text-decoration: underline; text-underline-offset: 4px; }

/* closing */
.home-cta { padding: 96px 0 104px; text-align: center; }
.home-cta h2 { font-size: clamp(28px, 3.8vw, 44px); font-weight: 700; letter-spacing: -.03em; line-height: 1.18; text-wrap: balance; }
.home-cta p { margin-top: 16px; font-size: 17px; color: var(--muted); }
.home-cta .home-cta-help { margin-top: 26px; font-size: 14.5px; }
.home-cta .home-cta-help a { color: #05666a !important; text-decoration: underline; text-underline-offset: 4px; }
.tm-home .tm-footer { margin-top: 0; }

@media (max-width: 1040px) {
  .home-wrap { width: calc(100% - 64px); }
  .home-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-kind-body { padding: 40px 36px; }
}
@media (max-width: 900px) {
  .home-wrap, .home-faq-wrap { width: calc(100% - 40px); }
  .home-hero { padding: 76px 0 64px; }
  .home-hero .home-status { position: static; margin-bottom: 26px; }
  .home-lead { font-size: 17px; }
  .home-section { padding: 64px 0; }
  .home-featured { padding-top: 52px; }
  .home-head { margin-bottom: 30px; }
  .home-split, .home-steps-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .home-cols { grid-template-columns: minmax(0, 1fr); }
  .home-cols article, .home-cols article + article { padding: 28px 0 24px; border-left: 0; border-bottom: 1px solid var(--line); }
  .home-kind { grid-template-columns: minmax(0, 1fr); }
  .home-kind:nth-child(even) .home-kind-media { order: 0; }
  .home-kind-media { min-height: 0; aspect-ratio: 16 / 10; }
  .home-kind-body { padding: 28px 0 36px; }
  .home-kind h3 { font-size: 24px; }
  .home-cta { padding: 64px 0 72px; }
}
@media (max-width: 560px) {
  .home-wrap, .home-faq-wrap { width: calc(100% - 32px); }
  .home-hero { padding: 52px 0 48px; }
  .home-eyebrow { font-size: 12px; letter-spacing: .08em; }
  .home-btn { width: 100%; min-height: 52px; }
  .home-actions { gap: 10px; margin-top: 30px; }
  .home-trust { gap: 8px 16px; margin-top: 26px; }
  .home-tiles { grid-template-columns: minmax(0, 1fr); }
  .home-faq summary { font-size: 16px; padding: 18px 2px; }
  .home-steps li { grid-template-columns: 44px minmax(0, 1fr); }
}
