/* The home page: the hero, the two themes (features.css) and the close listing everything
   included. Motion flows rather than pops. Tokens and shared pieces come from site.css. */

:root { --out: cubic-bezier(0.16, 1, 0.3, 1); }

/* ─── Hero ──────────────────────────────────────────────────────────────────── */
.w-hero {
  position: relative; overflow: hidden;
  min-height: calc(100svh - 76px);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(24px, 5vh, 64px) 0 clamp(180px, 26vh, 270px);
}
.w-hero .wrap { position: relative; z-index: 1; }
.ribbon {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
}
.js .ribbon { opacity: 0; transition: opacity 2.4s ease 0.9s; }
.js .ribbon.on { opacity: 1; }

.w-title {
  font: 800 clamp(4.2rem, 10.6vw, 10rem)/0.84 var(--display);
  text-transform: uppercase; letter-spacing: -0.01em;
}
/* Each line rises out of its own mask. */
.w-title .ln { display: block; overflow: hidden; padding: 0.07em 0 0.015em; margin: -0.07em 0 -0.015em; }
.w-title .in { display: inline-block; }
.w-title .dot { display: inline-block; }
.js .w-title .in { transform: translateY(108%); animation: w-up 1.25s var(--out) forwards; animation-delay: calc(var(--i) * 130ms + 120ms); }
.js .w-title .dot { transform: scale(0); animation: w-pop 0.7s cubic-bezier(0.3, 1.6, 0.5, 1) forwards; animation-delay: calc(var(--i) * 160ms + 1000ms); }

.w-under { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 26px 48px; margin-top: clamp(30px, 5vh, 56px); }
.w-under p { max-width: 33ch; color: var(--soft); font-size: clamp(1.1rem, 1.45vw, 1.3rem); line-height: 1.5; }
.js .w-under { opacity: 0; transform: translateY(18px); animation: w-rise 1.1s var(--out) 1.05s forwards; }
/* The line, then the providers we partner with: their own logo, a quiet label beside it. */
.w-lead { display: grid; gap: clamp(20px, 3vh, 30px); }
.w-partner { display: inline-flex; align-items: center; gap: 16px; width: fit-content; color: var(--muted); text-decoration: none; font: 700 13px/1.2 var(--display); letter-spacing: 0.14em; text-transform: uppercase; }
.w-partner img { display: block; height: 56px; width: auto; opacity: 0.88; transition: opacity 0.2s; }
.w-partner:hover img, .w-partner:focus-visible img { opacity: 1; }
.ctas a.more { display: inline-flex; align-items: center; gap: 8px; height: 58px; padding: 0 8px; color: var(--soft); text-decoration: none; font: 600 16px/1 var(--body); transition: color 0.2s, gap 0.3s var(--out); }
.ctas a.more svg { width: 18px; height: 18px; }
.ctas a.more:hover { color: var(--ink); gap: 12px; }
/* The price and a way in for a PT on another app, under the buttons (2026-10-18, from the site's data:
   most visitors never reach Plans, and most leave from this page). */
.ctas .price-note { margin: 14px 0 0; color: var(--muted); font: 500 15px/1.5 var(--body); }
.ctas .price-note a { color: var(--soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--control2); white-space: nowrap; }
.ctas .price-note a:hover { color: var(--ink); text-decoration-color: currentColor; }

.cue { position: absolute; left: 50%; bottom: 26px; z-index: 1; width: 1px; height: 54px; margin-left: -0.5px; overflow: hidden; background: rgba(255, 255, 255, 0.1); }
.cue::after { content: ''; position: absolute; left: 0; top: -45%; width: 1px; height: 45%; background: var(--ink); animation: w-cue 2.4s ease-in-out infinite; }
.js .cue { opacity: 0; animation: w-fade 1s ease 2s forwards; }

/* ─── One theme: the admin taken off, then the time it gives their clients (2026-10-22) ─────── */
.struck.w-chores { margin: clamp(30px, 5vh, 56px) 0 0; font-size: clamp(1.15rem, 1.9vw, 1.75rem); gap: 6px 20px; color: #4a515c; }
.js .w-chores { opacity: 0; animation: w-fade 1.2s ease 1.6s forwards; }
.eyebrow { font: 700 15px/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.w-sec-head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: clamp(30px, 4vw, 52px); }
.w-sec-head .theme-lead { margin-top: 4px; }
.w-plate { padding: clamp(64px, 8vw, 120px) 0; }
.plates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.plate { background: var(--panel); border-radius: 20px; overflow: hidden; display: grid; grid-template-rows: 190px auto; }
.plate-shot { background: var(--row); overflow: hidden; }
.plate-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0.92; }
.plate-body { padding: 20px 20px 24px; display: grid; gap: 10px; align-content: start; }
.plate h3 { margin: 0; font: 800 1.75rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.plate h3 .dot { color: var(--blaze); }
/* One line a card (2026-10-28, the user: "less crowded"); everything else is under See all features. */
.plate-line { color: var(--soft); font-size: 15.5px; line-height: 1.45; max-width: 30ch; }
.give-list { display: grid; gap: 8px; }
.give-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 9px; color: var(--soft); font-size: 15px; line-height: 1.42; }
.give-list li svg { width: 18px; height: 18px; margin-top: 1px; color: var(--blaze); stroke-width: 2.6; }
.w-give { padding: clamp(64px, 8vw, 120px) 0; background: #07080b; }
.give-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 7vw, 110px); align-items: center; }
.give-copy .h2 { margin-top: 14px; }
.give-list { gap: 16px; margin-top: clamp(22px, 3vw, 32px); }
.give-list li { grid-template-columns: 22px minmax(0, 1fr); color: var(--ink); font-size: clamp(1.05rem, 1.35vw, 1.2rem); }
.give-list li svg { width: 20px; height: 20px; }
.give-list b { color: var(--ink); font-weight: 600; }
.still { margin-top: clamp(22px, 3vw, 32px); color: var(--muted); font-size: 16px; line-height: 1.5; max-width: 34rem; }
.still b { color: var(--ink); font-weight: 600; }
.give-view { display: grid; justify-items: center; }
.give-view .sp-wrap { width: min(320px, 80%); }

@media (max-width: 1040px) {
  .plates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .give-grid { grid-template-columns: minmax(0, 1fr); }
  .give-view .sp-wrap { width: min(280px, 78%); }
}
@media (max-width: 520px) {
  .plates { grid-template-columns: minmax(0, 1fr); }
  .plate { grid-template-rows: 150px auto; }
}

/* ─── Close: one plan, and everything in it ─────────────────────────────────── */
.w-close { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px) 0 clamp(170px, 22vw, 260px); }
.w-close .wrap { position: relative; z-index: 1; display: grid; gap: clamp(28px, 4vw, 44px); }
.w-close .h2 { font-size: clamp(3.4rem, 9vw, 8.4rem); }
.close-note { color: var(--soft); font-size: clamp(1.1rem, 1.45vw, 1.3rem); max-width: 34ch; }
.incl-line { display: flex; flex-wrap: wrap; gap: 4px 22px; max-width: 62rem; color: var(--soft); font: 700 clamp(1.25rem, 1.9vw, 1.6rem)/1.3 var(--display); letter-spacing: 0.02em; text-transform: uppercase; }
.w-close .ribbon { top: auto; bottom: 0; height: 260px; }

/* ─── Keyframes ─────────────────────────────────────────────────────────────── */
@keyframes w-up { to { transform: none; } }
@keyframes w-pop { to { transform: none; } }
@keyframes w-rise { to { opacity: 1; transform: none; } }
@keyframes w-fade { to { opacity: 1; } }
@keyframes w-cue { to { top: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .js .w-title .in, .js .w-title .dot, .js .w-under, .js .w-chores, .js .cue, .js .ribbon { transform: none; opacity: 1; animation: none; }
}

@media (max-width: 760px) {
  .w-hero { min-height: calc(100svh - 64px); padding-bottom: 200px; }
  .w-under { align-items: flex-start; }
  .w-close { padding-bottom: 190px; }
  .w-close .ribbon { height: 200px; }
}

/* ─── Compare (2026-10-23, the user: "a big compare button somewhere in the main page"; since
   2026-10-28, "less crowded": one line between two hairlines with the button, no card, no heading).
   The whole row is a link to /compare/. ───── */
.w-switch { padding: clamp(40px, 5vw, 72px) 0 0; }
.switch-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; padding: 26px 0; border-top: 1px solid var(--control); border-bottom: 1px solid var(--control); color: inherit; text-decoration: none; }
.switch-q { font: 800 clamp(1.5rem, 2.4vw, 2rem)/1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; color: var(--ink); }
.switch-names { flex: 1 1 22rem; color: var(--soft); font-size: clamp(1rem, 1.3vw, 1.1rem); line-height: 1.5; }
.btn-ink { background: var(--ink); color: var(--ground); }
.switch-btn { gap: 10px; height: 56px; padding: 0 26px; font-size: 21px; border-radius: 16px; }
.switch-row:hover .switch-btn { background: #fff; }
.switch-btn svg { width: 20px; height: 20px; transition: transform 0.2s var(--ease); }
.switch-row:hover .switch-btn svg { transform: translateX(4px); }
@media (max-width: 760px) {
  .switch-btn { width: 100%; justify-content: center; }
}

/* The admin, Your clients and AI on pages of their own (2026-10-28): each starts close under the menu. */
.sub > section:first-of-type { padding-top: clamp(28px, 4vw, 56px); }
