/* TheGoodSales homepage styling on top of the prototype layout. */
.motion-skip {
  position: fixed;
  inset: 10px auto auto 10px;
  z-index: 45;
  padding: 10px 14px;
  transform: translateY(-150%);
  background: var(--accent);
  color: var(--ink);
}

.motion-skip:focus { transform: none; }

.motion-home > .nav {
  position: relative;
  inset-block-start: auto;
}

.motion-home main :where([id]) { scroll-margin-block-start: 1rem; }

.nav .language-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-light);
  font-size: 11px;
}

.nav .language-switch [aria-current="page"] { color: var(--accent); }

.nav-end { gap: clamp(10px, 1.4vw, 20px); }

.nav-utility, .nav-related {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-related {
  gap: 9px;
  color: #d4dfed;
  font-size: .75rem;
  font-weight: 700;
}

.nav-related a {
  display: inline-flex;
  min-block-size: 24px;
  align-items: center;
  white-space: nowrap;
}

.nav-related a:is(:hover, [aria-current="page"]) { color: var(--accent); }
.nav-related [aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

.nav .nav-cta {
  display: inline-flex;
  min-block-size: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px clamp(12px, 1.4vw, 20px);
  border: 1px solid #d2e6ff80;
  border-radius: 999px;
  background: linear-gradient(120deg, #b4d8ff, #82adf5);
  box-shadow: 0 3px 18px #72a9ff25, inset 0 1px #fff5;
  color: var(--ink);
  font-size: clamp(.75rem, 1vw, .875rem);
  white-space: nowrap;
}

.nav .nav-cta:is(:hover, :focus-visible) {
  background: linear-gradient(120deg, #d2e8ff, #9bc2ff);
  border-color: #d2e6ff;
}

.hero {
  background: radial-gradient(ellipse at 77% 16%, #152540 0%, transparent 55%), var(--ink);
}

.motion-home .engine-stage {
  --engine-edge-fade: radial-gradient(ellipse closest-side, #000 42%, #000a 72%, transparent 100%);
  border-color: transparent;
  background:
    radial-gradient(ellipse 49% 48% at 51% 50%, #5e9ff01d, transparent),
    radial-gradient(ellipse 31% 30% at 68% 32%, #89c3ff12, transparent);
  box-shadow: none;
}

.motion-home .engine-stage::before,
.motion-home .engine-stage::after,
.motion-home .engine-stage .engine-grid {
  mask-image: var(--engine-edge-fade);
}

.motion-home .engine-stage .engine-grid { opacity: .38; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -23%;
  width: 80%;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 37%, #a6d3ff23, transparent 65%);
  opacity: 0;
}

.hero h1 {
  letter-spacing: -.08em;
  line-height: .92;
}

.hero-ai-identity {
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  color: #dceaff;
  font-size: clamp(1.125rem, 1rem + .65vw, 1.625rem);
  letter-spacing: -.025em;
  line-height: 1.25;
}

.hero-ai-identity + .hero-lede { margin-block-start: clamp(.625rem, 1.3vw, 1rem); }

@supports (background-clip: text) {
  .hero .accent-word {
    background: linear-gradient(112deg, #91bafa, #bedfff 55%, #83adf4);
    background-clip: text;
    color: transparent;
  }
}

.button-primary {
  background: linear-gradient(115deg, #a9ccff, #82b1fa);
  box-shadow: 0 4px 18px #214d7c26, inset 0 1px #ffffff66;
}

.button-primary:is(:hover, :focus-visible) {
  background: linear-gradient(115deg, #c9e3ff, #a0c7ff);
}

.hero-actions { gap: 12px; }

.hero-actions .examples-link {
  background: #9dc9ff12;
  border-color: #b3d4ff67;
  color: #dfedff;
  font-size: .8125rem;
}

.hero-actions .examples-link:is(:hover, :focus-visible) {
  background: #9dc9ff25;
  border-color: #b3d4ff;
  color: #f0f7ff;
}

.hero-proofline { margin-top: clamp(36px, 6vw, 80px); }

@media (prefers-reduced-motion: no-preference) {
  .hero::after { animation: hero-light-pass 4.8s ease-in-out; }
}

@keyframes hero-light-pass {
  0% { opacity: 0; transform: translateX(-26%); }
  46% { opacity: 1; }
  100% { opacity: 0; transform: translateX(127%); }
}

@media (forced-colors: active) {
  .hero .accent-word { color: CanvasText; }
}

.motion-logos {
  overflow: hidden;
  padding: 0 clamp(24px, 6vw, 96px);
  margin-inline: auto;
  max-width: 1440px;
}

.motion-logos .reference-track { display: flex; }

.motion-logos .reference-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  width: 100%;
  flex: none;
}

.motion-logos .reference-group[aria-hidden="true"] { display: none; }

.motion-logos .reference-logo {
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 8px 12px;
}

.motion-logos img {
  width: auto;
  max-width: min(95px, 100%);
  height: auto;
  max-height: 30px;
  object-fit: contain;
  filter: grayscale(1);
  mix-blend-mode: multiply;
}

.motion-logos img[src$=".jpg"] { filter: grayscale(1) contrast(1.3); }

.motion-logos .reference-mckinsey {
  color: #111d2f;
  font: 600 clamp(.82rem, 1.05vw, .96rem)/1.1 Georgia, serif;
  letter-spacing: -.025em;
  text-align: center;
}

@media (prefers-reduced-motion: no-preference) {
  .motion-logos .reference-track {
    width: max-content;
    animation: motion-reference-loop 35s linear infinite;
  }

  .motion-logos .reference-group {
    display: grid;
    width: clamp(60rem, 100vw, 90rem);
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .motion-logos .reference-group[aria-hidden="true"] { display: grid; }

  .motion-logos:is(:hover, :focus-within) .reference-track {
    animation-play-state: paused;
  }
}

@keyframes motion-reference-loop {
  to { transform: translateX(-50%); }
}

.manifesto-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.model-section .model-grid { grid-template-columns: minmax(0, 1fr); }
.section-kicker.brand-case { text-transform: none; }

.motion-capability-points {
  padding-inline-start: 1rem;
  color: inherit;
  font-size: .875rem;
}

@media (min-width: 591px) {
  .model-section .model-card {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    grid-template-areas:
      "number label"
      "graphic title"
      "graphic description"
      "graphic points";
    column-gap: clamp(20px, 4vw, 60px);
    align-items: start;
    min-block-size: 0;
  }

  .model-card-top { grid-area: number; }
  .model-card .mini-model { grid-area: graphic; margin-block: 8px 0; }
  .model-card .model-label { grid-area: label; }
  .model-card h3 { grid-area: title; }
  .model-card p { grid-area: description; max-inline-size: 42ch; }
  .motion-capability-points { grid-area: points; margin-block: 14px 6px; }
}

@media (min-width: 961px) {
  .model-section .model-card {
    grid-template-columns: max-content minmax(0, 1.2fr) minmax(0, 1fr);
    grid-template-areas:
      "number label points"
      "graphic title points"
      "graphic description points";
  }

  .motion-capability-points { align-self: center; margin-block: 0; }
}

.fourth-capability {
  grid-template-columns: auto minmax(12rem, .85fr) minmax(0, 1.65fr) auto;
  gap: clamp(16px, 3vw, 42px);
  padding: clamp(24px, 4vw, 50px);
  border-inline-start: 3px solid #689adc;
  background: linear-gradient(120deg, #e3eeff, #f7f9fc 76%);
}

.fourth-capability strong {
  font-size: clamp(1.8rem, 3.3vw, 2.9rem);
  letter-spacing: -.055em;
  line-height: 1.04;
}

.fourth-capability p {
  color: #35485d;
  font-size: clamp(.9375rem, 1.2vw, 1.0625rem);
  line-height: 1.55;
}

.case-section {
  --case-inset: clamp(24px, 7vw, 110px);
  --case-rule: var(--line-light);
  grid-template-areas: "copy diagram" "implementation implementation";
}

.case-copy {
  grid-area: copy;
  padding-inline: var(--case-inset);
}

.flow-panel {
  grid-area: diagram;
  container: example-flow / inline-size;
}

.motion-pilot-choices {
  gap: 8px;
  margin-bottom: 26px;
}

.motion-pilot-choices button {
  min-block-size: 44px;
  border: 1px solid #b3d4ff59;
  border-radius: 999px;
  padding: 8px 13px;
  background: #9dc9ff08;
  color: var(--white);
  font: inherit;
  font-size: .8125rem;
  cursor: pointer;
}

.motion-pilot-choices button:hover { border-color: #b3d4ff; }

.motion-pilot-choices button[aria-pressed="true"] {
  color: var(--ink);
  background: linear-gradient(120deg, #b4d8ff, #86b3fb);
  border-color: #b4d8ff;
  font-weight: 700;
}

.motion-pilot-choices button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.motion-logos:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.motion-pilot-outcome {
  grid-area: implementation;
  margin-block: clamp(24px, 4vw, 56px) clamp(40px, 7vw, 100px);
  margin-inline: var(--case-inset);
  border-block: 1px solid var(--case-rule);
  color: var(--muted-light);
  font-size: .9375rem;
}

.motion-pilot-outcome summary {
  padding-block: 1rem;
  color: var(--white);
  font-size: clamp(1rem, .92rem + .4vw, 1.25rem);
  font-weight: 700;
  cursor: pointer;
}

.motion-pilot-outcome summary::marker { color: var(--accent); }
.motion-pilot-outcome summary:hover { background: #ffffff08; }
.motion-pilot-outcome summary:focus-visible {
  outline: 2px solid transparent;
  outline-offset: -2px;
  box-shadow: inset 0 0 0 2px var(--accent);
}

@media (forced-colors: active) {
  .motion-pilot-outcome summary:focus-visible { outline-color: Highlight; }
}

.motion-pilot-outcome :is(summary, .pilot-content) {
  padding-inline: clamp(.75rem, 2vw, 1.5rem);
}

.pilot-content {
  border-block-start: 1px solid var(--case-rule);
}

.pilot-content > p {
  max-inline-size: 72ch;
  margin-block: 1.25rem;
  line-height: 1.6;
}

.pilot-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 4vw, 58px);
  padding-block: 18px clamp(20px, 3vw, 36px);
  border-block-start: 1px solid var(--case-rule);
  line-height: 1.6;
}

.pilot-details :is(.before-after span, .card-label, .pilot-measure span) {
  color: #edf4ff;
  font-weight: 700;
}

.pilot-details :is(p, ul) { margin-block: .4em 1em; }
.pilot-details :is(.before-after > div:last-child, .pilot-measure) p { margin-bottom: 0; }
.pilot-details ul { padding-inline-start: 1.25em; }
.pilot-details li::marker { color: #a9ceff; }

.motion-form-privacy { text-decoration: underline; }

.motion-footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.motion-footer-links a:hover { color: var(--accent); }

@media (min-width: 1121px) {
  .hero h1 { font-size: clamp(60px, 6.4vw, 112px); }
}

@media (min-width: 821px) and (max-width: 1120px) {
  .nav { column-gap: 8px; }
  .nav-links { gap: clamp(11px, 1.6vw, 18px); }
  .hero h1 { font-size: clamp(55px, 7.65vw, 96px); }
  .case-section { --case-inset: clamp(24px, 5vw, 56px); }
}

@media (max-width: 1050px) {
  .nav-utility { display: grid; justify-items: end; gap: 0; }
}

@media (max-width: 940px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
}

@container example-flow (max-width: 520px) {
  .flow-map {
    inset: 75px clamp(24px, 5vw, 60px);
    transform: none;
  }

  .flow-node {
    width: min(44%, 145px);
    right: auto;
    bottom: auto;
    translate: -50% -50%;
  }

  .flow-node-one { top: 27%; left: 22%; }
  .flow-node-two { top: 27%; left: 78%; }
  .flow-node-three { top: 73%; left: 78%; }
  .flow-node-four { top: 73%; left: 22%; }

  .flow-line { transform: none; }
  .flow-line-one { top: 27%; left: 22%; width: 56%; }
  .flow-line-two { top: 27%; left: 78%; width: 1px; height: 46%; }
  .flow-line-three { top: 73%; left: 22%; width: 56%; }
  .flow-line-two::before { background: linear-gradient(var(--cyan), #72c8f60d); }
  .flow-line-two i { display: none; }
  .flow-line-three::before { background: linear-gradient(90deg, #72c8f60d, var(--cyan)); }
  .flow-line-three i { animation-direction: reverse; }
}

@media (max-width: 820px) {
  .case-section { grid-template-areas: "copy" "diagram" "implementation"; }
  .case-copy { padding-bottom: 28px; }
}

@media (max-width: 590px) {
  .nav { padding-inline: clamp(12px, 4vw, 24px); }
  .nav-end { gap: 9px; }
  .nav .language-switch { gap: 5px; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { text-align: center; }
  .fourth-capability { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; }
  .fourth-capability p { grid-column: 2 / -1; margin: 0; }
  .pilot-details { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .motion-footer-links { gap: 10px; }
}

@media (max-width: 375px) {
  .nav .nav-cta { padding-inline: 9px; }
  .nav-related, .nav-end { gap: 6px; }
}
