/* Spryly homepage — hero, the scrolling phone story, and the extras strip. */

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(28px, 5vw, 64px) 0 0; overflow: clip; }
.hero__top { text-align: center; position: relative; z-index: 2; }
.hero__kicker { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--white); box-shadow: var(--shadow); font-weight: 600; font-size: 15px; text-decoration: none; }
.hero__kicker b { background: var(--brand); color: #fff; padding: 4px 10px; border-radius: 999px; font-size: 13px; }
.hero h1 { margin: 26px auto 0; max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--brand); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 2%; right: 2%; bottom: .02em; height: .14em; background: var(--lemon); z-index: -1; border-radius: 4px; transform-origin: left; animation: underline 1.1s .5s var(--ease) both; }
@keyframes underline { from { transform: scaleX(0); } }
.hero .lede { margin: 26px auto 0; text-align: center; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.hero__facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 15px; font-weight: 600; color: var(--ink-3); }
.hero__facts li::before { content: "✓"; color: var(--contact); margin-right: 6px; font-weight: 800; }

/* The fan of phones */
.fan { position: relative; height: clamp(440px, 52vw, 700px); margin-top: clamp(40px, 6vw, 72px); }
.fan__phone { position: absolute; left: 50%; bottom: -14%; width: clamp(200px, 22vw, 300px); transform-origin: 50% 120%; transition: transform 1.2s var(--ease); }
.fan__phone:nth-child(1) { transform: translateX(-50%) translateX(-118%) rotate(-12deg) translateY(10%); z-index: 1; }
.fan__phone:nth-child(2) { transform: translateX(-50%) translateX(-58%) rotate(-5deg) translateY(2%); z-index: 2; }
.fan__phone:nth-child(3) { transform: translateX(-50%); z-index: 4; }
.fan__phone:nth-child(4) { transform: translateX(-50%) translateX(58%) rotate(5deg) translateY(2%); z-index: 3; }
.fan__phone:nth-child(5) { transform: translateX(-50%) translateX(118%) rotate(12deg) translateY(10%); z-index: 2; }
.js .fan:not(.is-open) .fan__phone { transform: translateX(-50%) translateY(18%); }
.fan__chip {
  position: absolute; z-index: 6; display: flex; align-items: center; gap: 10px;
  background: var(--white); padding: 10px 16px 10px 10px; border-radius: 18px; box-shadow: var(--shadow-xl);
  font-weight: 700; font-size: 15px; line-height: 1.2; white-space: nowrap;
  opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .6s var(--ease), transform .7s var(--spring);
}
.fan.is-open .fan__chip { opacity: 1; transform: none; }
.fan__chip i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--c); color: #fff; font-style: normal; }
.fan__chip i svg { width: 20px; height: 20px; }
.fan__chip small { display: block; font-weight: 500; color: var(--ink-3); font-size: 13px; }
.fan__chip--a { left: 6%; top: 16%; transition-delay: .7s; --c: var(--event); }
.fan__chip--b { right: 5%; top: 8%; transition-delay: .9s; --c: var(--data); }
.fan__chip--c { left: 12%; bottom: 22%; transition-delay: 1.1s; --c: var(--connect); }
.fan__chip--d { right: 9%; bottom: 30%; transition-delay: 1.3s; --c: var(--contact); }
@media (max-width: 760px) {
  .fan { height: 118vw; }
  .fan__phone { width: 50vw; }
  .fan__phone:nth-child(1), .fan__phone:nth-child(5) { display: none; }
  .fan__chip { font-size: 13px; padding: 8px 12px 8px 8px; }
  .fan__chip i { width: 30px; height: 30px; }
  .fan__chip--a { left: 2%; } .fan__chip--b { right: 2%; } .fan__chip--c { left: 2%; } .fan__chip--d { right: 2%; }
}

/* ---------- Marquee of card uses ---------- */
.marquee { background: var(--ink); color: #fff; overflow: hidden; padding: 22px 0; position: relative; z-index: 5; }
.marquee__track { display: flex; gap: 40px; width: max-content; animation: marquee 40s linear infinite; font: 800 clamp(22px, 2.6vw, 34px)/1 var(--f-display); font-stretch: 115%; letter-spacing: -.02em; }
.marquee__track span { display: inline-flex; align-items: center; gap: 40px; }
.marquee__track span::after { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--c, var(--lemon)); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- The story: sticky phone + color fields ---------- */
.story { --bg: var(--contact-deep); background: var(--bg); color: #fff; transition: background-color .7s var(--ease); position: relative; }
.story__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); gap: clamp(32px, 6vw, 96px); }
.story__stick { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; }
.story__phone { width: min(100%, 360px, calc((100vh - 140px) * 0.46)); position: relative; }
.story__phone .phone { box-shadow: 0 60px 120px -40px rgba(0,0,0,.6), inset 0 0 0 2px #2b3446; }
.story__phone .phone img { position: absolute; inset: 3.2%; width: 93.6%; height: 93.6%; opacity: 0; transform: scale(1.03); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.story__phone .phone img.is-on { opacity: 1; transform: none; }
.story__phone .phone::after { content: ""; display: block; padding-top: 0; }

.chapter { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 14vh 0; }
.chapter__num { font: 800 15px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; opacity: .75; display: flex; align-items: center; gap: 12px; }
.chapter__num b { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.16); font-size: 14px; letter-spacing: 0; }
.chapter h2 { font-size: clamp(40px, 5.6vw, 84px); line-height: .92; letter-spacing: -.035em; font-stretch: 118%; margin: 22px 0 24px; }
.chapter p.big { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.5; max-width: 34em; color: rgba(255,255,255,.88); }
.chapter .ticks li::before { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1630' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4 4L18.5 7.5'/%3E%3C/svg%3E"); }
.chapter .ticks { color: rgba(255,255,255,.92); font-size: 18px; max-width: 34em; }
.chapter__inline { display: none; }

/* little live widgets inside chapters */
.widget { margin-top: 30px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 22px; padding: 18px; max-width: 460px; backdrop-filter: blur(6px); }
.widget__label { font: 700 12px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; opacity: .7; margin-bottom: 12px; }
.blocks { display: flex; flex-wrap: wrap; gap: 8px; }
.blocks span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: #fff; color: var(--ink); font-weight: 700; font-size: 15px; opacity: 0; transform: translateY(10px) scale(.95); transition: opacity .5s var(--ease), transform .6s var(--spring); }
.blocks span i { width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--story)); }
.chapter.is-active .blocks span { opacity: 1; transform: none; }
.blocks span:nth-child(2) { transition-delay: .08s; } .blocks span:nth-child(3) { transition-delay: .16s; } .blocks span:nth-child(4) { transition-delay: .24s; }
.blocks span:nth-child(5) { transition-delay: .32s; } .blocks span:nth-child(6) { transition-delay: .40s; } .blocks span:nth-child(7) { transition-delay: .48s; } .blocks span:nth-child(8) { transition-delay: .56s; }
.rsvp { display: grid; gap: 10px; }
.rsvp__row { display: flex; align-items: center; gap: 12px; background: #fff; color: var(--ink); border-radius: 14px; padding: 10px 14px; font-weight: 600; font-size: 15px; opacity: 0; transform: translateX(-12px); transition: opacity .5s var(--ease), transform .6s var(--spring); }
.chapter.is-active .rsvp__row { opacity: 1; transform: none; }
.rsvp__row:nth-child(2) { transition-delay: .25s; } .rsvp__row:nth-child(3) { transition-delay: .5s; }
.rsvp__row .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800; }
.rsvp__row small { margin-left: auto; color: var(--ink-3); font-weight: 600; }
.meter { margin-top: 14px; }
.meter__bar { height: 10px; border-radius: 99px; background: rgba(255,255,255,.2); overflow: hidden; }
.meter__bar i { display: block; height: 100%; width: 0; background: var(--lemon); border-radius: inherit; transition: width 1.6s var(--ease) .3s; }
.chapter.is-active .meter__bar i { width: 76%; }
.meter__txt { display: flex; justify-content: space-between; font-weight: 700; font-size: 15px; margin-top: 8px; }
.ai { font-size: 16px; line-height: 1.55; min-height: 6.5em; }
.ai .cursor { display: inline-block; width: 8px; height: 1.1em; vertical-align: -3px; background: var(--lemon); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.counter { font: 800 56px/1 var(--f-display); font-stretch: 115%; letter-spacing: -.03em; }
.counter small { font: 600 16px/1 var(--f-body); opacity: .75; letter-spacing: 0; margin-left: 8px; }
.tagrow { display: flex; flex-wrap: wrap; gap: 8px; }
.tagrow span { padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.16); font-weight: 600; font-size: 14px; }

@media (max-width: 900px) {
  .story__grid { grid-template-columns: 1fr; }
  .story__stick { display: none; }
  .chapter { min-height: 0; padding: 72px 0; }
  .chapter__inline { display: block; width: min(68vw, 300px); margin: 34px auto 0; }
}

/* ---------- How it works ---------- */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: how; }
.how__step { background: var(--white); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.how__step::before { counter-increment: how; content: counter(how); position: absolute; right: -6px; top: -26px; font: 800 150px/1 var(--f-display); font-stretch: 125%; color: var(--c); opacity: .14; }
.how__step h3 { font-size: 26px; margin: 0 0 10px; }
.how__step p { color: var(--ink-2); margin: 0; }
.how__icon { width: 54px; height: 54px; border-radius: 16px; background: var(--c); color: #fff; display: grid; place-items: center; margin-bottom: 22px; }
.how__icon svg { width: 26px; height: 26px; }
@media (max-width: 900px) { .how { grid-template-columns: 1fr; } }

/* ---------- Extras ---------- */
.extras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.extra { background: var(--white); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); transition: transform .4s var(--spring); }
.extra:hover { transform: translateY(-4px) rotate(-.4deg); }
.extra h3 { font-size: 20px; margin: 16px 0 6px; font-stretch: 105%; }
.extra p { color: var(--ink-2); font-size: 15.5px; margin: 0; line-height: 1.5; }
.extra__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, white); color: var(--c); }
.extra__icon svg { width: 24px; height: 24px; }
@media (max-width: 1000px) { .extras { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .extras { grid-template-columns: 1fr; } }

/* ---------- Switch / compare ---------- */
.switch { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.pricebars { display: grid; gap: 12px; }
.pb { display: grid; grid-template-columns: 90px 1fr 70px; gap: 14px; align-items: center; font-weight: 700; }
.pb i { height: 40px; border-radius: 12px; background: #dfe5ee; position: relative; overflow: hidden; }
.pb i::after { content: ""; position: absolute; inset: 0; width: var(--w); background: #9aa7bb; border-radius: inherit; transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease); }
.pb--us i::after { background: var(--brand); }
.is-visible .pb i::after { transform: scaleX(1); }
.pb span:last-child { text-align: right; font-family: var(--f-display); font-stretch: 110%; }
.pb--us { color: var(--brand); }
@media (max-width: 900px) { .switch { grid-template-columns: 1fr; } }

/* ---------- Screen dots (which image is showing, and how many) ---------- */
.dots { display: flex; justify-content: center; gap: 10px; margin-top: 22px; min-height: 10px; }
.dots button, .dots span {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 99px; cursor: pointer;
  background: rgba(255,255,255,.35); transition: width .35s var(--ease), background .3s;
}
.dots .is-on { width: 28px; background: #fff; }
.dots button:focus-visible { outline: 2px solid var(--lemon); outline-offset: 3px; }
.dots[hidden] { display: none; }

/* Mobile: each chapter gets a swipeable phone with its own dots */
.phone-carousel .phone { overflow: hidden; }
.phone-carousel__track {
  display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; border-radius: 12.5% / 5.8%;
}
.phone-carousel__track::-webkit-scrollbar { display: none; }
.phone-carousel__track img { flex: 0 0 100%; scroll-snap-align: center; border-radius: 0; }
.phone-carousel .dots { margin-top: 18px; }

@media (max-width: 560px) {
  .hero h1 { font-size: clamp(34px, 10.2vw, 56px); }
  .hero__kicker { font-size: 14px; }
  .hero__actions .btn { width: 100%; max-width: 320px; }
}
@media (max-width: 760px) {
  .fan { height: 112vw; margin-top: 28px; }
  .fan__phone { width: 46vw; }
  .fan__chip--c, .fan__chip--d { display: none; }
  .fan__chip--a { left: 0; top: 13%; }
  .fan__chip--b { right: 0; top: 0; }
}

/* ---------- Personas ---------- */
.personas__row { display: grid; grid-template-columns: repeat(3, minmax(0, 280px)); justify-content: center; gap: clamp(20px, 4vw, 56px); align-items: end; }
.persona { margin: 0; text-align: center; transition: transform .5s var(--spring); }
.persona:nth-child(2) { transform: translateY(-28px); }
.persona:hover { transform: translateY(-36px) rotate(-1deg); }
.persona figcaption { margin-top: 22px; display: grid; gap: 4px; }
.persona figcaption b { font: 800 20px/1.1 var(--f-display); font-stretch: 110%; color: var(--c); }
.persona figcaption span { color: var(--ink-2); font-size: 15px; }
.personas__note { text-align: center; color: var(--ink-3); margin-top: 40px; font-size: 15px; }
@media (max-width: 760px) {
  .personas__row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; justify-content: flex-start; margin: 0 calc(var(--gutter) * -1); padding: 40px var(--gutter) 12px; gap: 18px; scrollbar-width: none; }
  .personas__row::-webkit-scrollbar { display: none; }
  .persona { flex: 0 0 62vw; scroll-snap-align: center; }
  .persona:nth-child(2) { transform: none; }
}
.dots--dark button { background: rgba(10,22,48,.2); }
.dots--dark .is-on { background: var(--brand); }
.personas__dots { display: none; }
@media (max-width: 760px) { .personas__dots { display: flex; } }

/* ---------- Mini sites (story cards) ---------- */
.minisites { background: radial-gradient(120% 90% at 85% 10%, #2f7fd8 0%, var(--story-deep) 55%, #0b2a52 100%); color: #fff; overflow: hidden; }
.minisites .eyebrow { color: var(--lemon); }
.minisites .lede { color: rgba(255,255,255,.82); }
.minisites__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.minisites__copy h2 { margin: 14px 0 20px; }
.minisites__blocks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.minisites__blocks li { padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); font-size: 14px; font-weight: 600; }
.minisites__blocks li:nth-child(7), .minisites__blocks li:nth-child(9), .minisites__blocks li:nth-child(10) { background: var(--lemon); color: var(--ink); border-color: var(--lemon); }
.minisites__note { margin: 22px 0 0; color: rgba(255,255,255,.7); font-size: 15px; max-width: 46ch; }
.minisites__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); align-items: start; }
.site { margin: 0; text-align: center; transition: transform .5s var(--spring); }
.site:nth-child(2) { margin-top: 56px; }
.site:nth-child(3) { margin-top: 18px; }
.site:hover { transform: translateY(-10px); }
.site__url { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; padding: 6px 12px 6px 10px; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--ink-2); font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: 0 6px 18px rgba(5,20,45,.3); }
.site__url::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--contact); }
.site figcaption { margin-top: 18px; display: grid; gap: 4px; }
.site figcaption b { font: 800 18px/1.1 var(--f-display); font-stretch: 110%; }
.site figcaption span { color: rgba(255,255,255,.72); font-size: 14px; }
.minisites__dots { display: none; grid-column: 1 / -1; }
@media (max-width: 960px) {
  .minisites__grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .minisites__row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 8px var(--gutter) 8px; gap: 18px; scrollbar-width: none; }
  .minisites__row::-webkit-scrollbar { display: none; }
  .site { flex: 0 0 64vw; scroll-snap-align: center; }
  .site:nth-child(n) { margin-top: 0; }
  .minisites__dots { display: flex; margin-top: 4px; }
}
