/* Homepage sections, on top of /assets/apple-core.css. */
/* ---------- Hero ---------- */
.hero { padding: clamp(4.5rem, 10vw, 8.5rem) 0 var(--s-7); text-align: center; }
.hero-kick { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); font-weight: 600; letter-spacing: -.018em; color: var(--ink); margin-bottom: var(--s-2); }
.hero h1 { max-width: 12em; margin: 0 auto; text-wrap: balance; }
.rot { display: grid; justify-items: center; }
.rot > span { grid-area: 1 / 1; transition: opacity 420ms ease, transform 560ms var(--ease); white-space: nowrap; }
.rot > span:not(.on) { opacity: 0; transform: translateY(.18em); }
.rot > span.out { transform: translateY(-.18em); }
.hero .t-lede { max-width: 34em; margin: var(--s-3) auto 0; }
.proof {
  display: inline-flex; align-items: center; gap: .75rem; margin-top: var(--s-5); padding: .375rem .875rem .375rem .375rem;
  border-radius: var(--r-pill); transition: background-color 160ms ease, transform 120ms ease-out;
}
.proof:hover { background: var(--mist); }
.proof:active { transform: scale(.98); }
.avs { display: flex; }
.av { position: relative; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: var(--mist); box-shadow: 0 0 0 2px var(--canvas); display: grid; place-items: center; font-size: .6875rem; font-weight: 600; color: var(--ink-2); }
.av + .av { margin-left: -8px; }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.proof-t { font-size: .875rem; color: var(--ink-2); }
.proof-t b { color: var(--ink); font-weight: 600; }
.stars { color: #ff9f0a; letter-spacing: 1px; margin-right: .25rem; }

/* One orchestrated load: the hero settles in, nothing else announces itself */
.js .rise { opacity: 0; transform: translateY(14px); }
.js .rise.in { opacity: 1; transform: none; transition: opacity 700ms ease, transform 900ms var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }

/* ---------- Engines ---------- */
.flow {
  position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  max-width: 760px; margin: 0 auto var(--s-6); padding: var(--s-5) var(--s-4);
  background: var(--canvas); border-radius: var(--r-3); box-shadow: var(--lift-1);
}
.flow svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.flow svg.lines path { fill: none; stroke: var(--hair); stroke-width: 1.25; }
.flow-in { display: flex; flex-direction: column; gap: .875rem; justify-self: start; position: relative; }
.flow-node { width: 44px; height: 44px; border-radius: 50%; background: var(--canvas); box-shadow: 0 0 0 1px rgba(29, 29, 31, .08), var(--lift-1); display: grid; place-items: center; }
.flow-node img { width: 22px; height: 22px; object-fit: contain; }
.flow-hub { position: relative; width: 84px; height: 84px; border-radius: 26px; background: var(--canvas); box-shadow: 0 0 0 1px rgba(29, 29, 31, .06), var(--lift-2); display: grid; place-items: center; }
.flow-hub img { width: 44px; }
.flow-out { position: relative; justify-self: end; display: flex; align-items: center; gap: .75rem; padding: .875rem 1.125rem .875rem .875rem; border-radius: var(--r-2); background: var(--canvas); box-shadow: 0 0 0 1px rgba(29, 29, 31, .06), var(--lift-2); }
.flow-out .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--mist); display: grid; place-items: center; color: var(--ink); }
.flow-out b { display: block; font-size: .9375rem; font-weight: 600; letter-spacing: -.015em; }
.flow-out small { display: block; font-size: .8125rem; color: var(--ink-2); }
.js .flow .pop { opacity: 0; transform: scale(.92); }
.js .flow.in .pop { opacity: 1; transform: none; transition: opacity 400ms ease, transform 600ms var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }

/* Segmented control: the thumb is a spring, driven from JS */
.seg { position: relative; display: flex; width: max-content; margin: 0 auto var(--s-4); padding: 3px; border-radius: var(--r-pill); background: rgba(118, 118, 128, .12); }
.seg-thumb { position: absolute; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: var(--r-pill); background: var(--canvas); box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 3px 8px rgba(40, 12, 60, .1); will-change: transform; }
.seg button { position: relative; z-index: 1; min-height: 36px; padding: 0 1.25rem; border: 0; background: none; border-radius: var(--r-pill); cursor: pointer; font-size: .9375rem; font-weight: 500; color: var(--ink-2); transition: color 200ms ease, transform 120ms ease-out; touch-action: manipulation; }
.seg button[aria-selected="true"] { color: var(--ink); }
.seg button:hover { color: var(--ink); }
.seg button:active { transform: scale(.96); }

.panes { position: relative; max-width: 900px; margin: 0 auto; display: grid; }
.pane {
  grid-area: 1 / 1; display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s-5); align-items: center;
  padding: var(--s-5); border-radius: var(--r-3); background: var(--canvas); box-shadow: var(--lift-1);
  transition: opacity 260ms ease, transform 520ms var(--ease);
}
.pane[aria-hidden="true"] { opacity: 0; pointer-events: none; visibility: hidden; transition: opacity 200ms ease, transform 520ms var(--ease), visibility 0s linear 520ms; }
.pane.from-left[aria-hidden="true"] { transform: translateX(-24px); }
.pane.from-right[aria-hidden="true"] { transform: translateX(24px); }
.pane p { margin-top: var(--s-2); color: var(--ink-2); }
.pane .more { margin-top: var(--s-3); }
.pane-stat { text-align: center; padding: var(--s-4); border-radius: var(--r-2); background: var(--mist); }
.pane-stat b { display: block; font-size: clamp(4rem, 3rem + 4vw, 6rem); line-height: 1; letter-spacing: -.05em; font-weight: 700; font-variant-numeric: tabular-nums; }
.pane-stat span { display: block; margin-top: .5rem; font-size: .9375rem; color: var(--ink-2); }
.pane-logos { display: flex; justify-content: center; gap: .5rem; margin-top: var(--s-3); }
.pane-logos img { width: 28px; height: 28px; object-fit: contain; }

.lands { display: flex; align-items: center; gap: var(--s-2); max-width: 900px; margin: var(--s-6) auto var(--s-3); color: var(--ink-3); font-size: .875rem; }
.lands::before, .lands::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.found {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s-4); align-items: center; max-width: 900px; margin: 0 auto;
  padding: var(--s-5) 0 0 var(--s-5); border-radius: var(--r-3); background: var(--canvas); box-shadow: var(--lift-1); overflow: hidden;
  transition: transform 200ms var(--ease), box-shadow 300ms ease;
}
.found:hover { box-shadow: var(--lift-2); }
.found:active { transform: scale(.99); }
.found-t { padding-bottom: var(--s-5); }
.found-t p { margin-top: var(--s-2); color: var(--ink-2); }
.found-t .more { margin-top: var(--s-3); }
.found-v { position: relative; align-self: end; height: 300px; }
.shot { position: absolute; border-radius: var(--r-1) var(--r-1) 0 0; overflow: hidden; box-shadow: 0 0 0 1px rgba(29, 29, 31, .08), var(--lift-2); background: var(--mist); transition: transform 500ms var(--ease); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot.a { left: 0; right: -40px; top: 12px; bottom: 0; }
.shot.b { left: -28px; width: 150px; top: 72px; bottom: 0; border-radius: 18px 18px 0 0; box-shadow: 0 0 0 4px var(--canvas), var(--lift-3); }
.found:hover .shot.a { transform: translateY(-6px); }
.found:hover .shot.b { transform: translateY(-12px); }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.tile { grid-column: span 2; display: flex; flex-direction: column; padding: var(--s-4); border-radius: var(--r-3); background: var(--mist); overflow: hidden; }
.tile.wide { grid-column: span 3; }
.tile-v { height: 150px; margin-bottom: var(--s-4); display: grid; place-items: center; }
.tile p { margin-top: .5rem; color: var(--ink-2); font-size: 1rem; line-height: 1.5; letter-spacing: -.015em; }
.tile .more { font-size: 1rem; }

.v-target { position: relative; width: 140px; height: 140px; }
.v-target span { position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--hair); }
.v-target span:nth-child(2) { inset: 24px; } .v-target span:nth-child(3) { inset: 48px; }
.v-target i { position: absolute; inset: 62px; border-radius: 50%; background: var(--accent); }
.v-line { width: 100%; height: 130px; }
.v-line .area { fill: rgba(217, 27, 123, .08); }
.v-line .ln { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; }
.v-line .gl { stroke: var(--hair); stroke-width: 1; }
.v-plats { display: grid; grid-template-columns: repeat(4, 48px); gap: .75rem; }
.v-plats span { width: 48px; height: 48px; border-radius: 14px; background: var(--canvas); display: grid; place-items: center; box-shadow: var(--lift-1); }
.v-plats span.hub { background: var(--ink); }
.v-plats img { width: 24px; height: 24px; object-fit: contain; }
.v-plats .hub img { width: 26px; filter: brightness(0) invert(1); }
.v-pipe { display: flex; align-items: center; gap: .5rem; }
.v-pipe span { padding: .5rem .875rem; border-radius: var(--r-pill); background: var(--canvas); font-size: .875rem; font-weight: 500; color: var(--ink-2); box-shadow: var(--lift-1); }
.v-pipe i { width: 16px; height: 1.5px; background: var(--hair); }
.v-pipe span.on { background: var(--ink); color: #fff; }
.v-ring { position: relative; width: 140px; height: 140px; }
.v-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.v-ring circle { fill: none; stroke-width: 10; }
.v-ring .trk { stroke: rgba(29, 29, 31, .08); }
.v-ring .arc { stroke: var(--accent); stroke-linecap: round; }
.v-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.75rem; font-weight: 700; letter-spacing: -.03em; }
.v-bars { display: flex; align-items: flex-end; gap: 10px; height: 130px; }
.v-bars i { width: 22px; height: var(--h); border-radius: 6px 6px 3px 3px; background: rgba(29, 29, 31, .14); transform-origin: bottom; }
.v-bars i:last-child { background: var(--ink); }
.js .bento .v-bars i { transform: scaleY(.15); }
.js .bento .tile.in .v-bars i { transform: none; transition: transform 800ms var(--ease); transition-delay: calc(var(--i) * 50ms); }

/* ---------- Done-for-you ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7); align-items: center; }
.split .t-lede { margin-top: var(--s-3); }
.points { margin-top: var(--s-5); display: grid; gap: var(--s-4); }
.points li { display: grid; grid-template-columns: 28px 1fr; gap: var(--s-2); }
.points svg { width: 22px; height: 22px; color: var(--ink); margin-top: 2px; }
.points p { margin-top: .25rem; color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
.live { padding: var(--s-4); border-radius: var(--r-3); background: var(--canvas); box-shadow: var(--lift-3); }
.live-tag { display: inline-flex; align-items: center; gap: .5rem; font-size: .8125rem; color: var(--ink-2); }
.live-tag i { width: 8px; height: 8px; border-radius: 50%; background: #30d158; box-shadow: 0 0 0 3px rgba(48, 209, 88, .18); }
.live-n { margin-top: var(--s-2); font-size: 3.5rem; line-height: 1; letter-spacing: -.045em; font-weight: 700; }
.live-sub { margin-top: .375rem; font-size: .9375rem; color: var(--ink-2); }
.stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-top: var(--s-4); }
.stages div { padding: .75rem; border-radius: var(--r-1); background: var(--mist); }
.stages span { display: block; font-size: .75rem; color: var(--ink-2); }
.stages b { display: block; margin-top: .125rem; font-size: 1.25rem; letter-spacing: -.02em; font-weight: 600; font-variant-numeric: tabular-nums; }
.stages .done { background: var(--ink); color: #fff; }
.stages .done span { color: rgba(255, 255, 255, .7); }
.rates { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .5rem; }
.rates div { display: flex; justify-content: space-between; align-items: baseline; padding: .75rem; border-radius: var(--r-1); background: var(--mist); font-size: .875rem; color: var(--ink-2); }
.rates b { font-size: 1.25rem; color: var(--ink); letter-spacing: -.02em; }
.feed { margin-top: var(--s-3); display: grid; }
.feed li { display: grid; grid-template-columns: 32px 1fr auto; gap: .75rem; align-items: center; padding: .75rem 0; border-top: 1px solid rgba(29, 29, 31, .07); }
.feed .ic { width: 32px; height: 32px; border-radius: 10px; background: var(--mist); display: grid; place-items: center; }
.feed .ic svg { width: 16px; height: 16px; }
.feed b { display: block; font-size: .9375rem; font-weight: 600; letter-spacing: -.015em; }
.feed span { display: block; font-size: .8125rem; color: var(--ink-2); }
.feed time { font-size: .75rem; color: var(--ink-3); }

/* ---------- Statement: words light up as you read down ---------- */
.statement { max-width: 940px; margin: 0 auto; }
.statement .t-h2 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.5rem); }
.read .w { color: var(--ink); transition: color 300ms ease; }
.js .read .w { color: #c7c7cc; }
.js .read .w.lit { color: var(--ink); }
.statement .t-lede { margin-top: var(--s-4); }
.statement .btn { margin-top: var(--s-4); }

/* ---------- Results (the one dark, bold moment) ---------- */
.night { background: var(--night); color: #f5f5f7; }
.night .t-lede, .night .t-small { color: rgba(245, 245, 247, .66); }
.night .t-cap { color: rgba(245, 245, 247, .45); }
.night .more { color: #ff6aa6; }
.client { display: inline-flex; align-items: center; gap: .75rem; margin-bottom: var(--s-3); }
.client img { height: 26px; width: auto; }
.client span { font-size: .875rem; color: rgba(245, 245, 247, .66); }
.res { display: grid; grid-template-columns: 1fr 1.5fr; gap: 1rem; margin-top: var(--s-6); }
.rpan { padding: var(--s-4); border-radius: var(--r-3); background: var(--night-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.rpan h3 { font-size: .9375rem; font-weight: 500; color: rgba(245, 245, 247, .66); letter-spacing: -.01em; }
.big { margin-top: var(--s-2); font-size: clamp(4rem, 3rem + 4vw, 6.5rem); line-height: 1; letter-spacing: -.05em; font-weight: 700; }
.split-bar { display: flex; gap: 3px; height: 8px; margin-top: var(--s-4); border-radius: 4px; overflow: hidden; }
.split-bar i:first-child { flex: 3.9; background: #f5f5f7; }
.split-bar i:last-child { flex: 1.1; background: rgba(245, 245, 247, .35); }
.split-leg { display: flex; justify-content: space-between; margin-top: .5rem; font-size: .8125rem; color: rgba(245, 245, 247, .66); }
.split-leg b { color: #f5f5f7; font-weight: 600; margin-right: .3rem; }
.minis { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--s-2); margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid rgba(255, 255, 255, .08); }
.minis b { display: block; font-size: 1.75rem; letter-spacing: -.03em; font-weight: 600; font-variant-numeric: tabular-nums; }
.minis span { display: block; margin-top: .125rem; font-size: .8125rem; line-height: 1.35; color: rgba(245, 245, 247, .55); }
.chart-top { display: flex; justify-content: space-between; gap: var(--s-3); align-items: flex-start; }
.chart-total { text-align: right; }
.chart-total b { display: block; font-size: 2rem; letter-spacing: -.035em; font-weight: 700; font-variant-numeric: tabular-nums; }
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(.5rem, 2vw, 1.25rem); align-items: end; height: 260px; margin-top: var(--s-4); }
.bar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.bar-f { height: var(--h); border-radius: 10px 10px 4px 4px; background: rgba(245, 245, 247, .16); transform-origin: bottom; }
.bar.peak .bar-f { background: var(--grad); }
.bar-v { margin-bottom: .5rem; text-align: center; font-size: .8125rem; font-weight: 600; color: rgba(245, 245, 247, .8); font-variant-numeric: tabular-nums; }
.js .bars .bar-f, .js .bars .bar-v { transform: scaleY(0); }
.js .bars .bar-v { transform: translateY(8px); opacity: 0; }
.js .bars.in .bar-f { transform: none; transition: transform 1000ms var(--ease); transition-delay: calc(var(--i) * 70ms); }
.js .bars.in .bar-v { transform: none; opacity: 1; transition: opacity 400ms ease, transform 700ms var(--ease); transition-delay: calc(300ms + var(--i) * 70ms); }
.months { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(.5rem, 2vw, 1.25rem); margin-top: .75rem; text-align: center; font-size: .8125rem; color: rgba(245, 245, 247, .5); }
.chart-note { margin-top: var(--s-3); font-size: .9375rem; color: rgba(245, 245, 247, .75); }
.res-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); margin-top: var(--s-4); }
.res-foot .t-cap { max-width: 62ch; }

/* ---------- Testimonials: a draggable, flickable rail ---------- */
.rail { overflow: hidden; padding: var(--s-1) 0 var(--s-4); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.rail.dragging { cursor: grabbing; }
.rail-track { display: flex; gap: 1.25rem; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.story { width: min(420px, 82vw); flex: none; display: flex; flex-direction: column; padding: var(--s-4); border-radius: var(--r-3); background: var(--mist); }
.story-who { display: flex; align-items: center; gap: .875rem; }
.story-who .av { width: 48px; height: 48px; box-shadow: none; font-size: .875rem; }
.story-who b { display: block; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.018em; }
.story-who span { display: block; font-size: .875rem; color: var(--ink-2); }
.story-res { margin-top: var(--s-3); font-size: 1.5rem; line-height: 1.17; letter-spacing: -.022em; font-weight: 700; }
.story blockquote { margin-top: var(--s-2); font-size: 1rem; line-height: 1.55; letter-spacing: -.012em; color: var(--ink-2); }
.story-src { display: flex; align-items: center; gap: .375rem; margin-top: auto; padding-top: var(--s-3); font-size: .8125rem; color: var(--ink-3); }
.story-src svg { width: 14px; height: 14px; }
.rail-ctl { display: flex; justify-content: flex-end; align-items: center; gap: .75rem; }
.rail-ctl .count { margin-right: auto; font-size: .875rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rbtn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(118, 118, 128, .12); cursor: pointer; transition: background-color 160ms ease, transform 120ms ease-out, opacity 200ms ease; }
.rbtn:hover { background: rgba(118, 118, 128, .2); }
.rbtn:active { transform: scale(.92); }
.rbtn:disabled { opacity: .35; cursor: default; transform: none; }
.rbtn svg { width: 18px; height: 18px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: step; }
.steps li { position: relative; padding: var(--s-4); border-radius: var(--r-3); background: var(--canvas); }
.steps .when { display: inline-block; padding: .25rem .625rem; border-radius: var(--r-pill); background: var(--mist); font-size: .8125rem; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.steps h3 { margin-top: var(--s-3); }
.steps p { margin-top: .5rem; color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
.steps-line { position: relative; height: 2px; margin: 0 var(--s-4) var(--s-3); background: var(--hair); border-radius: 2px; overflow: hidden; }
.steps-line i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: var(--s-6); }
  .res { grid-template-columns: 1fr; }
  .tile, .tile.wide { grid-column: span 3; }
}
@media (max-width: 760px) {
  .pane { grid-template-columns: 1fr; gap: var(--s-4); padding: var(--s-4); }
  .found { grid-template-columns: 1fr; padding: var(--s-4) var(--s-4) 0; }
  .found-t { padding-bottom: 0; }
  .found-v { height: 220px; margin-right: calc(-1 * var(--s-4)); }
  .shot.b { left: 0; width: 120px; }
  .steps { grid-template-columns: 1fr; }
  .steps-line { display: none; }
  .bento { grid-template-columns: 1fr; }
  .tile, .tile.wide { grid-column: auto; }
  .flow { grid-template-columns: auto 1fr auto; gap: var(--s-2); padding: var(--s-4) var(--s-3); }
  .flow-hub { width: 64px; height: 64px; border-radius: 20px; justify-self: center; } .flow-hub img { width: 34px; }
  .flow-node { width: 38px; height: 38px; } .flow-node img { width: 19px; height: 19px; }
  .flow-out { padding: .625rem; } .flow-out .txt { display: none; }
  .res-foot { flex-direction: column; align-items: flex-start; }
  .chart-top { flex-direction: column; } .chart-total { text-align: left; }
  .bars { height: 200px; } .bar-v { font-size: .6875rem; }
  .live { padding: var(--s-3); }
  .stages { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Accessibility preferences (homepage pieces) ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .rise, .js .flow .pop, .js .bars .bar-f, .js .bars .bar-v, .js .bento .v-bars i { opacity: 1 !important; transform: none !important; }
  .js .read .w { color: var(--ink); }
}
@media (prefers-contrast: more) {
  .tile, .story, .pane-stat, .stages div, .rates div { box-shadow: inset 0 0 0 1px var(--hair); }
}
