/* actafitapp.com front page: the "Hybrid Hero" design (Claude Design project
   7f67e68d…, Hybrid Hero.dc.html). Dark canvas, Collapse + Welt from the Blaze
   Type kit, New York / Source Serif 4 and SF / Inter for the app voice.
   Sizes use cqi against .af, the full-width container, as the design does.
   /dark and /editorial keep site.css + paper.css and style.css. */

:root {
  --acta-canvas: #1B1B1A;
  --acta-surface: #232321;
  --acta-surface-high: #2C2B29;
  --acta-on-ink: #1A1714;
  --acta-text-tertiary: #6F6D68;
  --acta-stroke: rgba(207, 204, 198, .14);
  --acta-ink: #CFCCC6;
  --acta-ink-deep: #DAD7D1;
  --acta-accent: #C9B896;
  --acta-accent-soft: #9C7E52;
  --acta-text-primary: #CFCCC6;
  --acta-text-secondary: #8E8C87;
  --acta-card-corner: 14px;
  --acta-shadow-float: 0 4px 16px rgba(42, 38, 32, .12);
  --acta-font-serif: ui-serif, "New York", "Source Serif 4", Georgia, serif;
  --acta-font-sans: -apple-system, BlinkMacSystemFont, system-ui, "Inter", sans-serif;
  --acta-font-brand: "Collapse", var(--acta-font-serif);
  --acta-font-text: "Welt", var(--acta-font-sans);
  --gutter: clamp(20px, 5.5cqi, 80px);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.85 0 0 0 0 0.83 0 0 0 0 0.8 0 0 0 0.10 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--acta-canvas); color: var(--acta-ink);
  font-family: var(--acta-font-sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--acta-accent); }
a:hover { color: var(--acta-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.af { container-type: inline-size; position: relative; width: 100%; overflow-x: clip; }
.grain { position: absolute; inset: 0; pointer-events: none; background-image: var(--grain); }
.wrap { position: relative; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow-sm {
  font-size: 10px; font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--acta-text-secondary);
}

/* ---- Hero ---- */
.top { position: relative; background: var(--acta-canvas); }
.top > .grain { opacity: .55; }
.nav { padding-top: 22px; display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.pill {
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--acta-accent); border: 1px solid var(--acta-accent-soft); border-radius: 999px;
  padding: 5px 11px; white-space: nowrap;
}
.store-nav {
  font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none;
  text-decoration: none; color: var(--acta-ink-deep); white-space: nowrap;
}
.store-nav:hover { color: var(--acta-accent); }
.store-cta { margin: 0; }
.store-badge { display: inline-block; line-height: 0; }
.store-badge img { display: block; width: 144px; height: 48px; }
.store-note {
  margin: 0; max-width: 500px; font-size: 14px; line-height: 1.5;
  color: var(--acta-text-secondary); text-wrap: pretty;
}
.hero {
  padding-top: clamp(36px, 4.4cqi, 64px); padding-bottom: clamp(48px, 5.6cqi, 80px);
  display: flex; flex-wrap: wrap; align-items: center;
  column-gap: clamp(32px, 4.4cqi, 64px); row-gap: clamp(40px, 4.4cqi, 56px);
}
/* Below 1025px wide the copy column takes the whole row; above it, a fixed share. */
.hero-copy {
  flex: 0 1 max(clamp(360px, 32cqi, 460px), (1025px - 100cqi) * 999);
  max-width: 640px; min-width: 0; display: flex; flex-direction: column; gap: 22px;
  container-type: inline-size;
}
.eyebrow {
  margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--acta-accent);
}
/* Sized to the copy column (icon 1.35em + gap .3em + ~7.2em of wordmark = ~8.9em), not the page. */
.lockup { display: flex; align-items: center; gap: .3em; font-size: min(72px, 10.8cqi); }
.lockup img {
  flex: none; width: 1.35em; height: 1.35em; border-radius: 22.37%;
  box-shadow: 0 0 0 1px var(--acta-stroke), 0 18px 40px rgba(0, 0, 0, .35);
}
.lockup h1 {
  margin: 0; min-width: 0; white-space: nowrap;
  font-family: var(--acta-font-brand); font-weight: 700; font-size: 1em; line-height: .9;
  letter-spacing: -.005em; text-transform: uppercase; color: var(--acta-ink-deep);
  /* Collapse's caps sit ~.09em above the middle of the line box, so flex centring leaves
     the wordmark high against the icon (the Claude Design mock has the same offset). */
  position: relative; top: .09em;
}
.tagline {
  margin: 0; font-family: var(--acta-font-text); font-weight: 600;
  font-size: clamp(22px, 1.9cqi, 28px); line-height: 1.2; color: var(--acta-ink-deep);
}
.sub {
  margin: 0; max-width: 500px; font-family: var(--acta-font-text);
  font-size: clamp(16px, 1.22cqi, 17.5px); line-height: 1.6; color: var(--acta-text-secondary);
  text-wrap: pretty;
}

/* Sign-up form */
.join { max-width: 500px; display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.name-row, .join-row {
  display: flex; gap: 8px; padding: 6px; background: var(--acta-surface);
  border: 1px solid var(--acta-stroke); border-radius: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.join-row { flex-wrap: wrap; }
.name-row:focus-within, .join-row:focus-within {
  border-color: var(--acta-accent-soft); box-shadow: 0 0 0 4px rgba(201, 184, 150, .1);
}
.name-row input, .join-row input {
  flex: 1; min-width: 0; font: inherit; font-size: 17px; color: var(--acta-ink-deep);
  background: transparent; border: 0; outline: 0; padding: 11px 14px;
}
.name-row input + input { border-left: 1px solid var(--acta-stroke); }
.join-row input { flex: 999 1 180px; }
.name-row input::placeholder, .join-row input::placeholder { color: var(--acta-text-tertiary); opacity: 1; }
.join-row button {
  flex: 1 0 auto; display: flex; align-items: center; justify-content: center; min-height: 44px;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--acta-on-ink);
  background: var(--acta-ink); border: 0; border-radius: 10px; padding: 12px 18px;
  cursor: pointer; white-space: nowrap; transition: background .15s, transform .1s;
}
.join-row button:hover { background: var(--acta-ink-deep); }
.join-row button:active { transform: scale(.98); }
.join-row button[disabled] { opacity: .7; cursor: progress; }
.join-note {
  margin: 0; font-size: 14px; line-height: 1.5; color: var(--acta-text-secondary);
  text-align: center; text-wrap: pretty;
}
.join-note.err { color: #E08A7E; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.joined {
  max-width: 500px; padding: 20px 22px; border-radius: 14px;
  background: var(--acta-surface); border: 1px solid var(--acta-stroke);
  border-left: 3px solid var(--acta-accent);
}
.joined:focus { outline: none; }
.joined-title { margin: 0 0 6px; font-family: var(--acta-font-text); font-weight: 600; font-size: 22px; color: var(--acta-ink-deep); }
.joined-body { margin: 0; color: var(--acta-text-secondary); font-size: 15px; line-height: 1.5; }
.partner { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--acta-stroke); }
.partner-lead, .partner-url { margin: 0; color: var(--acta-text-secondary); font-size: 15px; }
.partner-lead { margin-bottom: 6px; }
.partner-lead strong { color: var(--acta-ink-deep); }
.partner-url { margin-bottom: 12px; word-break: break-all; }
.partner-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.choice {
  min-height: 44px; padding: 10px 16px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--acta-stroke); background: transparent; color: var(--acta-ink-deep);
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.choice:hover { color: var(--acta-ink-deep); border-color: var(--acta-accent-soft); }

/* Hero media: the 4:5 loop and the phone */
.hero-visual {
  flex: 1 1 max(0px, (1025px - 100cqi) * 999); min-width: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: clamp(20px, 2cqi, 28px);
}
.hero-media {
  position: relative; flex: 2 1 260px; max-width: 480px; min-width: 0; margin: 0 auto;
  aspect-ratio: 4 / 5; border-radius: var(--acta-card-corner); overflow: hidden; isolation: isolate;
  background: radial-gradient(130% 95% at 68% 26%, color-mix(in oklch, #2A2620 70%, #9C7E52) 0%, #2A2620 50%, #1A1714 100%);
  box-shadow: 0 0 0 1px var(--acta-stroke);
}
.hero-video { display: block; width: 100%; height: 100%; object-fit: cover; background: transparent; }
.hero-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  opacity: .45; background-image: var(--grain);
}
.hero-media-toggle {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(247, 247, 245, .55); background: rgba(26, 23, 20, .45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: grid; place-items: center; opacity: .75; transition: opacity 160ms ease;
}
.hero-media-toggle:hover, .hero-media-toggle:focus-visible { opacity: 1; }
.hero-media-toggle:focus-visible { outline: 2px solid #F7F7F5; outline-offset: 2px; }
.hero-media-toggle::before {
  content: ""; width: 10px; height: 12px; box-sizing: border-box;
  border-left: 3px solid #F7F7F5; border-right: 3px solid #F7F7F5;
}
.hero-media-toggle[aria-pressed="true"]::before {
  width: 0; height: 0; border-right: 0; margin-left: 3px;
  border-left: 11px solid #F7F7F5; border-top: 7px solid transparent; border-bottom: 7px solid transparent;
}

.phone-slot { flex: 1 1 300px; min-width: 0; display: flex; justify-content: center; }
.phone {
  width: min(100%, 324px); aspect-ratio: 9 / 19.5; padding: 10px; border-radius: 52px;
  background: #1A1714; box-shadow: 0 0 0 1px var(--acta-stroke), var(--acta-shadow-float);
}
.phone-screen {
  position: relative; width: 100%; height: 100%; border-radius: 42px; overflow: hidden; background: #F4F4F2;
}
/* Three app screens, 3.2 s each, 0.7 s crossfade. */
.phone-screen img {
  position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 42px;
  object-fit: cover; object-position: top center; opacity: 0;
  animation: af-screen 9.6s linear infinite;
}
.phone-screen img:nth-child(1) { animation-delay: -.7s; }
.phone-screen img:nth-child(2) { animation-delay: 2.5s; }
.phone-screen img:nth-child(3) { animation-delay: 5.7s; }
@keyframes af-screen {
  0% { opacity: 0; } 7.3% { opacity: 1; } 33.3% { opacity: 1; } 40.6% { opacity: 0; } 100% { opacity: 0; }
}

/* ---- Proof band ---- */
.band {
  position: relative; overflow: hidden; background: #121211; color: var(--acta-ink-deep);
  border-block: 1px solid var(--acta-stroke);
}
.band > .grain { opacity: .35; }
.band .wrap {
  padding-block: clamp(40px, 5cqi, 72px);
  display: flex; flex-direction: column; gap: clamp(18px, 2.2cqi, 28px);
}
.band-line {
  margin: 0; font-family: var(--acta-font-serif); font-weight: 500;
  font-size: clamp(30px, 4.2cqi, 58px); line-height: 1.08; letter-spacing: -.015em; text-wrap: balance;
}
.band-sign {
  margin: 0; font-family: var(--acta-font-serif); font-size: clamp(18px, 1.6cqi, 22px);
  line-height: 1.4; letter-spacing: -.005em; color: var(--acta-accent);
}
/* Race order: run, station, run, station… runs drawn twice as long as stations. */
.strip { display: flex; flex-wrap: wrap; gap: clamp(6px, .56cqi, 8px); }
.strip-half { flex: 1 1 300px; min-width: 0; display: flex; gap: clamp(6px, .56cqi, 8px); }
.seg {
  flex: 1 1 0%; min-width: 0; height: clamp(8px, .85cqi, 12px); border-radius: 999px;
  border: 1px solid rgba(207, 204, 198, .42); background: transparent;
}
.seg:nth-child(odd) { flex-grow: 2; }
.seg.on { background: #C9DB2A; border-color: transparent; }

/* ---- Bring your own coach ---- */
.coach { position: relative; background: var(--acta-canvas); }
.coach .wrap {
  padding-block: clamp(56px, 6.5cqi, 96px);
  display: flex; flex-wrap: wrap; align-items: center; column-gap: clamp(32px, 4.4cqi, 64px); row-gap: 40px;
}
.coach-copy { flex: 1 1 320px; min-width: 0; max-width: 520px; display: flex; flex-direction: column; gap: 20px; }
.coach-copy h2 {
  margin: 0; font-family: var(--acta-font-serif); font-weight: 500;
  font-size: clamp(34px, 3.4cqi, 52px); line-height: 1.06; letter-spacing: -.018em;
  color: var(--acta-ink-deep); text-wrap: balance;
}
.coach-copy p {
  margin: 0; font-size: clamp(16px, 1.2cqi, 17.5px); line-height: 1.6;
  color: var(--acta-text-secondary); text-wrap: pretty;
}
.agents { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.agent {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 500; border: 1px solid var(--acta-stroke);
  background: var(--acta-surface); color: var(--acta-text-primary);
  animation: af-agent 10.4s linear infinite;
}
.agent::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--acta-stroke);
  animation: af-agent-dot 10.4s linear infinite; animation-delay: inherit;
}
.cta {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 12px; background: var(--acta-ink); color: #1A1714;
  font-size: 14px; font-weight: 500; text-decoration: none; transition: opacity .2s;
}
.cta:hover { color: #1A1714; opacity: .85; }

.chat {
  flex: 1 1 380px; min-width: 0; max-width: 620px; margin-inline: auto;
  background: var(--acta-surface); border: 1px solid var(--acta-stroke); border-radius: var(--acta-card-corner);
  display: flex; flex-direction: column;
}
.chat-bar {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--acta-stroke);
}
.lights { display: flex; gap: 6px; }
.lights span {
  width: 10px; height: 10px; border-radius: 50%; background: var(--acta-surface-high);
  box-shadow: inset 0 0 0 1px var(--acta-stroke);
}
.chat-with { flex: 1; min-width: 0; display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.chat-with > span:first-child { font-size: 13px; color: var(--acta-text-secondary); }
.agent-names { display: inline-grid; min-width: 64px; }
.agent-names span {
  grid-area: 1 / 1; font-family: var(--acta-font-serif); font-size: 19px; color: var(--acta-ink-deep);
  opacity: 0; animation: af-agent-name 10.4s linear infinite;
}
.log-tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 500;
  letter-spacing: 1.2px; text-transform: uppercase; color: var(--acta-accent); white-space: nowrap;
}
.log-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--acta-accent); }

/* The four agents take turns, 2.6 s each: a chip lights and the name swaps. */
.agent:nth-child(2), .agent-names span:nth-child(2) { animation-delay: 2.6s; }
.agent:nth-child(3), .agent-names span:nth-child(3) { animation-delay: 5.2s; }
.agent:nth-child(4), .agent-names span:nth-child(4) { animation-delay: 7.8s; }
@keyframes af-agent {
  0%, 22.1%, 100% { background: var(--acta-ink); border-color: var(--acta-ink); color: var(--acta-on-ink); }
  25%, 97.1% { background: var(--acta-surface); border-color: var(--acta-stroke); color: var(--acta-text-primary); }
}
@keyframes af-agent-dot { 0%, 22.1%, 100% { background: var(--acta-accent); } 25%, 97.1% { background: var(--acta-stroke); } }
@keyframes af-agent-name {
  0% { opacity: 0; transform: translateY(6px); }
  2.5% { opacity: 1; transform: none; }
  22.3% { opacity: 1; transform: none; }
  25% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 0; transform: translateY(6px); }
}

.thread { display: flex; flex-direction: column; gap: 16px; padding: 22px 18px; }
.msg-me {
  align-self: flex-end; max-width: 82%; padding: 12px 16px; border-radius: 18px 18px 4px 18px;
  background: var(--acta-ink); color: var(--acta-on-ink); font-size: 15px; line-height: 1.5; text-wrap: pretty;
}
.msg-ai {
  align-self: flex-start; max-width: 92%; display: flex; flex-direction: column; gap: 12px;
  padding: 14px 16px; border-radius: 18px 18px 18px 4px; background: var(--acta-surface-high);
  border: 1px solid var(--acta-stroke); font-size: 15px; line-height: 1.5; color: var(--acta-text-primary);
  text-wrap: pretty;
}
.msg-ai p { margin: 0; }
.stats { display: flex; gap: 10px; flex-wrap: wrap; }
.stat {
  flex: 1 1 150px; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px;
  border-radius: 10px; background: var(--acta-surface); border: 1px solid var(--acta-stroke);
}
.stat-value { font-family: var(--acta-font-serif); font-size: 22px; color: var(--acta-ink-deep); }
.stat-value small { font-size: 13px; color: var(--acta-text-secondary); }
.composer {
  display: flex; align-items: center; gap: 10px; margin: 0 18px 18px; padding: 6px 6px 6px 16px;
  border-radius: 14px; background: var(--acta-surface); border: 1px solid var(--acta-stroke);
}
.composer span:first-child { flex: 1; min-width: 0; font-size: 15px; color: var(--acta-text-tertiary); }
.composer span:last-child {
  display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 10px; background: var(--acta-ink); color: var(--acta-on-ink); font-size: 16px; line-height: 1;
}

/* ---- Questions ---- */
.home-faq { border-top: 1px solid var(--acta-stroke); }
.home-faq .wrap { padding-block: clamp(48px, 5.6cqi, 80px); max-width: calc(820px + 2 * var(--gutter)); margin-inline: 0; }
.home-faq h2 {
  margin: 0 0 8px; font-family: var(--acta-font-serif); font-weight: 500;
  font-size: clamp(28px, 2.6cqi, 40px); letter-spacing: -.015em; color: var(--acta-ink-deep);
}
.home-faq details { border-bottom: 1px solid var(--acta-stroke); }
.home-faq details:first-of-type { border-top: 1px solid var(--acta-stroke); margin-top: 20px; }
.home-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 2px; cursor: pointer; list-style: none;
  font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--acta-ink-deep);
  -webkit-tap-highlight-color: transparent;
}
.home-faq summary::-webkit-details-marker { display: none; }
.home-faq summary::after {
  content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px;
  border-right: 1.5px solid var(--acta-text-secondary); border-bottom: 1.5px solid var(--acta-text-secondary);
  transform: translateY(-2px) rotate(45deg); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.home-faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.home-faq summary:hover { color: #fff; }
.home-faq summary:focus-visible { outline: 2px solid var(--acta-accent); outline-offset: 2px; border-radius: 6px; }
.home-faq p { margin: 0; padding: 0 2px 20px; max-width: 680px; font-size: 16px; line-height: 1.6; color: var(--acta-text-secondary); }
/* Smooth open/close where ::details-content exists (Chromium); other browsers just toggle. */
@supports selector(::details-content) {
  .home-faq details { interpolate-size: allow-keywords; }
  .home-faq details::details-content {
    block-size: 0; overflow: hidden;
    transition: block-size .3s ease, content-visibility .3s allow-discrete;
  }
  .home-faq details[open]::details-content { block-size: auto; }
}

/* ---- Footer ---- */
.foot {
  padding-top: 28px; padding-bottom: 32px; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 12px 24px; border-top: 1px solid var(--acta-stroke);
}
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { display: block; height: 56px; width: auto; }
.foot-brand span {
  font-family: "Collapse", "Stardos Stencil", var(--acta-font-serif); font-weight: 400; font-size: 22px; line-height: 1;
  letter-spacing: .01em; text-transform: uppercase; color: #CFCCC6;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { font-size: 13px; color: var(--acta-text-secondary); text-decoration: none; }
.foot-links a:hover { color: var(--acta-ink); }
.foot-copy { margin: 0; font-size: 13px; color: var(--acta-text-secondary); }

@media (prefers-reduced-motion: reduce) {
  .home-faq summary::after, .home-faq details::details-content { transition: none; }
  .phone-screen img, .agent, .agent::before, .agent-names span { animation: none; }
  .phone-screen img:nth-child(1), .agent-names span:nth-child(1) { opacity: 1; }
  .agent:nth-child(1) { background: var(--acta-ink); border-color: var(--acta-ink); color: var(--acta-on-ink); }
  .agent:nth-child(1)::before { background: var(--acta-accent); }
}
