/* simply. Home: the brand-line page (spec 2026-11-23 section 4). Phone first; desktop from 900 px. */
.only-desk { display: none; }
@media (min-width: 900px) { .only-desk { display: block; } .only-phone { display: none; } }

/* ---- 1. The stage: one viewport tall; positions in design pixels scaled by --u ---- */
.stage { position: relative; height: var(--stage-h); }
.depth { position: absolute; inset: 0; pointer-events: none; }
.depth--far { opacity: .18; }   /* Figma 305:230 */
.depth--mid { opacity: .40; }   /* Figma 305:259 */
/* --cx, --cy: centre on the 390x844 frame (1440x900 from 900 px); --s: arm length in px; --r: rotation. */
.dshape { position: absolute; left: calc(var(--cx) * 100% / 390 - var(--s) * .5px); top: calc(var(--cy) * var(--u) - var(--s) * .5px);
  width: calc(var(--s) * 1px); height: calc(var(--s) * 1px); rotate: var(--r, 0deg); fill: var(--purple); }
@media (min-width: 900px) { .dshape { left: calc(var(--cx) * 100% / 1440 - var(--s) * .5px); } }

.headline { position: absolute; left: 24px; right: 24px; top: calc(110 * var(--u)); margin: 0; text-align: center;
  font-family: var(--font-display); font-style: italic; font-weight: 900; font-stretch: 125%;
  font-size: min(68px, calc((100vw - 48px) / 5)); line-height: 1.0206; letter-spacing: -0.02em; color: var(--purple);
  text-shadow: 0 2px 0 rgba(42, 8, 102, .14), 0 14px 24px rgba(42, 8, 102, .18); /* Figma 306:61 effects */ }
.headline .w { display: block; white-space: nowrap; }   /* "look Sh*t" is 4.97 em wide in the browser's Saira, so 5 em fits the column */
.nb { white-space: nowrap; }
.ast-mini { display: inline-block; width: .5em; height: .5em; margin: 0 .02em 0 .05em; vertical-align: .36em; fill: currentColor; overflow: visible; rotate: 12deg; }
@media (min-width: 900px) {
  .headline { left: 0; right: 0; top: calc(176 * var(--u)); font-size: min(92px, 6.4vw, calc(92 * var(--u))); line-height: 1.02; }
  .headline .w { display: inline; }
  .headline .w-last { display: block; }
}

.ast-wrap--hero { --ast: min(200px, calc(200 * var(--u))); --rim: 5px; --ast-label: 15px; --floor-top: .965;
  position: absolute; left: 50%; top: calc(540 * var(--u)); translate: -50% 0; }
@media (min-width: 900px) {
  .ast-wrap--hero { --ast: min(306px, calc(306 * var(--u)), 21.25vw); --rim: 6px; --ast-label: 18px; --floor-top: .941; top: calc(418 * var(--u)); }
}

.scroll-arrow { display: none; }
@media (min-width: 900px) {
  .scroll-arrow { position: absolute; left: 50%; top: calc(818 * var(--u)); translate: -50% 0; display: grid; place-items: center;
    width: 56px; height: 56px; border-radius: 50%; background: var(--white); color: var(--purple); border: 2px solid var(--purple);
    box-shadow: 0 6px 16px rgba(42, 8, 102, .16); /* Figma 305:439 */ }
}
#burst-host { position: absolute; inset: 0; pointer-events: none; }

/* ---- shared section type ---- */
.work, .how, .prices, .close { padding-inline: 24px; }
.h2 { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 900; font-stretch: 125%;
  font-size: 37px; line-height: 40px; letter-spacing: -0.02em; color: var(--purple); }   /* Figma 306:195 */
.h2--small { font-size: 26px; line-height: 28px; }                                       /* Figma 306:108 */
.lede { margin: 16px 0 0; font-size: 17px; line-height: 21px; color: var(--ink); }      /* Figma 306:196 */
@media (min-width: 900px) {
  .work, .how, .prices, .close { padding-inline: max(24px, calc((100vw - 1200px) / 2)); }
  .h2 { font-size: 52px; line-height: 56px; }                                            /* Figma 305:444 */
  .h2--small { font-size: 30px; line-height: 32px; }                                     /* Figma 305:355 */
  .lede { margin-top: 24px; font-size: 20px; line-height: 24px; }                        /* Figma 305:445 */
}

/* ---- 2. The proof slider was removed on 23 Nov (his ask); it is in git history at c9f953b ---- */

/* ---- 3. The work: a snapping row on phones, three columns on desktop ---- */
.work { padding-top: 80px; }
.work-row { display: grid; grid-auto-flow: column; grid-auto-columns: 300px; gap: 16px; margin: 28px -24px 0; padding: 0 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 24px; overscroll-behavior-x: contain; scrollbar-width: none; }
.work-row::-webkit-scrollbar { display: none; }
.work-card { scroll-snap-align: start; overflow: hidden; padding-bottom: 22px; }
.work-card img { width: 100%; height: 216px; object-fit: cover; }
.client { margin: 24px 20px 0; font-family: var(--font-display); font-style: italic; font-weight: 900; font-stretch: 125%;
  font-size: 28px; line-height: 38px; color: var(--purple); }                              /* Figma 306:82 */
.chip { display: inline-block; margin: 0 20px; padding: 7.5px 14px; border-radius: 999px; font: 600 14px/17px var(--font-body); }
.chip--live { background: var(--purple); color: var(--white); }
.chip--dev { color: var(--purple); box-shadow: inset 0 0 0 2px var(--purple); padding-inline: 15.5px; }
.dots { display: flex; justify-content: center; gap: 2px; margin-top: 16px; }
.dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(138, 28, 255, .25); }
.dots span.on { background: var(--purple); }
@media (min-width: 900px) {
  .work { padding-top: 120px; }
  .work-row { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: 48px; margin: 46px 0 0; padding: 0; overflow: visible; }
  .work-card { padding-bottom: 24px; }
  .work-card img { height: 240px; }
  .client { margin: 24px 24px 0; font-size: 32px; line-height: 44px; }                      /* Figma 305:329 */
  .chip { margin: 2px 24px 0; }
  .dots { display: none; }
}

/* ---- 4. How it goes live ---- */
.how { padding-top: 56px; }
.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 28px; }   /* Figma 306:120-162: 28 px between steps 2, 3 and 4 */
@media (max-width: 899.98px) { .step:first-child { min-height: 222px; } }   /* the frame keeps step 1 one bullet line taller (49 px to step 2) */
.step-icon { width: 32px; height: 32px; color: var(--purple); }
.step-n { margin: 10px 0 0; font: 600 14px/17px var(--font-body); color: var(--ink-2); }
.step-name { margin: 4px 0 0; font-family: var(--font-display); font-style: italic; font-weight: 900; font-stretch: 125%;
  font-size: 22px; line-height: 24px; color: var(--purple); }                              /* Figma 306:97 */
.step-text { margin: 6px 0 0; font-size: 16px; line-height: 23px; }                       /* Figma 306:98 */
.bullets { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.bullets li { position: relative; padding-left: 18.7px; font-size: 15px; line-height: 21px; }   /* Figma 306:122 */
.bullets li::before { content: ""; position: absolute; left: 1.5px; top: 3.7px; width: 8.7px; height: 8.7px; background: var(--purple);
  mask: url("img/asterisk.svg") center / contain no-repeat; -webkit-mask: url("img/asterisk.svg") center / contain no-repeat; }
@media (min-width: 900px) {
  .how { padding-top: 100px; }
  .steps { grid-template-columns: repeat(4, 264px); justify-content: space-between; gap: 48px; margin-top: 34px; }
  .step-n { margin-top: 10px; }
  .step-name { margin-top: 8px; font-size: 24px; line-height: 26px; }                     /* Figma 305:344 */
  .step-text { margin-top: 15px; font-size: 16px; line-height: 23px; }                    /* Figma 305:345 read: 16px / 1.45 */
  .bullets { gap: 8px; }
  .bullets li { padding-left: 21.9px; font-size: 15px; line-height: 21px; }               /* Figma 305:418 read: 15px / 1.4 */
  .bullets li::before { left: 2.1px; top: 2.4px; width: 11.9px; height: 11.9px; }
}

/* ---- 5. Prices ---- */
.prices { padding-top: 36px; }
.price-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 20px; }
.price { padding: 24px; }
.price-label { margin: 0; font: 600 15px/18px var(--font-body); color: var(--ink-2); }
.figure, .fig-from { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 900; font-stretch: 125%; color: var(--purple); }
.fig-from { margin-top: 9px; font-size: 22px; line-height: 24px; }
.figure { margin-top: 9px; font-size: min(74px, calc((100vw - 96px) / 3.95)); line-height: 80px; }                        /* Figma 306:186-187 */
.fig-from + .figure { margin-top: 4px; }                                                 /* Figma 306:191-192, 305:435-436 */
.fig-r { margin-right: 8px; }
.fig-n { color: var(--lemon); -webkit-text-stroke: 6px var(--purple); paint-order: stroke fill; }
.fig-month { display: block; margin-top: 4px; font-size: 22px; line-height: 24px; }   /* Figma 306:194: 4 px under the figure */
@media (max-width: 899.98px) { .price:nth-child(2) { padding-bottom: 28px; } }       /* the Grow card is 215 px tall in 306:189 */
.price-note { margin: 8px 0 0; font-size: 16px; line-height: 20px; }
@media (min-width: 900px) {
  .prices { padding-top: 85px; }
  .price-row { grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
  .price { padding: 32px; min-height: 262px; }
  .fig-from { font-size: 26px; line-height: 28px; }
  .figure { font-size: 104px; line-height: 112px; }                                       /* Figma 305:430-431 */
  .price:first-child .figure { margin-top: 41px; }                                        /* Figma 305:430: figure at y 91 in both cards */
  .fig-r { margin-right: 10px; }
  .fig-month { display: inline; margin-left: 16px; font-size: 26px; line-height: 28px; }
}

/* ---- 6. Closing asterisk and the footer line ---- */
.close { display: grid; justify-items: center; padding-top: 56px; padding-bottom: 62px; }
.ast-wrap--close { --ast: 160px; --rim: 5px; --ast-label: 12px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ast-wrap--close .ast-btn:hover .ast-arms { transform: rotate(60deg); }   /* hover spins it one notch (spec 4.5) */
}
.foot { padding: 0 24px 32px; text-align: center; font-size: 13px; line-height: 16px; color: var(--ink-2); }
.foot p { margin: 0; }
@media (min-width: 900px) {
  .close { padding-top: 100px; padding-bottom: 150px; }
  .ast-wrap--close { --ast: 180px; --rim: 6px; --ast-label: 13px; }
}

/* ---- Tablets: the phone layout, its column capped at 560 px and centred (spec 4.3) ---- */
@media (min-width: 608px) and (max-width: 899.98px) {
  .work, .how, .prices, .close { padding-inline: calc((100vw - 560px) / 2); }
  .headline { left: calc((100vw - 560px) / 2); right: calc((100vw - 560px) / 2); }
  .work-row { margin-inline: calc((100vw - 560px) / -2); padding-inline: calc((100vw - 560px) / 2); scroll-padding-inline: calc((100vw - 560px) / 2); }
}

/* ---- The flight states (spec 4.2). Only [data-fly="armed"] hides anything, and only with opacity. ---- */
[data-fly="armed"] .ast-wrap--hero .ast-btn,
[data-fly="armed"] .ast-wrap--hero .ast-floor { opacity: 0; }
[data-fly="flying"] .ast-wrap--hero .ast-label { opacity: 0; }
[data-fly="flying"] .ast-wrap--hero .ast-disc { transform: scale(.4); transition: none; }
[data-fly="flying"] .ast-wrap--hero .ast-floor { opacity: 1; transition: opacity 300ms var(--ease-out) 460ms; }
@keyframes pop { 40% { scale: 1.35; } }
.ast-mini.pop { animation: pop 340ms var(--ease-out); }

@keyframes nudge {
  0%, 100% { translate: -50% 0; rotate: 0deg; }
  40% { translate: -50% 10px; rotate: 0deg; }
  55% { translate: -50% 10px; rotate: 4deg; }
  70% { translate: -50% 10px; rotate: -4deg; }
}
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .scroll-arrow { animation: nudge 1.4s ease-in-out .6s 3; }
  .scroll-arrow.still { animation: none; }
}
