:root {
  --page: #fffbf8;
  --panel: #f1ece8;
  --ink: #39322f;
  --ink-input: #2b2627;
  --nav-text: #434343;
  --muted: #615f5e;
  --line: #858382;
  --input-border: #c4c1c1;

  --font-display: "Montagu Slab", Georgia, serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  /* Suisse Intl is a licensed font. Add its @font-face to use it; Instrument Sans stands in until then. */
  --font-ui: "Suisse Intl", "Suisse Intl Trial", "Instrument Sans", system-ui, sans-serif;

  /* Carousel sizes. JS rescales these to fit narrow screens. */
  --big-w: 683px;
  --big-h: 532.035px;
  --small-w: 328px;
  --small-h: 255.501px;
  --gap: 12px;
  --slide-ms: 900ms;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
/* Links to other parts of the page glide there instead of jumping */
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
img { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Nav ---------- */
.nav {
  width: min(1436px, calc(100% - 32px));
  margin: 28px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-ui);
  font-size: 14px;
}
.nav__left { display: flex; align-items: center; gap: 80px; }
.nav__logo img { width: 97.818px; height: 14.06px; }
.nav__links { display: flex; align-items: center; gap: 48px; }
.nav__link { display: flex; align-items: center; gap: 6px; color: var(--nav-text); white-space: nowrap; }
.nav__link:hover { color: var(--ink); }
/* The page you're on (e.g. Careers) is underlined */
.nav__link[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.nav__chev { position: relative; width: 6.812px; height: 4.75px; transition: transform 200ms ease; }
/* Chevron turns to point right on hover (and while the Features menu is open) */
.nav__link:hover .nav__chev, .nav__link:focus-visible .nav__chev, .nav__dd.is-open .nav__dd-btn .nav__chev { transform: rotate(-90deg); }
.nav__chev img { position: absolute; inset: 0 -4.53% -13.44% -4.6%; width: auto; height: auto; }
.nav__actions { display: flex; align-items: center; gap: 12px; }

/* Features dropdown: same names and icons as the feature tabs */
.nav { position: relative; z-index: 50; }
.nav__dd { position: relative; }
.nav__dd-btn { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.nav__dd::after { content: ""; position: absolute; left: -16px; right: -16px; top: 100%; height: 14px; } /* keeps hover alive between button and menu */
.nav__menu {
  position: absolute; left: -16px; top: calc(100% + 12px); width: 860px; padding: 10px;
  display: grid; grid-template-columns: max-content 1fr; gap: 10px;
  background: #fff; border: 1px solid #ece6e1; border-radius: 14px;
  box-shadow: 0 20px 44px -16px rgba(43, 38, 39, 0.3);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
}
.nav__dd.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; transition: opacity 160ms ease, transform 160ms ease; }
.nav__menu-list { display: flex; flex-direction: column; gap: 2px; }
.nav__menu-item {
  display: flex; flex-direction: column; gap: 3px; padding: 11px 14px; border-radius: 9px;
  transition: background-color 150ms ease;
}
.nav__menu-item:hover, .nav__menu-item.is-on, .nav__menu-item:focus-visible { background: #f6f1ed; outline: none; }
.nav__menu-name { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; letter-spacing: 0.01em; color: #393736; white-space: nowrap; }
.nav__menu-name img { width: 12px; height: 12px; }
.nav__menu-desc { padding-left: 19px; font-size: 12px; line-height: 1.4; color: #8a837e; white-space: nowrap; }
/* Preview: the top half of the live phone on the category's background */
.ddp { position: relative; overflow: hidden; border-radius: 10px; background: #3f527a; }
.ddp[data-theme="wood"] { background: #5a3a24; }
.ddp[data-theme="cork"] { background: #a8713f; }
.ddp__stage { position: absolute; left: 0; top: 0; width: 1472px; height: 784.74px; transform-origin: 0 0; pointer-events: none; }
.ddp .features__photo { opacity: 1; }
.ddp .d-chat { justify-content: flex-start; } /* chats grow from the top so they show in the half-phone preview */
/* Solutions dropdown: three products, each previewed on the right */
.nav__menu--sol { width: 700px; }
.nav__menu-name svg { flex: none; width: 12px; height: 12px; fill: none; stroke: #323232; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.sdp { position: relative; min-height: 212px; overflow: hidden; border-radius: 10px; background: var(--panel); }
.sdp__pane { position: absolute; inset: 0; opacity: 0; transition: opacity 200ms ease; }
.sdp__pane.is-on { opacity: 1; }
.sdp__pane--web img { position: absolute; left: 20px; top: 20px; width: 620px; max-width: none; height: auto; border-radius: 6px; box-shadow: 0 0 0 4px #e4ded9, 0 18px 36px -18px rgba(43, 38, 39, 0.35); }
.sdp__phone { position: absolute; left: 50%; top: 16px; width: 316px; height: 660px; transform: translateX(-50%) scale(0.6); transform-origin: top center; }
.sdp .tm-phone { position: relative; left: auto; top: auto; transform: none; }
.sdp__pane--ent { padding: 20px 22px; background: #2b2627; color: #f1ece8; }
.sdp__ent-name { margin: 0; font-family: var(--font-display); font-size: 22px; line-height: 1.3; }
.sdp__ent-desc { margin: 2px 0 14px; font-size: 12.5px; color: rgba(241, 236, 232, 0.6); }
.sdp__ent-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.sdp__ent-list li { display: flex; align-items: center; gap: 8px; }
.sdp__ent-list li::before { content: ""; flex: none; width: 10px; height: 6px; margin-top: -3px; border: solid #c9d6ea; border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg); }
@media (max-width: 1100px) {
  .nav__menu { width: 300px; grid-template-columns: 1fr; }
  .nav__menu-desc { white-space: normal; }
  .ddp, .sdp { display: none; }
}
@media (prefers-reduced-motion: reduce) { .nav__menu, .nav__chev { transition: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 4px; padding: 6px 16px; white-space: nowrap;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.btn--outline { border: 1px solid var(--line); color: var(--muted); }
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }
.nav__download { gap: 4px; } /* Apple logo + label, like the footer's Download app button */
.btn--solid { background: var(--ink); color: #fff; gap: 4px; padding-right: 8px; }
.btn--solid:hover { background: #241f1d; }
.btn__arrow { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 2px; border-radius: 99px; }
.btn__arrow-flip { display: flex; transform: rotate(180deg) scaleY(-1); }
.btn__arrow-icon { position: relative; width: 16px; height: 16px; }
.btn__arrow-icon img { position: absolute; inset: 0; width: 100%; height: 100%; }
.btn__arrow-dot { position: absolute; left: 11.9px; top: 7.25px; width: 1.523px; height: 1.495px; background: var(--ink); }

/* Maker peeking over the nav "Get started" button. The head sits behind the button and rises
   up after load; its pupils are SVG so hero.js can point them at the cursor. */
.peek-host { position: relative; display: inline-flex; }
.peek-host .btn { position: relative; z-index: 1; }
.peek { position: absolute; right: 10px; bottom: calc(100% - 1.6px); width: 31px; aspect-ratio: 172 / 132; pointer-events: none; transform: translateY(100%); animation: peek-up 700ms cubic-bezier(0.3, 1.5, 0.5, 1) 900ms forwards; }
.peek img, .peek__eyes { position: absolute; inset: 0; width: 100%; height: 100%; }
.peek__pupil { fill: #463435; transition: transform 160ms ease-out; }
@keyframes peek-up { to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .peek { animation: none; transform: none; } }

/* ---------- Hero panel ---------- */
.hero {
  position: relative;
  width: min(1480px, calc(100% - 32px));
  margin: 27px auto 24px;
  padding: 87px 0 80px;
  background: var(--panel);
  border-radius: 12px;
  overflow: hidden;
}

.hero__holes {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: calc(100% - 44px);
  display: flex; justify-content: space-between;
  pointer-events: none;
}
.hero__holes--top { top: 20px; }
.hero__holes--bottom { bottom: 20px; }
.hero__holes i {
  width: 30px; height: 10px; border-radius: 99px;
  background: var(--page);
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.15);
}

.hero__copy {
  width: min(612px, calc(100% - 32px));
  margin: 0 auto 48px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center;
}
.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.hero__sub { margin: 0; font-size: clamp(16px, 1.6vw, 18px); line-height: 1.65; }

/* ---------- Carousel ---------- */
.carousel {
  position: relative;
  height: var(--big-h);
}
.carousel__track {
  position: absolute; top: 0; left: 0;
  display: flex; align-items: flex-start; gap: var(--gap);
  will-change: transform;
}
.carousel.is-animating .carousel__track { transition: transform var(--slide-ms) var(--ease); }

.card {
  position: relative; flex: none;
  width: var(--small-w); height: var(--small-h);
  border-radius: 6px; overflow: hidden;
  cursor: pointer;
  padding: 0; border: 0; background: #d9d3ce;
}
.carousel.is-animating .card { transition: width var(--slide-ms) var(--ease), height var(--slide-ms) var(--ease); }
.card.is-active { width: var(--big-w); height: var(--big-h); cursor: default; }
/* The photo files have dark rounded corners (~22px) baked in, so each photo bleeds 24px past the card on every side to hide them */
.card__photo { position: absolute; top: -24px; left: -24px; width: calc(100% + 48px); height: calc(100% + 48px); max-width: none; object-fit: cover; }
.card__texture { position: absolute; inset: 0; overflow: hidden; mix-blend-mode: screen; opacity: 0.5; pointer-events: none; }
.card__texture img { position: absolute; left: 0; top: -0.78%; width: 118.09%; height: 101.56%; max-width: none; }
.card:not(.is-active):hover .card__photo { filter: brightness(1.06); }
.card:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Prompt bar ---------- */
.prompt {
  position: absolute; z-index: 2;
  top: 20.49px; left: 50%; transform: translateX(-50%);
  width: calc(var(--big-w) - 40px);
  min-height: 68px;
  display: flex; align-items: center; gap: 16px;
  padding: 10px 10px 10px 20px;
  background: #fff;
  border: 1px solid var(--input-border);
  border-radius: 6px;
  cursor: text;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.prompt:hover { border-color: #aaa6a5; }
.prompt:focus-within { border-color: var(--ink-input); box-shadow: 0 6px 24px rgba(43, 38, 39, 0.12); }

.prompt__field { position: relative; flex: 1 1 0; min-width: 0; display: flex; align-items: center; cursor: text; }
.prompt__input {
  width: 100%; border: 0; outline: 0; background: transparent; padding: 0;
  font: inherit; font-size: 16px; line-height: 1.35; color: var(--ink-input);
  caret-color: var(--ink-input);
}
.prompt__input::placeholder { color: rgba(43, 38, 39, 0.5); }
.prompt__typed {
  position: absolute; inset: 0; display: flex; align-items: center;
  font-size: 16px; line-height: 1.35; color: var(--ink-input);
  white-space: nowrap; overflow: hidden;
  pointer-events: none;
}
.prompt__try { color: rgba(43, 38, 39, 0.5); white-space: pre; }
.prompt__caret {
  flex: none; width: 1.5px; height: 1.1em; margin-left: 1px;
  background: var(--ink-input);
  animation: blink 1s steps(1) infinite;
}
.prompt.is-typing .prompt__caret { animation: none; }
.prompt.is-user .prompt__typed { visibility: hidden; }
@keyframes blink { 50% { opacity: 0; } }

.prompt__tools { display: flex; align-items: center; gap: 12px; flex: none; }
.prompt__tool {
  display: flex; padding: 8px; border: 0; background: transparent; border-radius: 4px; cursor: pointer;
}
.prompt__tool:hover { background: rgba(43, 38, 39, 0.06); }
.icon-attach { position: relative; width: 24px; height: 24px; }
.icon-attach img { position: absolute; inset: -0.24% -0.02% -0.02% -0.02%; width: auto; height: auto; }
.icon-mic img { width: 24px; height: 24px; }

.prompt__send {
  flex: none; width: 46px; height: 46px; padding: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink-input); border: 0; border-radius: 4px; cursor: pointer;
  transition: transform 120ms ease, background-color 150ms ease;
}
.prompt__send:hover { background: #000; }
.prompt__send:active { transform: scale(0.95); }
.send-icon { position: relative; width: 30px; height: 30px; transform: rotate(90deg); }
.send-icon__line { position: absolute; inset: 20.83% 47.92%; }
.send-icon__line > span { position: absolute; inset: 0 -10%; }
.send-icon__head { position: absolute; inset: 20.83% 29.16% 58.33% 29.16%; }
.send-icon__head > span { position: absolute; inset: -12% -4.24% -8.48% -4.24%; }
.send-icon__line img, .send-icon__head img { width: 100%; height: 100%; }
.send-icon__group { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Smaller screens ---------- */
@media (max-width: 1100px) {
  .nav__links { gap: 28px; }
  .nav__left { gap: 40px; }
}
@media (max-width: 860px) {
  .nav__links, .btn--outline { display: none; }
  .hero { padding: 64px 0 56px; }
}
@media (max-width: 600px) {
  .prompt { padding-left: 14px; gap: 8px; min-height: 56px; top: 12px; width: calc(var(--big-w) - 24px); }
  .prompt__tools { display: none; }
  .prompt__input, .prompt__typed { font-size: 14px; }
  .prompt__send { width: 38px; height: 38px; }
  .send-icon { width: 24px; height: 24px; }
  .hero__copy { margin-bottom: 32px; }
  /* Phones: no tan panel, content sits on the page with 20px side padding */
  .nav { width: calc(100% - 40px); }
  .hero { width: 100%; margin: 12px 0 24px; padding: 56px 20px 0; background: none; border-radius: 0; }
  .hero__holes { display: none; }
  .hero__copy { width: 100%; margin-bottom: 44px; }
  /* Main photo sits 12px from the screen edges; the prompt bar lines up with the text */
  .carousel { overflow: hidden; margin: 0 -8px; }
  .prompt { width: calc(var(--big-w) - 16px); }
}

@media (prefers-reduced-motion: reduce) {
  .carousel.is-animating .carousel__track,
  .carousel.is-animating .card { transition: none; }
  .prompt__caret { animation: none; }
}

/* ---------- Stats ---------- */
.stats {
  --k: 1.12; /* the Figma section shows the stats panel at 112% of its source frame */
  --panel-dark: #2b2627;
  --on-dark: #f1ece8;
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(72px, 9vw, 140px) 0;
}
/* Scroll effect (set up by stats.js): the stack gets extra height, the pin sticks mid-screen,
   and the panel is moved up over the heading as you scroll through that extra height. */
.stats__stack { position: relative; }
.stats__pin { position: relative; }
.stats.is-pinned .stats__pin { position: sticky; }
.stats__title {
  position: relative; z-index: 0;
  margin: 0 0 clamp(28px, 3vw, 40px);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.35;
  color: var(--ink-input);
  text-align: center;
}
.stats__panel {
  position: relative; z-index: 1;
  will-change: transform;
  display: flex; flex-direction: column; gap: calc(28px * var(--k));
  padding: calc(48px * var(--k));
  background: var(--panel-dark);
  border-radius: 12px;
  overflow: hidden;
}
.stats__row {
  display: flex; align-items: center; gap: 10px;
  height: calc(120px * var(--k));
}
.stat {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center;
  margin: 0;
  font-family: var(--font-display);
  color: var(--on-dark);
  text-align: center;
}
.stat__value {
  margin: 0;
  font-size: calc(40px * var(--k));
  line-height: 1.85;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  margin: 0;
  font-size: calc(18px * var(--k));
  line-height: 1.85;
  color: rgba(241, 236, 232, 0.75);
}

.stats__vline {
  flex: none; align-self: stretch; width: 0;
  display: flex; align-items: center; justify-content: center;
  container-type: size;
}
.stats__vline img { flex: none; width: 100cqh; height: 1px; transform: rotate(90deg); }

.stats__hline { position: relative; height: 1px; }
.stats__hline-img { width: 100%; height: 1px; }
.stats__mark {
  position: absolute; top: 50%;
  width: calc(56px * var(--k)); height: calc(56px * var(--k));
  transform: translate(-50%, -50%);
}
/* Centered on the column dividers: 3 equal columns, 4 × 10px gaps. */
.stats__mark--1 { left: calc((100% - 40px) / 3 + 10px); }
.stats__mark--2 { left: calc((100% - 40px) / 3 * 2 + 30px); }


/* "Top businesses" cell: same label color as the other stats, no arrow */
.stat--link { text-decoration: none; }
.stat__logo-slot {
  height: calc(40px * 1.85 * var(--k));
  display: flex; align-items: center; justify-content: center;
}
/* Logo rotator: each logo fades and rises in, the old one rises out */
.logo-swap { display: grid; place-items: center; }
.logo-swap__item {
  grid-area: 1 / 1; display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(8px);
  transition: opacity 400ms ease, transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.logo-swap__item.is-on { opacity: 1; transform: none; }
.logo-swap__item.is-out { transform: translateY(-8px); }
.logo-swap__img { width: auto; max-width: none; }
.logo-swap__img--remi { height: calc(30px * var(--k)); }
.logo-swap__img--natures { height: calc(23px * var(--k)); }
@media (prefers-reduced-motion: reduce) { .logo-swap__item { transition: none; } }
.bernie {
  position: relative; flex: none;
  width: 181.59px; height: 36.367px;
  transform: scale(var(--k));
}
.bernie__frame {
  position: absolute; left: 0; top: 0;
  width: 26.837px; height: 36.367px;
  overflow: hidden; transform: rotate(180deg);
}
.bernie__frame img { position: absolute; left: 0; top: -4.66%; width: 100%; height: 110.64%; max-width: none; }
.bernie__painting {
  position: absolute; left: 5.52px; top: 5.94px;
  width: 15.858px; height: 24.525px; overflow: hidden;
}
.bernie__painting img { position: absolute; left: -45.05%; top: -12.01%; width: 188.1%; height: 121.63%; max-width: none; }
.bernie__wordmark { position: absolute; left: 34.36px; top: 9.37px; width: 147.234px; height: 17.675px; }

@media (max-width: 1300px) {
  .stats { --k: 1; }
}
@media (max-width: 1000px) {
  .stats { --k: 0.8; }
}
@media (max-width: 720px) {
  .stats { --k: 0.85; }
  .stats__title { margin-bottom: 24px; }
  .stats__panel { padding: 8px 24px; gap: 0; }
  .stats__row { flex-direction: column; height: auto; gap: 0; }
  .stat { width: 100%; padding: 20px 0; }
  .stats__vline { width: 100%; height: 1px; align-self: auto; container-type: normal; }
  .stats__vline img { width: 100%; transform: none; }
  .stats__mark { display: none; }
}

/* ---------- 1-2-3 steps ---------- */
.steps {
  --step-ms: 700ms;
  width: min(1322.5px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: clamp(72px, 9vw, 140px);
  display: flex; flex-direction: column; gap: 64px;
}
.steps__line { width: 100%; height: 1px; }
.steps__head { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: -24px; /* 64 - 24 = 40px to cards */ }
.steps__title {
  margin: 0; max-width: 418px;
  font-family: var(--font-display); font-weight: 400;
  font-size: 32px; line-height: 1.35; color: var(--ink-input);
}
.steps__intro { margin: 0; max-width: 550px; font-size: 18px; line-height: 1.65; text-align: right; }

.steps__row { display: flex; gap: 16px; height: 600px; container-type: inline-size; }

.step {
  position: relative; overflow: hidden;
  flex: 245 1 0; min-width: 0;
  background: var(--panel);
  border-radius: 12px;
  transition: flex-grow var(--step-ms) var(--ease), background-color 200ms ease;
}
.step.is-active { flex-grow: 800; }
.step:not(.is-active):hover { background: #ebe5e0; }

.step__toggle {
  position: absolute; inset: 0; z-index: 3;
  border: 0; padding: 0; background: transparent; cursor: pointer;
  border-radius: inherit;
}
.step__toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.step.is-active .step__toggle { pointer-events: none; }

.step__num {
  position: absolute; left: 24px; top: 12px;
  font-weight: 700; font-size: 24px; line-height: 1.35; color: #c8beb0;
}

/* Big illustration (open card) */
.step__stage {
  position: absolute; left: 50%; top: 57.65px; transform: translateX(-50%);
  width: calc(100% - 50px); max-width: 750px; height: 374px;
  display: flex; align-items: center; justify-content: center;
  background: #e4ded9; border-radius: 12px; overflow: hidden;
  transition: opacity 450ms ease, filter 450ms ease;
}
.step:not(.is-active) .step__stage { opacity: 0; filter: blur(8px); pointer-events: none; }
.step.is-active .step__stage { transition-delay: 200ms; }

/* Blurred preview (closed card) */
.step__peek {
  position: absolute; left: 50%; top: 56px; transform: translateX(-50%);
  width: 195px; height: 360px;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 400ms ease;
}
.step.is-active .step__peek { opacity: 0; }
.peek__bg { position: absolute; inset: 0; background: #e4ded9; border-radius: 12px; filter: blur(6px); }
.peek__photo { position: relative; width: 143.406px; height: 243.137px; object-fit: cover; border-radius: 12px; opacity: 0.75; filter: blur(4px); }

/* Text + button */
.step__text {
  position: absolute; left: 24.5px; bottom: 20px;
  /* Sized to the fully open card so text doesn't rewrap while the card grows (it's clipped instead). */
  width: min(699.469px, calc((100cqw - 32px) * 800 / 1290 - 49px));
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
  transition: opacity 400ms ease, filter 400ms ease;
}
.step__title { margin: 0 0 -14px; font-weight: 500; font-size: 18px; line-height: 1.35; color: var(--ink-input); white-space: nowrap; }
.step__desc { margin: 0; font-size: 14px; line-height: 1.65; }
.step__cta { font-family: var(--font-ui); font-size: 14px; }
.step:not(.is-active) .step__text { opacity: 0.5; filter: blur(2px); }
.step:not(.is-active) .step__text { width: 195px; }
.step:not(.is-active) .step__desc {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Paper texture used behind every little card */
.paper { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 6px; pointer-events: none; }

/* Step 1: prompt box */
.ask { width: 580px; max-width: 100%; padding: 4px; background: #d6d1cb; border-radius: 8px; }
.ask__inner {
  position: relative; min-height: 220px; padding: 24px;
  display: flex; border: 1.5px solid #cec7bf; border-radius: 6px;
  transition: outline-color 200ms ease;
  outline: 1.5px dashed transparent; outline-offset: -7px;
}
.ask.is-dropping .ask__inner { outline-color: #a79e94; }
.ask__body { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ask__text { position: relative; flex: 1; margin: 0; font-size: 14px; line-height: 1.5; color: #4d4841; white-space: pre-wrap; }
.ask__placeholder { opacity: 0.7; }
.ask__typed { color: var(--ink-input); }
.ask__caret { position: absolute; left: 0; top: 1.5px; width: 0.868px; height: 18px; animation: blink 1s steps(1) infinite; }
.ask.is-typing .ask__caret { animation: none; }
.ask.has-text .ask__caret { display: none; }
.ask.has-text .ask__typed::after {
  content: ""; display: inline-block; width: 0.868px; height: 18px; margin-left: 1px; vertical-align: -4px;
  background: var(--ink-input); animation: blink 1s steps(1) infinite;
}
.ask.is-typing .ask__typed::after { animation: none; }
.ask__bar { display: flex; align-items: flex-start; justify-content: space-between; }
.ask__plus { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 8px; border: 1px solid #dad7d3; }
.ask__plus img { width: 12px; height: 12px; }
.ask__actions { display: flex; align-items: center; gap: 16px; }
.ask__mic { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 8px; }
.ask__send {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 8px; background: var(--ink-input); border-radius: 2px;
  transition: transform 150ms ease;
}
.ask__send.is-pressed { transform: scale(0.88); }
.send-icon--sm { width: 22px; height: 22px; }

.mic { position: relative; width: 20px; height: 20px; flex: none; }
.mic img { display: block; width: 100%; height: 100%; }
.mic__group { position: absolute; inset: 0; }
.mic__p1, .mic__p2, .mic__p3, .mic__p4 { position: absolute; }
.mic__p1 > span, .mic__p2 > span, .mic__p3 > span, .mic__p4 > span { position: absolute; }
.mic__p1 { inset: 12.5% 37.5% 37.5% 37.5%; }  .mic__p1 > span { inset: -5% -10%; }
.mic__p2 { top: 41.67%; bottom: 25%; left: 25%; right: 25%; }  .mic__p2 > span { inset: 0 -5% -7.5% -5%; }
.mic__p3 { top: 75%; bottom: 12.5%; left: 47.92%; right: 47.92%; }  .mic__p3 > span { inset: -20% -10%; }
.mic__p4 { inset: 85.42% 32.58% 10.42% 32.58%; }  .mic__p4 > span { inset: -10% 0; }

/* Step 1 attachments */
.ask__tray {
  display: flex; align-items: center; gap: 8px;
  height: 0; margin-top: -12px; /* takes no room until something is attached */
  transition: height 320ms var(--ease), margin-top 320ms var(--ease);
}
.ask.has-tray .ask__tray { height: 48px; margin-top: 0; }
.attach { flex: none; height: 48px; border-radius: 6px; }
.ask__tray .attach { opacity: 0; transition: opacity 150ms ease; }
.ask__tray .attach.is-in { opacity: 1; }
.attach--file {
  display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px;
  background: #fff; border: 1px solid #e4ded9; box-shadow: 0 1px 2px rgba(43, 38, 39, 0.06);
}
.attach__icon {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 32px; height: 32px; border-radius: 4px;
  background: #b5523b; color: #fff; font-size: 9px; font-weight: 700; letter-spacing: 0.04em;
}
.attach__info { display: flex; flex-direction: column; gap: 2px; }
.attach__name { font-size: 12px; font-weight: 550; line-height: 1.35; color: #2f353b; white-space: nowrap; }
.attach__meta { font-size: 10px; font-weight: 500; line-height: 1.35; color: #7c8084; white-space: nowrap; }
.attach--img { width: 48px; object-fit: cover; border: 1px solid #e4ded9; }

/* Items being dragged into the prompt */
.drag-ghost { position: absolute; z-index: 5; pointer-events: none; filter: drop-shadow(0 14px 20px rgba(43, 38, 39, 0.22)); }
.drag-ghost .attach { width: 100%; height: 100%; }
.drag-ghost .drag-stack-img {
  position: absolute; left: 0; top: 0; width: 48px; height: 48px;
  object-fit: cover; border-radius: 6px; border: 1px solid #e4ded9;
}
.drag-cursor { position: absolute; right: -12px; bottom: -16px; z-index: 3; transition: opacity 200ms ease; }
.drag-badge {
  position: absolute; top: -8px; right: -10px; z-index: 2;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink-input); color: #fff; font-size: 10px; font-weight: 600;
  transition: opacity 150ms ease;
}

/* Step 1 mini version in the closed card */
.ask--mini { position: relative; width: 160px; padding: 8px; background: #e0d8d5; filter: blur(6px); }
.ask--mini .ask__inner { border-color: #d6d3cf; }
.ask--mini .ask__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 0.7; }
.ask--mini .ask__plus { margin-right: -16px; }

/* Step 2 */
.customize { width: 505px; max-width: calc(100% - 64px); height: auto; transition: transform 700ms var(--ease); }
.step:not(.is-active) .customize { transform: scale(0.94); }

/* Step 3: scrolling task feed */
.tasks { position: absolute; inset: 0; }
.task-col { position: absolute; top: 0; bottom: 0; width: 288px; overflow: visible; }
.task-col--mid { left: 50%; margin-left: -144px; }
.task-col--left { right: calc(50% + 178.5px); }
.task-col--right { left: calc(50% + 178.5px); }
.task-col__track { display: flex; flex-direction: column; gap: 16px; animation: feed-up 30s linear infinite; }
.task-col--left .task-col__track, .task-col--right .task-col__track { animation-name: feed-down; animation-duration: 36s; }
.step:not(.is-active) .task-col__track { animation-play-state: paused; }
@keyframes feed-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 8px)); } }
@keyframes feed-down { from { transform: translateY(calc(-50% - 8px)); } to { transform: translateY(0); } }

.tile { flex: none; padding: 2px; background: #d6d1cb; border-radius: 8px; }
.tile__inner { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px; border: 1.5px solid #cec7bf; border-radius: 6px; }
.avatar { position: relative; flex: none; width: 26px; display: flex; align-items: center; justify-content: center; }
.avatar__crop { position: relative; overflow: hidden; }
.avatar__crop img { position: absolute; max-width: none; }
.task__text { position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.task__title { margin: 0; font-size: 12px; font-weight: 550; line-height: 1.35; color: #2f353b; white-space: nowrap; }
.task__meta { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 500; line-height: 1.35; color: #7c8084; white-space: nowrap; }
.task__meta i { width: 2.715px; height: 2.715px; margin-top: 2px; background: #7c8084; opacity: 0.5; }
.task__meta i { flex: none; }
.task__sub { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.task__sub.is-new { animation: task-sub-in 350ms ease; }
@keyframes task-sub-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.task__time { flex: none; font-variant-numeric: tabular-nums; }
/* "..." after each title fills in one dot at a time: .  ..  ... */
.task__dots i { font-style: normal; animation: 1.2s step-end infinite var(--d, 0s); }
.task__dots i:nth-child(2) { animation-name: task-dot-2; }
.task__dots i:nth-child(3) { animation-name: task-dot-3; }
@keyframes task-dot-2 { 0% { opacity: 0; } 33.333% { opacity: 1; } }
@keyframes task-dot-3 { 0% { opacity: 0; } 66.666% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .task__dots i { animation: none; } }

/* Step 3 mini version: columns of avatar tiles */
.peek__tiles { position: absolute; inset: 0; filter: blur(4px); }
.peek__col { position: absolute; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.peek__col--mid { left: 50%; top: 20.5px; width: 54px; margin-left: -27px; }
.peek__col--left { left: 50%; top: 49.3px; width: 29px; height: 290px; margin-left: calc(-74.31px - 14.5px); align-items: flex-end; }
.peek__col--right { left: 50%; top: 49.3px; width: 29px; height: 290px; margin-left: calc(74.06px - 14.5px); align-items: flex-start; }

/* Mid-size screens: shorter illustration so a 3-line description still fits */
@media (max-width: 1250px) {
  .step__stage { height: 330px; }
}

/* ---------- Ways to use Vectored (2x2 cards under the steps) ---------- */
.apps__head { display: none; }
.apps {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: -48px; /* 16px under the step cards instead of the section's 64px */
}
.app-card {
  position: relative; overflow: hidden;
  height: 600px; border-radius: 12px; background: var(--panel);
}
.app-card__art { position: absolute; inset: 0 0 auto; height: 462px; }
.app-card--terminal { grid-column: 1 / -1; } /* last card spans the row now that there are three */
.app-card__text {
  position: absolute; left: 25px; bottom: 20px; width: min(543px, calc(100% - 50px));
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
}
.app-card__copy { display: flex; flex-direction: column; gap: 4px; }
.app-card__title { margin: 0; font-weight: 500; font-size: 18px; line-height: 1.35; color: var(--ink-input); }
.app-card__desc { margin: 0; font-size: 14px; line-height: 1.65; color: var(--ink); }
.app-card__cta { font-family: var(--font-ui); font-size: 14px; }

/* Mobile: app icon folder */
.app-icons {
  position: absolute; left: 50%; top: 62.64px; transform: translateX(-50%);
  display: grid; grid-template-columns: repeat(2, 116.589px); column-gap: 32px; row-gap: 16px;
  margin: 0; padding: 20px; list-style: none;
  background: rgba(105, 90, 74, 0.1); border-radius: 40px;
}
.app-icons__item { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.app-icons__item img { width: 116.589px; height: 116.589px; }
.app-icons__item > span:last-child { font-weight: 500; font-size: 11px; line-height: 1.65; color: #786f6b; white-space: nowrap; }

/* Install animation (steps.js adds .is-live, then .is-loading and .is-ready per app) */
.app-icon { position: relative; display: grid; place-items: center; width: 116.589px; height: 116.589px; }
.app-icon > * { grid-area: 1 / 1; }
.app-icon__blank {
  width: 100%; height: 100%; border-radius: 25.26px;
  background: linear-gradient(135deg, #fcfbfa 0%, #f8f6f4 45%, #ebe6e2 100%);
  box-shadow: inset 0 0 0 0.5px rgba(57, 50, 47, 0.04);
}
.app-icon__img { position: relative; }
.app-icons__label { display: grid; justify-items: center; }
.app-icons__label > span { grid-area: 1 / 1; transition: opacity 300ms ease; }

.app-icons.is-live .app-icon__img { opacity: 0; transform: scale(0.6); transition: opacity 250ms ease, transform 250ms ease; }
.app-icons.is-live .app-icons__name { opacity: 0; }
.app-icons:not(.is-live) .app-icons__ph,
.app-icons:not(.is-live) .app-icon__blank { opacity: 0; }

.app-icons.is-live .is-ready .app-icon__img {
  opacity: 1; transform: none;
  transition: opacity 300ms ease, transform 550ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Loading: the blank icon flashes until the app appears */
.app-icons.is-live .is-loading .app-icon__blank { animation: app-loading 900ms ease-in-out infinite; }
@keyframes app-loading { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.app-icons.is-live .is-ready .app-icons__ph { opacity: 0; }
.app-icons.is-live .is-ready .app-icon__blank { animation: app-blank-out 200ms ease 350ms both; }
@keyframes app-blank-out { from { opacity: 1; } to { opacity: 0; } }
.app-icons.is-live .is-ready .app-icons__name { opacity: 1; }

/* Web app: desktop screenshot that bleeds off the card's right edge */
.wa-shot { position: absolute; left: 41px; top: 20.64px; width: 1000px; max-width: none; height: auto; }
.app-card__fade {
  position: absolute; left: 0; top: 219.31px; width: 100%; height: 242.69px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(241, 236, 232, 0), var(--panel));
}

/* Text your maker: iPhone with the Vectored chat */
.tm-phone {
  --ink-p: #2b2627; --muted-p: #8a837e; --line-p: #ece6e1;
  position: absolute; left: 50%; top: 32px; transform: translateX(-50%);
  width: 316px; height: 660px; padding: 8px; border-radius: 56px;
  background: #1f1c1b;
  box-shadow: inset 0 0 0 1.5px #4a4340, 0 0 0 1.5px #cbc2ba, 0 28px 50px -18px rgba(43, 38, 39, 0.35);
}
.tm-phone__btn { position: absolute; width: 3px; border-radius: 2px; background: #bdb4ac; }
.tm-phone__btn--action { left: -3px; top: 108px; height: 26px; }
.tm-phone__btn--up { left: -3px; top: 152px; height: 48px; }
.tm-phone__btn--down { left: -3px; top: 210px; height: 48px; }
.tm-phone__btn--power { right: -3px; top: 168px; height: 74px; }
.tm-screen {
  position: relative; height: 100%; overflow: hidden; border-radius: 48px;
  background: #faf6f1; color: var(--ink-p);
  font-family: var(--font-body); font-size: 12px; line-height: 1.4;
}
.tm-island { position: absolute; left: 50%; top: 11px; width: 92px; height: 27px; margin-left: -46px; border-radius: 20px; background: #000; }
.tm-status { position: absolute; left: 0; right: 0; top: 15px; padding: 0 26px 0 32px; display: flex; justify-content: space-between; align-items: center; }
.tm-status__time { font-size: 14px; font-weight: 600; }
.tm-status__icons { display: flex; align-items: center; gap: 5px; }
.tm-wifi { display: block; }
.tm-head { position: absolute; left: 18px; right: 18px; top: 48px; height: 58px; display: flex; align-items: center; justify-content: center; }
.tm-head__who { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.tm-head__avatar { width: 40px; height: 40px; border-radius: 50%; }
.tm-head__name { font-size: 12px; font-weight: 500; line-height: 1.2; }
.tm-head__menu { position: absolute; right: 2px; top: 14px; width: 16px; display: flex; flex-direction: column; gap: 3.5px; }
.tm-head__menu i { height: 1.5px; border-radius: 1px; background: var(--ink); }
.tm-chip > img { mix-blend-mode: multiply; }
.tm-thread { position: absolute; left: 14px; right: 14px; top: 118px; display: flex; flex-direction: column; gap: 12px; }
.tm-thread p { margin: 0; }
.tm-msg {
  align-self: flex-end; max-width: 80%; padding: 9px 13px;
  border-radius: 18px 18px 5px 18px; background: var(--ink-p); color: #fff;
  font-size: 13px; line-height: 1.35;
}
.tm-typing {
  display: none; align-self: flex-start; align-items: center; gap: 4px; padding: 11px 13px;
  border-radius: 18px 18px 18px 5px; background: #fff; border: 1px solid var(--line-p);
}
.tm-typing i { width: 6px; height: 6px; border-radius: 50%; background: #b9b1aa; animation: tm-bounce 1s ease-in-out infinite; }
.tm-typing i:nth-child(2) { animation-delay: 0.15s; }
.tm-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes tm-bounce { 0%, 60%, 100% { transform: none; opacity: 0.6; } 30% { transform: translateY(-3px); opacity: 1; } }
.tm-reply__title { margin-bottom: 8px !important; font-size: 14px; font-weight: 500; }
.tm-brief {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 12px 14px 14px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line-p); box-shadow: 0 1px 2px rgba(43, 38, 39, 0.04);
}
.tm-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 6px;
  border-radius: 6px; background: #f5f1ec; border: 1px solid #e7e0d9;
  font-family: "Inria Serif", Georgia, serif; font-style: italic; font-size: 12px;
}
.tm-stats { width: 100%; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; }
.tm-stats div { display: flex; flex-direction: column-reverse; }
.tm-stats dd { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.tm-stats dt { font-size: 11px; color: var(--muted-p); }
.tm-brief__note { font-size: 12px; line-height: 1.5; color: #6f6762; }

/* Conversation plays when the card scrolls into view (steps.js adds .is-live, then .s1 .s2 .s3) */
.tm-thread.is-live .tm-msg, .tm-thread.is-live .tm-reply {
  opacity: 0; transform: translateY(10px);
  transition: opacity 350ms ease, transform 450ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tm-thread.is-live .tm-msg { transform: translateY(10px) scale(0.96); transform-origin: right bottom; }
.tm-thread.s1 .tm-msg, .tm-thread.s3 .tm-reply { opacity: 1; transform: none; }
.tm-thread.s2:not(.s3) .tm-typing { display: inline-flex; }

/* Plug it into a terminal: Vectored open in a dark code editor, in the same bezel as the web app shot */
.term {
  --t-bg: #1c1b1a; --t-side: #191817; --t-rule: #2c2a28; --t-ink: #dcd6d0; --t-mut: #7c7570; --t-dim: #57524e;
  --t-h: #a9bdd3; --t-acc: #e3a46a; --t-ok: #9cc59a;
  position: absolute; left: 41px; top: 20.64px; width: max(1000px, 100%); height: 560px; /* bleeds off the card's right edge and runs under the fade, like .wa-shot */
  padding: 6px; border-radius: 7px; background: #d6d0cc;
  font-family: "Geist Mono", "SF Mono", ui-monospace, Menlo, monospace; font-size: 10.5px; line-height: 15px; color: var(--t-ink);
}
.ide {
  display: grid; grid-template-rows: 30px 1fr 26px; height: 100%; overflow: hidden;
  border-radius: 3px; background: var(--t-bg); box-shadow: 0 0 0 1px #c0b7b1;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.ide svg { flex: none; width: 11px; height: 11px; color: var(--t-mut); }
.ide__top { position: relative; display: flex; align-items: center; padding-left: 166px; border-bottom: 1px solid var(--t-rule); } /* title lines up with the editor; the right side is cut off */
.ide__title { color: #b9b2ac; letter-spacing: 0.1em; }
.ide__keys { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: flex; gap: 6px; }
.ide__key { display: flex; align-items: center; gap: 5px; padding: 2px 3px 2px 6px; border-radius: 5px; background: #2a2826; }
.ide__key--plain { background: none; }
.ide__key kbd { padding: 0 4px; border: 1px solid #3d3a37; border-radius: 3px; font: inherit; font-size: 9px; color: var(--t-mut); }
.ide__main { display: grid; grid-template-columns: 152px 1fr; min-height: 0; }
.ide__tree { margin: 0; padding: 6px 0; list-style: none; overflow: hidden; background: var(--t-side); border-right: 1px solid var(--t-rule); }
.ide__tree li { display: flex; align-items: center; gap: 6px; height: 19.5px; padding-left: 22px; white-space: nowrap; color: #c9c2bc; }
.ide__tree .ide__chev { width: 9px; height: 9px; margin-left: -13px; margin-right: -2px; color: var(--t-dim); }
.ide__tree li.is-open { margin: 0 4px; padding-left: 18px; border-radius: 4px; background: #2a2826; color: #f2ede8; }
.ide__tree li.is-live { color: var(--t-acc); }
.ide__tree li.is-live i { width: 5px; height: 5px; margin: 0 3px; border-radius: 50%; background: var(--t-acc); animation: term-blink 1.6s ease-in-out infinite; }
.ide__panes { display: grid; grid-template-rows: 26px 82px 26px 1fr; min-width: 0; min-height: 0; }
.ide__tab { display: flex; align-items: center; padding: 0 14px; border-bottom: 1px solid var(--t-rule); color: var(--t-mut); }
.ide__tab--term { border-top: 1px solid var(--t-rule); }
.ide__editor { position: relative; display: flex; min-height: 0; overflow: hidden; }
.ide__code { flex: 1; min-width: 0; margin: 0; padding: 7px 0 0; list-style: none; text-transform: none; letter-spacing: 0; }
.ide__code li { display: flex; gap: 14px; white-space: pre; overflow: hidden; }
.ide__ln { flex: none; width: 26px; text-align: right; color: var(--t-dim); }
.ide__mini { flex: none; width: 34px; padding: 6px 5px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--t-rule); position: relative; }
.ide__mini i { display: block; height: 1.5px; background: #4a4643; }
.ide__mini-view { position: absolute; left: 0; right: 0; top: 0; height: 44px; background: rgba(255, 255, 255, 0.05); }
.term__body {
  margin: 0; padding: 9px 14px; white-space: pre; overflow: hidden;
  font: inherit; text-transform: none; letter-spacing: 0; color: var(--t-ink);
}
.term .t-h { color: var(--t-h); }
.term .t-mut { color: var(--t-mut); }
.term .t-dim { color: var(--t-dim); }
.term .t-ok { color: var(--t-ok); }
.term .t-acc { color: var(--t-acc); }
.ide__status { display: flex; align-items: center; gap: 10px; padding: 0 12px; border-top: 1px solid var(--t-rule); color: var(--t-mut); }
.ide__status > span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.ide__sep { width: 1px; height: 11px; background: var(--t-rule); }
.ide__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--t-acc); }
.ide__count { margin-left: auto; }
.term__cursor { display: inline-block; width: 6px; height: 12px; margin-bottom: -2px; background: var(--t-ink); animation: term-blink 1.1s steps(1) infinite; }
@keyframes term-blink { 50% { opacity: 0; } }
@media (max-width: 640px) {
  .term { padding: 5px; font-size: 9px; line-height: 13px; }
  .ide__main { grid-template-columns: 1fr; }
  .ide__tree, .ide__mini, .ide__keys { display: none; }
  .term__body { padding: 8px 10px; }
  .term__cursor { width: 5px; height: 10px; }
}

/* Fades the screenshot out and keeps it from showing behind the card text */
.app-card__fade--solid { height: 400px; background: linear-gradient(to bottom, rgba(241, 236, 232, 0), var(--panel) 242.69px); }
/* Fades the editor out below the terminal output */
.app-card__fade--term {
  top: 332px; height: 400px; /* fades over 130px, then stays solid behind the card text */
  background: linear-gradient(to bottom, rgba(241, 236, 232, 0), rgba(241, 236, 232, 0.35) 45px, rgba(241, 236, 232, 0.8) 90px, var(--panel) 130px);
}
/* Fades the phone out before the card text */
.app-card__fade--phone { top: 290px; height: 400px; background: linear-gradient(to bottom, rgba(241, 236, 232, 0), var(--panel) 150px); }

/* Stack the steps on narrow screens */
@media (max-width: 960px) {
  .steps { gap: 40px; }
  .steps__head { flex-direction: column; align-items: flex-start; margin-bottom: 0; gap: 12px; }
  .steps__intro { text-align: left; font-size: 16px; }
  .steps__row { flex-direction: column; height: auto; }
  .step, .step.is-active { flex: none; display: flex; flex-direction: column; padding: 56px 16px 20px; gap: 20px; }
  .step__toggle, .step__peek { display: none; }
  .step__stage, .step:not(.is-active) .step__stage {
    position: relative; left: auto; top: auto; transform: none;
    width: 100%; max-width: none; height: 320px; opacity: 1; filter: none;
  }
  .step__text, .step:not(.is-active) .step__text { position: relative; left: auto; bottom: auto; width: 100%; opacity: 1; filter: none; }
  .step:not(.is-active) .step__desc { display: block; }
  .step:not(.is-active) .task-col__track { animation-play-state: running; }
  .step:not(.is-active) .customize { transform: none; }
  .ask { width: calc(100% - 32px); }
  .ask__inner { min-height: 200px; padding: 18px; }
  .ask.has-tray .ask__tray { height: auto; flex-wrap: wrap; }
  .step__stage, .step:not(.is-active) .step__stage { height: auto; min-height: 320px; padding: 24px 0; }
  .apps { grid-template-columns: 1fr; margin-top: -16px; }
  /* Own header for the app cards, so they read as a separate group from the 1-2-3 steps */
  .apps__head { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; padding-top: 48px; border-top: 1px solid #e4ded9; }
  .app-card, .app-card--short { height: auto; display: flex; flex-direction: column; }
  .app-card__art { position: relative; height: 420px; flex: none; overflow: hidden; }
  .app-card--short .app-card__art { height: 240px; }
  .app-card--phone .app-card__art { height: 420px; }
  .app-card--terminal .app-card__art { height: 462px; }
  /* Stacked cards: fades finish fully solid right where the art ends, on an eased curve so there's no hard edge */
  .app-card__fade--phone, .app-card__fade--solid {
    top: auto; bottom: 0; height: 210px;
    background: linear-gradient(to bottom,
      rgba(241, 236, 232, 0) 0%, rgba(241, 236, 232, 0.06) 14%, rgba(241, 236, 232, 0.16) 27%,
      rgba(241, 236, 232, 0.32) 40%, rgba(241, 236, 232, 0.52) 53%, rgba(241, 236, 232, 0.72) 66%,
      rgba(241, 236, 232, 0.88) 79%, rgba(241, 236, 232, 0.97) 90%, var(--panel) 100%);
  }
  .app-card__fade--phone { height: 240px; }
  .term { left: 24px; width: 820px; }
  .wa-shot { left: 24px; width: 820px; }
  .app-card__text { position: relative; left: auto; bottom: auto; width: auto; padding: 0 16px 20px; }
}
@media (max-width: 600px) {
  /* Phones: no inner tan box around the step illustrations; they use the card's full width */
  .step__stage, .step:not(.is-active) .step__stage { background: none; border-radius: 0; padding: 0; }
  .ask { width: 100%; }
  .ask__tray .attach--img { display: none; } /* phones: just the PDF, no photos */
  .customize { width: 100%; max-width: none; } /* fills the card, same side padding as the text */
  #step-3 .step__stage { -webkit-mask-image: linear-gradient(#0000, #000 32px, #000 calc(100% - 32px), #0000); mask-image: linear-gradient(#0000, #000 32px, #000 calc(100% - 32px), #0000); } /* soft edges on the scrolling tasks */
}

@media (prefers-reduced-motion: reduce) {
  .task-col__track { animation: none; }
  .step, .step__stage, .step__text, .step__peek, .customize { transition: none; }
}

/* ---------- Closing CTA ---------- */
.cta { width: min(1480px, calc(100% - 32px)); margin: 0 auto clamp(72px, 9vw, 140px); }
.cta__panel { position: relative; height: 472px; overflow: hidden; border-radius: 12px; background: #2b2627; }
.cta__feed { position: absolute; inset: 0; }
.cta__row { position: absolute; left: 0; }
.cta__row:nth-child(1) { top: 15.83px; }
.cta__row:nth-child(2) { top: 110.17px; }
.cta__row:nth-child(3) { top: 204.52px; }
.cta__row:nth-child(4) { top: 298.86px; }
.cta__row:nth-child(5) { top: 393.83px; }
.cta__track { position: relative; display: flex; gap: 24px; padding-right: 24px; width: max-content; animation: cta-left 90s linear infinite; }
.cta__row--odd .cta__track { left: 323.36px; }
.cta__row--even .cta__track { left: 157.6px; animation-name: cta-right; animation-duration: 110s; }
.cta__row--odd .tile { width: 287.25px; }
.cta__row--even .tile { width: 294.25px; }
.cta__feed.is-paused .cta__track { animation-play-state: paused; }
@keyframes cta-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes cta-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
/* Solid behind the headline, then the cards fade in (measured from the Figma render) */
.cta__fade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to right, #2b2627 max(40.6%, 600px), rgba(43, 38, 39, 0) calc(max(40.6%, 600px) + 330px));
}
.cta__text {
  position: absolute; left: 66px; top: 50%; transform: translateY(-50%);
  width: 524.6px; max-width: calc(100% - 132px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
}
.cta__title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 56px; line-height: 1.25; color: var(--page); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta__btn { font-family: var(--font-ui); font-size: 14px; line-height: 18px; }
.cta__btn--outline { gap: 4px; padding: 6px 16px; border: 1px solid var(--page); color: var(--page); }
.cta__btn--outline:hover { background: rgba(255, 251, 248, 0.08); }
.cta__apple { flex: none; transform: translateY(-1.5px); } /* the apple shape sits low in its box, so lift it to look centred */
.cta__btn--light { background: var(--page); color: var(--ink-input); }
.cta__btn--light:hover { background: #fff; }
.cta__btn--light .btn__arrow-icon img { filter: brightness(0); }
.cta__btn--light .btn__arrow-dot { background: var(--page); }

@media (max-width: 960px) {
  .cta__panel { height: auto; display: flex; flex-direction: column-reverse; }
  .cta__text { position: relative; left: auto; top: auto; transform: none; width: auto; max-width: none; padding: 40px 24px 8px; }
  .cta__title { font-size: 38px; }
  .cta__fade { display: none; }
  .cta__feed { position: relative; inset: auto; height: 300px; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 35%); mask-image: linear-gradient(to bottom, transparent, #000 35%); }
  /* No headline beside the rows here, so every row starts at the left edge (always full of tasks), staggered */
  .cta__row--odd .cta__track, .cta__row--even .cta__track { left: 0; }
  .cta__row:nth-child(2) .cta__track { animation-delay: -20s; }
  .cta__row:nth-child(3) .cta__track { animation-delay: -9s; }
  .cta__row:nth-child(4) .cta__track { animation-delay: -47s; }
  .cta__feed { height: 380px; } /* four full rows, no half-cut row at the bottom */
  .cta__row:nth-child(5) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cta__track { animation: none; }
}

/* ---------- Testimonials ---------- */
.testimonials {
  width: min(1322.5px, calc(100% - 32px)); margin: 0 auto;
  padding-bottom: clamp(72px, 9vw, 140px);
  display: flex; flex-direction: column; align-items: center; gap: 64px;
}
.testimonials__head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.testimonials__title { margin: 0; max-width: 600px; font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1.35; color: var(--ink-input); }
.testimonials__intro { margin: 0; max-width: 580px; font-size: 18px; line-height: 1.65; }
.testimonials__row { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.tcard {
  position: relative; margin: 0; overflow: hidden; border-radius: 12px; aspect-ratio: 860 / 1203; background: #2b2627;
  transition: transform 400ms var(--ease), box-shadow 400ms var(--ease);
}
.tcard:hover { transform: translateY(-4px); box-shadow: 0 10px 24px -12px rgba(43, 38, 39, 0.28); }
.tcard img { width: 100%; height: 100%; object-fit: cover; }
.tcard__stat {
  position: absolute; left: 24px; right: 24px; bottom: 22px;
  font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 33px); line-height: 1.35; color: var(--page);
}
@media (max-width: 960px) {
  .testimonials { gap: 40px; }
  .testimonials__intro { font-size: 16px; }
  .testimonials__row { grid-template-columns: 1fr; max-width: 440px; gap: 20px; }
  .tcard__stat { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { .tcard { transition: none; } }

/* ---------- Pricing ---------- */
.pricing {
  width: min(1480px, calc(100% - 32px)); /* same width as the CTA banner */ margin: 0 auto;
  padding-bottom: clamp(72px, 9vw, 140px);
  display: flex; flex-direction: column; gap: 44px;
}
.pricing__head { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: -2px; }
.pricing__title { margin: 0; max-width: 440px; font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1.35; color: var(--ink-input); }
.pricing__intro { margin: 0; max-width: 550px; font-size: 18px; line-height: 1.65; text-align: right; }
.pricing__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: -4px; }

.plan {
  --plan-line: #f0ece9; --plan-text: #211b19; --plan-muted: #29221f;
  /* Top and body rows line up across all cards, so the dividers match even when a description wraps */
  display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0;
  border: 1px solid #e9e5e1; border-radius: 12px; background: var(--page);
}
.plan--dark { --plan-line: rgba(255, 255, 255, 0.12); --plan-text: #fff; --plan-muted: #cecac8; background: #2a2627; border-color: #2a2627; }
.plan__top { padding: 26px 24px; border-bottom: 1px solid var(--plan-line); }
.plan__name { margin: 0 0 6px; font-weight: 400; font-size: 18px; line-height: 1.35; color: var(--plan-text); }
.plan__desc { margin: 0; font-size: 13px; line-height: 1.5; color: var(--plan-muted); text-wrap: balance; }
.plan__body { padding: 33px 24px 22px; }
.plan__price { margin: 0 0 20px; height: 43px; display: flex; align-items: baseline; gap: 6px; }
.plan__amount { font-family: var(--font-display); font-size: 36px; line-height: 1.2; color: var(--ink-input); }
.plan__per { font-size: 13px; color: var(--plan-text); }
.plan__quote { font-family: var(--font-display); font-size: 28px; line-height: 1.5; color: #fff; white-space: nowrap; }
.plan__cta { position: relative; }
/* A tiny Maker stands on top of each button */
.plan__maker { position: absolute; right: 12px; bottom: 100%; height: 38px; pointer-events: none; }
.plan__maker img { display: block; height: 38px; width: auto; }
/* The waving arm is its own layer that turns at the shoulder (--px/--py) */
.plan__arm { position: absolute; inset: 0; transform-origin: var(--px) var(--py); transition: transform 380ms cubic-bezier(0.34, 1.4, 0.64, 1); }
.plan__arm img { transform-origin: var(--px) var(--py); }
.plan:hover .plan__maker--left .plan__arm { transform: rotate(130deg); }
.plan:hover .plan__maker--right .plan__arm { transform: rotate(-130deg); }
.plan:hover .plan__maker--left .plan__arm img { animation: maker-wave-l 0.7s ease-in-out 0.3s infinite; }
.plan:hover .plan__maker--right .plan__arm img { animation: maker-wave-r 0.7s ease-in-out 0.3s infinite; }
@keyframes maker-wave-l { 0%, 100% { transform: none; } 50% { transform: rotate(-24deg); } }
@keyframes maker-wave-r { 0%, 100% { transform: none; } 50% { transform: rotate(24deg); } }
@media (prefers-reduced-motion: reduce) { .plan__arm { transition: none; } .plan:hover .plan__arm img { animation: none; } }
.plan__btn { width: 100%; height: 40px; font-family: var(--font-ui); font-size: 16px; }
.plan__btn--light { gap: 4px; padding-right: 8px; background: #f9f4f0; color: var(--ink-input); }
.plan__btn--light:hover { background: #fff; }
.plan__btn--light .btn__arrow-icon img { filter: brightness(0); }
.plan__btn--light .btn__arrow-dot { background: #f9f4f0; }
.plan__list { margin: 20px 0 0; padding: 0; list-style: none; }
.plan__list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 36px; font-size: 13px; color: var(--plan-text); }
.plan__list b { font-weight: 500; color: var(--plan-text); white-space: nowrap; }
.plan__check { flex: none; color: #769bc5; }
.plan--dark .plan__check { color: #a9c3e0; }

@media (max-width: 1100px) {
  .pricing__row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 960px) {
  .pricing { gap: 32px; }
  .pricing__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .pricing__intro { text-align: left; font-size: 16px; }
}
@media (max-width: 620px) {
  .pricing__row { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.foot {
  position: relative;
  width: min(1480px, calc(100% - 32px)); margin: 0 auto 16px;
  padding: 56px 56px 28px; border-radius: 12px; overflow: hidden;
  background: #2b2627; color: #f1ece8;
}
/* The crowd pit: a recessed, lit space at the very bottom of the footer */
.foot__pit {
  position: relative; margin: 28px -56px 0; height: clamp(240px, 28vw, 420px);
  background:
    radial-gradient(120% 90% at 50% -10%, #5a4d46 0%, #3a322f 38%, #1f1b1a 75%),
    #1f1b1a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.foot__pit canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 600ms ease; }
.foot__pit.is-ready canvas { opacity: 1; }
/* Shadow under the lip of the opening, and darker side walls */
.foot__pit::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(12, 9, 8, 0.75), rgba(12, 9, 8, 0) 22%),
    linear-gradient(to right, rgba(12, 9, 8, 0.55), rgba(12, 9, 8, 0) 12%, rgba(12, 9, 8, 0) 88%, rgba(12, 9, 8, 0.55));
}
.foot__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 64px; }
.foot__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.foot__logo img { width: 146.7px; height: 21.1px; }
.foot__tag { margin: 0 0 4px; max-width: 440px; font-family: var(--font-display); font-size: 28px; line-height: 1.35; color: var(--page); text-wrap: balance; }
.foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot__heading { margin: 4px 0 16px; font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(241, 236, 232, 0.5); }
.foot__col ul, .foot__social { margin: 0; padding: 0; list-style: none; }
.foot__col li + li { margin-top: 10px; }
.foot a:not(.btn) { color: rgba(241, 236, 232, 0.8); font-size: 14px; transition: color 150ms ease; }
.foot a:not(.btn):hover { color: #fff; }
.foot__bottom {
  margin-top: 64px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: rgba(241, 236, 232, 0.55);
}
.foot__bottom p { margin: 0; }
.foot__social { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot__social a:not(.btn) { font-size: 13px; }

@media (max-width: 960px) {
  .foot { padding: 40px 24px 24px; }
  .foot__pit { margin: 24px -24px 0; }
  .foot__top { grid-template-columns: 1fr; gap: 40px; }
  .foot__tag { font-size: 24px; }
  .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .foot__bottom { margin-top: 40px; }
  .foot__social { column-gap: 18px; }
}

/* ---------- Features ---------- */
.features {
  --s: 1;      /* stage scale, set by features.js */
  --tx: 0px;   /* stage x offset (phones only) */
  --ty: 0px;   /* stage y offset (phones only) */
  width: min(1472px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) 0 clamp(72px, 9vw, 140px);
  display: flex; flex-direction: column; align-items: center;
}
.features__head { width: min(606px, 100%); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.features__title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 3vw, 32px); line-height: 1.35; color: var(--ink-input); }
.features__intro { margin: 0; font-size: clamp(16px, 1.6vw, 18px); line-height: 1.65; }

.features__tabs {
  display: flex; gap: 16px; margin: 64px 0 32px; max-width: 100%;
  overflow-x: auto; scrollbar-width: none;
}
.features__tabs::-webkit-scrollbar { display: none; }
.ftab {
  flex: none; display: flex; align-items: center; gap: 6px; height: 30px; padding: 6px 12px;
  border: 0; border-radius: 4px; background: var(--page); cursor: pointer;
  font-size: 14px; font-weight: 500; letter-spacing: 0.01em; color: #393736; white-space: nowrap;
  transition: background-color 200ms ease;
}
.ftab img { width: 12px; height: 12px; }
.ftab__short { display: none; } /* short names on phones */
.fnav { display: none; } /* demo arrows are phones only */
.ftab:hover { background: #f6f1ed; }
.ftab[aria-pressed="true"] { background: var(--panel); }
.ftab:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Panel: a 1472 × 784.74 stage scaled to fit, like the Figma frame */
.features__wrap { position: relative; width: 100%; }
.features__panel {
  position: relative; width: 100%;
  aspect-ratio: 1472 / 784.74;
  border-radius: 12px; overflow: hidden;
  background: #3f527a;
}
.features__stage {
  position: absolute; left: 0; top: 0; width: 1472px; height: 784.74px;
  transform-origin: 0 0; transform: translate(var(--tx), var(--ty)) scale(var(--s));
}
.features__photo { position: absolute; inset: 0; overflow: hidden; }
.features__photo img { position: absolute; left: 0; top: -11.36%; width: 100%; height: 121.39%; max-width: none; }
.features__shade { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.2); transition: opacity 500ms ease; }
.features__holes { position: absolute; left: 50%; width: 1398px; margin-left: -699px; display: flex; justify-content: space-between; }
.features__holes--top { top: 19.89px; }
.features__holes--bottom { top: 756.31px; }
.features__holes i { width: 24px; height: 8px; border-radius: 99px; background: #efe9e8; }

/* Feature list (right of the phone) */
.features__list {
  position: absolute; left: calc(831.81px * var(--s)); top: calc(160.37px * var(--s));
  width: 407px; margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 12px;
  transform-origin: 0 0; transform: scale(var(--s));
}
.fitem {
  display: flex; align-items: center; gap: 12px; width: 100%; height: 56px; padding: 10px 10px 10px 16px;
  border: 0; border-radius: 6px; background: rgba(18, 28, 59, 0.35); cursor: pointer; text-align: left;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color 250ms ease;
}
.fitem:hover { background: rgba(18, 28, 59, 0.5); }
.fitem.is-active { background: rgba(18, 28, 59, 0.75); }
.fitem:focus-visible { outline: 2px solid #f6f6f6; outline-offset: 2px; }
.fitem__body { position: relative; flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.fitem.is-active .fitem__body { justify-content: space-between; padding: 1px 0 2px; }
.fitem__name { font-family: var(--font-display); font-size: 16px; line-height: 1.5; letter-spacing: 0.01em; color: #c5c5c5; }
.fitem.is-active .fitem__name { color: #f6f6f6; }
.fitem__note { margin-left: 4px; font-size: 11px; letter-spacing: 0.02em; opacity: 0.85; }
.fitem__track { display: none; position: relative; height: 4px; border-radius: 4px; background: #19191f; overflow: hidden; }
.fitem.is-active .fitem__track { display: block; }
.fitem__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 4px; background: #e7e6e6; }
.fitem__btn {
  flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 10px;
  border-radius: 4px; background: rgba(18, 28, 59, 0.35);
}
.fitem.is-active .fitem__btn { background: rgba(22, 17, 15, 0.75); }
.fitem__btn img { width: 16px; height: 16px; }
.fitem__pause { display: none; gap: 3.43px; }
.fitem__pause b { width: 2.572px; height: 12px; background: #e7e6e6; }
.fitem.is-active:not(.is-paused) .fitem__pause { display: flex; }
.fitem.is-active:not(.is-paused) .fitem__btn img { display: none; }

/* Wood theme (Customer Support): photo crossfades in, list buttons turn brown.
   Crop matches the Figma frame, refit to this 1472 x 784.74 stage. */
.features__panel { transition: background-color 500ms ease; }
.features__photo--wood, .features__photo--cork { opacity: 0; transition: opacity 500ms ease; }
/* These photos have their own iPhone. support-bg.jpg / brand-bg.jpg are pre-fitted to this stage so that phone's screen
   sits exactly under the live .phone screen (same 310 x 655 size as every other tab). */
.features__photo--wood img, .features__photo--cork img { top: 0; height: 100%; }
.features[data-theme="cork"] .features__photo--cork { opacity: 1; }
.features[data-theme="wood"] .features__panel { background: #5a3a24; }
.features[data-theme="cork"] .features__panel { background: #a8713f; }
.features[data-theme="wood"] .features__photo--wood { opacity: 1; }
.features:is([data-theme="wood"], [data-theme="cork"]) .features__shade { opacity: 0; }
.features:is([data-theme="wood"], [data-theme="cork"]) .fitem { background: rgba(59, 34, 18, 0.35); }
.features:is([data-theme="wood"], [data-theme="cork"]) .fitem:hover { background: rgba(59, 34, 18, 0.5); }
.features:is([data-theme="wood"], [data-theme="cork"]) .fitem.is-active { background: rgba(59, 34, 18, 0.75); }
.features:is([data-theme="wood"], [data-theme="cork"]) .fitem__name { color: #e6dcd5; }
.features:is([data-theme="wood"], [data-theme="cork"]) .fitem.is-active .fitem__name { color: #f6f6f6; }
.fitem__note { margin-left: 4px; font-size: 11px; letter-spacing: 0.02em; opacity: 0.85; }
.features:is([data-theme="wood"], [data-theme="cork"]) .fitem__btn { background: rgba(59, 34, 18, 0.35); }
.features:is([data-theme="wood"], [data-theme="cork"]) .fitem.is-active .fitem__btn { background: rgba(59, 34, 18, 0.75); }
.features:is([data-theme="wood"], [data-theme="cork"]) .fitem__track { background: rgba(26, 14, 6, 0.85); }
.features[data-theme="cork"] .fitem__name { color: #dfd9cb; }
.features[data-theme="cork"] .fitem.is-active .fitem__name { color: #fff; }
/* The photo's own light reflection and shading, laid over the live screen */
.phone__glare { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0; background: url("assets/features/support-glare.jpg") center / 100% 100% no-repeat; mix-blend-mode: screen; }
.phone__shade { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0; background: url("assets/features/support-shade.jpg") center / 100% 100% no-repeat; mix-blend-mode: multiply; }
.features[data-theme="wood"] .phone__glare { opacity: 0.25; }
.features[data-theme="wood"] .phone__shade { opacity: 0.18; }

/* ---------- Phone app (designed at 310 × 655, scales with the stage) ---------- */
.phone {
  --ink-p: #2b2627; --muted-p: #8a837e; --line-p: #ece6e1; --ok: #4f7a5a;
  position: absolute; left: 482.5px; top: 60px; width: 310px; height: 655px;
  border-radius: 46px; overflow: hidden;
  background: #f7f3ef; color: var(--ink-p);
  font-family: var(--font-body); font-size: 12px; line-height: 1.4;
}
.phone.is-paused * { animation-play-state: paused !important; }
.phone__island { position: absolute; left: 50%; top: 11px; width: 96px; height: 28px; margin-left: -48px; border-radius: 20px; background: #000; z-index: 3; }
.phone__status { position: absolute; left: 0; right: 0; top: 14px; padding: 0 30px 0 34px; display: flex; justify-content: space-between; align-items: center; }
.phone__time { font-size: 14px; font-weight: 600; }
.phone__icons { display: flex; align-items: center; gap: 6px; }
.sig { display: flex; align-items: flex-end; gap: 1.5px; height: 10px; }
.sig b { width: 3px; background: var(--ink-p); border-radius: 1px; }
.sig b:nth-child(1) { height: 4px; } .sig b:nth-child(2) { height: 6px; } .sig b:nth-child(3) { height: 8px; } .sig b:nth-child(4) { height: 10px; }
.bat { position: relative; width: 22px; height: 11px; border: 1px solid rgba(43, 38, 39, 0.45); border-radius: 3px; padding: 1.5px; }
.bat b { display: block; height: 100%; width: 80%; background: var(--ink-p); border-radius: 1.5px; }

.phone__header { position: absolute; left: 16px; right: 16px; top: 52px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 6px; }
/* Business: name (one line, truncates) + label */
.phone__biz { min-width: 0; height: 32px; display: flex; align-items: center; gap: 4px; }
.phone__biz-text { min-width: 0; display: flex; flex-direction: column; }
.phone__biz-name { font-family: "Inria Serif", Georgia, serif; font-size: 12px; line-height: 1.15; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone__biz-label { margin-top: 2px; font-size: 8.5px; line-height: 1.1; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-p); }
/* Only the avatar takes up width; the status hangs below it, so it never squeezes the business name */
.phone__maker { position: relative; width: 32px; }
.phone__avatar { width: 32px; height: 32px; flex: none; border-radius: 50%; background: #e4ded9; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.phone__avatar .avatar__crop { transform: translateY(3px) scale(0.94); }
.phone__avatar-img { height: 29px; width: auto; transform: translateY(3px); }
.phone__avatar-img--icon { height: 17px; transform: none; }
/* What the Maker is doing: short lines sit on one line, long ones shrink and wrap to two */
.phone__status-line { position: absolute; top: 35px; left: 50%; transform: translateX(-50%); width: max-content; max-width: 96px; font-size: 9.5px; line-height: 1.2; text-align: center; color: var(--muted-p); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; transition: opacity 0.15s ease; }
.phone__status-line.is-long { font-size: 8.5px; }
.phone__status-line.is-swap { opacity: 0; }
.phone__menu { justify-self: end; width: 15px; height: 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3.5px; }
.phone__menu b { width: 15px; height: 1.5px; border-radius: 1px; background: var(--ink); }
@keyframes pulse { 50% { opacity: 0.3; } }

.phone__content { position: absolute; left: 14px; right: 14px; top: 118px; bottom: 76px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.phone__ask {
  position: absolute; left: 14px; right: 14px; bottom: 26px; height: 40px; padding: 0 5px 0 14px;
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border: 1px solid var(--line-p); border-radius: 10px; color: var(--muted-p); font-size: 12px;
}
.phone__ask i { width: 30px; height: 30px; border-radius: 6px; background: var(--ink-p); display: flex; align-items: center; justify-content: center; }
.phone__ask i::after { content: "→"; color: #fff; font-style: normal; font-size: 14px; }
.phone__home { position: absolute; left: 50%; bottom: 8px; width: 112px; height: 4px; margin-left: -56px; border-radius: 2px; background: var(--ink-p); }

/* Demo building blocks */
.pop { opacity: 0; transform: translateY(10px); transition: opacity 380ms ease, transform 450ms var(--ease); }
.pop.in { opacity: 1; transform: none; }
.d-card { background: #fff; border: 1px solid var(--line-p); border-radius: 14px; padding: 10px; }
.d-row { display: flex; align-items: center; gap: 8px; }
.d-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.d-label { font-size: 10px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-p); }
.d-muted { color: var(--muted-p); font-size: 10px; }
.d-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 99px; background: #f1ece8; font-size: 10px; font-weight: 600; white-space: nowrap; }
.d-chip--ok { background: #e6efe7; color: var(--ok); }
.d-chip--warn { background: #f6ead3; color: #8a5a12; }
.d-chip--dark { background: var(--ink-p); color: #fff; }
.d-strong { font-weight: 600; font-size: 12px; }
.d-typed:empty::before { content: "\200b"; }
.d-toast {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px;
  background: var(--ink-p); color: #fff; font-size: 11px; font-weight: 500;
}
.d-toast b { width: 16px; height: 16px; flex: none; border-radius: 50%; background: #6f9c78; position: relative; }
.d-toast b::after { content: ""; position: absolute; left: 5px; top: 3px; width: 4px; height: 7px; border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }

/* creative */
.d-media { position: relative; height: 196px; border-radius: 10px; overflow: hidden; background: #e9e3de; margin: 8px 0; }
.d-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 600ms ease, transform 1200ms var(--ease); }
.d-media.loaded img { opacity: 1; transform: none; }
.d-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.55) 50%, transparent 70%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.d-media.loaded::after { display: none; }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.d-media__over { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 12px 12px; background: linear-gradient(transparent, rgba(0,0,0,0.45) 35%, rgba(0,0,0,0.72)); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.d-headline { margin: 0; font-family: var(--font-display); font-size: 17px; line-height: 1.2; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45); }
.d-cta { padding: 5px 10px; border-radius: 6px; background: #fff; color: var(--ink-p); font-size: 11px; font-weight: 600; }
.d-caption { margin: 0; font-size: 11px; line-height: 1.45; min-height: 32px; }
.d-thumbs { display: flex; gap: 8px; margin-top: 6px; }
.d-thumbs img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line-p); }
.d-thumbs img.picked { outline: 2px solid var(--ink-p); outline-offset: 1px; }
/* Poster mode: the whole poster shows, on a blurred copy of itself */
.d-media--poster { height: auto; aspect-ratio: 1200 / 896; background: #1d1b1a; } /* matches the poster, so it fills edge to edge */
.d-media--poster .d-media__poster { object-fit: contain; }
.d-media--poster .d-media__blur, .d-media--poster.loaded .d-media__blur { filter: blur(16px) brightness(0.75); transform: scale(1.2); }
.d-thumbs--tall { padding-left: 3px; } /* room for the selected outline */
.d-thumbs--tall img { width: 48px; height: 64px; }

/* dashboard */
.d-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.d-stat { background: #fff; border: 1px solid var(--line-p); border-radius: 12px; padding: 9px 10px; }
.d-stat__val { font-family: var(--font-display); font-size: 19px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.d-delta { font-size: 10px; font-weight: 600; color: var(--ok); }
.d-delta.down { color: #b5523b; }
.d-chart { height: 96px; margin-top: 6px; position: relative; }
.d-chart svg { width: 100%; height: 100%; overflow: visible; }
.d-line { fill: none; stroke: var(--ink-p); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1800ms var(--ease); }
.d-area { fill: rgba(43, 38, 39, 0.08); opacity: 0; transition: opacity 800ms ease 900ms; }
.d-chart.in .d-line { stroke-dashoffset: 0; }
.d-chart.in .d-area { opacity: 1; }
.d-bars { display: flex; align-items: flex-end; gap: 7px; height: 100%; }
.d-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; }
.d-bar i { width: 100%; height: 0; border-radius: 4px 4px 2px 2px; background: #d6d1cb; transition: height 900ms var(--ease); }
.d-bar.hi i { background: var(--ink-p); }
.d-bar span { font-size: 9px; color: var(--muted-p); }
.d-insight { display: flex; gap: 8px; align-items: flex-start; }
.d-insight p { margin: 0; font-size: 11px; line-height: 1.45; min-height: 48px; }
.d-spark { flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--ink-p); position: relative; }
.d-spark::after { content: "✦"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; }

/* feed */
.d-feed { display: flex; flex-direction: column; gap: 7px; }
.d-item { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line-p); border-radius: 12px; padding: 8px 9px; }
.d-item__icon { width: 34px; height: 34px; flex: none; border-radius: 8px; background: #f1ece8; display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 15px; }
.d-item__icon img { width: 100%; height: 100%; object-fit: cover; }
.d-item__icon img.d-item__glyph { width: 20px; height: 20px; object-fit: contain; } /* small line icons, not photos */
.d-item__icon img.d-item__glyph[src*="icons/support/"] { width: 16px; height: 16px; } /* bolder icons sit a size down */
.d-item__icon img.d-item__glyph:is([src*="brand/email"], [src*="brand/website"], [src*="icons/creative/"], [src*="pay/"]:not([src*="pay/fraud"]), [src*="star.svg?v=2&sm"]) { width: 16px; height: 16px; }
.d-item__icon--initials { font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em; background: #e9e2da; }
.d-item__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.d-item__title { font-weight: 600; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-item__meta { font-size: 10px; color: var(--muted-p); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-status { flex: none; }
.d-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #e4ded9; border-top-color: var(--ink-p); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* email */
.d-field { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line-p); font-size: 11px; }
.d-field > span:first-child { color: var(--muted-p); width: 44px; flex: none; }
.d-body { margin: 8px 0 0; font-size: 11px; line-height: 1.5; white-space: pre-wrap; min-height: 128px; }
.d-send { align-self: flex-end; padding: 6px 12px; border-radius: 6px; background: var(--ink-p); color: #fff; font-size: 11px; font-weight: 600; transition: transform 150ms ease; }
.d-send.press { transform: scale(0.9); }
.d-to { font-weight: 500; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-sentat { align-self: flex-end; font-size: 9.5px; color: var(--muted-p); opacity: 0; transition: opacity 400ms ease; }
.d-sentat.in { opacity: 1; }

/* chat */
.d-chat { display: flex; flex-direction: column; gap: 8px; }
.d-msg { max-width: 84%; padding: 8px 10px; border-radius: 14px; font-size: 11.5px; line-height: 1.4; }
.d-msg--them { align-self: flex-start; background: #fff; border: 1px solid var(--line-p); border-bottom-left-radius: 4px; }
.d-msg--maker { align-self: flex-end; background: var(--ink-p); color: #fff; border-bottom-right-radius: 4px; }
.d-msg__name { display: block; font-size: 9.5px; font-weight: 600; color: var(--muted-p); margin-bottom: 2px; }
.d-msg--maker .d-msg__name { color: rgba(255, 255, 255, 0.6); }
/* Files attached to a Maker message */
.d-files { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.d-file { display: flex; align-items: center; gap: 7px; padding: 4px 7px 4px 4px; border-radius: 8px; background: rgba(255, 255, 255, 0.1); }
.d-file i { flex: none; width: 20px; height: 20px; border-radius: 4px; background: #fff; color: var(--ink-p); display: grid; place-items: center; font-style: normal; font-size: 6.5px; font-weight: 700; letter-spacing: 0.04em; }
.d-file > span { flex: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 6px; line-height: 1.25; } /* one line: name … size */
.d-file b { font-size: 10.5px; font-weight: 600; }
.d-file small { font-size: 9px; color: rgba(255, 255, 255, 0.6); }
/* A payment landing back in the account */
.d-paid { align-self: stretch; display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line-p); }
.d-paid__ico { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #e6efe7; color: var(--ok); font-size: 13px; font-weight: 700; }
.d-paid__text { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.d-paid__text b { font-size: 13px; font-weight: 600; }
.d-paid__text small { font-size: 9.5px; color: var(--muted-p); }
.d-sys { align-self: center; }
.d-dots { align-self: flex-end; display: flex; gap: 3px; padding: 10px 12px; border-radius: 14px; background: #e9e3de; }
.d-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted-p); animation: dot 1s ease-in-out infinite; }
.d-dots i:nth-child(2) { animation-delay: 0.15s; } .d-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 50% { transform: translateY(-3px); opacity: 0.5; } }
.d-stars { color: #c99a3b; letter-spacing: 1px; font-size: 11px; }
/* AI phone receptionist */
.d-call__row { display: flex; align-items: center; gap: 9px; }
.d-call__icon .d-ico { height: 15px; }
.d-call__wave { display: flex; align-items: center; gap: 1.5px; height: 24px; margin-top: 9px; padding: 0 2px; }
.d-call__wave i { flex: 1; min-height: 2px; border-radius: 2px; background: #ddd5ce; transition: background-color 200ms ease; }
.d-call__wave i.on { background: var(--ink-p); } /* same as the Maker’s message bubbles */
.d-call__icon { width: 34px; height: 34px; flex: none; border-radius: 50%; background: #e6efe7; color: var(--ok); display: flex; align-items: center; justify-content: center; transition: background-color 300ms ease, color 300ms ease; }
.d-call__state { display: flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ok); white-space: nowrap; }
.d-call__state i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: pulse 1.2s ease-in-out infinite; }
.d-call__log { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }

/* website */
.d-browser { background: #fff; border: 1px solid var(--line-p); border-radius: 14px; overflow: hidden; }
.d-url { display: flex; align-items: center; gap: 6px; padding: 7px 10px; background: #f6f2ee; font-size: 10.5px; }
.d-url i { width: 8px; height: 8px; border-radius: 50%; background: #d6d1cb; }
.d-site { padding: 10px; display: flex; flex-direction: column; gap: 8px; font-family: var(--site-font, inherit); }
.d-site .d-headline { font-family: var(--head-font, var(--font-display)); color: var(--head-color, #fff); }
.d-site[style*="--head-color"] .d-headline { text-shadow: none; font-weight: 500; }
.d-site[style*="--site-font"] .d-nav span:last-child { font-family: var(--site-font); }
.d-nav { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-display); font-size: 12px; }
.d-nav span:last-child { display: flex; gap: 8px; font-family: var(--font-body); font-size: 9px; color: var(--muted-p); }
.d-hero { position: relative; height: 128px; border-radius: 8px; overflow: hidden; background: #e9e3de; }
.d-hero img { width: 100%; height: 100%; object-fit: cover; }
.d-hero .d-media__over { padding: 20px 10px 10px; }
.d-hero .d-headline { font-size: 15px; }
.d-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.d-tile { border: 1px solid var(--line-p); border-radius: 8px; padding: 7px; font-size: 9.5px; }
.d-tile b { display: block; font-size: 10px; margin-bottom: 2px; }
.d-skel { height: 10px; border-radius: 4px; background: #eee8e3; }

/* invoice */
.d-inv__line { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line-p); font-size: 11px; }
.d-inv__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; }
.d-inv__total span:last-child { font-family: var(--font-display); font-size: 22px; font-variant-numeric: tabular-nums; }
.d-stamp {
  position: absolute; left: 37%; bottom: 12px; padding: 3px 10px; border: 2px solid var(--ok); border-radius: 6px;
  background: rgba(255, 255, 255, 0.9); color: var(--ok);
  font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  opacity: 0; transform: translateX(-50%) rotate(-10deg) scale(1.6);
  transition: opacity 250ms ease, transform 350ms cubic-bezier(0.3, 1.6, 0.5, 1);
}
.d-stamp.in { opacity: 1; transform: translateX(-50%) rotate(-10deg) scale(1); }
.d-inv { position: relative; }
/* Subscription billing: compact member list */
.d-subs { display: flex; flex-direction: column; padding: 2px 10px; }
.d-sub { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #f1ece8; }
.d-sub__ico { width: 22px; height: 22px; flex: none; border-radius: 6px; display: grid; place-items: center; font-size: 11px; }
.d-sub__ico--gold { background: #f6eedb; color: #9a7a2e; }
.d-sub__ico--diamond { background: #e4ebf3; color: #4b6584; }
.d-sub__ico--early { background: #efe7f2; color: #7a5a8c; }
.d-sub__who, .d-sub__when { display: flex; flex-direction: column; line-height: 1.25; }
.d-sub__who { flex: 1; min-width: 0; }
.d-sub__when { align-items: flex-end; text-align: right; }
.d-sub b { font-size: 11px; font-weight: 600; white-space: nowrap; }
.d-sub__who span, .d-sub__when span { font-size: 9.5px; color: var(--muted-p); white-space: nowrap; }
.d-sub__more { padding: 8px 0 6px; text-align: center; font-size: 11px; font-weight: 600; color: var(--muted-p); }
/* Payment processing: checkout screen, then a cut to the overview */
.d-pay__screen { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; transition: opacity 350ms ease, transform 450ms var(--ease); }
.d-pay__screen.is-out { opacity: 0; transform: translateY(-14px); pointer-events: none; }
.d-pay__screen > * { flex-shrink: 0; } /* keep full sizes; the approval card only needs room once the Pay button is gone */
.d-pay__merchant { display: flex; align-items: center; gap: 8px; }
.d-pay__merchant b { display: block; font-size: 12px; font-weight: 600; }
.d-pay__merchant small { display: block; font-size: 10px; color: var(--muted-p); }
.d-pay__logo { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--ink-p); color: #e8cf9a; font-family: var(--font-display); font-size: 9px; letter-spacing: 0.04em; }
.d-pay__lock { width: 9px; height: 9px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.d-pay__methods { display: flex; flex-direction: column; gap: 6px; }
.d-pay__method { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line-p); font-size: 11.5px; font-weight: 500; transition: border-color 200ms ease, box-shadow 200ms ease; }
.d-pay__method i { margin-left: auto; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid #cfc7c0; transition: border 200ms ease; }
.d-pay__method.is-on { border-color: var(--ink-p); box-shadow: inset 0 0 0 0.5px var(--ink-p); } /* drawn inside so the screen edge never clips it */
.d-pay__method.is-on i { border: 4.5px solid var(--ink-p); }
.d-pay__apple { width: 13px; height: 13px; flex: none; }
.d-pay__card { padding: 1px 4px; border-radius: 3px; background: #1a1f71; color: #fff; font-size: 7.5px; font-weight: 800; font-style: italic; letter-spacing: 0.02em; }
.d-pay__btn { position: relative; height: 42px; border-radius: 10px; background: #000; color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 600; transition: transform 150ms ease, opacity 300ms ease, max-height 400ms var(--ease); max-height: 42px; overflow: hidden; }
.d-pay__btn > span { grid-area: 1 / 1; display: flex; align-items: center; gap: 6px; transition: opacity 200ms ease; }
.d-pay__btn .d-pay__apple { width: 14px; height: 14px; margin-top: -2px; }
.d-pay__btn-busy { opacity: 0; font-size: 12px; font-weight: 500; }
.d-pay__btn-busy .d-spin { width: 13px; height: 13px; border-color: rgba(255, 255, 255, 0.25); border-top-color: #fff; }
.d-pay__btn.press { transform: scale(0.96); }
.d-pay__btn.is-busy .d-pay__btn-label { opacity: 0; }
.d-pay__btn.is-busy .d-pay__btn-busy { opacity: 1; }
.d-pay__btn.is-gone { opacity: 0; max-height: 0; margin-bottom: -10px; }
.d-pay__done { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 16px 10px 14px; text-align: center; }
.d-pay__done b { font-size: 14px; font-weight: 600; }
.d-pay__ok { width: 40px; height: 40px; margin-bottom: 6px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; }
.d-pay__ok svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.d-pay__checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 10px; }

/* ad creation */
.d-brief { overflow: hidden; max-height: 120px; transition: max-height 500ms var(--ease), opacity 300ms ease, padding 500ms var(--ease), border-width 500ms; }
.d-brief p { margin: 4px 0 0; font-size: 11.5px; line-height: 1.45; min-height: 34px; }
.is-posting .d-brief { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; border-width: 0; }
.d-adstage { position: relative; flex: 1; }
.d-adgrid { position: absolute; left: 0; right: 0; top: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.is-posting .d-adgrid { opacity: 0; transform: scale(0.96); pointer-events: none; }
.d-adtile { position: relative; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: #e9e3de; }
.d-adtile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.55) 50%, transparent 70%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.d-adtile.loaded::after { display: none; }
.d-adtile img { width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: blur(12px) saturate(0.6); transform: scale(1.12); transition: opacity 500ms ease, filter 1100ms ease, transform 1100ms var(--ease); }
.d-adtile.loaded img { opacity: 1; filter: none; transform: none; }
.d-post {
  position: absolute; left: 0; right: 0; top: 0;
  opacity: 0; transform: translateY(18px) scale(0.97); pointer-events: none;
  transition: opacity 450ms ease 150ms, transform 600ms var(--ease) 150ms;
}
.is-posting .d-post { opacity: 1; transform: none; }
/* The post PNGs share the same header, Book Now bar and action row, so the first one stays put as
   the frame and only the photo area slides, like a real carousel. Percentages are measured from
   the 2198 x 2829 source images. */
.d-post__frame { width: 100%; height: auto; display: block; }
.d-post__media { position: absolute; inset: 0; clip-path: inset(12.69% 0.273% 18.38% 0.228%); }
.d-post__track { display: flex; transition: transform 550ms var(--ease); }
.d-post__track img { flex: none; width: 100%; height: auto; display: block; }
/* Live dots drawn over the ones printed in the image (white patch hides the printed ones) */
.d-post__dots { position: absolute; left: 41.77%; top: 94.27%; width: 16.2%; height: 1.49%; background: #fff; }
.d-post__dots i { position: absolute; top: 50%; width: 8.7%; aspect-ratio: 1; border-radius: 50%; background: #d9d9d9; transform: translate(-50%, -50%); transition: background-color 250ms ease; }
.d-post__dots i:nth-child(1) { left: 5.9%; }
.d-post__dots i:nth-child(2) { left: 23.7%; }
.d-post__dots i:nth-child(3) { left: 41.3%; }
.d-post__dots i:nth-child(4) { left: 59.0%; }
.d-post__dots i:nth-child(5) { left: 76.5%; }
.d-post__dots i:nth-child(6) { left: 94.2%; }
.d-post__dots i.on { background: #0095f6; }
/* Ad grid with 5 tiles: 3 on top, 2 centered below */
.d-adgrid--5 { grid-template-columns: repeat(6, 1fr); }
.d-adgrid--5 .d-adtile { grid-column: span 2; }
.d-adgrid--5 .d-adtile:nth-child(4) { grid-column: 2 / span 2; }
/* Instagram post built in code (same look as the baked post images) */
.d-igpost {
  position: absolute; left: 50%; top: 0; width: 238px; margin-left: -119px;
  background: #fff; border: 1px solid var(--line-p); border-radius: 10px; overflow: hidden;
  opacity: 0; transform: translateY(18px) scale(0.97); pointer-events: none;
  transition: opacity 450ms ease 150ms, transform 600ms var(--ease) 150ms;
}
.is-posting .d-igpost { opacity: 1; transform: none; }
.d-igpost__head { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; font-size: 12.5px; color: #262626; }
.d-igpost__head b { font-weight: 500; }
.d-igpost__av { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #1c1c1c; color: #fff; font-weight: 800; font-size: 12px; font-style: italic; }
.d-igpost__check { width: 13px; height: 13px; }
.d-igpost__more { margin-left: auto; display: flex; flex-direction: column; gap: 2px; }
.d-igpost__more i { width: 3px; height: 3px; border-radius: 50%; background: #262626; }
.d-igpost__media { aspect-ratio: 4 / 5; overflow: hidden; }
.d-igpost__media .d-post__track img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.d-igpost__cta { display: flex; align-items: center; justify-content: space-between; height: 30px; padding: 0 8px 0 10px; background: #4f5f8a; color: #fff; font-size: 12.5px; font-weight: 500; }
.d-igpost__cta svg { width: 14px; height: 14px; }
.d-igpost__actions { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; }
.d-igpost__actions svg { width: 17px; height: 17px; flex: none; fill: none; stroke: #262626; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.d-igpost__actions svg:last-child { margin-left: auto; }
.d-igpost__dots { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 3px; }
.d-igpost__dots i { width: 4.5px; height: 4.5px; border-radius: 50%; background: #d9d9d9; transition: background-color 250ms ease; }
.d-igpost__dots i.on { background: #0095f6; }
.d-igpost__actions { position: relative; }
.d-ico { height: 13px; width: auto; flex: none; display: block; overflow: visible; }

/* campaign management */
.d-stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.d-stats--3 .d-stat { padding: 7px 8px; display: flex; flex-direction: column; }
.d-stats--3 .d-stat__val { margin-top: auto; } /* numbers line up even when a label wraps */
.d-stats--3 .d-stat__val { font-size: 16px; }
.d-stats--3 .d-label { display: block; font-size: 8.5px; line-height: 1.25; }
.d-adrow { margin: 0 -14px; padding: 0 14px; overflow: hidden; flex: none; }
.d-adrow__track { display: flex; gap: 8px; transition: transform 700ms var(--ease); }
.d-scroller { flex: none; display: flex; flex-direction: column; gap: 10px; transition: transform 900ms var(--ease); }
.d-toplist { display: flex; flex-direction: column; gap: 10px; flex: none; }
.d-mini { position: relative; min-width: 0; }
.d-mini > img { width: 100%; height: auto; display: block; }
.d-rank { position: absolute; left: 8px; top: 15%; padding: 2px 8px; border-radius: 99px; background: rgba(43, 38, 39, 0.82); color: #fff; font-size: 10.5px; font-weight: 700; }
.d-topad { position: absolute; right: 8px; top: 15%; padding: 2px 8px; border-radius: 99px; background: #f1d9a8; color: #3a2324; font-size: 10px; font-weight: 700; }

/* social media automations */
.d-week__days { display: grid; grid-template-columns: repeat(7, 1fr); margin-top: 8px; }
.d-day { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.d-day__letter { font-size: 8.5px; font-weight: 600; color: var(--muted-p); }
.d-day__num { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; transition: background-color 250ms ease, color 250ms ease; }
.d-day.is-on .d-day__num { background: var(--ink-p); color: #fff; }
.d-day__dots { display: flex; gap: 2px; height: 4px; }
.d-day__dots i { width: 4px; height: 4px; border-radius: 50%; opacity: 0; transform: scale(0); transition: opacity 200ms ease, transform 300ms cubic-bezier(0.3, 1.6, 0.5, 1); }
.d-day__dots i.in { opacity: 1; transform: none; }
.d-dot--ig, .d-plat--ig { color: #b5523b; background-color: currentColor; }
.d-dot--tt, .d-plat--tt { color: #2b2627; background-color: currentColor; }
.d-dot--fb, .d-plat--fb { color: #3f527a; background-color: currentColor; }

/* brand strategy doc */
.d-doc { display: flex; flex-direction: column; gap: 10px; }
.d-doc__row p { margin: 3px 0 0; font-size: 11.5px; line-height: 1.45; min-height: 17px; }

/* competitor comparison */
.d-cmp { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; }
.d-cmp__row { display: grid; grid-template-columns: 1fr 96px 34px; align-items: center; gap: 8px; padding: 7px 4px; border-radius: 8px; font-size: 10.5px; }
.d-cmp__head { padding-top: 2px; padding-bottom: 4px; font-size: 8.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-p); }
.d-cmp__row.is-you { background: #f4efe9; font-weight: 600; }
.d-cmp__name em { margin-left: 4px; padding: 1px 5px; border-radius: 99px; background: var(--ink-p); color: #fff; font-style: normal; font-size: 8px; font-weight: 600; }
.d-cmp__bar { display: flex; align-items: center; gap: 5px; }
.d-cmp__bar i { flex: none; width: 0; max-width: 62px; height: 6px; border-radius: 3px; background: #c8beb0; transition: width 700ms var(--ease) 150ms; }
.d-cmp__row.in .d-cmp__bar i { width: calc(var(--w) * 0.62); }
.d-cmp__row.is-you .d-cmp__bar i { background: #c99a3b; }
.d-cmp__bar b { font-size: 10px; font-weight: 600; }
.d-cmp__price { text-align: right; font-variant-numeric: tabular-nums; }

/* branded marketing material */
/* All six pieces fit on screen at once (3 × 2), so nothing is ever cut off */
.d-mats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 8px; flex: none; }
.d-mats-view { flex: none; }
.d-mat { display: flex; flex-direction: column; gap: 4px; }
.d-mat__art { aspect-ratio: 1 / 1; }
.d-mat__label { font-size: 9.5px; font-weight: 600; color: var(--muted-p); }
.d-bizcard { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 0 12px; background: var(--ink-p); color: rgba(255, 255, 255, 0.7); font-size: 8px; opacity: 0; transition: opacity 500ms ease; }
.d-bizcard b { margin-bottom: 4px; font-family: var(--font-display); font-weight: 400; font-size: 14px; color: #e8cf9a; }
.d-adtile.loaded .d-bizcard { opacity: 1; }
.d-checks { display: flex; align-items: center; gap: 5px; }
.d-checks .d-muted { margin-right: auto; }

/* review cards */
.d-review { padding: 12px 13px 11px; box-shadow: 0 4px 14px rgba(43, 38, 39, 0.06); }
.d-review__head { display: flex; align-items: center; gap: 9px; }
.d-review__av { width: 30px; height: 30px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--ink-p); }
.d-review__who { display: flex; flex-direction: column; gap: 1px; }
.d-review__who b { font-size: 11.5px; font-weight: 600; }
.d-review__stars { display: flex; gap: 1.5px; font-size: 11px; line-height: 1; }
.d-review__stars i { font-style: normal; color: #e2dbd4; transition: color 200ms ease; }
.d-review__stars i.on { color: #c99a3b; }
.d-review__text { margin: 9px 0 7px; font-size: 11px; line-height: 1.5; }
.d-review__when { font-size: 9.5px; color: var(--muted-p); }

/* appointment calendar */
.d-week__days--5 { grid-template-columns: repeat(5, 1fr); }
.d-dot--mtg { background: var(--ink-p); }
.d-cal { position: relative; flex: none; }
.d-cal__hour { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line-p); }
.d-cal__hour span { position: absolute; left: 0; top: 3px; font-size: 8.5px; color: var(--muted-p); }
.d-evt {
  position: absolute; left: 36px; right: 0; margin-top: 2px; padding: 3px 8px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  background: #fff; border: 1px solid var(--line-p); border-left: 3px solid var(--muted-p); border-radius: 6px;
  opacity: 0; transform: scale(0.96);
  transition: opacity 350ms ease, transform 450ms var(--ease), top 800ms var(--ease), background-color 300ms ease, border-color 300ms ease;
}
.d-evt.in { opacity: 1; transform: none; }
.d-evt--new { background: #eef4ef; border-color: #d6e5d9; border-left-color: var(--ok); }
.d-evt.is-moved { background: #fbf2e3; border-color: #efdfc2; border-left-color: #c99a3b; }
.d-evt--short { padding-top: 0; padding-bottom: 0; }
.d-evt__title { font-size: 10px; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 70px; }
.d-evt__meta { font-size: 9px; line-height: 1.3; color: var(--muted-p); }
.d-evt__tag { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); font-size: 8.5px; font-weight: 600; color: var(--ok); }
.d-evt.is-moved .d-evt__tag { color: #8a5a12; }
.d-plat { display: inline-flex; background: none !important; }
.d-plat .d-ico { height: 10px; }
.d-legend { display: flex; gap: 6px; align-items: center; }
.d-up { flex: none; width: 148px; background: #fff; border: 1px solid var(--line-p); border-radius: 12px; overflow: hidden; transition: opacity 380ms ease, transform 450ms var(--ease), border-color 250ms ease, box-shadow 250ms ease; }
.d-up.is-on { border-color: var(--ink-p); box-shadow: 0 6px 16px rgba(43, 38, 39, 0.12); }
.d-up__media { position: relative; height: 104px; background: #e9e3de; }
.d-up__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.d-up__type { position: absolute; left: 6px; top: 6px; padding: 1px 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.92); font-size: 8.5px; font-weight: 700; }
.d-up__body { padding: 8px 9px 9px; display: flex; flex-direction: column; gap: 5px; }
.d-up__name { margin: 0; font-size: 11px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-up__who { display: flex; align-items: center; gap: 4px; font-size: 9px; color: var(--muted-p); }
.d-up__who span:last-child { margin-left: 1px; }
.d-up__when { font-size: 9.5px; font-weight: 600; }
.d-up__status .d-chip { font-size: 8.5px; padding: 1px 6px; }
.d-up__status .d-spin { width: 11px; height: 11px; }

/* brand kit */
.d-logo { margin: 8px 0 10px; padding: 18px 10px; border-radius: 10px; background: #f6f2ee; text-align: center; font-family: var(--font-display); font-size: 22px; min-height: 66px; }
.d-swatches { display: flex; gap: 6px; margin: 4px 0 10px; }
.d-swatches i { flex: 1; height: 30px; border-radius: 6px; border: 1px solid rgba(0, 0, 0, 0.06); }
.d-fonts { display: flex; gap: 8px; margin-top: 4px; }
.d-fonts span { flex: 1; display: flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--line-p); border-radius: 8px; font-size: 10px; color: var(--muted-p); }
.d-fonts b { font-size: 16px; font-weight: 500; color: var(--ink-p); }
.d-fonts b.serif { font-family: var(--font-display); font-weight: 400; }
.d-fonts b.lora { font-family: "Lora", Georgia, serif; font-weight: 500; }
.d-fonts b.inter { font-family: "Inter", system-ui, sans-serif; font-weight: 500; }
/* Logo image wipes in from the left */
.d-logo--img { display: flex; align-items: center; justify-content: center; padding: 14px 10px; }
.d-logo--img img { height: 46px; width: auto; clip-path: inset(0 100% 0 0); transition: clip-path 900ms var(--ease); }
.d-logo--img.is-on img { clip-path: inset(0 0 0 0); }
/* Merch mockups (shirt, hat, sticker) fade in like the photo tiles */
.d-merch { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform: scale(1.08); transition: opacity 500ms ease, transform 900ms var(--ease); }
.d-adtile.loaded .d-merch { opacity: 1; transform: none; }
.d-nav__logo { display: block; height: 15px; width: auto; }
/* Full storefront preview (Website Build): a real-looking page that builds, then scrolls */
.d-browser--site .d-url, .d-browser--mini-site .d-url { background: #fff; border-bottom: 1px solid var(--line-p); }
.d-browser--site { flex: none; height: calc(100% - 58px); display: flex; flex-direction: column; } /* leaves room for the toast */
.d-url__badge { margin-left: auto; padding: 1px 6px; border-radius: 99px; background: #e7f0e7; color: #3f6b49; font-size: 8.5px; font-weight: 600; opacity: 0; transition: opacity 300ms ease; }
.d-url__badge.in { opacity: 1; }
.s-view { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #e6e7e3; }
.s-page { color: #231f20; transition: transform 2800ms cubic-bezier(0.45, 0, 0.25, 1); }
.s-page .pop { transform: translateY(6px); }
.s-page .pop.in { transform: none; }
.s-head { display: flex; align-items: center; justify-content: space-between; padding: 7px 9px; font-family: "Lora", Georgia, serif; font-size: 6.5px; letter-spacing: 0.04em; }
.s-head img { height: 13px; width: auto; }
.s-img { position: relative; overflow: hidden; background: #dcdcd7; }
.s-img img { display: block; width: 100%; height: auto; opacity: 0; filter: blur(8px); transform: scale(1.06); transition: opacity 500ms ease, filter 900ms ease, transform 900ms var(--ease); }
.s-img.loaded img { opacity: 1; filter: none; transform: none; }
.s-marquee { overflow: hidden; padding: 3px 0; color: #fff; font-size: 6px; font-style: italic; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.s-marquee__track { display: inline-flex; gap: 8px; animation: s-marquee 9s linear infinite; }
.s-marquee__track i { font-style: normal; opacity: 0.8; }
@keyframes s-marquee { to { transform: translateX(-50%); } }
.s-hero { position: relative; }
.s-pill { display: inline-block; padding: 2.5px 8px; border: 0.75px solid #231f20; border-radius: 99px; font-size: 6.5px; }
.s-pill--light { position: absolute; right: 8px; bottom: 8px; border-color: #fff; color: #fff; }
.s-about { padding: 20px 22px 22px; text-align: center; }
.s-about p { margin: 0 0 9px; font-size: 9px; line-height: 1.45; }
.s-about b { font-weight: 600; }
.s-scroll { position: absolute; top: 3px; right: 2px; bottom: 3px; width: 3px; }
.s-scroll i { display: block; width: 3px; height: 34%; border-radius: 2px; background: rgba(35, 31, 32, 0.28); transition: transform 2800ms cubic-bezier(0.45, 0, 0.25, 1); }

/* Mini storefront under Brand Strategy: a short window that glides down the page */
.d-browser--mini-site { flex: none; display: flex; flex-direction: column; }
.d-browser--mini-site .s-view { flex: none; height: 104px; }
.d-browser--mini-site .s-page, .d-browser--mini-site .s-scroll i { transition-duration: 3200ms; }
.d-hero__art { position: absolute; top: 6px; right: 2px; bottom: 6px; width: 50%; display: flex; align-items: center; justify-content: flex-end; }
.d-hero__art .d-merch { position: relative; inset: auto; width: 58%; height: auto; opacity: 1; transform: none; }
.d-hero__art .d-merch + .d-merch { width: 50%; margin-left: -14%; margin-top: 34px; }
/* Lighter shade under the headline so the merch colours stay bright */
.d-hero:has(.d-hero__art) .d-media__over { right: 46%; background: none; padding-right: 0; }
.d-hero:has(.d-hero__art) .d-headline { text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25); }
.d-adtile .d-bizcard__logo { width: 62px; height: auto; margin-bottom: 6px; object-fit: contain; opacity: 1; filter: none; transform: none; }

/* idea cards */
.d-idea__title { margin: 6px 0 2px; font-weight: 600; font-size: 12px; }
.d-idea__why { margin: 0; }
.d-idea { transition: opacity 380ms ease, transform 450ms var(--ease), border-color 250ms ease, box-shadow 250ms ease; }
.d-idea.is-picked { border-color: var(--ink-p); box-shadow: 0 6px 16px rgba(43, 38, 39, 0.12); }

/* email compose */
.d-compose { display: flex; flex-direction: column; }

/* checkout */
.d-checkout { display: flex; flex-direction: column; gap: 8px; }
.d-slots { display: flex; gap: 6px; }
.d-slot { flex: 1; text-align: center; padding: 6px 0; border: 1px solid var(--line-p); border-radius: 8px; font-size: 11px; font-weight: 600; transition: background-color 200ms ease, color 200ms ease; }
.d-slot.is-on { background: var(--ink-p); color: #fff; border-color: var(--ink-p); }

/* chat fills the screen, newest at the bottom */
.d-chat { flex: 1; justify-content: flex-end; min-height: 0; }
.d-inv__client { margin: 2px 0 6px; }

/* ---------- Features on phones ---------- */
@media (max-width: 760px) {
  /* Categories, demos and the phone fit on one screen: two sideways-scrolling rows above a cropped phone */
  /* Categories in two centred rows (3 over 4), every button the same width */
  .features__tabs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin: 28px 0 12px; align-self: stretch; overflow: visible; }
  .ftab { grid-column: span 2; min-width: 0; height: 36px; padding: 0 4px; gap: 6px; justify-content: center; font-size: clamp(11px, 3.4vw, 13px); letter-spacing: 0; border: 1px solid #ece6e1; border-radius: 6px; }
  .ftab:first-child { grid-column: 2 / span 2; }
  .ftab[aria-pressed="true"] { border-color: var(--panel); }
  .ftab__full { display: none; }
  .ftab__short { display: inline; }
  /* Phone on top, then the current demo with arrows either side, all inside the photo panel */
  .features__panel { aspect-ratio: auto; height: var(--ph, 600px); } /* height set by features.js */
  .features__holes { display: none; }
  /* The phone frame is part of the photo, so photos keep their exact crop and the stage just
     shows more of them around a smaller phone. Past the photo's edges it continues as a mirrored copy. */
  .features__stage { height: 863px; }
  .features__photo { inset: -120px 0 -200px; }
  .features__photo img { top: 30.85px; height: 952.6px; }
  .features__photo--wood img, .features__photo--cork img { top: 120px; height: 784.74px; }
  .features__photo::before, .features__photo::after {
    content: ""; position: absolute; left: 0; width: 100%; transform: scaleY(-1);
    background: url("assets/features/phone-bg.jpg") 0 0 / 100% 100%;
  }
  .features__photo::before { display: none; }
  .features__photo::after { top: 983.45px; height: 952.6px; }
  /* Above the photo: a phone-free patch from the photo's right side, covering its light top edge row and fading into it */
  .features__photo--wood::before, .features__photo--cork::before {
    display: block; z-index: 1; top: -450px; height: 600px; transform: none;
    background-size: 1472px 784.74px; background-position: -560px -100px;
    -webkit-mask-image: linear-gradient(#000 calc(100% - 26px), #0000); mask-image: linear-gradient(#000 calc(100% - 26px), #0000);
  }
  /* Below the phone, wood and cork continue with a phone-free patch from the photo's right side, faded in */
  .features__photo--wood::after, .features__photo--cork::after {
    top: 860px; height: 600px; transform: none; background-size: 1472px 784.74px; background-position: -560px -420px;
    -webkit-mask-image: linear-gradient(#0000, #000 48px); mask-image: linear-gradient(#0000, #000 48px);
  }
  .features__shade { inset: -120px 0 -200px; }
  .features__photo--wood::before, .features__photo--wood::after { background-image: url("assets/features/support-bg.jpg"); }
  .features__photo--cork::before, .features__photo--cork::after { background-image: url("assets/features/brand-bg.jpg"); }
  .features__list { left: 62px; right: 62px; top: auto; bottom: 16px; width: auto; transform: none; }
  .features__list li:not(:has(.is-active)) { display: none; }
  .fitem { height: 44px; padding: 6px 6px 6px 12px; gap: 10px; }
  .fitem__name { display: block; font-size: 13.5px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fitem.is-active .fitem__body { justify-content: center; gap: 7px; padding: 0; }
  .fitem__track { height: 3px; }
  .fitem__btn { width: 32px; height: 32px; padding: 6px; }
  .fitem__btn img { width: 12px; height: 12px; }
  .fitem__pause b { height: 10px; width: 2.2px; }
  .fnav {
    position: absolute; bottom: 16px; z-index: 2; display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0; border: 0; border-radius: 6px; cursor: pointer;
    background: rgba(18, 28, 59, 0.75); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  }
  .fnav--prev { left: 12px; }
  .fnav--next { right: 12px; }
  .fnav svg { width: 16px; height: 16px; fill: none; stroke: #f6f6f6; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .fnav:active { transform: scale(0.94); }
  .fnav:focus-visible { outline: 2px solid #f6f6f6; outline-offset: 2px; }
  .features:is([data-theme="wood"], [data-theme="cork"]) .fnav { background: rgba(59, 34, 18, 0.75); }
}
@media (prefers-reduced-motion: reduce) {
  .pop, .d-media img, .d-line, .d-area, .d-bar i, .d-stamp { transition: none; }
  .d-media::after { animation: none; }
}
