/* Solutions: who Olmi is for, one clinic day, every role, every kind of clinic and how to start.
   Calm layout first; the pinned day only runs with motion on a screen at least 900 × 700. */

.sl-hero, .sl-day, .sl-roles, .sl-clinics, .sl-start, .sl-faq { width: calc(100% - 100px); max-width: 1400px; margin-inline: auto; }
[id="day"], [id="roles"], [id="owners"], [id="providers"], [id="front-desk"], [id="clinics"], [id="getting-started"], [id="questions"] { scroll-margin-top: 96px; }

.sl-overline { display: inline-flex; align-items: center; gap: 11px; margin: 0; font: 500 11px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); }
.sl-overline::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--olive-500); box-shadow: 0 0 0 4px var(--olive-100); }
.sl-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-areas: "over over" "title lead"; gap: 22px 72px; align-items: end; }
.sl-head .sl-overline { grid-area: over; }
.sl-head h2 { grid-area: title; margin: 0; font-size: clamp(36px, 4.1vw, 60px); line-height: 1.05; letter-spacing: -.057em; font-weight: 400; color: var(--text-strong); }
.sl-head > p:not(.sl-overline) { grid-area: lead; max-width: 480px; margin: 0 0 6px; font-size: 17px; line-height: 1.6; color: var(--text-muted); }
.sl-head-stack { grid-template-columns: 1fr; grid-template-areas: "over" "title" "lead"; }

/* ---------------------------------------------------------------- hero */

.sl-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; padding: 36px 0 30px; }
.sl-hero h1 { margin: 22px 0 0; font-size: clamp(46px, 5.4vw, 84px); line-height: 1; letter-spacing: -.062em; font-weight: 400; color: var(--text-strong); }
.sl-lead { max-width: 520px; margin: 26px 0 30px; font-size: 18px; line-height: 1.6; color: var(--text-muted); }
.sl-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.sl-hero-actions .button { min-height: 48px; padding-inline: 20px; font-size: 13px; border-radius: 12px; }
.sl-text-link { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 3px; border-bottom: 1px solid var(--line-strong); font-size: 14px; color: var(--text-strong); transition: gap 300ms var(--ease-glide), border-color 200ms ease; }
.sl-text-link:hover { gap: 12px; border-color: var(--text-strong); }
.sl-text-link .icon { width: 15px; height: 15px; }
.sl-hero-types { display: flex; flex-wrap: wrap; gap: 8px; margin: 42px 0 0; padding: 0; list-style: none; }
.sl-hero-types li { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: #ffffff9e; font-size: 12px; color: var(--text-muted); }
.sl-hero-art { position: relative; isolation: isolate; overflow: hidden; height: min(680px, calc(100svh - 150px)); min-height: 460px; margin: 0; border-radius: 30px; background: #e9e4d6; }
.sl-hero-art img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; }
.sl-hero-chips { position: absolute; right: 22px; bottom: 22px; display: grid; justify-items: end; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sl-hero-chips li { display: grid; gap: 4px; max-width: 300px; padding: 12px 16px; border: 1px solid #ffffff99; border-radius: 16px; background: #f8faf3cc; box-shadow: 0 14px 34px #1d261424; backdrop-filter: blur(16px); }
.sl-hero-chips li > span { font: 500 10px/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-subtle); }
.sl-hero-chips strong { font-size: 14px; font-weight: 500; color: var(--text-strong); }

/* ---------------------------------------------------------------- a day with Olmi */

.sl-day { padding: 130px 0 0; }
.sl-day-scene { margin-top: 48px; }
.sl-day-stage { position: relative; display: grid; gap: 8px; padding: 30px clamp(22px, 4vw, 56px); border-radius: 30px; background: #eef1e7; }
.sl-sky { display: none; }
.sl-moments { display: grid; margin: 0; padding: 0; list-style: none; }
.sl-moment { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: 36px; padding: 28px 0; border-top: 1px solid #dde3d3; }
.sl-moment:first-child { border-top: 0; }
.sl-moment-time { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0 0 12px; }
.sl-moment-time time { font-size: clamp(32px, 3.2vw, 50px); line-height: 1; letter-spacing: -.055em; color: var(--text-strong); }
.sl-moment-time span { font: 500 10.5px/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-subtle); }
.sl-moment h3 { margin: 0 0 10px; font-size: clamp(23px, 2.1vw, 31px); line-height: 1.12; letter-spacing: -.04em; font-weight: 500; color: var(--text-strong); }
.sl-moment-copy > p:last-child { max-width: 470px; margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-muted); }
.sl-card { justify-self: center; width: min(430px, 100%); padding: 16px; border: 1px solid #ffffff; border-radius: 20px; background: #fbfcf8; box-shadow: 0 24px 60px #2a37201c, 0 2px 6px #2a372010; }
.sl-card .icon { width: 16px; height: 16px; }
.sl-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: 12.5px; }
.sl-card-head span { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text-strong); }
.sl-card-head .icon { color: var(--olive-600); }
.sl-card-head b { padding: 4px 9px; border-radius: 999px; background: var(--olive-50); font: 500 10px/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--olive-600); }
.sl-card-rows { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sl-card-rows li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 11px; border: 1px solid var(--moss-150); border-radius: 12px; background: #fff; font-size: 13px; }
.sl-card-rows span { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); }
.sl-card-rows strong { font-weight: 500; text-align: right; color: var(--text-strong); }
.sl-card-checks .icon { width: 14px; height: 14px; color: var(--olive-600); stroke-width: 2.2; }
.sl-wait { display: inline-block; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--sand-700); box-shadow: 0 0 0 3px var(--sand-50); }
.sl-card-quote { display: flex; gap: 10px; margin: 0 0 12px; padding: 13px 14px; border-radius: 14px; background: #26331f; font-size: 14px; line-height: 1.5; color: #f1f4ea; }
.sl-card-quote .icon { flex-shrink: 0; margin-top: 2px; color: #c9dc9b; }
.sl-card-hero { margin: 0 0 12px; font-size: 13px; color: var(--text-muted); }
.sl-card-hero strong { display: block; font-size: 36px; font-weight: 400; line-height: 1.05; letter-spacing: -.05em; color: var(--text-strong); }
.sl-card-foot { display: flex; align-items: center; gap: 7px; margin: 12px 2px 0; font-size: 11.5px; color: var(--text-subtle); }
.sl-card-foot .icon { width: 14px; height: 14px; color: var(--olive-600); }
.sl-card-foot-wait { color: var(--sand-700); }

/* The sun travels the day's arc with the scroll: x is linear, y follows the curve's own formula. */
.sl-arc { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sl-arc path { fill: none; stroke: var(--olive-300); stroke-width: 1.4; stroke-dasharray: 3 7; vector-effect: non-scaling-stroke; }
.sl-horizon { position: absolute; right: 0; bottom: 3.333%; left: 0; height: 1px; background: #d4dbc8; }
.sl-tick, .sl-sun { position: absolute; translate: -50% -50%; }
.sl-tick { left: calc(4% + 92% * var(--t)); top: calc(96.667% - 373.333% * var(--t) * (1 - var(--t))); display: grid; justify-items: center; }
.sl-tick i { width: 9px; height: 9px; border: 1.5px solid var(--olive-300); border-radius: 50%; background: #eef1e7; transition: background-color 400ms ease, border-color 400ms ease, scale 400ms var(--ease-bump); }
.sl-tick b { position: absolute; top: 15px; font: 500 10.5px/1 var(--font-mono); white-space: nowrap; color: var(--text-subtle); transition: color 400ms ease; }
.sl-tick.is-on i { border-color: var(--olive-500); background: var(--olive-500); }
.sl-tick.is-on b { color: var(--text-strong); }
/* Each moment begins as the sun reaches its mark: the marks sit mid-step, so the sun runs half a step ahead. */
.sl-sun { --sun: min(1, calc(var(--p) + .0833)); z-index: 2; left: calc(4% + 92% * var(--sun)); top: calc(96.667% - 373.333% * var(--sun) * (1 - var(--sun))); width: 26px; height: 26px; border: 1.5px solid #c9a54b; border-radius: 50%; background: #f6e9c3; box-shadow: 0 0 0 7px #e9d79a4d, 0 0 50px 12px #e7cf8a80; }

@media (min-width: 900px) and (min-height: 700px) {
  .motion-ready .sl-day-scene { height: 560vh; }
  .motion-ready .sl-day-stage { position: sticky; top: calc(var(--pin-top) + 6px); height: calc(100svh - var(--pin-top) - 18px); grid-template-rows: minmax(140px, 30%) minmax(0, 1fr); gap: 0; overflow: hidden; padding-block: 34px 26px; }
  .motion-ready .sl-sky { position: relative; display: block; margin: 0 2% 30px; }
  .motion-ready .sl-moment { grid-area: 1 / 1; padding: 0; border: 0; opacity: 0; translate: 0 16px; filter: blur(4px); pointer-events: none; transition: opacity 520ms var(--ease-glide), translate 650ms var(--ease-glide), filter 520ms ease; }
  .motion-ready .sl-moment.is-current { opacity: 1; translate: 0 0; filter: blur(0); pointer-events: auto; }
  .motion-ready .sl-moment .sl-card { translate: 24px 0; transition: translate 700ms var(--ease-glide); }
  .motion-ready .sl-moment.is-current .sl-card { translate: 0 0; }
}

/* ---------------------------------------------------------------- roles */

.sl-roles { padding: 140px 0 0; }
.sl-role { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 64px; margin-top: 72px; }
.sl-role:nth-of-type(even) .sl-role-art { order: 2; }
.sl-role-art { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 1.25; border-radius: 26px; background: #e9ede0; }
.sl-role-art img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; }
.sl-role-art span { position: absolute; top: 20px; left: 22px; padding: 7px 12px; border-radius: 999px; background: #f8faf3d9; font: 500 10.5px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-strong); backdrop-filter: blur(12px); }
.sl-role-copy h3 { margin: 0 0 16px; font-size: clamp(28px, 2.8vw, 42px); line-height: 1.08; letter-spacing: -.045em; font-weight: 400; color: var(--text-strong); }
.sl-role-copy > p:first-of-type { max-width: 480px; margin: 0 0 22px; font-size: 16.5px; line-height: 1.6; color: var(--text-muted); }
.sl-checks { display: grid; margin: 0 0 28px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.sl-checks li { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--text); }
.sl-checks li::before { content: ''; flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--olive-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23536533' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4L19 6'/%3E%3C/svg%3E") center / 12px no-repeat; }
.sl-role-metric { display: flex; align-items: baseline; gap: 14px; margin: 0; }
.sl-role-metric strong { font-size: clamp(40px, 4vw, 58px); font-weight: 400; line-height: 1; letter-spacing: -.06em; color: var(--text-strong); }
.sl-role-metric > span { max-width: 230px; font-size: 13.5px; line-height: 1.45; color: var(--text-muted); }

/* ---------------------------------------------------------------- clinics */

.sl-clinics { padding: 140px 0 0; }
.sl-clinic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 56px 0 0; padding: 0; list-style: none; }
.sl-clinic { display: flex; flex-direction: column; gap: 12px; min-height: 330px; padding: 26px 24px 24px; border: 1px solid var(--line); border-radius: 22px; background: #fff; transition: transform 400ms var(--ease-glide), box-shadow 300ms ease, border-color 300ms ease; }
.sl-clinic:hover { transform: translateY(-4px); border-color: var(--moss-300); box-shadow: 0 24px 50px #2a372014; }
.sl-clinic-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--olive-50); color: var(--olive-600); }
.sl-clinic-icon .icon { width: 20px; height: 20px; }
.sl-clinic h3 { margin: 10px 0 0; font-size: 22px; font-weight: 500; letter-spacing: -.035em; color: var(--text-strong); }
.sl-clinic > p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text-muted); }
.sl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 0; list-style: none; }
.sl-tags li { padding: 5px 10px; border-radius: 999px; background: var(--moss-75); font-size: 11.5px; color: var(--text-muted); }

/* ---------------------------------------------------------------- getting started */

.sl-start { padding: 140px 0 0; }
.sl-steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 64px 0 0; padding: 0; list-style: none; }
/* The line runs from the first dot to the last and fills as the steps come into view. */
.sl-steps::before, .sl-steps::after { content: ''; position: absolute; top: 22px; left: 23px; height: 2px; border-radius: 2px; }
.sl-steps::before { width: calc(75% + 21px); background: var(--moss-200); }
.sl-steps::after { width: calc((75% + 21px) * var(--p)); background: var(--olive-500); }
.motion-calm .sl-steps::after { width: calc(75% + 21px); }
.sl-steps li { position: relative; display: grid; align-content: start; gap: 10px; }
.sl-step-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; border: 1.5px solid var(--moss-300); border-radius: 50%; background: var(--surface-canvas); font: 500 13px/1 var(--font-mono); color: var(--text-subtle); transition: background-color 400ms ease, border-color 400ms ease, color 400ms ease; }
.sl-steps li.is-on .sl-step-dot { border-color: var(--olive-500); background: var(--olive-500); color: #fff; }
.sl-steps h3 { margin: 12px 0 0; font-size: 20px; font-weight: 500; letter-spacing: -.03em; color: var(--text-strong); }
.sl-steps p { max-width: 290px; margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text-muted); }

/* ---------------------------------------------------------------- questions and closing */

.sl-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: 64px; padding: 140px 0 40px; }
.sl-faq .sl-head { position: sticky; top: calc(var(--pin-top) + 36px); }
.sl-closing { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; min-height: min(640px, 80svh); margin: 60px 12px 0; padding: 72px 24px; border-radius: 30px; text-align: center; color: #f7f9f2; transform-origin: 50% 100%; }
.sl-closing > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.sl-closing::after { content: ''; position: absolute; inset: 0; z-index: -1; background: #18200fad; }
.motion-ready .sl-closing { scale: calc(.92 + .08 * var(--e)); border-radius: calc(56px - 26px * var(--e)); }
.motion-ready .sl-closing > img { scale: calc(1.14 - .14 * var(--e)); }
.sl-closing-copy { display: grid; justify-items: center; }
.sl-closing-mark { width: 52px; height: 52px; margin-bottom: 26px; fill: none; stroke: currentColor; color: #f7f9f2; }
.sl-closing h2 { margin: 0; font-size: clamp(40px, 5.2vw, 76px); line-height: 1.02; letter-spacing: -.055em; font-weight: 400; color: #f8faf3; }
.sl-closing p { margin: 22px 0 30px; font-size: 17px; color: #e6ecdc; }
.sl-closing-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.sl-closing .button { background: #f8faf3; color: #1c2517; }
.sl-closing .button:hover { background: #fff; }
.sl-closing .button-secondary { border-color: #ffffff59; background: #ffffff1f; color: #f8faf3; backdrop-filter: blur(12px); }
.sl-closing .button-secondary:hover { background: #ffffff33; }

/* ---------------------------------------------------------------- smaller screens */

@media (max-width: 1080px) {
  .sl-hero, .sl-day, .sl-roles, .sl-clinics, .sl-start, .sl-faq { width: calc(100% - 64px); }
  .sl-clinic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sl-clinic { min-height: 0; }
  .sl-role { gap: 40px; }
}

@media (max-width: 760px) {
  .sl-hero, .sl-day, .sl-roles, .sl-clinics, .sl-start, .sl-faq { width: calc(100% - 40px); }
  .sl-head { grid-template-columns: 1fr; grid-template-areas: "over" "title" "lead"; }
  .sl-hero { grid-template-columns: 1fr; gap: 32px; padding-top: 24px; }
  .sl-hero h1 { font-size: 46px; }
  .sl-lead { font-size: 16px; }
  .sl-hero-art { height: 440px; min-height: 0; }
  .sl-hero-chips { right: 14px; bottom: 14px; left: 14px; justify-items: stretch; }
  .sl-hero-chips li { max-width: none; }
  .sl-day, .sl-roles, .sl-clinics, .sl-start { padding-top: 96px; }
  .sl-day-stage { padding: 22px 18px; }
  .sl-moment { grid-template-columns: 1fr; gap: 20px; }
  .sl-card { justify-self: stretch; }
  .sl-role { grid-template-columns: 1fr; gap: 24px; margin-top: 56px; }
  .sl-role:nth-of-type(even) .sl-role-art { order: 0; }
  .sl-clinic-grid { grid-template-columns: 1fr; }
  .sl-steps { grid-template-columns: 1fr; gap: 26px; }
  .sl-steps::before, .sl-steps::after { top: 23px; left: 22px; width: 2px; height: calc(100% - 46px); }
  .sl-steps::after { height: calc((100% - 46px) * var(--p)); }
  .motion-calm .sl-steps::after { height: calc(100% - 46px); }
  .sl-steps li { grid-template-columns: 46px minmax(0, 1fr); column-gap: 16px; }
  .sl-steps li > :not(.sl-step-dot) { grid-column: 2; }
  .sl-steps h3 { margin-top: 10px; }
  .sl-faq { grid-template-columns: 1fr; gap: 28px; padding-top: 96px; }
  .sl-faq .sl-head { position: static; }
  .sl-closing { min-height: 520px; padding: 56px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .sl-clinic { transition: none; }
}
