/* Holisty AI: a conversation becoming a timer. */
.ai-page {
  --paper: #0a1628;
  --sky: #11233c;
  --ink: #f1f6ff;
  --muted: #b2c5df;
}
.ai-page .header {
  height: 100px;
  border-bottom: 1px solid #a3caff14;
}
.ai-page .ai-hero {
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  min-height: 620px;
  padding-block: 64px 78px;
}
.ai-page .ai-hero h1 {
  max-width: 650px;
  font-size: clamp(46px, 4.5vw, 68px);
  line-height: 1.09;
  letter-spacing: -0.055em;
}
.ai-page .ai-hero .lead {
  max-width: 465px;
  margin-top: 26px;
  font-size: 16px;
  line-height: 1.85;
}
.ai-page .ai-primary {
  background: #83bdff;
  color: #0a1628;
  border: 0;
  gap: 18px;
}
.ai-page .ai-primary:hover {
  background: #acd3ff;
}
.ai-hero-copy > .button {
  margin-top: 30px;
}
.ai-demo-link {
  display: inline-block;
  margin: 20px 0 0 20px;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.ai-compatible {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 12px;
}
.ai-mini-logos {
  display: flex;
  gap: 8px;
}
.ai-mini-logos img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  padding: 5px;
  border-radius: 7px;
  background: white;
}
.ai-demo {
  position: relative;
  min-height: 550px;
  margin: 0;
  isolation: isolate;
}
.ai-demo::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 5% 0 0;
  background: radial-gradient(ellipse, #28609b38, transparent 68%);
}
.ai-demo-message {
  position: relative;
  z-index: 2;
  width: 240px;
  padding: 18px 22px;
  border-radius: 20px 20px 20px 5px;
  background: #d9eaff;
  color: #172b43;
  box-shadow: 0 8px 35px #02091225;
}
.ai-demo-message > span {
  font-size: 11px;
  color: #415975;
}
.ai-demo-message p {
  margin-top: 6px;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
}
.ai-demo-workout {
  position: relative;
  z-index: 2;
  width: 250px;
  margin-top: 18px;
  padding: 20px;
  background: #142840;
  border: 1px solid #37516d;
  border-radius: 5px 18px 18px 18px;
  box-shadow: 0 16px 35px #0002;
}
.ai-demo-caption {
  color: var(--muted);
  font-size: 11px;
}
.ai-demo-workout > div {
  display: grid;
  gap: 8px;
  margin-block: 14px 20px;
}
.ai-demo-workout strong {
  font-weight: 600;
  font-size: 16px;
}
.ai-demo-workout > div > span {
  font-size: 11px;
  color: var(--muted);
}
.ai-demo-timer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #abd2ff;
  font-size: 13px;
  padding-top: 14px;
  border-top: 1px solid #37516d;
}
.ai-timer-preview {
  position: absolute;
  right: 0;
  top: 61px;
  width: 258px;
  padding: 22px;
  text-align: center;
  border-radius: 32px;
  background: #0d1c32;
  border: 1px solid #4a698d;
  box-shadow: 12px 25px 65px #0005;
  transform: rotate(4deg);
}
.ai-timer-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
}
.ai-timer-heading img {
  width: 76px;
  height: auto;
}
.ai-timer-heading > span {
  font-size: 11px;
  color: var(--muted);
}
.ai-timer-preview > p {
  font-size: 14px;
}
.ai-timer-dial {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  margin-block: 16px;
}
.ai-timer-dial svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  stroke-width: 4;
}
.ai-dial-track {
  stroke: #263c57;
}
.ai-dial-progress {
  stroke: #83bdff;
  stroke-dasharray: 678.6;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}
.ai-timer-dial > div {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.ai-timer-dial span {
  font-size: 12px;
  color: var(--muted);
}
.ai-timer-dial strong {
  font-size: 43px;
  font-weight: 500;
  letter-spacing: -2px;
  font-variant-numeric: tabular-nums;
}
.ai-demo-play {
  min-height: 42px;
  width: 100%;
  border: 1px solid #5d8bbf;
  background: #1d3e64;
  border-radius: 24px;
  color: #eaf3ff;
  font-size: 12px;
}
.ai-demo-play:hover {
  background: #2a527f;
}
.ai-demo-next {
  display: block;
  margin-top: 14px;
  font-size: 10px;
  color: var(--muted);
}
.ai-demo figcaption {
  position: absolute;
  bottom: 0;
  right: 0;
  color: var(--muted);
  font-size: 11px;
}
.ai-demo-message {
  animation: ai-arrive 0.65s ease-out both;
}
.ai-demo-workout {
  animation: ai-arrive 0.65s 0.18s ease-out both;
}
.ai-timer-preview {
  animation: ai-timer-arrive 0.85s 0.4s ease-out both;
}
@keyframes ai-arrive {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes ai-timer-arrive {
  from {
    opacity: 0;
    transform: translate(14px, 14px) rotate(0);
  }
  to {
    opacity: 1;
    transform: translate(0, 0) rotate(4deg);
  }
}
.ai-page .ai-providers {
  padding-block: 44px 28px;
  border-top: 1px solid var(--line);
}
.ai-page .ai-providers .section-heading {
  align-items: center;
  gap: 32px;
}
.ai-page .ai-providers h2,
.ai-page .ai-builder h2 {
  font-size: clamp(30px, 3vw, 40px);
}
.ai-page .ai-providers .section-heading p {
  max-width: 350px;
  font-size: 13px;
}
.ai-routine-picker {
  min-width: 0;
  margin: 30px 0 0;
  padding: 22px 24px 24px;
  background: #11233c;
  border: 1px solid #3b5576;
  border-radius: 18px;
}
.ai-routine-picker legend {
  padding: 0 8px;
  color: var(--muted);
  font-size: 12px;
}
.ai-routine-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.ai-routine-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 94px;
  padding: 19px 16px;
  background: #0d1c32;
  border: 1px solid #385270;
  border-radius: 12px;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease;
}
.ai-routine-option:hover {
  border-color: #83bdff;
}
.ai-routine-option:has(input:checked) {
  background: #234366;
  border-color: #83bdff;
}
.ai-routine-option:has(input:focus-visible) {
  outline: 3px solid #83bdff;
  outline-offset: 4px;
}
.ai-routine-option input {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin: 3px 0 0;
  accent-color: #83bdff;
  cursor: pointer;
}
.ai-routine-option strong {
  display: block;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.5;
}
.ai-routine-option small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.ai-paste-notice {
  margin-top: 20px;
  padding: 16px 18px;
  border-left: 3px solid #83bdff;
  border-radius: 0 10px 10px 0;
  background: #234366;
}
.ai-paste-notice strong {
  font-size: 14px;
}
.ai-paste-notice p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.8;
  color: #d4e5fa;
}
.ai-handoff[data-provider='gemini'] .ai-handoff-steps,
.ai-handoff[data-provider='gemini'] .ai-handoff-footnote {
  display: none;
}
.ai-handoff[data-provider='gemini'] .ai-prompt-details {
  margin-top: 24px;
}
.ai-handoff[data-provider='gemini'] .ai-copy {
  background: #83bdff;
  color: #0a1628;
  border-color: #83bdff;
}
.ai-handoff[data-provider='gemini'] [data-open-provider] {
  background: transparent;
  color: var(--ink);
  border: 1px solid #5d7b9e;
}
@media (max-width: 1100px) {
  .ai-routine-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.ai-choose-label {
  margin-top: 28px;
  font-size: 13px;
  color: var(--muted);
}
.ai-page .provider-grid {
  margin-top: 14px;
  gap: 12px;
}
.ai-page .provider-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 14px;
  row-gap: 5px;
  align-content: center;
  min-height: 106px;
  padding: 20px;
  border-radius: 14px;
  background: #102138;
}
.ai-page .provider-card:hover {
  transform: none;
  background: #1a3453;
  border-color: #83bdff;
}
.provider-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  grid-row: span 2;
  padding: 7px;
  background: #fff;
  border-radius: 10px;
}
.provider-plus {
  display: grid;
  place-items: center;
  padding: 0;
  background: #233b59;
  color: #c9dfff;
  font-size: 27px;
  font-weight: 300;
}
.ai-page .provider-card strong {
  margin: 0;
  padding-right: 10px;
  font-size: 15px;
}
.ai-page .provider-card small {
  font-size: 10px;
}
.provider-arrow {
  position: absolute;
  right: 13px;
  top: 12px;
  color: var(--muted);
  font-size: 14px;
}
.ai-page .ai-status {
  min-height: 20px;
  margin-top: 12px;
}
.ai-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding-block: 20px 70px;
}
.ai-steps > div {
  position: relative;
  padding-left: 42px;
}
.ai-steps > div > span {
  position: absolute;
  left: 0;
  top: 2px;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid #42648b;
  border-radius: 50%;
  color: #a9cfff;
  font-size: 12px;
}
.ai-steps h3 {
  font-size: 16px;
  font-weight: 600;
}
.ai-steps p {
  margin-top: 10px;
  max-width: 260px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.ai-page .ai-builder {
  padding-block: 58px 70px;
  gap: 70px;
  align-items: center;
}
.ai-page .ai-builder > div > p {
  max-width: 340px;
  font-size: 14px;
  line-height: 1.8;
}
.ai-page .ai-docs {
  padding-bottom: 65px;
}
.ai-page .ai-docs summary {
  font-size: 14px;
}
.ai-page .builder-card .button {
  background: #83bdff;
  color: #0a1628;
}
.ai-page .ai-trademark-note {
  max-width: 460px;
  margin-top: 18px;
  font-size: 10px;
  line-height: 1.7;
}
.ai-handoff {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  padding: 36px;
  border: 1px solid #4a698d;
  border-radius: 24px;
  background: #11233c;
  color: var(--ink);
  box-shadow: 0 30px 100px #0006;
}
.ai-handoff::backdrop {
  background: #030b18cc;
  backdrop-filter: blur(7px);
}
body:has(.ai-handoff[open]) {
  overflow: hidden;
}
.ai-handoff[open] {
  animation: ai-arrive 0.2s ease-out;
}
.ai-dialog-close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  font-size: 26px;
  color: var(--muted);
}
.ai-handoff-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 12px;
}
.ai-handoff-brand img {
  object-fit: contain;
  background: white;
  border-radius: 10px;
  padding: 8px;
}
.ai-handoff h2 {
  font-size: 30px;
  letter-spacing: -1px;
}
.ai-handoff h2:focus {
  outline: none;
}
#handoff-description {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.ai-handoff-steps {
  padding-left: 22px;
  margin-block: 24px;
  font-size: 14px;
  line-height: 1.8;
}
.ai-handoff-steps li {
  padding-left: 6px;
  margin-bottom: 10px;
}
.ai-handoff-steps li::marker {
  color: #83bdff;
}
.ai-prompt-details {
  border-block: 1px solid #385270;
  padding-block: 16px;
}
.ai-prompt-details summary {
  font-size: 12px;
  cursor: pointer;
}
.ai-prompt-label {
  display: block;
  margin-top: 16px;
  font-size: 11px;
  color: var(--muted);
}
.ai-prompt-details textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  resize: vertical;
  border: 1px solid #385270;
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  font:
    12px/1.7 Manrope,
    Arial,
    sans-serif;
}
.ai-handoff-status {
  min-height: 44px;
  margin-block: 18px 8px;
  font-size: 12px;
  line-height: 1.65;
  color: #badbff;
}
.ai-handoff-actions {
  display: flex;
  gap: 12px;
}
.ai-handoff-actions .button {
  flex: 1;
  gap: 8px;
  padding: 15px 12px;
  font-size: 13px;
  border-radius: 12px;
}
.ai-handoff-actions .ai-copy {
  border: 1px solid #5d7b9e;
  background: transparent;
  color: var(--ink);
}
.ai-handoff-actions [hidden] {
  display: none;
}
.ai-handoff-footnote {
  margin-top: 16px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}
@media (min-width: 701px) and (max-width: 1100px) {
  .ai-page .ai-hero {
    gap: 45px;
    grid-template-columns: 1fr;
  }
  .ai-demo {
    width: 520px;
    justify-self: center;
  }
  .ai-demo-message {
    width: 205px;
  }
  .ai-demo-workout {
    width: 205px;
  }
  .ai-timer-preview {
    width: 222px;
    top: 102px;
  }
  .ai-demo-workout > div > span {
    max-width: 125px;
    line-height: 1.8;
  }
  .ai-page .provider-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .ai-page .wrap {
    width: calc(100% - 40px);
  }
  .ai-page .header {
    height: 82px;
  }
  .ai-page .header .wordmark {
    width: 120px;
  }
  .ai-page .header .button {
    padding: 10px 14px;
    font-size: 11px;
  }
  .ai-page .ai-hero {
    grid-template-columns: 1fr;
    padding-block: 44px 40px;
    gap: 42px;
  }
  .ai-page .ai-hero h1 {
    max-width: 480px;
    font-size: clamp(40px, 9vw, 57px);
  }
  .ai-page .ai-hero .lead {
    font-size: 14px;
    margin-top: 20px;
  }
  .ai-demo-link {
    margin-left: 15px;
    font-size: 12px;
  }
  .ai-hero-copy > .button {
    padding: 16px 18px;
    font-size: 13px;
  }
  .ai-compatible {
    margin-top: 24px;
  }
  .ai-demo {
    width: min(100%, 440px);
    justify-self: center;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 14px;
  }
  .ai-demo-message {
    width: auto;
    padding: 16px;
  }
  .ai-demo-message p {
    font-size: 13px;
  }
  .ai-demo-workout {
    width: auto;
    padding: 16px;
    margin-top: 24px;
  }
  .ai-demo-workout strong {
    font-size: 14px;
  }
  .ai-demo-workout > div > span {
    max-width: 125px;
    line-height: 1.8;
  }
  .ai-timer-preview {
    position: relative;
    grid-column: 1 / -1;
    justify-self: center;
    width: 240px;
    top: auto;
    padding: 18px;
    right: auto;
    transform: none;
    animation-name: ai-arrive;
  }
  .ai-timer-dial strong {
    font-size: 36px;
  }
  .ai-demo figcaption {
    position: static;
    grid-column: 1 / -1;
    text-align: center;
    font-size: 10px;
  }
  .ai-page .ai-providers {
    padding-top: 32px;
  }
  .ai-page .ai-providers .section-heading {
    display: block;
  }
  .ai-page .ai-providers .section-heading p {
    margin-top: 14px;
  }
  .ai-routine-picker {
    padding: 14px;
    margin-top: 24px;
  }
  .ai-routine-grid {
    gap: 10px;
  }
  .ai-routine-option {
    padding: 14px 12px;
    gap: 8px;
  }
  .ai-routine-option strong {
    font-size: 13px;
  }
  .ai-routine-option small {
    font-size: 10px;
  }
  .ai-page .provider-card {
    grid-template-columns: 1fr;
    padding: 16px;
    min-height: 146px;
    gap: 8px;
  }
  .provider-logo {
    grid-row: auto;
    margin-bottom: 3px;
  }
  .ai-page .provider-card small {
    font-size: 10px;
  }
  .ai-steps {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 8px 42px;
  }
  .ai-steps p {
    max-width: none;
    margin-top: 5px;
  }
  .ai-page .ai-builder {
    padding-block: 40px;
    gap: 24px;
  }
  .ai-page .builder-fields {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .ai-page .builder-card {
    padding: 20px;
  }
  .ai-handoff {
    padding: 28px 22px;
  }
  .ai-handoff h2 {
    font-size: 26px;
  }
  .ai-handoff-brand {
    padding-right: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ai-page {
    scroll-behavior: auto;
  }
  .ai-page *,
  .ai-page *::before {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
