/* TrainerTech marketing site. Hand-written, no frameworks. Brand: blue #2178ba, dark blue #1a5683, teal #3ec1d5, navy #010030. */
:root {
  --navy: #010030; --blue: #2178ba; --blue-dark: #1a5683; --teal: #3ec1d5; --accent: #2fb86e; --accent-dark: #1f9657;
  --text: #26364a; --muted: #5a6b80; --bg: #ffffff; --tint: #eef6fc; --sky: #d8ecfa; --sky-deep: #bcdcf3; --line: #e2e8f0;
  --radius: 18px; --shadow: 0 10px 30px rgba(1, 0, 48, .08); --shadow-lg: 0 24px 60px rgba(1, 0, 48, .18);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.15; color: var(--navy); margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(820px, 100% - 2.5rem); }
.center { text-align: center; margin-top: 2.5rem; }
.icon { flex: none; vertical-align: middle; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .6em 1em; z-index: 100; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .75em 1.4em; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font-family: inherit; font-size: 1rem; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .5em 1.1em; font-size: .95rem; }
.btn-lg { padding: .9em 1.8em; font-size: 1.1rem; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(33, 120, 186, .35); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-accent { background: linear-gradient(180deg, #45cc82, var(--accent-dark)); color: #fff; box-shadow: 0 8px 20px rgba(31, 150, 87, .35); }
.btn-accent:hover { box-shadow: 0 12px 26px rgba(31, 150, 87, .45); }
.btn-ghost { background: rgba(255, 255, 255, .7); color: var(--blue-dark); border-color: var(--blue); }
.btn-ghost:hover { background: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--sky); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(26, 86, 131, .15); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--navy); font-size: 1.35rem; font-weight: 500; letter-spacing: -.02em; }
.brand b { font-weight: inherit; color: var(--blue); }
.site-nav { display: flex; align-items: center; flex: 1; gap: 1rem; }
.site-nav ul { display: flex; gap: .25rem; list-style: none; margin: 0 auto 0 1rem; padding: 0; }
.site-nav li { position: relative; }
.site-nav li > a { display: inline-flex; align-items: center; gap: .3em; padding: .6em .9em; color: var(--blue-dark); text-decoration: none; font-weight: 600; border-radius: 999px; }
.site-nav li > a:hover, .site-nav li.active > a { color: var(--navy); background: var(--sky); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.link-signin { color: var(--blue-dark); text-decoration: none; font-weight: 600; }
.link-signin:hover { color: var(--navy); }
.has-menu .menu { position: absolute; left: 0; top: 100%; width: 340px; padding: .6rem; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s; }
.has-menu:hover .menu, .has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: none; }
.menu a { display: flex; gap: .8rem; align-items: center; padding: .55rem .7rem; border-radius: 12px; text-decoration: none; color: var(--text); }
.menu a:hover { background: var(--tint); }
.menu-sep { margin: .5rem .7rem .3rem; padding-top: .7rem; border-top: 1px solid var(--sky-deep); font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.menu strong { display: block; color: var(--navy); font-size: .95rem; }
.menu small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.3; }
.menu-icon, .card-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; flex: none;
  background: hsl(var(--hue) 80% 94%); color: hsl(var(--hue) 65% 38%); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--blue-dark); padding: .4rem; cursor: pointer; }

/* Heroes */
.hero { position: relative; color: var(--text); overflow: hidden; background: radial-gradient(1100px 500px at 90% -10%, rgba(62, 193, 213, .28), transparent 60%),
  radial-gradient(900px 500px at -10% 110%, rgba(33, 120, 186, .18), transparent 60%), linear-gradient(170deg, #f4faff, var(--sky) 100%); }
.hero h1 { color: var(--navy); }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--blue), #1fa9c0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-module { background: radial-gradient(1000px 500px at 90% -10%, hsl(var(--hue) 80% 70% / .35), transparent 60%), linear-gradient(170deg, #f4faff, hsl(var(--hue) 70% 90%)); }
.hero-home .hero-grid { padding-block: clamp(3rem, 8vw, 6rem); }
.hero-page .wrap { padding-block: clamp(3rem, 7vw, 5rem); max-width: 900px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 40em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }
.hero-note { margin-top: 1.6rem; color: var(--muted); font-size: .95rem; }
.hero-note .icon { color: var(--blue); }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--blue-dark); }
.hero-visual { position: relative; }
.float { position: absolute; display: inline-flex; align-items: center; gap: .5em; padding: .55em 1em; border-radius: 999px; font-weight: 700; font-size: .9rem;
  background: #fff; color: hsl(var(--hue) 65% 32%); box-shadow: var(--shadow-lg); animation: bob 5s ease-in-out infinite; }
.float-1 { top: -6%; left: -8%; } .float-2 { bottom: 14%; right: -6%; animation-delay: -1.5s; } .float-3 { bottom: -6%; left: 6%; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* Screenshot placeholder */
.shot { margin: 0; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); transform: perspective(1200px) rotateY(-6deg) rotateX(2deg); }
.shot-bar { display: flex; gap: 6px; padding: 10px 12px; background: #eef2f7; }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.shot-body { display: flex; align-items: center; gap: 1.2rem; padding: 2.2rem 1.6rem; min-height: 220px;
  background: repeating-linear-gradient(45deg, hsl(var(--hue) 60% 97%), hsl(var(--hue) 60% 97%) 12px, hsl(var(--hue) 60% 94%) 12px, hsl(var(--hue) 60% 94%) 24px); }
.shot-icon { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 22px; background: hsl(var(--hue) 70% 55%); color: #fff; box-shadow: 0 10px 24px hsl(var(--hue) 70% 45% / .4); }
.shot-lines { flex: 1; display: grid; gap: 10px; }
.shot-lines span { height: 14px; border-radius: 8px; background: hsl(var(--hue) 40% 84%); }
.shot-lines span:nth-child(2) { width: 75%; } .shot-lines span:nth-child(3) { width: 50%; }
.shot figcaption { padding: .6rem 1rem; font-size: .8rem; color: var(--muted); background: #fff; border-top: 1px solid var(--line); }

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-tint { background: var(--tint); }
.section-title { text-align: center; }
.section-title.left { text-align: left; }
.section-lead { text-align: center; color: var(--muted); font-size: 1.15rem; max-width: 40em; margin: 0 auto 2.5rem; }
.section-title + .grid, .section-title + .steps, .section-title + .faq { margin-top: 2.5rem; }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.card h3 { margin-top: 1rem; }
.card p { color: var(--muted); margin-bottom: 0; }
.module-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; border-top: 4px solid hsl(var(--hue) 70% 55%); }
.module-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.module-card p { flex: 1; margin-bottom: 1rem; }
.module-card .more { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: hsl(var(--hue) 65% 38%); }
.card-icon { width: 52px; height: 52px; border-radius: 15px; }
.feature { display: flex; gap: 1rem; padding: 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.feature h3 { margin: 0 0 .25em; } .feature p { margin: 0; color: var(--muted); }
.tick { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; flex: none; background: hsl(var(--hue) 70% 92%); color: hsl(var(--hue) 65% 34%); }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; counter-reset: s; }
.steps li { text-align: center; padding: 1rem; }
.steps p { color: var(--muted); }
.step-num { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; font-size: 1.6rem; font-weight: 800; color: #fff; margin-bottom: 1rem;
  background: linear-gradient(135deg, hsl(var(--hue) 75% 55%), hsl(var(--hue) 70% 38%)); box-shadow: 0 8px 20px hsl(var(--hue) 70% 40% / .35); }
.ticks { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .8rem; }
.ticks li { display: flex; gap: .7rem; align-items: flex-start; }
.ticks .icon { color: #1fa971; margin-top: .25em; }
.callout { background: linear-gradient(160deg, hsl(var(--hue) 80% 96%), #fff); border: 1px solid hsl(var(--hue) 50% 88%); border-radius: var(--radius); padding: 1.8rem; margin-bottom: 1.5rem; color: hsl(var(--hue) 60% 30%); }
.callout h3 { margin-top: .8rem; } .callout p { color: var(--text); margin-bottom: 1rem; }
.value .card-icon { background: hsl(var(--hue) 80% 94%); }
.band { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); color: #fff; padding-block: 3.5rem; }
.band-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.band-stat strong { display: block; font-size: clamp(3rem, 7vw, 5rem); line-height: 1; font-weight: 800; }
.band-stat span { color: #d6ecf7; font-size: 1.1rem; }
.cta-band { background: linear-gradient(160deg, var(--sky), #c6e3f7); color: var(--text); text-align: center; padding-block: clamp(3.5rem, 8vw, 5.5rem); }
.cta-band h2 { color: var(--navy); } .cta-band p { color: var(--muted); font-size: 1.15rem; max-width: 36em; margin-inline: auto; }
.cta-band .cta-row { justify-content: center; }

/* Pricing */
.plan { position: relative; display: flex; flex-direction: column; }
.plan .ticks { flex: 1; margin-top: 1rem; }
.plan-for { margin: 0 0 .5rem; } .plan-price { font-size: 1.7rem; font-weight: 800; color: var(--navy) !important; margin: .3rem 0 0; }
.plan.featured { border: 2px solid var(--accent); transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.ribbon { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: .8rem; font-weight: 800; padding: .25em 1em; border-radius: 999px; }
.faq { display: grid; gap: .8rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.3rem; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.faq details p { margin: .8rem 0 0; color: var(--muted); }

/* Forms */
.form-card form { display: grid; gap: 1.1rem; }
.form-card label { display: grid; gap: .35rem; font-weight: 600; color: var(--navy); }
.form-card small { font-weight: 400; color: var(--muted); }
.form-card input, .form-card textarea { font: inherit; padding: .75em .9em; border: 1px solid #cbd5e1; border-radius: 12px; background: #fff; color: var(--text); width: 100%; }
.form-card input:focus, .form-card textarea:focus { border-color: var(--blue); outline: 3px solid rgba(33, 120, 186, .2); }
.form-card label.human { display: flex; align-items: center; gap: .6rem; font-weight: 600; cursor: pointer; width: fit-content; }
.form-card label.human input { width: 1.3rem; height: 1.3rem; padding: 0; accent-color: var(--blue); flex: none; }
.form-card .hint { margin: 0; color: var(--muted); font-size: .9rem; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.notice { display: flex; gap: 1rem; padding: 1rem 1.2rem; border-radius: 14px; margin-bottom: 1.2rem; }
.notice.ok { background: #e8f8f0; color: #10704a; } .notice.ok h3 { margin: 0 0 .2em; color: inherit; } .notice.ok p { color: inherit; }
.notice.err { background: #fdecec; color: #9b1c1c; } .notice.err ul { margin: 0; padding-left: 1.2em; }
.contact-grid { align-items: start; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.1rem; margin: 1.2em 0 .3em; }
.prose ul { margin: .6em 0 1em; padding-left: 1.3em; } .prose li { margin-bottom: .45em; color: var(--muted); }

/* Footer */
.site-footer { background: var(--sky); color: var(--muted); padding-top: 3.5rem; }
.site-footer a { color: var(--blue-dark); text-decoration: none; } .site-footer a:hover { color: var(--navy); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
.footer-grid h3 { color: var(--navy); font-size: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.footer-brand p { margin-top: 1rem; max-width: 26em; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; padding-block: 1.5rem; border-top: 1px solid var(--sky-deep); font-size: .9rem; }

/* Reveal on scroll (only when JS is running) */
.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } .js-reveal .reveal { opacity: 1; transform: none; } }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; }
  .shot { transform: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 1.5rem; background: #fff; border-bottom: 1px solid var(--sky); }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; margin: 0; }
  .has-menu .menu { display: none; }
  .nav-actions { justify-content: space-between; margin-top: .5rem; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .band-grid, .footer-grid { grid-template-columns: 1fr; }
  .plan.featured { transform: none; }
  .float { display: none; }
}

/* Compact module rows (home page) and group separation */
.row-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.module-row { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; background: #fff; text-decoration: none; color: var(--navy);
  border: 2px solid hsl(var(--hue) 65% 62%); border-radius: 14px; transition: transform .15s, box-shadow .15s; }
.module-row:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.module-row strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-btn { display: inline-flex; align-items: center; gap: .3em; font-size: .85rem; font-weight: 700; padding: .3em .8em; border-radius: 999px; color: hsl(var(--hue) 65% 30%); background: hsl(var(--hue) 80% 93%); }
.module-row .card-icon { width: 40px; height: 40px; border-radius: 12px; }
.group-label { margin: 2rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--sky-deep); font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.footer-grid li.sep { margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--sky-deep); }
@media (max-width: 960px) { .row-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .row-grid { grid-template-columns: 1fr; } }

.shot.has-image img { display: block; width: 100%; height: auto; }

/* Three-across grids: flex so a short last row (one or two items) is centred rather than left-aligned */
.grid-3, .row-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.grid-3 { --gap: 1.5rem; gap: var(--gap); }
.row-grid { --gap: 1rem; gap: var(--gap); }
.grid-3 > *, .row-grid > * { flex: 0 0 calc((100% - 2 * var(--gap)) / 3); min-width: 0; box-sizing: border-box; }
@media (max-width: 960px) { .grid-3 > *, .row-grid > * { flex-basis: calc((100% - var(--gap)) / 2); } }
@media (max-width: 640px) { .grid-3 > *, .row-grid > * { flex-basis: 100%; } }
