/* how-it-works.css: How it works. Places and sizes the page's parts (plan.md, "How it works"); the look comes from
   system.css and components.css. */

/* ---------- the header: the words on the ink's shade at the left, the phone on the table at the right ---------- */
.hiw-hero { position: relative; overflow: hidden; isolation: isolate; min-height: clamp(680px, 100svh, 900px); display: flex; align-items: center; background: var(--c-ink); color: var(--c-on-ink); }
.hiw-hero__media { position: absolute; inset: 0; z-index: -2; margin: 0; }
.hiw-hero__media > img { object-position: 70% 50%; }
.hiw-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(7, 11, 28, .95) 0%, rgba(7, 11, 28, .84) 30%, rgba(7, 11, 28, .3) 54%, rgba(7, 11, 28, .06) 64%), linear-gradient(180deg, rgba(7, 11, 28, .7), rgba(7, 11, 28, 0) 24%); }
.hiw-hero__in { width: 100%; padding-block: 150px 96px; }
.hiw-hero__words { display: grid; gap: var(--space-3); max-width: min(620px, 50vw); }
.hiw-hero__words h1 { font-size: var(--fs-h1); }
.hiw-hero__words p { max-width: 500px; font-size: 19px; color: var(--c-on-ink-soft); }
.hiw-hero__words .cta-block { margin-top: var(--space-2); }
.hiw-hero__stop { position: absolute; left: 74%; top: 81%; z-index: 2; }

/* the phone's lock screen (designed at 200 x 450): the time, then new bookings landing above each other */
.lock { box-sizing: border-box; width: 100%; height: 100%; display: flex; flex-direction: column; padding: 30px 8px 12px; background: radial-gradient(120% 70% at 50% 0%, #1B2A6B 0%, #0B1234 58%, var(--c-ink) 100%); color: #fff; font-family: var(--font-ui); }
.lock__time { display: grid; justify-items: center; gap: 4px; }
.lock__time b { font: 600 54px/1 var(--font-display); letter-spacing: -.02em; }
.lock__time span { font: 500 17px/1.2 var(--font-ui); color: rgba(255, 255, 255, .82); }
.lock__notes { display: flex; flex-direction: column-reverse; gap: 6px; margin-top: auto; }
.lock__note { display: flex; align-items: flex-start; gap: 7px; padding: 9px 8px; border-radius: 14px; background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .12); opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 12px)) scale(calc(.96 + .04 * var(--kit-in, 1))); }
.lock__mark { flex: none; box-sizing: border-box; width: 22px; height: 22px; padding: 3px; border-radius: 6px; background: var(--c-brand-light); color: #fff; }
.lock__note p { display: grid; gap: 2px; margin: 0; }
.lock__note strong { font: 700 16px/1.15 var(--font-ui); }
.lock__note span { font: 500 16px/1.15 var(--font-ui); color: rgba(255, 255, 255, .82); }

@media (max-width: 900px) {
  .hiw-hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  .hiw-hero::before { background: linear-gradient(180deg, var(--c-ink) 0%, var(--c-ink) 40%, rgba(7, 11, 28, 0) 62%); }
  .hiw-hero__in { padding-block: 116px var(--space-4); }
  .hiw-hero__words { max-width: none; }
  .hiw-hero__media { position: relative; inset: auto; order: 2; height: min(160vw, 680px); }
  .hiw-hero__media > img { object-position: 74% 50%; }
  .hiw-hero__stop { left: auto; top: auto; right: var(--gutter); bottom: calc(min(160vw, 680px) * .19); }
}

/* ---------- a step card: its number on the motif's arc, its words, its scene in a box of its full height ---------- */
.step-card { box-sizing: border-box; position: relative; display: grid; grid-template-rows: auto 1fr; gap: var(--space-3); padding: 40px 24px 24px; border-radius: var(--radius-l); background: rgba(10, 16, 42, .74); border: 1px solid var(--c-panel-line); box-shadow: var(--shadow-l); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); color: var(--c-on-ink); }
.step-card__n { position: absolute; left: 50%; top: -22px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; translate: -50% 0; background: var(--c-brand); color: #fff; font: 700 15px/1 var(--font-display); box-shadow: 0 0 0 5px rgba(42, 91, 255, .22), 0 0 26px var(--c-glow); }
.step-card__words { display: grid; gap: 8px; }
.step-card__words h3 { font-size: var(--fs-h3); }
.step-card__words p { font-size: 16px; color: var(--c-on-ink-soft); }
.step-card__box { position: relative; height: 300px; }
/* your three steps: the scan's rows and its note need the taller box; in three narrow columns (box under 340 wide)
   the month by month chart stacks its key under the bars and needs taller still */
.steps-row .step-card__box { height: 350px; }
@media (min-width: 1001px) and (max-width: 1339px) { .steps-row .step-card__box { height: 430px; } }
@media (max-width: 1000px) { .steps-row .step-card__box { height: 380px; } }
.step-card__scene { position: absolute; inset: 0; }

/* ---------- your part: the owner at the front desk, the three steps standing at the foot of the footage ---------- */
.hiw-yours { padding-bottom: var(--section-y); background: var(--c-ink); color: var(--c-on-ink); }
.hiw-yours__stage { position: relative; height: clamp(640px, 56vw, 820px); overflow: hidden; isolation: isolate; }
.hiw-yours__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hiw-yours__media > img { position: absolute; inset: -1px; width: calc(124% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 30%; }
.hiw-yours__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 11, 28, .86) 0%, rgba(7, 11, 28, .6) 28%, rgba(7, 11, 28, 0) 46%), linear-gradient(0deg, var(--c-ink) 0%, rgba(7, 11, 28, .45) 22%, rgba(7, 11, 28, 0) 42%), linear-gradient(180deg, rgba(7, 11, 28, .55), rgba(7, 11, 28, 0) 18%); }
.hiw-yours__words { display: grid; gap: var(--space-3); padding-top: var(--section-y); }
.hiw-yours__words h2 { max-width: min(560px, 40vw); font-size: var(--fs-h2); }
.hiw-yours__words p { max-width: min(460px, 36vw); font-size: 19px; color: var(--c-on-ink-soft); }
.hiw-yours > .wrap { position: relative; }
.hiw-yours__stop { position: absolute; top: -56px; right: var(--gutter); z-index: 2; }
.steps-row { --gap: var(--space-3); position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin: -190px 0 0; padding: 0; list-style: none; }
.steps-row::before { content: ""; position: absolute; left: calc((100% - 2 * var(--gap)) / 6); right: calc((100% - 2 * var(--gap)) / 6); top: -28px; height: 56px; border-top: 1.5px solid color-mix(in srgb, var(--c-accent) 75%, transparent); border-radius: 50% 50% 0 0 / 100% 100% 0 0; filter: drop-shadow(0 0 6px var(--c-glow)); pointer-events: none; }
.steps-row > .step-card:nth-child(2) { translate: 0 -28px; }
@media (max-width: 1000px) {
  .hiw-yours__stage { height: auto; display: grid; }
  .hiw-yours__media { position: relative; inset: auto; z-index: 0; aspect-ratio: 16 / 10; }
  .hiw-yours__media > img { width: calc(100% + 2px); }
  .hiw-yours__media::after { background: linear-gradient(0deg, var(--c-ink) 0%, rgba(7, 11, 28, 0) 30%); }
  .hiw-yours__words { padding-top: var(--space-3); }
  .hiw-yours__words h2, .hiw-yours__words p { max-width: none; }
  .hiw-yours__stop { top: -52px; right: max(var(--gutter), calc((100% - 560px) / 2)); }
  .steps-row { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); margin-top: var(--space-6); }
  .steps-row::before { display: none; }
  .steps-row > .step-card:nth-child(2) { translate: none; }
  .step-card { max-width: 560px; width: 100%; margin-inline: auto; padding-inline: 14px; }
  .step-card__words { padding-inline: 6px; }
}

/* ---------- the signature: the day around you, on the designed ground ---------- */
.day__stage { position: relative; }
.day__scene { position: relative; width: 100%; height: clamp(600px, 46vw, 660px); }
.day__stop { position: absolute; top: 0; right: 0; z-index: 2; }

/* ---------- our part: the team's steps on the ink, the salon locking up held in view beside them ---------- */
.hiw-ours { padding-block: var(--section-y); background: var(--c-ink); color: var(--c-on-ink); }
.hiw-ours__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .66fr); gap: var(--space-5); align-items: start; }
.hiw-ours__main { display: grid; gap: var(--space-5); }
.hiw-ours .section-head p { color: var(--c-on-ink-soft); }
.hiw-ours__list { position: relative; }
.hiw-ours__stop { position: absolute; top: -52px; right: 0; z-index: 2; }
.hiw-ours__steps { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); margin: 0; padding: 0 0 0 26px; list-style: none; }
.hiw-ours__steps::before { content: ""; position: absolute; left: 0; top: 50px; bottom: 50px; width: 64px; border-left: 1.5px solid color-mix(in srgb, var(--c-accent) 75%, transparent); border-radius: 50% 0 0 50% / 50% 0 0 50%; filter: drop-shadow(0 0 6px var(--c-glow)); pointer-events: none; }
.step-card--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); grid-template-rows: auto; align-items: center; gap: var(--space-4); padding: 28px 28px 28px 44px; background: var(--c-panel); backdrop-filter: none; -webkit-backdrop-filter: none; }
.step-card--wide .step-card__n { left: -22px; top: 28px; translate: none; }
.hiw-ours__steps > .step-card:nth-child(2) { margin-left: -26px; }
.hiw-ours__photo { position: sticky; top: 104px; aspect-ratio: 4 / 5; margin: 0; }
.hiw-ours__photo > img { object-position: 74% 50%; }
@media (max-width: 1000px) {
  .hiw-ours__in { grid-template-columns: minmax(0, 1fr); }
  .hiw-ours__main { display: contents; }
  .hiw-ours__main > .section-head { order: 0; }
  .hiw-ours__photo { position: relative; top: auto; order: 1; aspect-ratio: 4 / 3; }
  .hiw-ours__list { order: 2; margin-top: var(--space-5); }
  .hiw-ours__steps { padding-left: 0; gap: var(--space-5); }
  .hiw-ours__steps::before { display: none; }
  .hiw-ours__steps > .step-card:nth-child(2) { margin-left: 0; }
  .step-card--wide { grid-template-columns: minmax(0, 1fr); padding: 40px 12px 16px; }
  .step-card--wide .step-card__words { padding-inline: 8px; }
  .step-card--wide .step-card__n { left: 20px; top: -22px; }
  .hiw-ours__stop { top: -56px; }
}

/* ---------- the free plan: its three cards over the clear side of the photo, the three questions under it ---------- */
.inside__frame { aspect-ratio: 16 / 9; }
.inside__frame > img { object-position: 30% 50%; }
.inside__scene { position: absolute; right: 5%; top: 50%; width: 56%; height: min(560px, 90%); transform: translateY(-50%); }
.inside__stop { position: absolute; top: 16px; right: 16px; z-index: 2; }
.inside__qs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.inside__qs li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 4px; align-items: start; }
.inside__n { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--c-brand-light); color: var(--c-brand-text); font: 700 14px/1 var(--font-display); }
.inside__qs strong { font: 600 18px/1.3 var(--font-ui); }
.inside__qs li > span:last-child { font-size: 16px; color: var(--c-ink-soft); }
@media (max-width: 900px) {
  .inside__frame { --top: min(52vw, 400px); aspect-ratio: auto; overflow: visible; background: transparent; box-shadow: none; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: var(--top) 460px; }
  .inside__frame > img { position: relative; inset: auto; grid-row: 1 / 3; grid-column: 1; align-self: start; width: 100%; height: calc(100% - 184px); border-radius: var(--radius-l); }
  .inside__scene { position: relative; right: auto; top: auto; grid-row: 2; grid-column: 1; width: auto; height: 460px; margin-inline: 8px; transform: none; }
  .inside__stop { top: calc(var(--top) - 50px); }
  .inside__qs { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
}

/* ---------- the team: the words, the dashboard on the salon's laptop ---------- */
.team__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-5); align-items: center; }
.team__pic { position: relative; }
.team__photo { aspect-ratio: 4 / 3; margin: 0; }
.team__photo > img { object-position: 30% 50%; }
.team__stop { position: absolute; top: 14px; left: 14px; z-index: 2; }
@media (max-width: 900px) {
  .team__in { grid-template-columns: minmax(0, 1fr); }
  .team__photo { aspect-ratio: 3 / 4; }
  .team__photo > img { object-position: 33% 50%; }
}

/* the dashboard (designed at 320 x 234): the owner's question and the team's answer */
.dash { box-sizing: border-box; position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; gap: 9px; padding: 12px 14px; background: #F4F6FC; color: var(--c-ink); font: 500 15px/1.28 var(--font-ui); }
.dash__bar { display: flex; align-items: center; gap: 7px; font: 700 15px/1.2 var(--font-ui); }
.dash__btn { position: absolute; top: 8px; right: 10px; padding: 3px 9px; border-radius: 999px; background: var(--c-brand); color: #fff; font: 700 14px/1.3 var(--font-ui); }
.dash__q, .dash__a { margin: 0; padding: 6px 10px; }
.dash__q { align-self: flex-end; max-width: 82%; border-radius: 12px 12px 4px 12px; background: var(--c-brand); color: #fff; }
.dash__a { align-self: flex-start; max-width: 92%; border-radius: 12px 12px 12px 4px; background: #fff; border: 1px solid #DCE2F2; }
.dash__a span { display: block; margin-top: 3px; font: 700 14px/1.2 var(--font-ui); color: var(--c-brand-text); }
.dash [data-kit-at] { opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 8px)); }
.dash .dash__btn[data-kit-at] { transform: scale(calc(.92 + .08 * var(--kit-in, 1))); }

/* ---------- the process questions ---------- */
.hiw-faq__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-5); align-items: start; }
@media (max-width: 900px) { .hiw-faq__in { grid-template-columns: 1fr; gap: 0; } }

/* ---------- the close: a new client at the front desk, the words over the client's back ---------- */
.hiw-close { position: relative; overflow: hidden; isolation: isolate; min-height: clamp(640px, 54vw, 820px); display: flex; align-items: flex-end; background: var(--c-ink); color: var(--c-on-ink); }
.hiw-close__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hiw-close__media > img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 30%; }
.hiw-close__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 11, 28, .9) 0%, rgba(7, 11, 28, .66) 30%, rgba(7, 11, 28, 0) 50%), linear-gradient(0deg, rgba(7, 11, 28, .85) 0%, rgba(7, 11, 28, 0) 42%); }
.hiw-close__in { width: 100%; padding-block: var(--space-6); }
.hiw-close__words { display: grid; gap: var(--space-3); max-width: min(540px, 42vw); }
.hiw-close__words h2 { font-size: var(--fs-h2); }
.hiw-close__words p { font-size: 19px; color: var(--c-on-ink-soft); }
@media (max-width: 900px) {
  .hiw-close { display: block; min-height: 0; }
  .hiw-close__media { position: relative; inset: auto; z-index: 0; aspect-ratio: 4 / 3; }
  .hiw-close__media > img { object-position: 62% 30%; }
  .hiw-close__media::after { background: linear-gradient(0deg, var(--c-ink) 0%, rgba(7, 11, 28, 0) 30%); }
  .hiw-close__in { padding-top: var(--space-3); }
  .hiw-close__words { max-width: none; }
}
