/* ==========================================================================
   SITEKICKSTUDIO — Componentes
   ========================================================================== */

/* With reduced motion, every looping animation is frozen
   (marquee, scroll hint, mockup cursor…). Hover/focus transitions
   keep working. */
html.motion-paused *,
html.motion-paused *::before,
html.motion-paused *::after {
  animation-play-state: paused !important;
}

/* ---- Brand mark ---- */
.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.nav__mark {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: var(--fw-strong);
  letter-spacing: -0.02em;
}

.nav__badge {
  position: relative;
  display: flex;
  white-space: nowrap;
  align-items: center;
  gap: 5px;
  font-family: var(--font-label);
  font-size: var(--fs-micro);
  color: var(--text-faint);
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

.nav__badge strong {
  color: var(--sk-ember);
  font-weight: var(--fw-strong);
}

.nav__links a:not(.btn) {
  font-size: var(--fs-small);
  color: var(--text-dim);
  transition: color var(--dur-fast) var(--ease-out);
  position: relative;
  font-weight: var(--fw-medium);
  white-space: nowrap;
  padding-block: 10px;
}

/* Only inside the mobile menu (scoped to beat .btn's display) */
.nav__links .nav__menu-cta { display: none; }


.nav__links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0;
  height: 1px;
  background: var(--sk-ember);
  transition: width var(--dur-fast) var(--ease-out);
}

.nav__links a:not(.btn):hover,
.nav__links a[aria-current] {
  color: var(--text);
}

.nav__links a:not(.btn):hover::after,
.nav__links a[aria-current]::after {
  width: 100%;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}

html.menu-open .nav__toggle span:first-child { transform: translateY(3.25px) rotate(45deg); }
html.menu-open .nav__toggle span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* On narrow screens the "by CoffeeCup" badge doesn't fit next to the CTA and
   the menu button; the CoffeeCup relationship is still stated in the hero and footer. */
@media (max-width: 480px) {
  .nav__badge { display: none; }
}

@media (max-width: 960px) {
  .nav__links {
    position: fixed;
    inset: 0;
    z-index: 90;
    flex-direction: column;
    /* "safe": if the menu is taller than the screen (phone in landscape)
       it starts at the top and scrolls instead of being cut off. */
    justify-content: safe center;
    align-items: flex-start;
    padding: 96px var(--edge) var(--sp-4);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--bg);
    transform: translateY(-100%);
    /* Closed = visibility:hidden, so its links can't receive focus while
       off-screen; it hides once the exit animation finishes. */
    visibility: hidden;
    transition: transform var(--dur-med) var(--ease-in-out),
                visibility 0s linear var(--dur-med);
    gap: var(--sp-1);
  }
  .nav__links a:not(.btn) {
    font-family: var(--font-display);
    font-size: var(--fs-h3);
    font-weight: var(--fw-strong);
    letter-spacing: var(--tr-h2);
    padding-block: 6px;
  }
  .nav__links a:not(.btn)::after { bottom: 2px; height: 2px; }
  .nav__links .nav__menu-cta {
    flex: none;
    display: inline-flex;
    justify-content: center;
    align-self: stretch;
    margin-top: var(--sp-4);
  }
  html.menu-open { overflow: hidden; }
  html.menu-open .nav__links {
    transform: translateY(0);
    visibility: visible;
    transition-delay: 0s;
  }
}

/* Invisible extensions so the logo and badge are 44px tall touch targets */
.nav__mark::after,
.nav__badge::after {
  content: "";
  position: absolute;
  inset: -6px -4px;
}

/* The badge's 1px border sits outside the box the extension measures from */
.nav__badge::after { inset: -7px -5px; }

/* Short screens (phones in landscape): a more compact menu */
@media (max-width: 960px) and (max-height: 520px) {
  .nav__links { padding-top: 84px; gap: 0; }
  .nav__links a:not(.btn) { font-size: var(--fs-h4); }
  .nav__links .nav__menu-cta { margin-top: var(--sp-2); }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-small);
  font-weight: var(--fw-strong);
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  letter-spacing: var(--tr-ui);
}

.btn--primary {
  border: 1px solid transparent;
  background: var(--sk-ember);
  color: var(--text-on-accent);
  box-shadow: 0 0 0 0 var(--sk-ember-glow);
}

.btn--primary:hover {
  background: var(--sk-ember-hover);
  box-shadow: var(--glow-ember);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}

.btn:active { transform: translateY(0) scale(0.98); }

.btn--sm { padding: 12px 20px; font-size: var(--fs-small); }
.btn--lg { padding: 17px 32px; font-size: var(--fs-body); }

/* ---- Paths: two open columns ---- */
.pcard__visual {
  position: relative;
  height: 300px;
  padding: 40px 40px 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.pcard__intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: var(--sp-4);
}

.pcard__kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-label);
  font-size: var(--fs-micro);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  font-feature-settings: "case";
  font-weight: var(--fw-strong);
  color: var(--text-faint);
}

.pcard__kicker-logo { width: 20px; height: 20px; border-radius: 50%; }

.pcard__title {
  font-size: clamp(1.5rem, 1.1rem + 1.1vw, 2rem);
  font-weight: var(--fw-strong);
  letter-spacing: var(--tr-h2);
  line-height: var(--lh-heading);
}

.pcard__pitch {
  color: var(--text-dim);
  max-width: 42ch;
}

.pcard__fact {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: baseline;
  gap: var(--sp-2);
  padding-block: 8px;
  font-size: var(--fs-small);
}

.pcard__fact dt { color: var(--text-faint); }
.pcard__fact dd { color: var(--text-dim); }

/* "After launch" is the actual difference between the two options */
.pcard__fact--key dd {
  color: var(--text);
  font-weight: var(--fw-medium);
}

.pcard__cta {
  justify-self: start;
  align-self: end;
  margin-top: var(--sp-4);
}

.btn svg {
  flex: none;
  width: 18px;
  height: 18px;
  transition: transform var(--dur-fast) var(--ease-out);
}

.btn:hover svg { transform: translateX(3px); }

/* ---- Path 01: Site Designer's own interface (simplified) ----
   Toolbar + viewport slider on top, the canvas on the left and the
   Elements pane on the right, as in the real app. UI chrome uses Site
   Designer's colours (graphite, blue selection, teal active tab); ember
   only appears inside the page being designed. */
.sdui {
  --sdui-blue: #2f8bff;
  --sdui-teal: #12b8a6;
  --sdui-pane: 150px;
  display: flex;
  flex-direction: column;
  height: calc(100% + 24px);
  border: 1px solid var(--border-hover);
  border-radius: 12px;
  background: #232325;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.sdui-toolbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 40px;
  padding: 0 8px 0 7px;
  background: #2c2c2f;
  border-bottom: 1px solid #1c1c1e;
}

.sdui-logo { width: 26px; height: 26px; margin-right: 6px; border-radius: 6px; }

.sdui-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 46px;
  padding: 3px 4px;
  border-radius: 5px;
  color: #d6d6da;
}

.sdui-tool svg { width: 14px; height: 14px; }
.sdui-tool i { font-style: normal; font-size: 8px; line-height: 1; color: #c4c4c8; }
.sdui-toolbar__gap { flex: 1; }

.sdui-slider {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 16px;
  padding-inline: 8px;
  background: #262628;
  border-bottom: 1px solid #1c1c1e;
}

.sdui-slider__zoom { font-size: 8px; color: #c4c4c8; }

.sdui-slider__bar {
  position: relative;
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--sdui-blue);
}

/* Breakpoint triangles along the slider */
.sdui-slider__bar b {
  position: absolute;
  top: -6px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #e8e8ea;
}

.sdui-slider__bar b:nth-child(1) { left: 28%; }
.sdui-slider__bar b:nth-child(2) { left: 52%; }
.sdui-slider__bar b:nth-child(3) { left: 76%; }

.sdui-body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sdui-pane);
  min-height: 0;
}

/* The canvas renders the page edge to edge; drags start in the pane */
.sdui-canvas {
  position: relative;
  container-type: inline-size;
  background: #121110;
}

/* Elements pane */
.sdui-pane {
  display: flex;
  flex-direction: column;
  background: #2a2a2d;
  border-left: 1px solid #1c1c1e;
}

.sdui-pane__tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 24px;
}

.sdui-pane__tabs span { display: grid; place-items: center; color: #c9c9cd; }
.sdui-pane__tabs svg { width: 12px; height: 12px; }
.sdui-pane__tabs .is-active { background: var(--sdui-teal); color: #fff; }

.sdui-pane__sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 20px;
  background: #38383c;
  font-size: 8.5px;
  font-weight: var(--fw-strong);
  color: #e2e2e6;
}

.sdui-pane__sub span { display: grid; place-items: center; }
.sdui-pane__sub .is-active { background: #0b7d72; color: #fff; } /* 5:1 with white text */

.sdui-pane__cat {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 15px;
  padding-inline: 7px;
  font-size: 8.5px;
  font-weight: var(--fw-strong);
  color: #ececef;
}

/* The disclosure triangle in front of each category */
.sdui-pane__cat::before {
  content: "";
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4.5px solid #ececef;
}

.sdui-pane__tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  height: 36px;
  margin: 1px 6px;
}

.sdui-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 3px;
  background: #d2d3d6;
  color: #3a3b3f;
  box-shadow: inset 0 0 0 2px transparent;
}

.sdui-tile svg { width: 15px; height: 15px; }
.sdui-tile i { font-style: normal; font-size: 7.5px; line-height: 1; color: #2c2d30; white-space: nowrap; }

/* ---- The page being designed (em-based, scales with the canvas) ---- */
.sd-page {
  height: 100%;
  overflow: hidden;
  padding: 1.1em 1.4em 0;
  background: linear-gradient(180deg, #1b1916, #121110);
  font-size: calc(100cqw / 30);
  line-height: 1;
}

.sd-page__nav {
  display: flex;
  align-items: center;
  gap: 0.9em;
  height: 1.4em;
  font-size: 0.72em;
  color: var(--text-faint);
}

.sd-page__nav i { width: 1.1em; height: 1.1em; border-radius: 50%; background: var(--sk-ember); }
.sd-page__nav b { margin: 0 auto 0 -0.4em; font-size: 1.25em; color: var(--text); font-weight: var(--fw-bold); }

.sd-page__nav em,
.sd-page__row em {
  font-style: normal;
  padding: 0.4em 0.9em;
  border-radius: var(--radius-pill);
  background: var(--sk-ember);
  color: var(--text-on-accent);
  font-weight: var(--fw-bold);
}

/* The heading, selected as in Site Designer: blue outline + name bar */
.sd-page__title {
  position: relative;
  width: fit-content;
  margin: 1.3em 0 0 -0.3em;
  padding: 0.12em 0.3em;
  font-family: var(--font-display);
  font-size: 1.85em;
  font-weight: var(--fw-bold);
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--text);
}

.sd-page__title span { display: block; width: fit-content; }

.sd-page__title::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--sdui-blue);
}

.sd-page__title::after {
  content: "Heading 1";
  position: absolute;
  left: -1.5px;
  bottom: calc(100% + 0.1em);
  padding: 0.2em 0.55em;
  border-radius: 0.2em 0.2em 0 0;
  background: var(--sdui-blue);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.36em;
  font-weight: var(--fw-bold);
  letter-spacing: 0;
}

.sd-page__row {
  display: flex;
  gap: 0.6em;
  width: fit-content;
  margin-top: 0.9em;
  font-size: 0.7em;
}

.sd-page__row em.is-ghost {
  background: none;
  box-shadow: inset 0 0 0 1px rgba(245, 243, 239, 0.25);
  color: var(--text);
}

.sd-page__media {
  margin-top: 0.9em;
  height: 7em;
  border-radius: 0.5em;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.28), transparent 55%),
    linear-gradient(135deg, #ff8a5c, #e2470f 55%, #7a2306);
}

/* Site Designer's drop indicator: a blue line where the element lands.
   Positioned in the page's em units (same font-size as .sd-page). */
.sdui-dropline {
  position: absolute;
  left: 1.4em;
  width: 16em;
  height: 2px;
  font-size: calc(100cqw / 30);
  background: var(--sdui-blue);
  box-shadow: 0 0 6px rgba(47, 139, 255, 0.7);
  opacity: 0;
}

.sdui-dropline::before,
.sdui-dropline::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 2px;
  height: 8px;
  background: var(--sdui-blue);
}

.sdui-dropline::before { left: 0; }
.sdui-dropline::after { right: 0; }

.sdui-dropline--btn { top: 10.75em; }
.sdui-dropline--pic { top: 12.55em; width: 26.6em; }

/* Dragged element: a tile ghost following the cursor, from the pane
   (right) to the drop line on the canvas */
.sdui-drag {
  position: absolute;
  z-index: 2;
  left: var(--to-x);
  top: var(--to-y);
  font-size: calc(100cqw / 30);
  opacity: 0;
  pointer-events: none;
}

.sdui-drag--btn {
  --from-x: calc(100% + 38px);
  --from-y: 130px;
  --to-x: 4em;
  --to-y: 10.6em;
}

.sdui-drag--pic {
  --from-x: calc(100% + 38px);
  --from-y: 182px;
  --to-x: 9em;
  --to-y: 12.4em;
}

.sdui-drag__cursor {
  display: block;
  width: 17px;
  height: 17px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.6));
}

.sdui-drag__ghost {
  position: absolute;
  left: 9px;
  top: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(210, 211, 214, 0.95);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
  font-size: 9px;
  font-weight: var(--fw-strong);
  white-space: nowrap;
  color: #2c2d30;
}

.sdui-drag__ghost svg { flex: none; width: 12px; height: 12px; max-width: none; }

/* One-time sequence when the card comes into view:
   type the heading → drag Button → drag Picture → Publish. */
@media (prefers-reduced-motion: no-preference) {
  html.js .pcard.is-visible .sd-page__title span { animation: sd-type 0.42s steps(13, end) both; }
  html.js .pcard.is-visible .sd-page__title span:nth-child(1) { animation-delay: 0.5s; }
  html.js .pcard.is-visible .sd-page__title span:nth-child(2) { animation-delay: 0.95s; }
  html.js .pcard.is-visible .sd-page__title span:nth-child(3) { animation-delay: 1.4s; }

  html.js .pcard.is-visible .sdui-drag--btn { animation: sd-drag 1.4s var(--ease-in-out) 1.9s both; }
  html.js .pcard.is-visible .sdui-tile--btn { animation: sd-pick 1.4s ease 1.9s both; }
  html.js .pcard.is-visible .sdui-dropline--btn { animation: sd-zone 1.4s ease 1.9s both; }
  html.js .pcard.is-visible .sd-page__row em { animation: sd-place 0.45s var(--ease-out) 3.15s both; }

  html.js .pcard.is-visible .sdui-drag--pic { animation: sd-drag 1.4s var(--ease-in-out) 3.45s both; }
  html.js .pcard.is-visible .sdui-tile--pic { animation: sd-pick 1.4s ease 3.45s both; }
  html.js .pcard.is-visible .sdui-dropline--pic { animation: sd-zone 1.4s ease 3.45s both; }
  html.js .pcard.is-visible .sd-page__media { animation: sd-place 0.5s var(--ease-out) 4.7s both; }

  html.js .pcard.is-visible .sdui-tool--publish { animation: sd-publish 1s var(--ease-out) 5.2s both; }
}

@keyframes sd-type {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes sd-drag {
  0% { opacity: 0; left: var(--from-x); top: var(--from-y); }
  12% { opacity: 1; left: var(--from-x); top: var(--from-y); }
  72% { opacity: 1; left: var(--to-x); top: var(--to-y); }
  88% { opacity: 1; left: var(--to-x); top: var(--to-y); }
  100% { opacity: 0; left: var(--to-x); top: var(--to-y); }
}

/* The source tile gets a teal ring while it is being picked up */
@keyframes sd-pick {
  0%, 100% { box-shadow: inset 0 0 0 2px transparent; }
  6%, 40% { box-shadow: inset 0 0 0 2px var(--sdui-teal); }
  55% { box-shadow: inset 0 0 0 2px transparent; }
}

@keyframes sd-zone {
  0%, 40% { opacity: 0; }
  52%, 88% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes sd-place {
  from { opacity: 0; transform: scale(0.94); transform-origin: left top; }
}

@keyframes sd-publish {
  0%, 100% { background: transparent; color: #d6d6da; }
  30%, 70% { background: rgba(47, 139, 255, 0.22); color: #fff; }
}

/* ---- Path 02: built from scratch, by an AI-assisted build ----
   A bespoke page mid-build: rendered above the build line, still a
   blueprint below it. The line descends once when the card appears
   (--build-at), and an AI agent reports progress from a blank repo. */
@property --build-at {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 50%;
}

.pcard__visual--build {
  background:
    radial-gradient(70% 60% at 70% 100%, rgba(255, 90, 31, 0.1), transparent 70%),
    var(--bg-card);
}

.build-mock {
  display: flex;
  flex-direction: column;
  height: calc(100% + 24px);
  border: 1px solid var(--border-hover);
  border-radius: 12px;
  background: #121110;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.build-mock__bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding-inline: 14px;
  border-bottom: 1px solid var(--border);
  background: #161513;
  font-size: 11px;
  white-space: nowrap;
}

.build-mock__bar > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(245, 243, 239, 0.2);
}

.build-mock__bar em {
  margin-left: 8px;
  font-style: normal;
  font-family: var(--font-code);
  color: var(--text-dim);
}

.build-mock__bar b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--sk-ember-soft);
  color: var(--sk-ember-hover);
  font-weight: var(--fw-strong);
}

.build-mock__bar b i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sk-ember);
}

/* Preview + agent side panel, like an AI-native editor */
.build-mock__body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  min-height: 0;
}

.build-mock__canvas { background: #0d0c0b; }

/* The line sits right under the price: above it the page is built */
.build-mock__artboard {
  --build-at: 47%;
  position: relative;
  aspect-ratio: 240 / 175;
  overflow: hidden;
}

.build-mock__artboard > svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Below the line: the same layout, still as a blueprint */
.build-mock__blueprint {
  position: absolute;
  inset: var(--build-at) 0 0 0;
  overflow: hidden;
  background-color: #0e0d0c;
  background-image:
    linear-gradient(rgba(255, 138, 92, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 138, 92, 0.07) 1px, transparent 1px);
  background-size: 14px 14px;
}

.bp-box {
  position: absolute;
  border: 1px dashed rgba(255, 138, 92, 0.55);
  border-radius: 6px;
}

/* Image placeholder: the classic crossed box, with its measurement */
.bp-box--media {
  left: 6.7%;
  width: 46.6%;
  top: 0;
  bottom: 9.7%;
  border-top: 0;
  border-radius: 0 0 6px 6px;
  background:
    linear-gradient(to top right, transparent calc(50% - 0.5px), rgba(255, 138, 92, 0.3) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(to bottom right, transparent calc(50% - 0.5px), rgba(255, 138, 92, 0.3) 50%, transparent calc(50% + 0.5px));
}

.bp-dim {
  position: absolute;
  left: 50%;
  top: 58%;
  transform: translateX(-50%);
  padding: 1px 6px;
  border-radius: 4px;
  background: #0e0d0c;
  font-family: var(--font-code);
  font-size: 9px;
  color: #ff8a5c;
  white-space: nowrap;
}

.bp-line {
  position: absolute;
  left: 56.7%;
  height: 5px;
  border: 1px dashed rgba(255, 138, 92, 0.45);
  border-radius: 3px;
}

.bp-line--label { height: 4px; }

.bp-box--size { top: 67.6%; width: 8.4%; height: 12.9%; border-radius: 3px; }

.bp-box--cta {
  left: 56.7%;
  top: 88.6%;
  width: 36.7%;
  height: 17%;
  border-radius: var(--radius-pill);
}

.bp-dot {
  position: absolute;
  top: 38.4%;
  width: 4.6%;
  aspect-ratio: 1;
  border: 1px dashed rgba(255, 138, 92, 0.55);
  border-radius: 50%;
}

/* The build line itself */
.build-mock__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--build-at);
  height: 2px;
  margin-top: -1px;
  background: var(--sk-ember);
  box-shadow: 0 0 14px 2px rgba(255, 90, 31, 0.55);
}

/* AI agent: the build log, kept to three steps */
.build-mock__agent {
  padding: 14px 14px 0;
  border-left: 1px solid var(--border);
  background: #141210;
}

/* Phones only: a floating pill with the step in progress */
.agent--float {
  display: none;
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 138, 92, 0.35);
  background: rgba(22, 21, 19, 0.95);
  box-shadow: 0 0 28px rgba(255, 90, 31, 0.16), 0 16px 40px rgba(0, 0, 0, 0.55);
}

.agent__head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: var(--fw-bold);
  color: var(--text);
}

.agent__head svg { width: 15px; height: 15px; color: var(--sk-ember); }

.agent__steps {
  display: grid;
  gap: 10px;
  font-size: 11px;
  line-height: 1.3;
  color: var(--text-dim);
}

.agent__steps li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.agent__steps i {
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 0.5px;
  border-radius: 50%;
}

.agent__steps .is-done i {
  background: var(--sk-ember-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 90, 31, 0.5);
  -webkit-mask: none;
  position: relative;
}

.agent__steps .is-done i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sk-ember);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9'/%3E%3C/svg%3E") center / 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.agent__steps .is-active { color: var(--text); }

.agent__steps .is-active i {
  border: 2px solid var(--sk-ember);
  border-right-color: transparent;
  animation: contact-spin 1s linear infinite;
}

/* One-time build when the card comes into view: the line descends from
   near the top, revealing the rendered page. Static with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  html.js .pcard.is-visible .build-mock__artboard {
    animation: build-progress 2.6s var(--ease-out) 0.4s both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agent__steps .is-active i { animation: none; }
}

@keyframes build-progress {
  from { --build-at: 14%; }
  to { --build-at: 47%; }
}

/* ---- Why: cost chart (to scale, $0–$15k) ---- */
.cost-chart { margin: 0; }

.cost-chart__plot {
  display: grid;
  gap: 22px;
}

.cost-chart__row {
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 10px;
  font-size: var(--fs-small);
}

.cost-chart__label { color: var(--text-dim); }

.cost-chart__value {
  color: var(--text-dim);
  font-weight: var(--fw-strong);
  font-variant-numeric: tabular-nums;
}

.cost-chart__row--sk .cost-chart__label { color: var(--text); font-weight: var(--fw-strong); }
.cost-chart__row--sk .cost-chart__value { color: var(--sk-ember-hover); }

.cost-chart__track {
  grid-column: 1 / -1;
  position: relative;
  height: 10px;
  border-radius: var(--radius-pill);
  background: rgba(245, 243, 239, 0.06);
}

/* "$15,000+": the range fades out instead of ending */
.cost-chart__range {
  position: absolute;
  inset: 0 calc(100% - var(--to)) 0 var(--from);
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(245, 243, 239, 0.42), rgba(245, 243, 239, 0.1));
  transform-origin: left center;
}

/* "From $1,500": a marker at the price, trailing off to the right */
.cost-chart__row--sk .cost-chart__track::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 10%;
  width: 18%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 90, 31, 0.5), transparent);
}

.cost-chart__marker {
  position: absolute;
  top: 50%;
  left: var(--at);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sk-ember);
  box-shadow: 0 0 0 4px var(--sk-ember-soft), 0 0 18px var(--sk-ember-glow);
  transform: translate(-50%, -50%);
}

.cost-chart__axis {
  position: relative;
  height: 16px;
  font-size: var(--fs-micro);
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

.cost-chart__axis span { position: absolute; top: 0; }
.cost-chart__axis span:nth-child(1) { left: 0; }
.cost-chart__axis span:nth-child(2) { left: 33.33%; transform: translateX(-50%); }
.cost-chart__axis span:nth-child(3) { left: 66.66%; transform: translateX(-50%); }
.cost-chart__axis span:nth-child(4) { right: 0; }

@media (prefers-reduced-motion: no-preference) {
  html.js .cost-chart__range {
    transform: scaleX(0);
    transition: transform 1.2s var(--ease-out) 0.2s;
  }
  html.js .is-visible .cost-chart__range { transform: scaleX(1); }
}

/* ---- Why: disciplines, grouped ---- */
.disciplines {
  display: grid;
  gap: 14px;
}

.disciplines__group {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: baseline;
  gap: var(--sp-2);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.disciplines__name {
  font-family: var(--font-label);
  font-size: var(--fs-micro);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  font-feature-settings: "case";
  font-weight: var(--fw-strong);
  color: var(--text-faint);
}

.disciplines ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.disciplines li {
  padding: 4px 11px;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  font-size: var(--fs-small);
  color: var(--text-dim);
}

/* ---- Why: CoffeeCup figures ---- */
.kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kpi {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 6px;
  padding-block: 16px;
  border-top: 1px solid var(--border);
}

.kpi:nth-child(even) {
  padding-left: var(--sp-3);
  border-left: 1px solid var(--border);
}

.kpi dt {
  font-size: var(--fs-small);
  color: var(--text-faint);
  max-width: 24ch;
}

.kpi dd {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tr-display);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.kpi__suffix {
  font-size: 0.55em;
  color: var(--sk-ember);
  letter-spacing: var(--tr-h2);
}

/* ---- Services (featured video rows) ---- */
.svc-feature__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.svc-feature__chrome span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}

.svc-feature__chrome span:first-child { background: #ff5f57; }
.svc-feature__chrome span:nth-child(2) { background: #febc2e; }
.svc-feature__chrome span:nth-child(3) { background: #28c840; }

/* ---- Suite demo: list ---- */
.suite-demo__tab {
  margin-left: -1px;
  padding: 11px 0 11px 20px;
  border-left: 2px solid transparent;
  text-align: left;
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tr-ui);
  color: var(--text-faint);
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

.suite-demo__tab:hover { color: var(--text-dim); }

.suite-demo__tab.is-active {
  color: var(--text);
  border-left-color: var(--sk-ember);
}

/* ---- Suite demo: stage ---- */
.suite-demo__item {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-med) var(--ease-out);
}

.suite-demo__item.is-active {
  opacity: 1;
  visibility: visible;
}

.suite-demo__desc:not(.is-active) {
  display: none;
}

.suite-demo__title {
  font-size: var(--fs-h4);
  font-weight: var(--fw-strong);
  letter-spacing: var(--tr-h2);
  line-height: var(--lh-title);
}

.suite-demo__desc p {
  margin-top: 8px;
  color: var(--text-dim);
  max-width: 60ch;
}

.svc__poster,
.svc__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.svc__poster {
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease-out);
}

.svc__video {
  opacity: 1;
  transition: opacity var(--dur-med) var(--ease-out);
}

.svc-feature__mini {
  font-family: var(--font-label);
  font-size: var(--fs-micro);
  letter-spacing: var(--tr-label);
  color: var(--sk-ember);
  text-transform: uppercase;
  font-feature-settings: "case";
  font-weight: var(--fw-strong);
}

.svc-feature__title {
  font-size: var(--fs-h3);
  margin-top: 4px;
  font-weight: var(--fw-strong);
  letter-spacing: var(--tr-h2);
  line-height: var(--lh-heading);
}

.svc-feature__desc {
  font-size: var(--fs-lead);
  color: var(--text-dim);
  margin-top: var(--sp-2);
  max-width: 48ch;
}

.svc-feature__price {
  display: inline-block;
  margin-top: var(--sp-2);
  font-family: var(--font-label);
  font-size: var(--fs-small);
  color: var(--text);
  padding: 8px 16px;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-pill);
  width: fit-content;
  font-weight: var(--fw-strong);
}

/* ---- Process: timeline ---- */
.timeline__axis {
  font-size: var(--fs-micro);
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

.timeline__axis span { padding-left: 8px; }
.timeline__axis i { font-style: normal; }

.timeline__title {
  font-size: var(--fs-h4);
  font-weight: var(--fw-strong);
  letter-spacing: var(--tr-h2);
  line-height: var(--lh-title);
}

.timeline__when {
  font-size: var(--fs-small);
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.timeline__desc {
  grid-column: 1 / -1;
  font-size: var(--fs-small);
  color: var(--text-dim);
  max-width: 42ch;
}

/* Week columns drawn as faint hairlines, continuous from row to row */
.timeline__track {
  background-image: linear-gradient(90deg, rgba(245, 243, 239, 0.05) 1px, transparent 1px);
  background-size: calc(100% / 7) 100%;
}

.timeline__bar {
  grid-column: var(--start) / var(--end);
  height: 24px;
  margin-inline: 4px;
  border-radius: 6px;
  background: rgba(245, 243, 239, 0.16);
  transform-origin: left center;
}

/* Launch is the goal: the only bar in the brand colour */
.timeline__row--launch .timeline__bar { background: var(--sk-ember); }

@media (prefers-reduced-motion: no-preference) {
  html.js .timeline__bar {
    transform: scaleX(0);
    transition: transform 0.9s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 0.12s + 0.2s);
  }
  html.js .timeline.is-visible .timeline__bar { transform: scaleX(1); }
}

@media (max-width: 720px) {
  .timeline__axis i { display: none; }
  .timeline__axis span::before { content: "W"; }
  .timeline__axis span { padding-left: 4px; }
  .timeline__bar { height: 8px; margin-inline: 0; border-radius: var(--radius-pill); }
  /* One continuous rail instead of tick marks */
  .timeline__track {
    background: rgba(245, 243, 239, 0.05) content-box;
    padding-block: 3px;
    border-radius: var(--radius-pill);
  }
}

/* Narrow screens: the service list becomes a swipeable strip of chips
   right above the stage (kept after the list rules so it wins). */
@media (max-width: 900px) {
  /* Eight stacked tabs pushed the result off-screen: on narrow screens
     they become a swipeable strip right above the stage. */
  .suite-demo__tabs {
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    margin-inline: calc(var(--edge) * -1);
    padding: 2px var(--edge) 6px;
    border: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--edge), #000 calc(100% - var(--edge)), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 var(--edge), #000 calc(100% - var(--edge)), transparent);
  }
  .suite-demo__tabs::-webkit-scrollbar { display: none; }
  .suite-demo__tab {
    flex: none;
    scroll-snap-align: center;
    margin-left: 0;
    padding: 10px 16px;
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-pill);
    font-size: var(--fs-small);
    white-space: nowrap;
  }
  .suite-demo__tab.is-active {
    border-color: var(--sk-ember);
    background: var(--sk-ember-soft);
  }
}

/* ---- Pricing ---- */
.pricing__tag {
  font-family: var(--font-label);
  font-size: var(--fs-micro);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--sk-ember);
  font-weight: var(--fw-strong);
  font-feature-settings: "case";
}

.pricing__tag--muted { color: var(--text-dim); }

.pricing__from {
  align-self: flex-end;
  margin: 0 10px 0.35em 0;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  letter-spacing: 0;
  color: var(--text-dim);
}

.pricing__alt-price {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tr-h2);
  line-height: var(--lh-title);
}

.pricing__alt-cta { flex: none; }

.pricing__includes li {
  position: relative;
  padding-left: 28px;
}

.pricing__includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 16px;
  height: 16px;
  background: var(--sk-ember);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.pricing__price {
  font-family: var(--font-display);
  font-size: clamp(3rem, 2.4rem + 3vw, 5rem);
  line-height: 1;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-weight: var(--fw-bold);
  letter-spacing: var(--tr-display);
}

.pricing__currency {
  font-size: 0.4em;
  margin-top: 0.3em;
  color: var(--text-faint);
}

.pricing__note,
.pricing__fine {
  font-size: var(--fs-small);
  color: var(--text-faint);
}

.pricing__fine { margin-top: var(--sp-2); }

/* ---- Contact: what happens next ---- */
.contact__next-title {
  margin-top: var(--sp-4);
  font-family: var(--font-label);
  font-size: var(--fs-micro);
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  font-feature-settings: "case";
  font-weight: var(--fw-strong);
  color: var(--text-faint);
}

.contact__next li {
  counter-increment: next;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 0 14px 44px;
  border-top: 1px solid var(--border);
}

.contact__next li::before {
  content: counter(next);
  position: absolute;
  left: 0;
  top: 14px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  font-size: var(--fs-micro);
  font-weight: var(--fw-strong);
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.contact__next strong {
  font-weight: var(--fw-strong);
  letter-spacing: var(--tr-ui);
}

.contact__next span {
  font-size: var(--fs-small);
  color: var(--text-dim);
}

.contact__fine a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}

.contact__fine a:hover { text-decoration-color: var(--sk-ember); }

/* ---- Forms (contact) ----
   Labels always visible above each field (no floating labels), 16px
   text in every input so phones don't zoom in on focus. */
.contact__form-title {
  font-size: var(--fs-h4);
  font-weight: var(--fw-strong);
  letter-spacing: var(--tr-h2);
  line-height: var(--lh-title);
}

.contact__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact__field label,
.contact__chips legend {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--text);
}

.contact__optional {
  font-weight: var(--fw-regular);
  color: var(--text-faint);
}

.contact__hint {
  margin-top: -4px;
  font-size: var(--fs-small);
  color: var(--text-faint);
}

.contact__field input,
.contact__field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: max(16px, var(--fs-body));
  line-height: 1.5;
  color: var(--text);
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}

.contact__field textarea { min-height: 140px; resize: vertical; }

.contact__field input:hover,
.contact__field textarea:hover { border-color: var(--border-strong); }

.contact__field input:focus,
.contact__field textarea:focus {
  outline: none;
  border-color: var(--sk-ember);
  box-shadow: 0 0 0 3px var(--sk-ember-soft);
}

.contact__field.is-invalid input,
.contact__field.is-invalid textarea { border-color: var(--danger); }

.contact__field.is-invalid input:focus,
.contact__field.is-invalid textarea:focus { box-shadow: 0 0 0 3px var(--danger-soft); }

.contact__error {
  display: flex;
  gap: 8px;
  font-size: var(--fs-small);
  color: var(--danger);
}

.contact__error[hidden] { display: none; }

.contact__error::before {
  content: "!";
  flex: none;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--danger);
  color: var(--bg);
  font-size: 11px;
  font-weight: var(--fw-bold);
}

/* ---- Forms: path options (native radios, styled as chips) ---- */
.contact__chips {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.contact__chips legend {
  padding: 0;
  margin-bottom: 8px;
}

.contact__chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact__chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-hover);
  background: var(--bg-elevated);
  color: var(--text-dim);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}

/* A visible radio mark keeps the control recognisable */
.contact__chip::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  transition: border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}

.contact__chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.contact__chip:hover { border-color: var(--border-strong); color: var(--text); }

.contact__chip:has(input:checked) {
  border-color: var(--sk-ember);
  background: var(--sk-ember-soft);
  color: var(--text);
}

.contact__chip:has(input:checked)::before {
  border-color: var(--sk-ember);
  background: radial-gradient(circle, var(--sk-ember) 0 3.5px, transparent 4px);
}

.contact__chip:has(input:focus-visible) {
  outline: 2px solid var(--sk-ember);
  outline-offset: 3px;
}

/* ---- Forms: submit + states ---- */
.contact__submit-icon {
  width: 18px;
  height: 18px;
  transition: transform var(--dur-fast) var(--ease-out);
}

.contact__submit:hover .contact__submit-icon { transform: translateX(4px); }

.contact__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: contact-spin 0.8s linear infinite;
}

/* Loading feedback is essential, so it keeps turning even when
   decorative motion is paused. */
html.motion-paused .contact__spinner { animation-play-state: running !important; }

@keyframes contact-spin {
  to { transform: rotate(360deg); }
}

.contact__submit.is-loading { cursor: progress; }
.contact__submit.is-loading:hover { transform: none; box-shadow: none; }
.contact__submit.is-loading .contact__submit-icon { display: none; }
.contact__submit.is-loading .contact__spinner { display: block; }

.contact__alert:empty { display: none; }

.contact__alert {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--danger);
  background: var(--danger-soft);
  font-size: var(--fs-small);
  color: var(--text);
}

.contact__success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-block: var(--sp-4);
}

.contact__success-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sk-ember-soft);
  color: var(--sk-ember);
}

.contact__success-icon svg { width: 24px; height: 24px; }

.contact__success-title {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tr-h1);
  line-height: var(--lh-heading);
}

.contact__success p { max-width: 40ch; }
.contact__success strong { color: var(--text); font-weight: var(--fw-medium); overflow-wrap: anywhere; }
.contact__success .btn { margin-top: 8px; }

/* ---- Contact: direct email + trust points ---- */
.contact__email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--sp-4);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.7rem);
  color: var(--text);
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border-hover);
  transition: border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              gap var(--dur-fast) var(--ease-out);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tr-h2);
}

.contact__email svg {
  width: 18px;
  height: 18px;
  transition: transform var(--dur-fast) var(--ease-out);
}

.contact__email:hover {
  color: var(--sk-ember-hover);
  border-color: var(--sk-ember);
  gap: 16px;
}

.contact__email:hover svg { transform: translate(2px, -2px); }

/* ---- Footer ---- */
.footer__logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: var(--fw-strong);
  letter-spacing: var(--tr-h1);
  color: var(--text);
}

.footer__tagline {
  max-width: 30ch;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  text-wrap: balance;
}

.footer__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.7);
}

.footer__meta svg { flex: none; width: 15px; height: 15px; color: var(--sk-ember); }

.footer__social {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.footer__social-link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  transition: background-color var(--dur-fast), border-color var(--dur-fast),
              color var(--dur-fast), transform var(--dur-fast);
}

.footer__social-link svg { width: 16px; height: 16px; }

.footer__social-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 169, 138, 0.4);
  color: #fff;
  transform: translateY(-1px);
}

.footer__social-link:active { transform: none; }

.footer__col-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: var(--fw-strong);
  line-height: 44px;
  letter-spacing: 0;
  color: var(--text);
}

/* Desktop shows the label; phones show the accordion button instead */
.footer__col-toggle { display: none; }

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  font-size: 14px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  text-underline-offset: 4px;
  transition: color var(--dur-fast);
}

.footer__link:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.footer__ext { flex: none; width: 12px; height: 12px; opacity: 0.7; }

.footer__copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.62);
}

.footer__heritage { display: inline-flex; align-items: center; gap: 6px; }
.footer__heritage svg { width: 14px; height: 14px; }
.footer__heritage strong { color: rgba(255, 255, 255, 0.86); font-weight: var(--fw-strong); }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}

.footer__legal-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.7);
  text-underline-offset: 3px;
  transition: color var(--dur-fast);
}

.footer__legal-link:hover { color: #fff; text-decoration: underline; }

.footer__top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--text);
  transition: background-color var(--dur-fast), border-color var(--dur-fast);
}

.footer__top svg { width: 14px; height: 14px; transition: transform var(--dur-fast); }
.footer__top:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.24); }
.footer__top:hover svg { transform: translateY(-2px); }

/* Wordmark sign-off: oversized type, a faint top-down gradient, cropped
   by the bottom edge; the pointer lights it from underneath (Footer.js). */
.footer__mark::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -40%;
  width: min(900px, 90%);
  height: 80%;
  transform: translateX(-50%);
  background: radial-gradient(rgba(255, 90, 31, 0.14), transparent 70%);
  pointer-events: none;
}

.footer__mark-word {
  display: block;
  margin-bottom: -0.15em;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 14vw, 12.5rem);
  font-weight: var(--fw-bold);
  letter-spacing: -0.05em;
  line-height: 1;
  text-align: center;
  user-select: none;
  color: transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075) 0%, rgba(255, 255, 255, 0.016) 90%);
  -webkit-background-clip: text;
  background-clip: text;
}

.footer__mark.is-lit .footer__mark-word {
  background:
    radial-gradient(circle 240px at var(--mx) var(--my), rgba(255, 169, 138, 0.42), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.075) 0%, rgba(255, 255, 255, 0.015) 90%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Tablet: brand on top, three columns below */
@media (max-width: 1100px) {
  .footer__inner { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .footer__bottom {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "legal top" "copy copy";
  }
  .footer__legal { justify-self: start; }
}

/* Phones: link columns become an accordion (only once JS can open them) */
@media (max-width: 720px) {
  .footer__body { padding-block: 56px 48px; }
  .footer__inner { gap: 40px; }
  .footer__nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
  }
  .footer__col { border-bottom: 1px solid rgba(255, 255, 255, 0.09); }
  html.js .footer__col-title { margin: 0; line-height: inherit; }
  html.js .footer__col-label { display: none; }
  html.js .footer__col-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 56px;
    font-size: 16px;
    font-weight: var(--fw-strong);
    color: var(--text);
  }
  .footer__chev { width: 16px; height: 16px; transition: transform 0.35s var(--ease-out); }
  .footer__col-toggle[aria-expanded="true"] .footer__chev { transform: rotate(180deg); }
  html.js .footer__col-panel {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows 0.35s var(--ease-out), visibility 0s linear 0.35s;
  }
  html.js .footer__col.is-open .footer__col-panel {
    grid-template-rows: 1fr;
    visibility: visible;
    transition-delay: 0s;
  }
  .footer__col-panel > ul { min-height: 0; overflow: hidden; }
  .footer__col.is-open .footer__col-list { padding-bottom: 12px; }
  .footer__bottom {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "legal" "copy" "top";
    padding-block: 12px 20px;
  }
  .footer__top { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .footer__social-link, .footer__top svg, .footer__chev, html.js .footer__col-panel { transition: none; }
  .footer__social-link:hover { transform: none; }
}

/* Stacked cards (tablet): the mockups keep a desktop-like scale
   instead of stretching across the full card. */
@media (max-width: 900px) {
  .sdui,
  .build-mock { max-width: 540px; margin-inline: auto; }
}

/* Narrow phones: comparison cards and bento go single-column inside.
   Kept here (after the component rules) so it wins the cascade. */
@media (max-width: 520px) {
  .pcard__visual { height: 240px; padding: 24px 24px 0; }
  .pcard__fact { grid-template-columns: 104px minmax(0, 1fr); }
  /* Narrow: icon-only toolbar and tiles; a slimmer Elements pane */
  .sdui { --sdui-pane: 92px; }
  .sdui-tool { min-width: 28px; }
  .sdui-tool i, .sdui-tile i { display: none; }
  .sdui-tool:nth-of-type(3) { display: none; }
  .sdui-pane__sub span:last-child { display: none; }
  .sdui-pane__sub { grid-template-columns: 1fr; }
  .sdui-drag--btn,
  .sdui-drag--pic { --from-x: calc(100% + 22px); }
  .bp-dim { display: none; }
  /* Narrow: the preview takes the full window; the agent floats as a pill */
  .build-mock__body { grid-template-columns: minmax(0, 1fr); }
  .build-mock__agent { display: none; }
  .agent--float { display: block; }
  .bento__card { padding: var(--sp-3); }
  .disciplines__group { grid-template-columns: 1fr; gap: 10px; }
  .kpi:nth-child(even) { padding-left: var(--sp-2); }
  .contact__panel { padding: var(--sp-4) var(--sp-3); }
}

/* ==========================================================================
   Legal pages (terms-of-service.html)
   Same tokens and components as the home page: a narrow reading column,
   the documents as link cards, and a contact prompt at the end.
   ========================================================================== */
.legal {
  position: relative;
  padding-block: calc(var(--sp-7) + 40px) var(--sp-7);
  overflow: hidden;
}

.legal::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 420px;
  background: radial-gradient(60% 100% at 30% 0%, rgba(255, 90, 31, 0.1), transparent 70%);
  pointer-events: none;
}

.legal__inner { position: relative; max-width: 820px; }

.legal__crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-small);
  color: var(--text-faint);
}

.legal__crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--border-strong);
}

.legal__crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-dim);
  text-underline-offset: 3px;
}

.legal__crumbs a:hover { color: var(--text); text-decoration: underline; }
.legal__crumbs [aria-current] { color: var(--text); }

.legal__head { margin-top: var(--sp-4); }

.legal__title {
  margin-top: var(--sp-2);
  font-size: var(--fs-h1);
  letter-spacing: var(--tr-h1);
  line-height: var(--lh-display);
}

.legal__body {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}

.legal__body > p {
  max-width: 65ch;
  font-size: var(--fs-lead);
  line-height: 1.7;
  color: var(--text-dim);
}

.legal__body > p + p { margin-top: var(--sp-2); }
.legal__body strong { color: var(--text); font-weight: var(--fw-strong); }

.legal__docs {
  display: grid;
  gap: 10px;
  margin-top: var(--sp-4);
}

.legal-doc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: 44px;
  padding: 18px 20px;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  transition: border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}

.legal-doc:hover {
  border-color: rgba(255, 138, 92, 0.5);
  background: var(--bg-card-hover);
}

.legal-doc__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-doc__text strong { font-size: var(--fs-body); }

.legal-doc__text span {
  font-size: var(--fs-small);
  color: var(--text-dim);
}

.legal-doc__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-hover);
  color: var(--text-dim);
  transition: color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
}

.legal-doc__icon svg { width: 14px; height: 14px; }

.legal-doc:hover .legal-doc__icon {
  color: var(--sk-ember);
  border-color: var(--sk-ember);
  transform: translate(2px, -2px);
}

.legal__help {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: var(--sp-6);
  padding: var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
}

.legal__help-title {
  font-size: var(--fs-h4);
  font-weight: var(--fw-strong);
  letter-spacing: var(--tr-h2);
  line-height: var(--lh-title);
}

.legal__help p { color: var(--text-dim); }
.legal__help .btn { margin-top: 6px; }

.footer__legal-link[aria-current="page"] { color: #fff; text-decoration: underline; }

@media (max-width: 520px) {
  .legal { padding-top: calc(var(--sp-7) + 24px); }
  .legal-doc { padding: 16px; }
  .legal__help { padding: var(--sp-3); }
}

@media (prefers-reduced-motion: reduce) {
  .legal-doc:hover .legal-doc__icon { transform: none; }
}

