/* Dotty product site (dottyai.synesthesia.it). Structure and look ported from
   the AI Policy Maker product site: Synesthesia tokens, larger type, more air.
   Standalone (no build step). Motion is progressive: every block reads with no
   script, with reduced motion and without scroll-driven animations. */

:root {
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --color-brand-900: #00304f;
  --color-brand-800: #003a61;
  --color-brand-700: #004878; /* Blu Synesthesia */
  --color-brand-600: #005c96;
  --color-brand-500: #0084d1;
  --color-brand-100: #e3f0f8;
  --color-brand-50: #f2f8fc;
  --color-accent-500: #fcba00; /* Giallo Synesthesia */
  --color-accent-100: #fff4d1;
  --color-accent-900: #7a5300;
  --color-ink: #1c2329;
  --color-ink-muted: #5b6670;
  --color-line: #dfe4e8;
  --color-surface: #ffffff;
  --color-canvas: #f5f7f9;
  --color-ok-700: #17663a;
  --color-ok-50: #eaf6ef;
  --color-danger-700: #b42318;
  --color-danger-50: #fdecea;
  --radius-control: 0.625rem;
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  color-scheme: light;
}

/* --- Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font-family: var(--font-sans); font-size: 1rem; line-height: 1.5;
  color: var(--color-ink); background: #fff;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: var(--color-brand-600); text-underline-offset: 0.18em; }
a:hover { color: var(--color-brand-800); }
:focus-visible { outline: 2px solid var(--color-brand-500); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--color-brand-100); }
code { font-family: var(--font-mono); font-size: 0.875em; }
.skip { position: absolute; left: -999rem; }
.skip:focus { left: 1rem; top: 1rem; z-index: 50; padding: 0.5rem 1rem; background: #fff; border-radius: 0.5rem; }

/* --- Small helpers (stand-ins for the utility classes of the AIPM build) --- */
.mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 0.75rem; } .mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; } .mt-12 { margin-top: 3rem; } .mt-16 { margin-top: 4rem; }
.mt-24 { margin-top: clamp(4rem, 8vw, 6rem); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.row-center { justify-content: center; }
.row-tight { gap: 0.5rem; }
.muted { color: var(--color-ink-muted); }
.grid-3 { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } }
.sm-only-up { display: none; }
@media (min-width: 40rem) { .sm-only-up { display: inline-flex; } }

/* --- Buttons and badges ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.5rem; padding: 0 1rem; border-radius: var(--radius-control);
  font: inherit; font-weight: 560; font-size: 0.9375rem; line-height: 1;
  border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color 120ms var(--ease-out-quart), transform 100ms var(--ease-out-quart), box-shadow 120ms;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 1rem; height: 1rem; }
.btn-primary { background: var(--color-brand-700); color: #fff; }
.btn-primary:hover { background: var(--color-brand-800); color: #fff; }
.btn-secondary { background: var(--color-surface); color: var(--color-ink); border-color: var(--color-line); }
.btn-secondary:hover { background: var(--color-canvas); color: var(--color-ink); }
.badge {
  display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.125rem 0.5rem;
  border-radius: 999px; font-size: 0.75rem; font-weight: 600; line-height: 1.4; white-space: nowrap;
  color: var(--color-ink-muted); background: var(--color-canvas); box-shadow: inset 0 0 0 1px var(--color-line);
}
.badge-brand { color: var(--color-brand-700); background: var(--color-brand-50); box-shadow: inset 0 0 0 1px #c9e0ef; }
.badge-ok { color: var(--color-ok-700); background: var(--color-ok-50); box-shadow: inset 0 0 0 1px #bfe3cd; }
.badge-warn { color: var(--color-accent-900); background: var(--color-accent-100); box-shadow: inset 0 0 0 1px #f5dc8f; }
.badge-danger { color: var(--color-danger-700); background: var(--color-danger-50); box-shadow: inset 0 0 0 1px #f3c2bd; }

.site { background: #fff; overflow-x: clip; }
.site-wrap { width: 100%; max-width: 74rem; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 40rem) { .site-wrap { padding-inline: 2rem; } }

/* --- Navigation: a translucent layer, content scrolls under it --------- */
.site-top { position: absolute; top: 0; height: 1px; width: 1px; }
.site-nav {
  position: sticky; top: 0; z-index: 30;
  background: rgb(255 255 255 / 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease-out-quart), background-color 200ms var(--ease-out-quart);
}
.site-nav[data-scrolled] { border-bottom-color: rgb(16 24 40 / 0.08); }
/* At the very top there is nothing to float over: no material yet. */
.site-nav[data-top] {
  background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none;
}
.site-brand {
  display: inline-flex; align-items: center; gap: 0.625rem; min-height: 2.5rem;
  font-size: 1.0625rem; font-weight: 680; letter-spacing: -0.02em;
  color: var(--color-brand-700); text-decoration: none; white-space: nowrap;
}
.site-brand:hover { color: var(--color-brand-800); }
.site-brand-mark {
  width: 1.5rem; height: 1.5rem; border-radius: 0.5rem; flex: none;
  background:
    radial-gradient(circle at 72% 28%, var(--color-accent-500) 0 18%, transparent 19%),
    linear-gradient(140deg, var(--color-brand-500), var(--color-brand-800));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), 0 1px 2px rgb(0 48 79 / 0.3);
}
.site-nav-link {
  display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 0.875rem;
  border-radius: var(--radius-control);
  font-size: 0.9375rem; font-weight: 520; color: var(--color-ink-muted);
  text-decoration: none; white-space: nowrap;
  transition: color 120ms, background-color 120ms;
}
@media (hover: hover) {
  .site-nav-link:hover { color: var(--color-ink); background: rgb(16 24 40 / 0.05); }
}

/* --- Type --------------------------------------------------------------- */
.site-display {
  font-size: clamp(2.375rem, 5.6vw, 4.25rem); line-height: 1.04;
  letter-spacing: -0.035em; font-weight: 700; text-wrap: balance;
  max-width: 19ch; margin-inline: auto;
}
.site-grad {
  background: linear-gradient(100deg, var(--color-brand-800), var(--color-brand-600) 45%, var(--color-brand-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.site-h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.1;
  letter-spacing: -0.03em; font-weight: 680; text-wrap: balance;
}
.site-h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.015em; font-weight: 640; }
.site-card-title { font-size: 1.0625rem; line-height: 1.3; letter-spacing: -0.01em; font-weight: 640; }
.site-lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.5;
  color: var(--color-ink-muted); max-width: 40rem; text-wrap: pretty;
}
.site-text { color: var(--color-ink-muted); font-size: 0.9688rem; line-height: 1.55; }
.site-note { color: var(--color-ink-muted); font-size: 0.875rem; }
.site-eyebrow {
  font-size: 0.8125rem; font-weight: 640; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--color-brand-600);
}

.site-section { padding-block: clamp(4rem, 9vw, 7.5rem); }
/* After a section on the same background one gap is enough. */
.site-section-flush { padding-top: 0; }
.site-tint {
  background:
    radial-gradient(60rem 24rem at 50% 0%, rgb(0 132 209 / 0.07), transparent 70%),
    var(--color-canvas);
}
.site-head { max-width: 46rem; margin-inline: auto; text-align: center; }
.site-head .site-lede { margin-inline: auto; }

/* --- Buttons -------------------------------------------------------------- */
.site-btn-lg { min-height: 3rem; padding: 0 1.375rem; font-size: 1rem; border-radius: 0.75rem; }
.site-cta {
  position: relative; overflow: hidden;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), 0 10px 24px -10px rgb(0 72 120 / 0.65);
}
/* A band of light crosses the button on hover: transform only. */
.site-cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / 0.28) 50%, transparent 65%);
  transform: translateX(-120%);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .site-cta:hover::after { transform: translateX(120%); transition: transform 700ms var(--ease-out-quart); }
}

/* --- Hero ----------------------------------------------------------------- */
.site-hero {
  position: relative; isolation: isolate; text-align: center;
  padding-top: clamp(3rem, 7vw, 5.5rem);
}
.site-hero::before {
  content: ""; position: absolute; inset: -6rem 0 auto; height: 48rem; z-index: -2;
  background:
    radial-gradient(42rem 26rem at 16% 14%, rgb(0 132 209 / 0.22), transparent 66%),
    radial-gradient(38rem 24rem at 86% 8%, rgb(0 72 120 / 0.20), transparent 66%),
    radial-gradient(26rem 16rem at 62% 46%, rgb(252 186 0 / 0.14), transparent 70%);
}
.site-hero::after {
  content: ""; position: absolute; inset: 0 0 auto; height: 42rem; z-index: -1;
  background-image:
    linear-gradient(rgb(0 72 120 / 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgb(0 72 120 / 0.07) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem; background-position: center top;
  -webkit-mask-image: radial-gradient(62% 62% at 50% 28%, #000, transparent 76%);
  mask-image: radial-gradient(62% 62% at 50% 28%, #000, transparent 76%);
}
.site-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 0.875rem; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 560; color: var(--color-brand-800);
  background: rgb(255 255 255 / 0.75);
  box-shadow: 0 0 0 1px rgb(0 72 120 / 0.14), 0 1px 2px rgb(0 48 79 / 0.06);
}
.site-pill-dot {
  width: 0.5rem; height: 0.5rem; border-radius: 999px; background: var(--color-accent-500);
  box-shadow: 0 0 0 3px rgb(252 186 0 / 0.25);
}
.site-proof {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem;
  font-size: 0.875rem; color: var(--color-ink-muted);
}
.site-proof li { display: inline-flex; align-items: center; gap: 0.5rem; }
.site-proof li::before {
  content: ""; width: 0.375rem; height: 0.375rem; border-radius: 999px;
  background: var(--color-brand-500);
}

/* Product shot in a window frame. Shadows give the depth, the transparent
   border keeps an edge in forced-colors mode. */
.site-stage { position: relative; margin-top: clamp(2.5rem, 6vw, 4.5rem); perspective: 110rem; }
.site-stage::before {
  content: ""; position: absolute; inset: 12% 6% -4%; z-index: -1;
  background: radial-gradient(closest-side, rgb(0 132 209 / 0.35), transparent);
  filter: blur(48px);
}
.site-frame {
  overflow: hidden; border-radius: 0.875rem; background: var(--color-surface);
  border: 1px solid transparent; text-align: left;
  box-shadow:
    0 0 0 1px rgb(16 24 40 / 0.09),
    0 2px 4px rgb(16 24 40 / 0.04),
    0 24px 48px -16px rgb(0 48 79 / 0.22),
    0 64px 96px -40px rgb(0 72 120 / 0.30);
}
.site-frame img { display: block; width: 100%; height: auto; }
.site-frame-bar {
  display: flex; align-items: center; gap: 0.375rem; height: 2.25rem; padding-inline: 0.875rem;
  background: linear-gradient(#fcfdfe, #f2f5f7); border-bottom: 1px solid var(--color-line);
}
.site-frame-bar i { width: 0.625rem; height: 0.625rem; border-radius: 999px; background: #d3dae0; }
.site-frame-url {
  margin-inline: auto; transform: translateX(-1.25rem);
  padding: 0.125rem 1rem; border-radius: 999px;
  font-size: 0.75rem; color: var(--color-ink-muted);
  background: var(--color-surface); box-shadow: 0 0 0 1px var(--color-line);
}
.site-hero .site-frame { transform-origin: 50% 0; border-radius: 0.875rem 0.875rem 0 0; }

/* Two glass cards float over the hero shot on wide screens. */
.site-float {
  display: none; position: absolute; z-index: 2; text-align: left;
  padding: 0.875rem 1rem; border-radius: 0.875rem;
  font-size: 0.875rem; font-weight: 520; color: var(--color-ink);
  background: rgb(255 255 255 / 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid transparent;
  box-shadow:
    0 0 0 1px rgb(16 24 40 / 0.08),
    inset 0 1px 0 rgb(255 255 255 / 0.9),
    0 16px 32px -12px rgb(0 48 79 / 0.35);
}
.site-float-title {
  font-size: 0.75rem; font-weight: 640; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--color-ink-muted);
}
@media (min-width: 80rem) {
  .site-float { display: block; }
  .site-float-a { left: -2.5rem; top: 64%; }
  .site-float-b { right: -2.5rem; top: 14%; }
}

/* --- Bento ---------------------------------------------------------------- */
.site-bento { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) {
  .site-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-card-wide { grid-column: span 2; }
}
@media (min-width: 64rem) {
  .site-bento { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
}
.site-card {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 1.5rem; border-radius: 1.25rem;
  background: var(--color-surface); border: 1px solid transparent;
  box-shadow:
    0 0 0 1px rgb(16 24 40 / 0.07),
    0 1px 2px rgb(16 24 40 / 0.04),
    0 12px 24px -16px rgb(16 24 40 / 0.14);
}
@media (min-width: 40rem) { .site-card { padding: 1.75rem; } }
/* Light follows the pointer inside the card (site.js sets --mx / --my). */
.site-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(20rem circle at var(--mx, 50%) var(--my, 0%), rgb(0 132 209 / 0.13), transparent 62%);
  transition: opacity 200ms var(--ease-out-quart);
}
@media (hover: hover) { .site-card:hover::before { opacity: 1; } }
.site-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; margin-bottom: 1.125rem; border-radius: 0.75rem;
  color: var(--color-brand-700);
  background: linear-gradient(160deg, #fff, var(--color-brand-100));
  box-shadow: 0 0 0 1px rgb(0 72 120 / 0.12), 0 1px 2px rgb(0 48 79 / 0.08);
}
.site-icon svg { width: 1.25rem; height: 1.25rem; }
.site-card h3 + p { max-width: 62ch; }

/* The wide card shows a page that slips out of its lower edge. */
.site-sheet { display: none; }
@media (min-width: 40rem) {
  .site-card-doc { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr) 15rem; }
  .site-sheet {
    display: block; align-self: stretch; min-height: 14rem; margin-bottom: -4rem;
    padding: 1.25rem; border-radius: 0.75rem;
    background: var(--color-surface); border: 1px solid transparent;
    box-shadow: 0 0 0 1px rgb(16 24 40 / 0.08), 0 20px 32px -16px rgb(0 48 79 / 0.3);
    transform: rotate(2.5deg) translateY(0.5rem); transform-origin: 0 100%;
  }
}
.site-sheet-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  font-size: 0.875rem; font-weight: 640;
}
.site-sheet-meta { margin-top: 0.125rem; font-size: 0.75rem; color: var(--color-ink-muted); }
.site-sheet i {
  display: block; height: 0.4375rem; margin-top: 0.625rem; border-radius: 999px; background: #e7ecf0;
}
.site-sheet i:nth-of-type(3n) { width: 68%; }
/* Each group of lines is a clause, with the label that says where it comes from. */
.site-sheet .site-sheet-tag { margin-top: 1rem; }
.site-sheet .site-sheet-tag + i { margin-top: 0.625rem; }

.site-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
/* The connectors only make sense while the four states sit on one line. */
.site-flow i { display: none; width: 1.25rem; height: 1px; background: #c3ccd4; }
@media (min-width: 40rem) { .site-flow i { display: block; } }
.site-levels { display: grid; gap: 0.5rem; font-size: 0.875rem; }
.site-levels li {
  display: grid; grid-template-columns: auto 3.75rem 1fr; align-items: center; gap: 0.625rem;
  padding: 0.5rem 0.75rem; border-radius: 0.625rem; background: var(--color-canvas);
}
.site-levels b { font-weight: 600; }
.site-levels li > span:last-child { color: var(--color-ink-muted); }

/* --- Split sections ------------------------------------------------------- */
.site-split { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 64rem) {
  .site-split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4rem; }
  .site-split-flip > :first-child { order: 2; }
  .site-split-flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .site-split-top { align-items: start; }
}
.site-ticks { display: grid; gap: 0.75rem; }
.site-ticks li { position: relative; padding-left: 1.875rem; line-height: 1.45; }
.site-ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.1em; width: 1.25rem; height: 1.25rem;
  border-radius: 999px; background-color: var(--color-brand-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23004878' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 10.5 2.500 2.500L14 7.500'/%3E%3C/svg%3E");
}
@media (min-width: 48rem) {
  .site-ticks-row { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; }
}
@media (min-width: 72rem) {
  .site-ticks-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* --- Dark band: the MCP server ---------------------------------------------- */
.site-dark {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(2rem, 6vw, 4.5rem); border-radius: 2rem;
  color: #e8f2f9;
  background:
    radial-gradient(48rem 26rem at 88% -8%, rgb(0 132 209 / 0.50), transparent 62%),
    radial-gradient(34rem 22rem at -6% 108%, rgb(252 186 0 / 0.14), transparent 62%),
    #00243c;
}
.site-dark::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.05) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem;
  -webkit-mask-image: radial-gradient(70% 70% at 80% 20%, #000, transparent 75%);
  mask-image: radial-gradient(70% 70% at 80% 20%, #000, transparent 75%);
}
.site-dark .site-h2 { color: #fff; }
.site-dark .site-lede { color: #b7cfe0; }
.site-dark .site-eyebrow { color: #7fc8f2; }
.site-dark .site-ticks li::before {
  background-color: rgb(255 255 255 / 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 10.5 2.500 2.500L14 7.500'/%3E%3C/svg%3E");
}
.site-chat {
  display: grid; gap: 0.75rem; justify-items: start;
  padding: 1.25rem; border-radius: 1.25rem;
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.12);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.10), 0 24px 48px -24px rgb(0 0 0 / 0.5);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
@media (min-width: 40rem) { .site-chat { padding: 1.75rem; } }
.site-chat-label {
  font-size: 0.75rem; font-weight: 640; letter-spacing: 0.05em;
  text-transform: uppercase; color: #9dbbd0;
}
.site-bubble {
  max-width: 30rem; padding: 0.75rem 1rem; border-radius: 1rem 1rem 1rem 0.375rem;
  font-size: 0.9375rem; line-height: 1.5; color: var(--color-ink);
  background: #fff; box-shadow: 0 8px 20px -12px rgb(0 0 0 / 0.5);
}
.site-bubble-user {
  justify-self: end; border-radius: 1rem 1rem 0.375rem 1rem;
  color: #fff; background: var(--color-brand-600); font-weight: 520;
}
.site-toolcall {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.3125rem 0.75rem; border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.8125rem; color: #cfe3f1;
  background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.14);
}
.site-toolcall-dot {
  width: 0.4375rem; height: 0.4375rem; border-radius: 999px; background: var(--color-accent-500);
}
.site-chat-meta { font-size: 0.8125rem; color: var(--color-ink-muted); }

/* --- Steps ---------------------------------------------------------------- */
.site-steps { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); counter-reset: none; }
@media (min-width: 48rem) { .site-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }
.site-steps li { position: relative; }
.site-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: 999px;
  font-size: 1.0625rem; font-weight: 680; font-variant-numeric: tabular-nums; color: #fff;
  background: linear-gradient(150deg, var(--color-brand-500), var(--color-brand-800));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), 0 8px 16px -8px rgb(0 72 120 / 0.6);
}
@media (min-width: 48rem) {
  /* A line joins each step to the next one. */
  .site-steps li:not(:last-child)::after {
    content: ""; position: absolute; top: 1.375rem; left: 3.75rem; right: -1rem; height: 1px;
    background: linear-gradient(90deg, #b9c9d6, transparent);
  }
}
.site-trust {
  padding: 1.75rem; border-radius: 1.25rem; background: var(--color-brand-50);
  border: 1px solid transparent; box-shadow: 0 0 0 1px rgb(0 72 120 / 0.10);
}

/* --- Pricing -------------------------------------------------------------- */
.site-price {
  display: grid; gap: 2rem; max-width: 56rem; margin-inline: auto;
  padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: 1.5rem;
  border: 1.5px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--color-brand-500), var(--color-accent-500) 50%, var(--color-brand-700)) border-box;
  box-shadow: 0 32px 64px -32px rgb(0 72 120 / 0.35);
}
@media (min-width: 48rem) { .site-price { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3rem; } }
.site-price-tag { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; }

/* --- Contact -------------------------------------------------------------- */
.site-form-card { padding: 1.5rem; border-radius: 1.25rem; box-shadow: 0 24px 48px -28px rgb(0 48 79 / 0.3); }
@media (min-width: 40rem) { .site-form-card { padding: 2rem; } }
.site-hp { position: absolute; left: -624rem; width: 1px; height: 1px; overflow: hidden; }
.site-sent { padding-block: 1.5rem; text-align: center; }
.site-sent-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 999px;
  color: var(--color-ok-700); background: var(--color-ok-50);
}
.site-sent-icon svg { width: 1.5rem; height: 1.5rem; }

.site-footer { padding-block: 2rem; border-top: 1px solid var(--color-line); }

/* --- Motion ---------------------------------------------------------------- */
/* Hero entrance: runs once, no script. The hidden state lives in the keyframe,
   so the text is there even if the animation never runs. */
@keyframes site-rise {
  from { opacity: 0; transform: translateY(12px); filter: blur(4px); }
}
@keyframes site-fade { from { opacity: 0; } }
.site-enter > * { animation: site-fade 300ms var(--ease-out-quart) both; }
@media (prefers-reduced-motion: no-preference) {
  .site-enter > * { animation: site-rise 600ms var(--ease-out-quart) both; }
  .site-enter > :nth-child(2) { animation-delay: 80ms; }
  .site-enter > :nth-child(3) { animation-delay: 160ms; }
  .site-enter > :nth-child(4) { animation-delay: 240ms; }
  .site-enter > :nth-child(5) { animation-delay: 320ms; }
  .site-enter > :nth-child(6) { animation-delay: 420ms; }
}

/* Blocks further down appear as they enter the viewport (site.js adds the
   classes). Without the script nothing is hidden. */
.site-js .site-reveal { opacity: 0; transition: opacity 300ms var(--ease-out-quart); }
.site-js .site-reveal.is-in { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .site-js .site-reveal {
    transform: translateY(12px); filter: blur(4px);
    transition-property: opacity, transform, filter;
    transition-duration: 600ms;
    transition-delay: calc(var(--i, 0) * 80ms);
  }
  .site-js .site-reveal.is-in { transform: none; filter: none; }
  .site-stagger > :nth-child(2) { --i: 1; }
  .site-stagger > :nth-child(3) { --i: 2; }
  .site-stagger > :nth-child(4) { --i: 3; }
  .site-stagger > :nth-child(5) { --i: 4; }
  .site-stagger > :nth-child(6) { --i: 5; }
  .site-stagger > :nth-child(7) { --i: 6; }
  .site-stagger > :nth-child(8) { --i: 7; }
  .site-chat.site-stagger > * { transition-delay: calc(var(--i, 0) * 260ms); }

  /* The hero shot starts tilted back and lies flat as the page scrolls.
     Scroll-driven, so it follows the finger and reverses with it. */
  @supports (animation-timeline: view()) {
    @keyframes site-untilt {
      from { transform: rotateX(16deg) scale(0.94); }
      to { transform: none; }
    }
    @keyframes site-drift {
      from { transform: translateY(2.5rem); }
      to { transform: translateY(-2.5rem); }
    }
    .site-hero .site-frame {
      animation: site-untilt linear both;
      animation-timeline: view();
      animation-range: entry 20% cover 42%;
    }
    .site-float {
      animation: site-drift linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
    .site-float-b { animation-direction: reverse; }
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-nav, .site-float { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-chat { background: #0b3350; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .site-nav { background: #fff; border-bottom-color: var(--color-ink); }
  .site-card, .site-frame, .site-float, .site-trust { border-color: var(--color-ink); }
  .site-text, .site-lede, .site-note, .site-nav-link, .site-proof { color: var(--color-ink); }
  .site-dark .site-lede { color: #fff; }
}

/* =========================================================================
   Dotty additions: product scenes drawn in HTML instead of screenshots.
   ========================================================================= */

/* Brand mark: the Dotty dot (blue disc, yellow spark). */
.site-brand-mark {
  border-radius: 999px;
  background:
    radial-gradient(circle at 70% 30%, var(--color-accent-500) 0 17%, transparent 18%),
    linear-gradient(140deg, var(--color-brand-500), var(--color-brand-800));
}

/* --- Hero scene: a client site with Dotty open on it ------------------------ */
.dt-scene {
  display: grid; gap: 0; min-height: 26rem; background: var(--color-canvas);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 52rem) { .dt-scene { grid-template-columns: minmax(0, 1fr) 24rem; } }
.dt-page { display: none; padding: 2rem; gap: 1rem; align-content: start; }
@media (min-width: 52rem) { .dt-page { display: grid; } }
.dt-page-hero {
  height: 9rem; border-radius: 0.75rem;
  background: linear-gradient(135deg, #dbe7f0, #eef3f7 60%, #f7efd9);
}
.dt-page i { display: block; height: 0.5rem; border-radius: 999px; background: #e1e7ec; }
.dt-page i:nth-of-type(2n) { width: 74%; }
.dt-page-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-top: 0.5rem; }
.dt-page-cards span { height: 4.5rem; border-radius: 0.625rem; background: #fff; box-shadow: 0 0 0 1px var(--color-line); }

.dt-widget {
  display: flex; flex-direction: column; margin: 1rem; border-radius: 1rem; overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(16 24 40 / 0.08), 0 24px 48px -20px rgb(0 48 79 / 0.45);
}
.dt-widget-head {
  display: flex; align-items: center; gap: 0.625rem; padding: 0.875rem 1rem;
  color: #fff; background: linear-gradient(135deg, var(--color-brand-600), var(--color-brand-800));
}
.dt-widget-head b { font-weight: 640; font-size: 0.9375rem; }
.dt-widget-head small { display: block; font-size: 0.75rem; opacity: 0.8; }
.dt-avatar {
  width: 2rem; height: 2rem; border-radius: 999px; flex: none;
  background:
    radial-gradient(circle at 70% 30%, var(--color-accent-500) 0 17%, transparent 18%),
    linear-gradient(140deg, #3aa6e6, var(--color-brand-900));
  box-shadow: 0 0 0 2px rgb(255 255 255 / 0.35);
}
.dt-msgs { display: grid; gap: 0.625rem; padding: 1rem; align-content: start; flex: 1; }
.dt-msg {
  max-width: 88%; padding: 0.625rem 0.875rem; border-radius: 1rem 1rem 1rem 0.375rem;
  font-size: 0.875rem; line-height: 1.45; background: var(--color-canvas);
}
.dt-msg-user {
  justify-self: end; border-radius: 1rem 1rem 0.375rem 1rem;
  color: #fff; background: var(--color-brand-600);
}
.dt-msg .dt-link { color: var(--color-brand-600); font-weight: 560; }
.dt-typing { display: inline-flex; gap: 0.25rem; padding: 0.75rem 0.875rem; border-radius: 1rem; background: var(--color-canvas); }
.dt-typing i { width: 0.375rem; height: 0.375rem; border-radius: 999px; background: #9aa8b4; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes dt-blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
  .dt-typing i { animation: dt-blink 1.2s infinite both; }
  .dt-typing i:nth-child(2) { animation-delay: 0.15s; }
  .dt-typing i:nth-child(3) { animation-delay: 0.3s; }
}
.dt-input {
  display: flex; align-items: center; gap: 0.5rem; margin: 0 1rem 1rem; padding: 0.5rem 0.5rem 0.5rem 0.875rem;
  border-radius: 999px; font-size: 0.875rem; color: var(--color-ink-muted);
  box-shadow: inset 0 0 0 1px var(--color-line);
}
.dt-input span:first-child { flex: 1; }
.dt-send {
  width: 1.875rem; height: 1.875rem; border-radius: 999px; background: var(--color-brand-700);
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
}
.dt-send svg { width: 0.875rem; height: 0.875rem; }
.dt-ai-note { padding: 0 1rem 0.875rem; font-size: 0.6875rem; color: var(--color-ink-muted); text-align: center; }

/* Floating cards over the hero: field values captured live, lead delivered. */
.dt-kv { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.75rem; margin-top: 0.5rem; font-size: 0.8125rem; }
.dt-kv dt { color: var(--color-ink-muted); }
.dt-kv dd { font-weight: 560; }
.dt-score { display: flex; align-items: baseline; gap: 0.375rem; margin-top: 0.375rem; }
.dt-score b { font-size: 1.75rem; line-height: 1; letter-spacing: -0.03em; font-weight: 700; color: var(--color-brand-700); }

/* --- Qualification fields list (wide bento card) ----------------------------- */
.dt-fields {
  display: none; align-self: stretch; margin-bottom: -4rem; padding: 1rem; border-radius: 0.75rem;
  background: var(--color-surface);
  box-shadow: 0 0 0 1px rgb(16 24 40 / 0.08), 0 20px 32px -16px rgb(0 48 79 / 0.3);
  transform: rotate(2deg) translateY(0.5rem); transform-origin: 0 100%;
}
@media (min-width: 40rem) {
  .dt-card-fields { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr) 16rem; }
  .dt-fields { display: grid; gap: 0.5rem; align-content: start; }
}
.dt-fields-head { font-size: 0.875rem; font-weight: 640; margin-bottom: 0.25rem; }
.dt-field {
  display: grid; grid-template-columns: 0.75rem 1fr auto; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.625rem; border-radius: 0.5rem; background: var(--color-canvas); font-size: 0.8125rem;
}
.dt-grip { width: 0.5rem; height: 0.875rem; background-image: radial-gradient(#a7b3bd 1px, transparent 1.5px); background-size: 4px 4px; }

/* --- Team email card (split section) ---------------------------------------- */
.dt-mail { padding: 1.25rem 1.5rem 1.5rem; background: #fff; }
.dt-mail-meta { display: grid; gap: 0.25rem; padding-bottom: 0.875rem; border-bottom: 1px solid var(--color-line); font-size: 0.8125rem; color: var(--color-ink-muted); }
.dt-mail-meta b { color: var(--color-ink); font-weight: 600; }
.dt-mail-subject { font-size: 1rem; font-weight: 640; color: var(--color-ink); }
.dt-mail-grid { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1rem; margin-top: 1rem; font-size: 0.875rem; }
.dt-mail-grid dt { color: var(--color-ink-muted); }
.dt-mail-grid dd { font-weight: 520; }
.dt-mail-block { margin-top: 1rem; padding: 0.75rem 0.875rem; border-radius: 0.625rem; background: var(--color-canvas); font-size: 0.875rem; }
.dt-mail-block p + p { margin-top: 0.25rem; }
.dt-mail-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }

/* --- Panel card (split section) --------------------------------------------- */
.dt-panel { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); min-height: 22rem; background: #fff; }
.dt-side { padding: 1rem 0.75rem; background: var(--color-canvas); border-right: 1px solid var(--color-line); font-size: 0.8125rem; }
.dt-side p { padding: 0.375rem 0.5rem; border-radius: 0.375rem; color: var(--color-ink-muted); }
.dt-side .dt-side-group { margin-top: 0.75rem; font-size: 0.6875rem; font-weight: 640; letter-spacing: 0.05em; text-transform: uppercase; }
.dt-side .is-on { color: var(--color-brand-700); background: var(--color-brand-100); font-weight: 600; }
.dt-main { padding: 1.25rem; display: grid; gap: 0.75rem; align-content: start; }
.dt-main h4 { font-size: 0.9375rem; font-weight: 640; }
.dt-textarea { padding: 0.75rem; border-radius: 0.5rem; box-shadow: inset 0 0 0 1px var(--color-line); font-size: 0.8125rem; line-height: 1.5; color: var(--color-ink-muted); }
.dt-textarea b { color: var(--color-ink); font-weight: 560; }
.dt-switch { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.8125rem; padding: 0.5rem 0; border-top: 1px solid var(--color-line); }
.dt-toggle { width: 2rem; height: 1.125rem; border-radius: 999px; background: var(--color-brand-600); position: relative; flex: none; }
.dt-toggle::after { content: ""; position: absolute; right: 0.125rem; top: 0.125rem; width: 0.875rem; height: 0.875rem; border-radius: 999px; background: #fff; }
@media (max-width: 30rem) { .dt-panel { grid-template-columns: minmax(0, 1fr); } .dt-side { display: none; } }

/* --- Code snippet (step 2) ------------------------------------------------- */
.dt-code {
  margin-top: 1rem; padding: 0.75rem 0.875rem; border-radius: 0.625rem; overflow-x: auto;
  font-family: var(--font-mono); font-size: 0.75rem; line-height: 1.5; white-space: pre;
  color: #d7e7f3; background: #00243c;
}
.dt-code .k { color: #7fc8f2; } .dt-code .s { color: #ffd76a; }

/* --- Contact: the form is Dotty -------------------------------------------- */
.dt-contact { display: grid; gap: 1.25rem; justify-items: start; }
.dt-contact .site-bubble { box-shadow: 0 0 0 1px var(--color-line), 0 12px 24px -16px rgb(0 48 79 / 0.35); }
.dt-or { font-size: 0.875rem; color: var(--color-ink-muted); }

@media (prefers-contrast: more) {
  .dt-widget, .dt-fields { box-shadow: 0 0 0 1px var(--color-ink); }
}

.site-nav-links { display: none; flex: 1; align-items: center; justify-content: center; gap: 0.25rem; }
@media (min-width: 48rem) { .site-nav-links { display: flex; } }
/* The chat sits on the right of the hero shot: both cards float on the left. */
@media (min-width: 80rem) {
  .site-float-b { right: auto; left: -2.5rem; top: 12%; }
  .site-float-a { top: 58%; }
}
.btn.sm-only-up { display: none; }
@media (min-width: 40rem) { .btn.sm-only-up { display: inline-flex; } }
