/* ---------- Page-wide movement (part 2) ---------- */

@property --accent {
  syntax: "<color>";
  inherits: true;
  initial-value: #FAA42F;
}

/* Ticker: the kinds of businesses Wickfinch builds for */
.ticker {
  background: var(--flame);
  color: var(--ink);
  overflow: hidden;
  padding: 14px 0;
}
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker-list {
  display: flex; align-items: center; gap: 28px;
  list-style: none; margin: 0; padding: 0 28px 0 0;
  font-family: var(--font-display); font-weight: 760; font-size: 1.25rem;
  font-variation-settings: "wdth" 88; white-space: nowrap;
}
.ticker-list li { display: flex; align-items: center; gap: 28px; }
.ticker-list li::after {
  content: ""; width: 12px; height: 18px; flex: none;
  background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 18'%3E%3Cpath d='M6 0c4 5 6 9 6 12a6 6 0 0 1-12 0c0-3 2-5 3-7 1 2 2 3 3 3-1-3-1-6 0-8z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 18'%3E%3Cpath d='M6 0c4 5 6 9 6 12a6 6 0 0 1-12 0c0-3 2-5 3-7 1 2 2 3 3 3-1-3-1-6 0-8z'/%3E%3C/svg%3E") center / contain no-repeat;
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* What you get: a pinned story. On wide screens the section holds still
   while you scroll, and each point gets its own stretch of scrolling. */
.story-grid { display: grid; gap: var(--s4); }
.story-intro p { margin-top: var(--s2); color: var(--text-muted); max-width: 44ch; }
.story-phone { display: flex; flex-direction: column; align-items: center; gap: var(--s3); }
.story-progress { display: flex; gap: 6px; width: 180px; }
.story-progress span { position: relative; flex: 1; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.story-progress span::after {
  content: ""; position: absolute; inset: 0; background: var(--flame);
  transform: scaleX(var(--f, 0)); transform-origin: left;
}
@media (max-width: 899px) {
  .story-grid { grid-template-areas: "intro" "phone" "list"; }
  .story-intro { grid-area: intro; }
  .story-phone { grid-area: phone; }
  .features { grid-area: list; }
}

@media (min-width: 900px) {
  .story { padding: 0; }
  /* Six stretches of scrolling, each a bit more than half a screen. */
  .js .story-track { height: calc(100vh + 6 * 62vh); }
  .js .story-pin {
    position: sticky; top: 0;
    height: 100vh; min-height: 600px;
    display: flex; align-items: center;
    padding: 72px 0 24px;
  }
  .story-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas: "intro phone" "list phone";
    grid-template-rows: auto 1fr;
    /* A fixed height, so the list opening and closing on the left
       can never nudge the phone up or down. */
    width: 100%;
    height: min(640px, calc(100vh - 110px));
    column-gap: var(--s6); row-gap: var(--s4);
    align-items: start;
  }
  .story-intro { grid-area: intro; }
  .story-phone { grid-area: phone; align-self: center; }
  .features { grid-area: list; grid-template-columns: 1fr; gap: 6px; }
  .features li {
    padding: 10px 14px; margin-left: -14px; border-radius: 12px;
    transition: background-color .35s ease, opacity .35s ease;
  }
  .js .features li { opacity: .5; }
  .js .features li.is-active { opacity: 1; background: var(--mist); }
  .features li.is-active h3 { color: var(--pine); }
  /* Only the active point opens up its description. */
  .js .features li p {
    max-height: 0; opacity: 0; overflow: hidden; margin-top: 0;
    transition: max-height .45s cubic-bezier(.2, .7, .2, 1), opacity .3s ease, margin-top .45s ease;
  }
  .js .features li.is-active p { max-height: 7em; opacity: 1; margin-top: 6px; }
  .js .features.reveal, .js .features li.reveal { transform: none; }
}
@media (min-width: 900px) and (max-height: 760px) {
  .story-intro h2 { font-size: 2rem; }
  .story-intro p { display: none; }
}

.phone {
  --accent: #FAA42F;
  position: relative;
  height: clamp(340px, calc(100vh - 220px), 500px);
  width: calc(clamp(340px, calc(100vh - 220px), 500px) * .5);
  min-width: 170px;
  padding: 10px;
  border-radius: 38px;
  background: #0D161C;
  box-shadow: 0 30px 60px -30px rgba(24, 37, 45, .55);
}
@media (max-width: 899px) { .phone { height: 440px; width: 220px; } }
.phone-screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: 29px;
  background: var(--cream);
  font-family: var(--font-body); color: var(--ink);
  font-size: 11px; line-height: 1.35;
}
.ps-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 18px 14px 10px;
  font-family: var(--font-display); font-weight: 760; font-size: 13px;
}
.ps-logo { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.ps-photos { margin: 0 12px; height: 120px; border-radius: 12px; overflow: hidden; }
.ps-track { display: flex; height: 100%; width: 300%; }
.ps-photo { position: relative; flex: 1; }
.p1 { background: #E9DCC6; }
.p2 { background: #2F6F63; }
.p3 { background: #F3C77E; }
.ps-photo span { position: absolute; border-radius: 50%; }
.p1 span { width: 46px; height: 46px; left: 50%; top: 50%; margin: -23px 0 0 -23px; background: #FFF8EE; box-shadow: inset 0 0 0 9px #8A5A35; }
.p2 span { width: 60px; height: 40px; border-radius: 8px; left: 50%; top: 50%; margin: -20px 0 0 -30px; background: #E9DCC6; }
.p3 span { width: 70px; height: 34px; border-radius: 34px 34px 6px 6px; left: 50%; bottom: 16px; margin-left: -35px; background: #8A5A35; }
.ps-body { padding: 12px 14px; display: grid; gap: 10px; }
.ps-title { font-family: var(--font-display); font-weight: 800; font-size: 17px; line-height: 1.05; font-variation-settings: "wdth" 85; }
.ps-hours {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 8px; margin: 0 -8px; border-radius: 8px;
}
.ps-dot { width: 8px; height: 8px; border-radius: 50%; background: #2F9E6F; }
.ps-actions { display: flex; gap: 8px; }
.ps-btn {
  position: relative; flex: 1; text-align: center;
  padding: 8px 0; border-radius: 8px;
  font-family: var(--font-display); font-weight: 760; font-size: 12px;
}
.ps-call { background: var(--accent); color: var(--ink); }
.ps-dir { border: 1.5px solid rgba(24, 37, 45, .35); }
.ps-map {
  position: relative; height: 74px; border-radius: 10px; overflow: hidden;
  background:
    linear-gradient(90deg, transparent 46%, #FFFFFF 46%, #FFFFFF 54%, transparent 54%),
    linear-gradient(0deg, transparent 40%, #FFFFFF 40%, #FFFFFF 50%, transparent 50%),
    #DCE5E2;
}
.ps-pin {
  position: absolute; left: 50%; top: 18px; width: 18px; height: 18px; margin-left: -9px;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--accent); box-shadow: inset 0 0 0 5px var(--accent), inset 0 0 0 9px #FFF8EE;
}
.ps-search {
  position: absolute; left: 0; right: 0; top: 0;
  padding: 18px 12px 14px; background: #FFFFFF;
  box-shadow: 0 10px 24px -12px rgba(24, 37, 45, .4);
  transform: translateY(-105%);
}
.ps-field { border: 1.5px solid #D9E0E1; border-radius: 20px; padding: 7px 12px; height: 32px; }
.ps-q { display: inline-block; white-space: nowrap; vertical-align: top; clip-path: inset(0 100% 0 0); }
.ps-field { position: relative; overflow: hidden; }
.ps-result { display: grid; margin-top: 10px; padding: 8px; border-radius: 8px; background: var(--mist); opacity: 0; }
.ps-result b { font-family: var(--font-display); font-size: 12px; }
.ps-stars { color: #E39A1E; letter-spacing: 1px; }
.ps-toast {
  position: absolute; left: 12px; right: 12px; bottom: 14px;
  padding: 10px 12px; border-radius: 10px;
  background: var(--ink); color: var(--cream); font-weight: 700;
  transform: translateY(140%);
}

/* Scroll-scrubbed demos.
   script.js sets --f on the phone: how far you are through the current point, 0 to 1.
   Each animation is paused and parked at that point in its timeline, so it moves only
   while you scroll, freezes when you stop, and runs backwards when you scroll up.
   Every demo finishes by about 85% so it holds briefly before the next point. */
.phone, .phone .ps-call, .phone .ps-dir, .phone .ps-toast, .phone .ps-pin, .phone .ps-hours, .phone .ps-dot,
.phone .ps-search, .phone .ps-q, .phone .ps-result, .phone .ps-track, .phone .ps-body,
.phone .ps-finger {
  animation-duration: 1s;
  animation-timing-function: linear;
  animation-fill-mode: both;
  animation-play-state: paused;
  animation-delay: 0s;
  /* script.js moves each paused animation's playhead directly (currentTime). */
}

/* Every demo begins and ends on the plain screen, so moving between points
   never jumps. A fingertip performs each action so it's clear what's happening.
   Only transform and opacity animate (plus one background), which keeps it smooth. */

.ps-finger {
  position: absolute; z-index: 5; left: 50%; top: 70%;
  width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  background: rgba(24, 37, 45, .28);
  border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: 0 4px 10px rgba(24, 37, 45, .25);
  opacity: 0; pointer-events: none;
}

/* 0. Made for phones first: a thumb scrolls the page down and back up. */
.phone[data-state="0"] .ps-body { animation-name: s0-scroll; }
.phone[data-state="0"] .ps-finger { animation-name: s0-finger; }
@keyframes s0-scroll {
  0%, 22% { transform: none; animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  48%, 58% { transform: translateY(-48px); animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  84%, 100% { transform: none; }
}
@keyframes s0-finger {
  0%, 8% { opacity: 0; left: 50%; top: 82%; transform: scale(1.3); }
  18% { opacity: 1; left: 50%; top: 82%; transform: scale(1); animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  48% { opacity: 1; left: 50%; top: 52%; transform: scale(1); }
  58% { opacity: 1; left: 50%; top: 52%; animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  84% { opacity: 1; left: 50%; top: 82%; }
  94%, 100% { opacity: 0; left: 50%; top: 82%; transform: scale(1.3); }
}

/* 1. Tap to call, tap for directions. */
.phone[data-state="1"] .ps-call { animation-name: s1-call; }
.phone[data-state="1"] .ps-dir { animation-name: s1-dir; }
.phone[data-state="1"] .ps-toast { animation-name: s1-toast; }
.phone[data-state="1"] .ps-pin { animation-name: s1-pin; }
.phone[data-state="1"] .ps-finger { animation-name: s1-finger; }
@keyframes s1-finger {
  0%, 4% { opacity: 0; left: 28%; top: 66%; transform: scale(1.4); }
  12% { opacity: 1; left: 28%; top: 59%; transform: scale(1); }
  16% { transform: scale(.78); }
  21% { transform: scale(1); }
  30% { opacity: 1; left: 28%; top: 59%; animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  48% { opacity: 1; left: 71%; top: 59%; transform: scale(1); }
  52% { transform: scale(.78); }
  57% { transform: scale(1); opacity: 1; left: 71%; top: 59%; }
  66%, 100% { opacity: 0; left: 71%; top: 63%; transform: scale(1.3); }
}
@keyframes s1-call {
  0%, 15% { transform: none; box-shadow: 0 0 0 0 rgba(250, 164, 47, .7); }
  17% { transform: scale(.92); }
  21% { transform: none; }
  40%, 100% { transform: none; box-shadow: 0 0 0 16px rgba(250, 164, 47, 0); }
}
@keyframes s1-dir {
  0%, 51% { transform: none; background-color: transparent; }
  53% { transform: scale(.92); background-color: rgba(24, 37, 45, .08); }
  58%, 100% { transform: none; background-color: transparent; }
}
@keyframes s1-toast {
  0%, 18% { opacity: 0; transform: translateY(16px); animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
  26%, 40% { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.5, 0, .75, 0); }
  47%, 100% { opacity: 0; transform: translateY(16px); }
}
@keyframes s1-pin {
  0%, 56% { transform: rotate(-45deg); animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
  64% { transform: translate(0, -14px) rotate(-45deg); animation-timing-function: cubic-bezier(.5, 0, .75, 0); }
  71% { transform: rotate(-45deg); animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
  76% { transform: translate(0, -5px) rotate(-45deg); animation-timing-function: cubic-bezier(.5, 0, .75, 0); }
  81%, 100% { transform: rotate(-45deg); }
}

/* 2. Hours up front: a tap on the hours, they light up, the open dot pulses. */
.phone[data-state="2"] .ps-hours { animation-name: s2-hours; }
.phone[data-state="2"] .ps-dot { animation-name: s2-dot; }
.phone[data-state="2"] .ps-finger { animation-name: s2-finger; }
@keyframes s2-finger {
  0%, 4% { opacity: 0; left: 40%; top: 56%; transform: scale(1.4); }
  14% { opacity: 1; left: 40%; top: 51%; transform: scale(1); }
  18% { transform: scale(.78); }
  23% { transform: scale(1); opacity: 1; left: 40%; top: 51%; }
  32%, 100% { opacity: 0; left: 40%; top: 55%; transform: scale(1.3); }
}
@keyframes s2-hours {
  0%, 16% { background-color: rgba(250, 164, 47, 0); transform: none; }
  24% { background-color: rgba(250, 164, 47, .34); transform: scale(1.05); }
  32%, 72% { background-color: rgba(250, 164, 47, .34); transform: none; }
  88%, 100% { background-color: rgba(250, 164, 47, 0); transform: none; }
}
@keyframes s2-dot {
  0%, 26% { transform: none; opacity: 1; }
  38% { transform: scale(1.8); opacity: .55; }
  46% { transform: none; opacity: 1; }
  56% { transform: scale(1.8); opacity: .55; }
  64%, 100% { transform: none; opacity: 1; }
}

/* 3. Ready for Google: tap search, it types itself, the cafe comes up, then it closes. */
.phone[data-state="3"] .ps-search { animation-name: s3-search; }
.phone[data-state="3"] .ps-q { animation-name: s3-type; }
.phone[data-state="3"] .ps-result { animation-name: s3-result; }
.phone[data-state="3"] .ps-finger { animation-name: s3-finger; }
@keyframes s3-finger {
  0%, 2% { opacity: 0; left: 50%; top: 14%; transform: scale(1.4); }
  9% { opacity: 1; left: 50%; top: 9%; transform: scale(1); }
  12% { transform: scale(.78); }
  16% { transform: scale(1); opacity: 1; left: 50%; top: 9%; }
  24%, 100% { opacity: 0; left: 50%; top: 13%; transform: scale(1.3); }
}
@keyframes s3-search {
  0%, 12% { transform: translateY(-105%); animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
  22%, 78% { transform: none; animation-timing-function: cubic-bezier(.5, 0, .75, 0); }
  90%, 100% { transform: translateY(-105%); }
}
@keyframes s3-type {
  0%, 22% { clip-path: inset(0 100% 0 0); animation-timing-function: steps(12, end); }
  52%, 100% { clip-path: inset(0 0 0 0); }
}
@keyframes s3-result {
  0%, 54% { opacity: 0; transform: translateY(8px); animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
  62%, 100% { opacity: 1; transform: none; }
}

/* 4. Real photos: two swipes through the gallery, then back to the first photo. */
.phone[data-state="4"] .ps-track { animation-name: s4-slides; }
.phone[data-state="4"] .ps-finger { animation-name: s4-finger; }
@keyframes s4-slides {
  0%, 16% { transform: translateX(0); animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  28%, 42% { transform: translateX(-33.333%); animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  54%, 70% { transform: translateX(-66.666%); animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  86%, 100% { transform: translateX(0); }
}
@keyframes s4-finger {
  0%, 4% { opacity: 0; left: 78%; top: 22%; transform: scale(1.4); }
  12% { opacity: 1; left: 78%; top: 22%; transform: scale(1); animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  28% { opacity: 1; left: 26%; top: 22%; }
  33% { opacity: 0; left: 26%; top: 22%; }
  38% { opacity: 0; left: 78%; top: 22%; }
  42% { opacity: 1; left: 78%; top: 22%; animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
  54% { opacity: 1; left: 26%; top: 22%; }
  62%, 100% { opacity: 0; left: 26%; top: 22%; transform: scale(1.3); }
}

/* 5. Designed for your business: the site tries on colors, then settles on its own. */
.phone[data-state="5"] { animation-name: s5-theme; }
@keyframes s5-theme {
  0%, 10% { --accent: #FAA42F; }
  26%, 38% { --accent: #5FB49C; }
  54%, 66% { --accent: #E97A6B; }
  84%, 100% { --accent: #FAA42F; }
}

/* Before / after: the same website, dated vs polished, in one browser window.
   Everything inside is sized in container units so it scales evenly. */
.compare { margin: var(--s6) 0 0; }
.cmp-labels { display: flex; justify-content: space-between; margin-bottom: var(--s1); }
.cmp-tag {
  padding: 4px 12px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 760; font-size: .9375rem;
  background: var(--ink); color: var(--cream);
}
.cmp-tag-after { background: var(--flame); color: var(--ink); }
.cmp-window {
  border: 2px solid var(--ink); border-radius: 14px; overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 30px 60px -36px rgba(24, 37, 45, .5);
}
.cmp-chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: #E4E9E8; border-bottom: 2px solid var(--ink);
}
.cmp-chrome i { width: 10px; height: 10px; border-radius: 50%; background: #B9C5CA; }
.cmp-chrome span {
  margin-left: 10px; padding: 3px 14px; border-radius: 999px; background: #FFFFFF;
  font-size: .8125rem; color: var(--text-muted);
}
.cmp-stage {
  position: relative; container-type: inline-size;
  aspect-ratio: 16 / 9;
  touch-action: pan-y;
  user-select: none;
}
.cmp-pane { position: absolute; inset: 0; display: grid; }
.cmp-after { clip-path: inset(0 0 0 var(--pos)); }
.cmp-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px;
  background: var(--ink); pointer-events: none;
}
.cmp-handle span {
  position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; background: var(--flame); border: 3px solid var(--ink);
  box-shadow: 0 6px 18px -6px rgba(24, 37, 45, .6);
  transition: transform .2s ease;
}
.cmp-handle span::before, .cmp-handle span::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px;
  border: 6px solid transparent;
}
.cmp-handle span::before { left: 3px; border-right-color: var(--ink); }
.cmp-handle span::after { right: 3px; border-left-color: var(--ink); }
.compare:hover .cmp-handle span { transform: scale(1.08); }
.compare:focus-within .cmp-handle span { outline: 3px solid var(--flame); outline-offset: 3px; }
.cmp-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare figcaption { margin-top: var(--s2); color: var(--text-muted); font-size: 1rem; }

/* The dated version: everything wrong at once. */
.cmp-before {
  grid-template-rows: 12% 6% 8% 1fr 9%;
  font-family: "Times New Roman", Times, serif; color: #111;
  background: repeating-conic-gradient(#D6CCE6 0 25%, #E9E2F2 0 50%) 0 0 / 3cqw 3cqw;
}
.b-head {
  display: flex; align-items: center; justify-content: center;
  background: #800080; color: #39FF14;
  font-family: "Comic Sans MS", "Comic Sans", cursive; font-size: 3.6cqw; font-weight: 700;
  text-shadow: .3cqw .3cqw 0 #FF0000;
}
.b-marquee { overflow: hidden; display: flex; align-items: center; background: #FFFF00; color: #FF0000; font-weight: 700; font-size: 1.6cqw; white-space: nowrap; }
.b-marquee span { display: inline-block; padding-left: 100%; animation: b-marquee 9s linear infinite; }
@keyframes b-marquee { to { transform: translateX(-100%); } }
.b-nav { display: flex; align-items: center; justify-content: center; gap: .8cqw; background: #C0C0C0; }
.b-nav span {
  padding: .3cqw 1.2cqw; font-size: 1.4cqw; color: #0000EE;
  border: .3cqw outset #EEEEEE; background: #D4D0C8;
}
.b-body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2cqw; padding: 2.4cqw 3cqw; align-items: start; }
.b-copy { display: grid; gap: 1cqw; font-size: 1.4cqw; line-height: 1.25; text-align: center; }
.b-construction {
  padding: 1cqw; font-family: Impact, "Arial Black", sans-serif; font-size: 2.2cqw; letter-spacing: .1em; color: #000;
  background: repeating-linear-gradient(-45deg, #FFD400 0 1.5cqw, #111 1.5cqw 3cqw);
  -webkit-text-stroke: .15cqw #FFD400;
}
.b-link { color: #0000EE; }
.b-photo {
  display: grid; place-items: center; align-content: center; gap: .6cqw;
  aspect-ratio: 4 / 3; background: #FFFFFF; border: .3cqw dashed #888;
  font-family: Arial, sans-serif; color: #888;
}
.b-photo small { font-size: 1.2cqw; }
.b-broken {
  width: 5cqw; height: 4cqw; position: relative;
  border: .3cqw solid #999; background: linear-gradient(135deg, transparent 46%, #C00 46%, #C00 54%, transparent 54%);
}
.b-foot { display: flex; align-items: center; justify-content: center; gap: 2cqw; background: #C0C0C0; font-family: "Courier New", monospace; font-size: 1.1cqw; color: #333; }
.b-counter { padding: .2cqw .8cqw; background: #000; color: #39FF14; letter-spacing: .3em; font-size: 1.4cqw; }

/* The polished version: a site a customer would trust in two seconds. */
.cmp-after { grid-template-rows: 12% 1fr 21%; background: var(--cream); color: var(--ink); font-family: var(--font-body); }
.a-head { display: flex; align-items: center; gap: 1.2cqw; padding: 0 3.5cqw; background: var(--ink); color: var(--cream); font-family: var(--font-display); font-size: 1.9cqw; }
.a-logo { width: 2cqw; height: 2cqw; border-radius: 50%; background: var(--flame); }
.a-nav { margin-left: 2.4cqw; font-size: 1.4cqw; color: #B9C5CA; }
.a-nav:first-of-type { margin-left: auto; }
.a-cta { margin-left: 2.4cqw; padding: .8cqw 1.8cqw; border-radius: 1cqw; background: var(--flame); color: var(--ink); font-weight: 760; font-size: 1.4cqw; }
.a-hero { position: relative; overflow: hidden; background: #3B2A20; }
.a-scene { position: absolute; inset: 0; background: linear-gradient(180deg, #6B4A33 0 62%, #8A5F3E 62% 100%); }
.a-scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 30, 36, .92) 0%, rgba(20, 30, 36, .75) 42%, rgba(20, 30, 36, 0) 70%); }
.a-cup {
  position: absolute; right: 14cqw; bottom: 7cqw; width: 15cqw; height: 15cqw; border-radius: 50%;
  background: #FFF8EE; box-shadow: inset 0 0 0 2.6cqw #FFF8EE, inset 0 0 0 7.5cqw #7A4A2A, 0 1.6cqw 3cqw rgba(0, 0, 0, .35);
}
.a-cup::after { content: ""; position: absolute; left: 50%; top: 50%; width: 5cqw; height: 4cqw; margin: -2cqw 0 0 -2.5cqw; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(ellipse at 50% 40%, #F3E1C7 0 30%, #C9976A 31% 45%, #F3E1C7 46% 62%, transparent 63%); }
.a-steam { position: absolute; right: 19cqw; bottom: 23cqw; width: 6cqw; height: 8cqw; border-left: .5cqw solid rgba(255, 248, 238, .35); border-radius: 50%; animation: steam 3s ease-in-out infinite; }
@keyframes steam { 0%, 100% { transform: translateY(0); opacity: .2; } 50% { transform: translateY(-1.5cqw); opacity: .7; } }
.a-croissant { position: absolute; right: 4cqw; bottom: 5cqw; width: 11cqw; height: 6cqw; border-radius: 6cqw 6cqw 2cqw 2cqw; background: #E3A24C; box-shadow: inset 0 -1.2cqw 0 #C47E2C; transform: rotate(-12deg); }
.a-copy { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 0 4cqw; max-width: 58%; color: var(--cream); }
.a-kicker { font-size: 1.4cqw; color: var(--flame); font-weight: 700; }
.a-title { margin-top: 1cqw; font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 82; font-size: 5.4cqw; line-height: .95; letter-spacing: -.02em; }
.a-actions { display: flex; gap: 1.2cqw; margin-top: 2.4cqw; }
.a-actions span { padding: 1.1cqw 2.2cqw; border-radius: 1cqw; border: .25cqw solid var(--cream); font-family: var(--font-display); font-weight: 760; font-size: 1.5cqw; }
.a-actions span:first-child { background: var(--flame); border-color: var(--flame); color: var(--ink); }
.a-open {
  position: absolute; z-index: 1; right: 3cqw; top: 3cqw;
  display: flex; align-items: center; gap: .8cqw; padding: 1cqw 1.6cqw; border-radius: 1.2cqw;
  background: #FFFFFF; color: var(--ink); font-size: 1.3cqw; box-shadow: 0 1cqw 2.4cqw rgba(0, 0, 0, .3);
}
.a-open span { width: 1.1cqw; height: 1.1cqw; border-radius: 50%; background: #2F9E6F; box-shadow: 0 0 0 .5cqw rgba(47, 158, 111, .25); }
.a-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6cqw; padding: 1.8cqw 3.5cqw; align-items: center; }
.a-tiles div { display: flex; align-items: center; gap: 1.2cqw; padding: 1cqw; border-radius: 1.2cqw; background: #FFFFFF; font-family: var(--font-display); font-weight: 760; font-size: 1.4cqw; box-shadow: 0 .6cqw 1.6cqw rgba(24, 37, 45, .08); }
.a-tiles span { width: 5cqw; height: 5cqw; border-radius: .9cqw; flex: none; }
.t1 { background: radial-gradient(circle at 50% 50%, #7A4A2A 0 32%, #FFF8EE 33% 46%, #2F6F63 47%); }
.t2 { background: radial-gradient(ellipse at 50% 60%, #E3A24C 0 40%, #F3E5CF 41%); }
.t3 { background: radial-gradient(circle at 50% 50%, #F5C542 0 22%, #FFFFFF 23% 40%, #E9DCC6 41%); }

/* How it works: a lit wick burns across the steps */
.steps-wrap { position: relative; margin-top: var(--s5); }
.steps-wrap .steps { margin-top: 0; }
.wick { display: none; }
@media (min-width: 1024px) {
  .js .steps li { border-top-color: var(--line); }
  .js .steps li::after { background: var(--line); }
  .wick { display: block; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 2; pointer-events: none; --p: 0; }
  .wick-fill { position: absolute; inset: 0; background: var(--ink); transform: scaleX(var(--p)); transform-origin: left; }
  .wick-flame {
    position: absolute; top: -21px; left: calc(var(--p) * 100%);
    width: 14px; height: 21px; margin-left: -7px;
    fill: var(--flame);
    transform-origin: 50% 100%;
    animation: flicker 1.6s ease-in-out infinite;
    visibility: hidden;
    filter: drop-shadow(0 0 6px rgba(250, 164, 47, .8));
  }
  .wick.is-burning .wick-flame { visibility: visible; }
  .steps li::before { transition: color .4s ease, transform .4s cubic-bezier(.2, .7, .2, 1); transform-origin: left bottom; }
  .steps li.is-lit::before { color: #C77A0E; transform: scale(1.12); }
}

/* Pricing cards respond to the pointer */
.price { transition: border-color .3s ease, transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease; }
@media (hover: hover) {
  .js .price.in:hover { transform: translateY(-4px); border-color: var(--flame); box-shadow: 0 24px 50px -30px rgba(250, 164, 47, .6); }
}
.count { font-weight: inherit; }

/* Contact: embers drifting up */
.has-embers { position: relative; overflow: hidden; }
.has-embers > .wrap { position: relative; z-index: 1; }
.embers { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.ember {
  position: absolute; bottom: -12px; left: var(--x);
  width: var(--s); height: var(--s); border-radius: 50%;
  background: var(--flame);
  box-shadow: 0 0 8px 2px rgba(250, 164, 47, .5);
  opacity: 0;
  animation: ember var(--dur) linear var(--delay) infinite;
}
@keyframes ember {
  0% { transform: translate(0, 0); opacity: 0; }
  12% { opacity: .85; }
  50% { transform: translate(var(--sway), -340px); }
  85% { opacity: .5; }
  100% { transform: translate(0, -720px); opacity: 0; }
}

/* Header: underline the section you're in */
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--flame); transform: scaleX(0); transform-origin: left;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
.nav-links a.is-current { color: var(--night-text); }
.nav-links a.is-current::after { transform: scaleX(1); }
.nav-links a:hover { text-decoration: none; }
.nav-links a:hover::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .b-marquee span, .a-steam { animation: none; padding-left: 0; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; }
  .ticker-list[aria-hidden="true"] { display: none; }
  .ticker-list { flex-wrap: wrap; white-space: normal; padding: 0 16px; row-gap: 6px; }
  .wick-flame { animation: none; }
  .ember { display: none; }
  .price, .nav-links a::after, .cmp-handle span { transition: none; }
}

/* ---------- Easter egg: click the finch ---------- */
.street-svg { overflow: visible; }
.finch-hit { fill: transparent; cursor: pointer; pointer-events: all; }
.finch-wing { fill: #22343F; transform-box: fill-box; transform-origin: 40% 80%; }
.finch-worm {
  fill: none; stroke: #E8899A; stroke-width: 2.6; stroke-linecap: round;
  opacity: 0; transform-box: fill-box; transform-origin: 0 0;
}
.finch-body { transform-box: fill-box; transform-origin: 50% 100%; }
.finch.is-flying .finch-hop { animation: none; }
.finch.is-flying .finch-hit { cursor: default; }
@media (hover: hover) {
  .finch:not(.is-flying):has(.finch-hit:hover) .finch-body { transform: translateY(-2px) rotate(-4deg); transition: transform .2s ease; }
}

/* Home page: link to the full pricing page */
.pricing-more { margin-top: var(--s4); }

/* Home page: founding-client note */
.founding-note {
  margin-top: var(--s4); padding: 14px 18px; max-width: 70ch;
  border: 2px dashed rgba(250, 164, 47, .6); border-radius: 12px;
  color: var(--night-muted);
}
.founding-note b { color: var(--flame); font-family: var(--font-display); }
.founding-note a { color: var(--night-text); font-weight: 700; }
