/* ============================================================
   Minamo - marketing theme
   A dark ripple-field hero, then a calm light body. Serif headlines
   (IBM Plex Serif), sans text (Inter), mono for code and
   labels (JetBrains Mono). One accent: the teal of the mark.
   ============================================================ */

:root {
  color-scheme: dark;
  --void: #000000;
  --night: #07151d;
  --night-2: #0d1f29;
  --night-line: rgba(236, 235, 231, 0.14);
  --on-dark: #ecebe7;
  --on-dark-soft: rgba(236, 235, 231, 0.62);
  --on-dark-faint: rgba(236, 235, 231, 0.38);

  --paper: #000000;
  --surface: #08141a;
  --surface-2: #0d1d25;
  --paper-2: #08141a;
  --paper-3: #0d1d25;
  --ink: #ecebe7;
  --ink-2: rgba(236, 235, 231, 0.82);
  --muted: rgba(236, 235, 231, 0.62);
  --faint: rgba(236, 235, 231, 0.4);
  --line: rgba(236, 235, 231, 0.12);
  --line-strong: rgba(236, 235, 231, 0.26);

  --mark: #6fb0bd;
  --teal: #6fb0bd;
  --teal-tint: rgba(111, 176, 189, 0.14);
  --ok: #4fbf7f;
  --warn: #e0a347;
  --danger: #e2766b;

  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --container: 1240px;
  --gutter: clamp(16px, 4.5vw, 72px);
  --header-h: 68px;
  --section-y: clamp(80px, 11vw, 144px);
  --radius: 14px;
  --on-ink: #000000;
  --shadow-card: 0 1px 0 rgba(236, 235, 231, 0.04) inset, 0 24px 48px -20px rgba(0, 0, 0, 0.8);
}

/* ----- base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { background: #000; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 300; letter-spacing: -0.01em; line-height: 1.08; }
h3 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
pre { margin: 0; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { left: 8px; }
.icon { width: 1em; height: 1em; flex: none; }

/* ----- smooth scrolling (Lenis, started in site.js) ----- */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ----- type helpers ----- */
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: border-color .2s ease, gap .2s ease; }
.text-link:hover { border-color: var(--ink); gap: 12px; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2, .tiles__head h2, .faq__head h2, .closing__head h2 { font-family: var(--sans); font-weight: 500; letter-spacing: -0.02em; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; }
.section-head p, .tiles__head p, .faq__head p, .closing__head p { margin-top: 12px; font-size: 17px; line-height: 1.55; color: var(--muted); }

/* ----- buttons ----- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font: 500 15px/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.btn--primary { background: var(--ink); color: var(--on-ink); }
.btn--primary:hover { background: #fff; }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--ink); }

/* ----- announcement + header ----- */
.announcement { background: var(--night); color: var(--on-dark-soft); text-align: center; font-size: 14px; padding: 10px var(--gutter); }
.announcement a { color: var(--on-dark); text-decoration: none; }
.announcement a:hover { color: var(--mark); }

.site-header { position: sticky; top: 0; z-index: 50; color: var(--on-dark); background: rgba(0, 0, 0, 0.62); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); transition: background-color .35s ease, color .35s ease; }
.site-header.is-on-dark { color: var(--on-dark); background: rgba(0, 0, 0, 0.55); }
.site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; height: var(--header-h); padding: 0 var(--gutter); max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; }
.logo { display: inline-flex; color: inherit; justify-self: start; }
.logo .logo__svg { height: 18px; width: auto; }
/* The logo is one colour: it takes the text colour around it (white on dark, black on light). */
.logo__mark { fill: currentColor; }
.site-nav { display: flex; gap: 34px; font-size: 14px; }
.site-nav a { text-decoration: none; opacity: .62; transition: opacity .2s ease; }
.site-nav a:hover { opacity: 1; }
.site-header__actions { justify-self: end; display: flex; align-items: center; gap: 22px; }
.site-header__cta { font-size: 14px; font-weight: 500; text-decoration: none; transition: color .2s ease; }
.site-header__login { font-size: 14px; text-decoration: none; opacity: .62; transition: opacity .2s ease; }
.site-header__login:hover { opacity: 1; }
.site-header__cta { padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line-strong); }
.site-header__cta:hover { border-color: currentColor; }
.site-header__cta:hover { color: var(--teal); }
.is-on-dark .site-header__cta:hover { color: var(--mark); }
.nav-toggle { display: none; width: 40px; height: 40px; border: 0; background: transparent; padding: 13px 9px; cursor: pointer; flex-direction: column; justify-content: space-between; color: inherit; }
.nav-toggle span { display: block; height: 1.5px; background: currentColor; transition: transform .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { display: none; }
@media (max-width: 900px) {
  .site-header__inner { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: grid; max-height: 0; overflow: hidden; padding: 0 var(--gutter); background: var(--paper); color: var(--ink); transition: max-height .3s ease, padding .3s ease; }
  .mobile-nav.is-open { max-height: 420px; padding: 8px var(--gutter) 22px; border-bottom: 1px solid var(--line); }
  .mobile-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 18px; }
  .mobile-nav .btn { margin-top: 18px; }
}
@media (max-width: 900px) { .site-header__login { display: none; } }
@media (max-width: 420px) { .site-header__cta { display: none; } }

/* ----- ripple hero ----- */
.field-hero { position: relative; margin-top: calc(var(--header-h) * -1); background: var(--void); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.field-hero--tall { min-height: max(640px, 100svh); }
.field-hero--short { min-height: max(560px, 78svh); }
.field-hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; touch-action: pan-y; opacity: 0; transition: opacity 1.2s ease; }
.field-hero__canvas.is-ready { opacity: 1; }
/* The split hero's field sits behind a busy code editor, so it is held back to half strength. */
.split-hero .field-hero__canvas.is-ready { opacity: .5; }
/* Fade the bottom of the dot field into the page so the hero has no hard lower edge. */
.field-hero__canvas { -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%); mask-image: linear-gradient(180deg, #000 60%, transparent 100%); }
.field-hero__canvas.is-unsupported { display: none; }
.field-hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; min-height: inherit; padding: calc(var(--header-h) + clamp(56px, 13vh, 150px)) var(--gutter) clamp(28px, 9vh, 110px); text-align: center; }
/* The home page's full-height hero: the headline a little lower and the command bar a little higher than the shorter heroes' spacing (requested directly). */
.field-hero--tall .field-hero__inner { padding-top: calc(var(--header-h) + clamp(80px, 19vh, 220px)); padding-bottom: clamp(56px, 17vh, 190px); }
.field-hero__copy { position: relative; display: flex; flex-direction: column; align-items: center; margin-bottom: 48px; }
/* The copy sits on the ripple field: don't let a click-and-drag on the water start a text selection. */
.field-hero__copy { -webkit-user-select: none; user-select: none; }
.field-hero__copy::before { content: ""; position: absolute; inset: -30% -18% -45%; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(0, 0, 0, .88), rgba(0, 0, 0, .6) 45%, transparent); }
.field-hero h1 { font-size: clamp(38px, 5.6vw, 82px); max-width: 13em; font-family: var(--sans); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; }
/* The headline's closing words: a line of their own in Plex Serif italic, under the sans. */
.field-hero__accent { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.field-hero__lede { margin-top: 26px; max-width: 40em; text-wrap: balance; font-size: clamp(16px, 1.3vw, 18px); color: var(--on-dark-soft); }

.command-bar { width: min(100%, 1000px); margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px clamp(18px, 3vw, 34px); background: var(--night); border: 1px solid rgba(236, 235, 231, .2); border-radius: 999px; text-align: left; }
.command-bar__cmd { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 0; background: none; border: 0; cursor: pointer; color: var(--on-dark); font: 400 clamp(14px, 1.3vw, 17px)/1 var(--mono); text-align: left; }
.command-bar__prompt { color: var(--mark); }
.command-bar__txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.command-bar__state { margin-left: auto; font: 500 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-faint); }
.command-bar__cmd:hover .command-bar__state { color: var(--on-dark); }
.command-bar .btn { min-height: 52px; padding: 0 26px; }
.command-bar .btn--primary { background: var(--on-dark); color: var(--void); }
.command-bar .btn--primary:hover { background: #fff; }
.command-bar .btn--secondary { color: var(--on-dark); border-color: rgba(236, 235, 231, .3); }
.command-bar .btn--secondary:hover { border-color: var(--on-dark); }
.command-bar:not(:has(.command-bar__cmd)) { width: auto; padding: 0; background: none; border: 0; }
@media (max-width: 560px) {
  .command-bar { flex-direction: column; align-items: stretch; border-radius: 22px; padding: 16px; gap: 14px; }
}

/* ----- figures ----- */
.figures { padding: var(--section-y) 0; }
.figures__head { max-width: 900px; }
.figures__statement { font-family: var(--sans); font-weight: 500; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; letter-spacing: -0.02em; }
.figures__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-top: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); }
.figure { display: flex; flex-direction: column; gap: 8px; padding: 28px 24px 0 0; }
.figure + .figure { padding-left: 24px; border-left: 1px solid var(--line); }
.figure__value { font-family: var(--serif); font-weight: 300; font-size: clamp(48px, 5.4vw, 72px); line-height: 1; letter-spacing: -0.02em; }
.figure__label { color: var(--muted); font-size: 15px; }
@media (max-width: 520px) { .figure + .figure { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 24px; } }

/* ----- product block -----
   Copy with a compact code sample beneath it on the left; a large stage
   on the right holding one admin preview. */
.product { padding: var(--section-y) 0; }
.product__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; grid-template-areas: "copy stage" "code stage"; column-gap: clamp(40px, 6vw, 96px); row-gap: 36px; align-items: start; }
.product__copy { grid-area: copy; }
.product h2 { font-family: var(--sans); font-weight: 500; letter-spacing: -0.02em; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; }
.product__body { margin-top: 12px; font-size: 17px; line-height: 1.55; color: var(--muted); }
.product .code { grid-area: code; }
.product__stage { grid-area: stage; align-self: stretch; display: grid; place-items: center; min-height: clamp(420px, 40vw, 560px); padding: clamp(24px, 4vw, 56px); border-radius: calc(var(--radius) + 6px); background: var(--surface); }
.product__stage .ui { max-width: 460px; font-size: 14px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .9); }
.product__stage .ui--wide { max-width: 580px; }
@media (max-width: 960px) {
  .product__inner { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: "copy" "stage" "code"; }
  .product__stage { min-height: 0; }
}
@media (max-width: 560px) { .product__stage { padding: 16px; } }

.audiences__tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.tab { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 500 13px/1 var(--mono); cursor: pointer; transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
.tab:hover { color: var(--ink); border-color: var(--line-strong); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.tabs-ready [data-tab-panel]:not(.is-active) { display: none; }
.no-js .audiences [data-tab-panel] + [data-tab-panel] { margin-top: 40px; }

/* ----- code ----- */
.code { border-radius: var(--radius); overflow: hidden; background: var(--night); color: #cfd8da; border: 1px solid var(--line); }
.code__bar { display: flex; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--night-line); font: 400 12px/1 var(--mono); color: var(--on-dark-faint); }
.code__bar::before { content: ""; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--mark); }
.code__body { counter-reset: ln; padding: 20px 0 28px; min-height: 340px; overflow-x: auto; font: 400 13.5px/1.75 var(--mono); }
.code__body .ln { display: block; padding: 0 22px 0 0; white-space: pre; counter-increment: ln; }
.code__body .ln::before { content: counter(ln); display: inline-block; width: 46px; padding-right: 18px; text-align: right; color: rgba(207, 216, 218, .25); }
.no-js .code__body { padding: 20px 22px 28px; white-space: pre; }
.t-l { color: #8fd0db; }
.t-s { color: #e8c58f; }
.t-t { color: #9db4f0; }
.t-c { color: rgba(207, 216, 218, .45); }
.t-p { color: var(--mark); }
.t-cmd { color: #fff; }
.t-ok { color: #7fd6a2; }
.t-ask { color: #e8a6c6; }
.t-h { color: #fff; font-weight: 600; }
.t-key { color: #8fd0db; font-weight: 600; }
.t-url { color: #8fd0db; }
.t-mod { color: #f5a623; }
.t-add { color: #3ecf6e; }
.t-del { color: #f0685c; }
.t-part-theme { color: #9db4f0; }
.t-part-content { color: #e8c58f; }
.t-part-images { color: #e8a6c6; }

.code--compact .code__body { min-height: 0; max-height: 300px; overflow: hidden; padding: 16px 18px 20px; font-size: 12.5px; line-height: 1.7; -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent); mask-image: linear-gradient(180deg, #000 75%, transparent); }
.code--compact .code__body .ln { padding: 0; }
.code--compact .code__body .ln::before { display: none; }

/* ----- admin UI cards -----
   Always in the Minamo admin's own dark theme, whatever the page around them: the site's colour tokens are
   remapped here to the admin's values (minamo-admin packages/web/src/styles/theme.css, [data-theme='dark']). */
.ui {
  --surface-2: #272c2f;   /* grey-800, --colour-surface */
  --paper: #181d20;       /* grey-900, --colour-input-background */
  --paper-2: #202528;     /* grey-850 */
  --paper-3: #181d20;     /* grey-900 */
  --line: #3e4346;        /* grey-700, --colour-border */
  --line-strong: #575c5f; /* grey-600 */
  --ink: #d0d5d8;         /* grey-200, --colour-text */
  --on-ink: #fff;
  --muted: #959a9d;       /* grey-400 */
  --faint: #777c7f;       /* grey-500, --colour-muted */
  --teal: #3b6ef6;        /* --colour-primary */
  --mark: #3b6ef6;
  --teal-tint: rgba(59, 110, 246, .16);
  --ok: #3ecf6e;
  --warn: #f5a623;
  --danger: #f0685c;
  --radius: 10px;         /* --radius-md */
  width: 100%; border-radius: var(--radius); background: var(--surface-2); box-shadow: var(--shadow-card); font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 1.4; color: var(--ink); overflow: hidden;
}
.ui__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.ui__title { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.ui__title .icon { color: var(--teal); }
.ui__meta { color: var(--faint); font-size: 12px; }
.ui__mono { font-family: var(--mono); font-weight: 400; }
.ui__pill { padding: 4px 9px; border-radius: 99px; background: var(--paper-2); color: var(--muted); font-size: 11px; font-weight: 500; white-space: nowrap; }
.ui__pill--draft { background: rgba(245, 166, 35, .16); color: #f5a623; }
.ui__pill--ok { background: rgba(62, 207, 110, .16); color: #3ecf6e; }
.ui__body { display: flex; flex-direction: column; padding: 14px 16px 16px; }
.ui__body--list { gap: 6px; }
.ui__label { margin: 10px 0 5px; font-size: 11px; font-weight: 500; color: var(--faint); }
.ui__label:first-child { margin-top: 0; }
.ui__input { position: relative; display: block; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui__input.is-focused { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint); }
.ui__input--mono { font-family: var(--mono); font-size: 12px; }
.ui__caret { display: inline-block; width: 1px; height: 1.1em; margin-left: 1px; vertical-align: -.2em; background: var(--ink); animation: caret 1s steps(1) infinite; }
.ui__suggest { display: flex; justify-content: space-between; margin-top: 4px; padding: 8px 10px; border-radius: 7px; background: var(--teal-tint); font-size: 12px; }
.ui__suggest em { font-style: normal; font-family: var(--mono); color: var(--teal); }
/* The image field's thumbnail: a crop of the Stillwater demo's banner photo (a design asset of this mock, not content). */
.ui__image { position: relative; display: flex; align-items: flex-end; height: 92px; padding: 8px; border-radius: 8px; overflow: hidden; background: #2a3a3c url(/assets/ui-stillwater.jpg) 50% 50% / cover no-repeat; }
.ui__image b { position: relative; padding: 3px 7px; border-radius: 5px; background: rgba(0, 0, 0, .7); font: 400 11px/1.2 var(--mono); }
.ui__focal { position: absolute; left: 72%; top: 44%; width: 16px; height: 16px; margin: -8px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .2), 0 0 0 6px rgba(255, 255, 255, .25); }
.ui__image--set { background: #2a3a3c; }
.ui__image--leafwell { background-image: url(/assets/ui-leafwell.jpg); }
.ui__image--leafwell .ui__focal { left: 61%; top: 52%; }
.ui__image--set .media { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; background: none; }
.ui__image--set .ui__focal { left: var(--focal-x); top: var(--focal-y); }
.ui__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--paper-2); }
.ui__ghost { color: var(--faint); font-size: 12px; }
.ui__btn { padding: 7px 14px; border-radius: 99px; background: var(--ink); color: var(--on-ink); font-size: 12px; font-weight: 500; }
.ui__btn--block { display: block; margin-top: auto; text-align: center; }
.ui__row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 7px; background: var(--paper-2); }
.ui__row .icon { margin-left: auto; color: var(--faint); }
.ui__row--child { margin-left: 22px; background: var(--paper); border: 1px solid var(--line); }
.ui__row.is-dragging { background: var(--surface-2); border-color: var(--teal); box-shadow: 0 10px 20px -10px rgba(12, 19, 22, .35); animation: drag 4s ease-in-out infinite; position: relative; z-index: 1; }
.ui__row.is-open::before { content: ""; width: 6px; height: 6px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); }
.ui__dot { width: 8px; height: 8px; border-radius: 2px; background: var(--mark); flex: none; }
.ui__add { padding: 6px 10px; color: var(--teal); font-weight: 500; }
.ui__group { display: flex; justify-content: space-between; margin: 0 -16px 10px; padding: 0 16px 10px; border-bottom: 1px solid var(--line); font-weight: 600; }
.ui__group i { font-style: normal; color: var(--faint); }
.ui__group--closed { margin: 14px -16px 0; padding: 10px 16px 0; border-bottom: 0; border-top: 1px solid var(--line); color: var(--muted); font-weight: 500; }
.ui__commit { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ui__commit:last-child { border-bottom: 0; }
.ui__commit em { display: block; font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.ui__commit u { text-decoration: none; padding: 4px 9px; border: 1px solid var(--line); border-radius: 99px; font-size: 11px; color: var(--muted); }
.ui__commit:first-child u { border-color: var(--ink); color: var(--ink); }
.ui__commit.is-deleted .ui__dot { background: var(--faint); }
.ui__commit.is-deleted u { border-color: rgba(79, 191, 127, .45); color: var(--ok); }
.ui__file { display: flex; gap: 10px; padding: 7px 0; font: 400 12px/1.4 var(--mono); border-bottom: 1px solid var(--line); }
.ui__file b { color: var(--warn); font-weight: 500; }
.ui__file--add b { color: var(--ok); }
.ui__note { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 9px 10px; border-radius: 7px; background: var(--teal-tint); color: var(--teal); font-weight: 500; }
.ui__stat { display: flex; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.ui__stat:last-child { border-bottom: 0; }
.ui__stat b { min-width: 34px; font-family: var(--serif); font-weight: 300; font-size: 26px; line-height: 1; color: var(--ink); }
.ui__site { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-family: var(--mono); font-size: 12px; border-bottom: 1px solid var(--line); }
.ui__site:last-child { border-bottom: 0; }
.ui__site em { margin-left: auto; font-style: normal; color: var(--faint); font-size: 11px; }
.ui__live { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(79, 191, 127, .18); }
.ui__body--chat { gap: 10px; }
.ui__msg { padding: 10px 12px; border-radius: 12px 12px 12px 4px; background: var(--paper-2); }
.ui__msg--me { align-self: flex-end; max-width: 86%; border-radius: 12px 12px 4px 12px; background: var(--ink); color: var(--on-ink); }
.ui__diff { display: grid; gap: 2px; margin: 8px 0; padding: 7px 9px; border-radius: 7px; background: var(--paper); border: 1px solid var(--line); font: 400 11.5px/1.5 var(--mono); }
.ui__diff s { color: var(--danger); }
.ui__diff ins { color: var(--ok); text-decoration: none; }
.ui__move { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; }
.ui__move s { color: var(--faint); }
.ui__move b { padding: 4px 8px; border-radius: 6px; border: 1px solid var(--teal); font-weight: 400; }
.ui__move .icon { color: var(--teal); }
.ui__result { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px; border-radius: 7px; background: rgba(79, 191, 127, .12); }
.ui__result > .icon { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--ok); color: var(--on-ink); }
.ui__rule { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ui__rule:last-child { border-bottom: 0; }
.ui__rule .icon { color: var(--teal); }
.ui__media { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 16px; }
.ui__media i { position: relative; aspect-ratio: 1; border-radius: 7px; }
.ui__media .m1 { background: linear-gradient(160deg, #a9d3dc, #2f7482); }
.ui__media .m2 { background: linear-gradient(160deg, #f3d9b5, #c7841c); }
.ui__media .m3 { background: linear-gradient(160deg, #d5d9e8, #6a7aa6); }
.ui__media .m4 { background: linear-gradient(160deg, #e9e2d3, #8a7f68); }
.ui__media .m5 { background: linear-gradient(160deg, #233a44, #07151d); }
.ui__media .m5 b { position: absolute; left: 6px; bottom: 6px; font: 500 9px/1 var(--mono); color: #fff; }
.ui__media .m6 { background: linear-gradient(160deg, #cde4d6, #2f9e5f); }
.ui__media .is-dragging { outline: 2px solid var(--teal); outline-offset: 2px; animation: lift 4s ease-in-out infinite; }
/* wide editor card */
.ui__chrome { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.ui__url { font: 400 11px/1 var(--mono); color: var(--faint); }
.ui__devices { display: flex; gap: 5px; }
.ui__devices i { width: 14px; height: 11px; border: 1.5px solid var(--line-strong); border-radius: 2px; }
.ui__devices i:nth-child(2) { width: 10px; }
.ui__devices i:nth-child(3) { width: 7px; }
.ui__devices i.is-on { border-color: var(--ink); }
.ui__split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.ui__page { padding: 14px; background: var(--paper-3); }
.ui__page-nav { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 11px; }
.ui__page-nav i { width: 22px; height: 4px; border-radius: 2px; background: var(--line-strong); }
.ui__page-nav b { margin-right: auto; font-family: var(--serif); font-weight: 400; }
.ui__page-hero { position: relative; display: flex; flex-direction: column; gap: 6px; margin-top: 22px; padding: 16px; border-radius: 6px; background: #18261f; color: #fff; }
.ui__page-hero.is-selected { outline: 2px solid var(--mark); outline-offset: 3px; }
.ui__page-hero--leafwell { background: #5f7a50; }
.ui__page-hero b { font-family: var(--serif); font-weight: 300; font-size: 19px; line-height: 1.1; }
.ui__page-hero i { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .35); }
.ui__page-hero i.short { width: 60%; }
.ui__page-hero u { align-self: flex-start; margin-top: 4px; padding: 4px 9px; border-radius: 99px; background: #f3efe6; color: #18261f; font-size: 10px; text-decoration: none; }
.ui__tag { position: absolute; left: -3px; top: -21px; padding: 2px 7px; border-radius: 4px 4px 0 0; background: var(--mark); color: var(--void); font: 500 10px/1.4 var(--mono); }
.ui__page-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.ui__page-cards i { height: 34px; border-radius: 5px; background: var(--surface-2); }
.ui__side { display: flex; flex-direction: column; padding: 14px; border-left: 1px solid var(--line); }
.ui__side .ui__btn--block { margin-top: 16px; }
/* The admin's own treatments: panel heading and toolbar gradients, grey section rows, primary buttons, outline focus. */
.ui__head { background: linear-gradient(0deg, #33383b, #272c2f); }
.ui__foot { background: linear-gradient(0deg, #202528, #272c2f); }
.ui__row { background: linear-gradient(0deg, #3e4346, #4b5053); }
.ui__row--child { background: var(--surface-2); }
.ui__row.is-dragging { background: linear-gradient(0deg, #3e4346, #4b5053); }
.ui__input { border-radius: 5px; }
.ui__input.is-focused { border-color: transparent; outline: 2px solid var(--teal); outline-offset: -1px; box-shadow: none; }
.ui__btn { background: linear-gradient(0deg, #3767e8, #3b6ef6); color: #fff; }
.ui__msg--me { background: var(--teal); color: #fff; }
.ui__tag { color: #fff; }
.ui__add, .ui__note, .ui__suggest em, .ui__move .icon, .ui__rule .icon, .ui__title .icon { color: #3b6ef6; }
/* Sized like the admin's own Fields panel (base.css, editor-layout.css), in em so a card shown larger keeps its proportions:
   a 16px header on the heading gradient with no rule under it and an uppercase title; 12.8px muted labels 6px above their
   field; fields 14px apart; inputs 8px by 10px with 3px corners. */
.ui__head { padding: 1.23em; border-bottom: 0; }
.ui__title { font-size: .92em; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.ui__body { padding: 1.23em; }
.ui__label { display: block; margin: 1.08em 0 .46em; font-size: .98em; font-weight: 400; line-height: 1.4; color: var(--faint); }
.ui__input { padding: .62em .8em; border-radius: 3px; }
.ui__image, .ui__suggest { border-radius: 5px; }

/* ----- audience tabs ----- */
.audiences { padding: var(--section-y) 0; }
.audiences__box { border-radius: calc(var(--radius) + 6px); background: var(--surface); border: 1px solid var(--line); padding: clamp(20px, 3vw, 32px); }
.audiences__tabs .tab { font-size: 14px; padding: 10px 18px; }
.audience { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(12px, 2vw, 24px); animation: panel-in .45s ease; }
.audience h3 { font-family: var(--sans); font-weight: 500; letter-spacing: -0.02em; font-size: clamp(22px, 2vw, 26px); line-height: 1.2; }
.audience p { margin-top: 12px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.audience .btn { margin-top: 26px; }
.audience__visual { display: grid; place-items: center; padding: clamp(24px, 4vw, 48px); border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.audience__visual .ui { max-width: 460px; }
@media (max-width: 860px) { .audience { grid-template-columns: 1fr; padding: 4px; } .audience__visual { padding: 16px; } }

/* ----- principles (dark band) ----- */
.principles { padding: var(--section-y) 0; color: var(--on-dark); }
.principles__head { max-width: 640px; }
.principles h2 { font-family: var(--sans); font-weight: 500; letter-spacing: -0.02em; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; }
.principles__head p { margin-top: 12px; font-size: 17px; line-height: 1.55; color: var(--on-dark-soft); }
.principles__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--night-line); }
.principle { padding: 28px 28px 0 0; }
.principle + .principle { padding-left: 28px; border-left: 1px solid var(--night-line); }
.principle h3 { font-size: 18px; }
.principle p { margin-top: 10px; color: var(--on-dark-soft); font-size: 16px; }
@media (max-width: 640px) { .principle + .principle { padding-left: 0; border-left: 0; border-top: 1px solid var(--night-line); margin-top: 28px; } }
.stack { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(16px, 3vw, 40px); margin-top: clamp(40px, 5vw, 64px); }
.stack__col { display: grid; gap: 8px; padding: clamp(18px, 2.4vw, 28px); border-radius: var(--radius); border: 1px solid var(--night-line); }
.stack__col--new { background: var(--night-2); border-color: rgba(111, 176, 189, .35); }
.stack__label { margin-bottom: 8px; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-faint); }
.stack__col--new .stack__label { color: var(--mark); }
.stack__layer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 8px; background: rgba(236, 235, 231, .05); font-size: 15px; }
.stack__layer em { font: 400 12px/1 var(--mono); font-style: normal; color: var(--on-dark-faint); }
.stack__layer--x { color: var(--on-dark-faint); text-decoration: line-through; text-decoration-color: rgba(196, 72, 61, .8); }
.stack__layer--teal { background: rgba(111, 176, 189, .1); }
.stack__layer--core { justify-content: flex-start; background: var(--mark); color: var(--void); font-weight: 600; }
.stack__layer--core svg { height: 12px; width: auto; }
.stack__arrow { color: var(--mark); font-size: 28px; }
@media (max-width: 720px) { .stack { grid-template-columns: 1fr; } .stack__arrow { justify-self: center; transform: rotate(90deg); } }

/* ----- tiles ----- */
.tiles { padding: var(--section-y) 0; }
.tiles__head { max-width: 640px; margin-bottom: 32px; }
.tiles__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.tiles__grid:has(> .tile-group) { display: block; }
/* Tiles, after Column's building blocks: a soft panel, a raised icon square, one label. */
.tile { --tile-ink: var(--mark); display: flex; align-items: center; gap: 16px; padding: 10px 18px 10px 10px; border-radius: 12px; background: rgba(236, 235, 231, .04); text-decoration: none; transition: background-color .2s ease; }
a.tile:hover { background: rgba(236, 235, 231, .08); }
.tile__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); box-shadow: 0 2px 6px rgba(0, 0, 0, .35); color: var(--tile-ink); font-size: 18px; }
.tile__text { display: flex; flex-direction: column; min-width: 0; }
.tile__text b { font-weight: 500; font-size: 16px; letter-spacing: -0.01em; }
.tile__text span { color: var(--muted); font-size: 13.5px; line-height: 1.4; }
/* Groups: label on the left, a two-column grid of tiles on the right. */
.tile-group { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px clamp(32px, 6vw, 96px); padding: clamp(28px, 4vw, 48px) 0; }
.tile-group + .tile-group { border-top: 1px solid var(--line); }
.tile-group__label { font-family: var(--sans); font-weight: 500; font-size: clamp(19px, 1.7vw, 22px); line-height: 1.25; letter-spacing: -0.015em; max-width: 16em; }
.tile-group__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile-group--blue .tile { --tile-ink: #3b6ef6; }
.tile-group--green .tile { --tile-ink: #6fcf97; }
.tile-group--plum .tile { --tile-ink: #e28aa0; }
.tiles--large .tiles__head { max-width: 900px; margin-bottom: clamp(48px, 6vw, 88px); }
.tiles--large .tiles__head h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.05; letter-spacing: -0.035em; }
@media (max-width: 760px) { .tile-group { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .tile-group__grid { grid-template-columns: 1fr; } }

/* ----- closing link cards ----- */
.closing { padding: var(--section-y) 0; }
.closing__head { max-width: 640px; margin-bottom: 32px; }
.closing__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.link-card { display: flex; flex-direction: column; min-height: 240px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s ease, transform .25s ease, box-shadow .25s ease; }
.link-card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow-card); }
.link-card__icon { font-size: 22px; color: var(--teal); }
.link-card__title { margin-top: 20px; font-family: var(--sans); font-weight: 500; letter-spacing: -0.02em; font-size: 20px; line-height: 1.2; }
.link-card__text { margin-top: 10px; color: var(--muted); font-size: 15.5px; }
.link-card__go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 24px; font-weight: 500; font-size: 15px; }
.link-card__go .icon { transition: transform .2s ease; }
.link-card:hover .link-card__go .icon { transform: translateX(4px); }

/* ----- faq ----- */
.faq { padding: var(--section-y) 0; }
.faq__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-h) + 40px); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 18px; font-weight: 500; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__icon { flex: none; color: var(--faint); transition: transform .25s ease, color .25s ease; }
.faq-item__icon .icon { width: 18px; height: 18px; }
.faq-item[open] .faq-item__icon { transform: rotate(45deg); color: var(--teal); }
.faq-item__body { padding: 0 48px 24px 0; color: var(--muted); }
.faq-item__body p + p { margin-top: 12px; }
.faq-item__body a { color: var(--teal); }
@media (max-width: 860px) { .faq__inner { grid-template-columns: 1fr; } .faq__head { position: static; } .faq-item__body { padding-right: 0; } }

/* ----- footer ----- */
.site-footer { padding: 80px 0 32px; background: var(--void); border-top: 1px solid var(--night-line); color: var(--on-dark-soft); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.site-footer .logo { color: var(--on-dark); }
.footer__brand p { margin-top: 20px; max-width: 360px; font-size: 15px; }
.site-footer h3 { margin-bottom: 16px; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-faint); }
.footer__nav ul { display: grid; gap: 10px; }
.footer__nav a { text-decoration: none; color: var(--on-dark); font-size: 15px; opacity: .8; }
.footer__nav a:hover { opacity: 1; color: var(--mark); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--night-line); font-size: 13px; color: var(--on-dark-faint); }
.footer__mark svg { height: 12px; width: auto; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__legal a { color: inherit; text-decoration: none; }
.footer__legal a:hover { color: var(--on-dark); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 36px; } }

/* ----- media snippet ----- */
.media { position: relative; overflow: hidden; aspect-ratio: var(--media-ratio, 3 / 2); border-radius: var(--radius); background: var(--paper-2); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media--empty { display: grid; place-items: center; border: 1px dashed var(--line-strong); }
.media__hint { color: var(--faint); font-size: 14px; }

/* ----- motion ----- */
@keyframes caret { 50% { opacity: 0; } }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes drag { 0%, 100% { transform: none; } 40%, 60% { transform: translate(6px, -38px); } }
@keyframes lift { 0%, 100% { transform: none; } 40%, 60% { transform: translate(8px, -10px) rotate(-3deg); box-shadow: 0 12px 20px -8px rgba(12, 19, 22, .4); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 480px) { .ui__site em { display: none; } }

/* Sections run together on one dark ground, so consecutive sections share
   their spacing rather than each adding a full top and bottom. */
main > section:not(.field-hero) + section { padding-top: calc(var(--section-y) * .35); }
main > section:not(.field-hero):has(+ section) { padding-bottom: calc(var(--section-y) * .65); }

/* ============================================================
   Light theme: the "light" layout puts .theme-light on <body>.
   Bright and friendly: white ground, warm off-white panels, dark
   teal dots on the hero. The footer stays dark as an anchor.
   ============================================================ */
html:has(.theme-light) { background: #fff; }
.theme-light {
  color-scheme: light;
  --paper: #ffffff;
  --paper-2: #f7f6f2;
  --paper-3: #efede7;
  --surface: #f7f6f2;
  --surface-2: #ffffff;
  --ink: #0c1316;
  --ink-2: #2b3438;
  --muted: #5a6468;
  --faint: #8a9397;
  --line: #e8e5de;
  --line-strong: #d6d2c8;
  --teal: #2f7482;
  --teal-tint: #e4f1f3;
  --ok: #2f9e5f;
  --warn: #b97712;
  --danger: #c4483d;
  --on-ink: #ffffff;
  --shadow-card: 0 1px 2px rgba(12, 19, 22, .04), 0 18px 40px -18px rgba(12, 19, 22, .22);
  background: var(--paper);
  color: var(--ink);
}
.theme-light .site-header,
.theme-light .site-header.is-on-dark { color: var(--ink); background: rgba(255, 255, 255, .84); }
/* Light version of the logo: all black, the mark taking the text colour like the wordmark. */
.theme-light .btn--primary:hover { background: var(--teal); }
.theme-light .site-header__cta:hover { color: var(--teal); }

/* hero: dark dots on a soft white-to-mist ground */
.theme-light .field-hero { background: radial-gradient(80% 55% at 50% 45%, #eaf4f6 0%, #ffffff 100%); color: var(--ink); }
.theme-light .field-hero__copy::before { background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255, 255, 255, .92), rgba(255, 255, 255, .65) 45%, transparent); }
.theme-light .field-hero__lede { color: var(--muted); }
.theme-light .command-bar:has(.command-bar__cmd) { background: #fff; border-color: var(--line); box-shadow: var(--shadow-card); }
.theme-light .command-bar__cmd { color: var(--ink); }
.theme-light .command-bar__prompt { color: var(--teal); }
.theme-light .command-bar__state { color: var(--faint); }
.theme-light .command-bar .btn--primary { background: var(--ink); color: #fff; }
.theme-light .command-bar .btn--primary:hover { background: var(--teal); }
.theme-light .command-bar .btn--secondary { color: var(--ink); border-color: var(--line-strong); background: rgba(255, 255, 255, .7); }
.theme-light .command-bar .btn--secondary:hover { border-color: var(--ink); }

/* panels: warm off-white stages, friendlier corners */
.theme-light .product__stage { background: var(--paper-2); }
.theme-light .product__stage .ui { box-shadow: 0 24px 48px -22px rgba(12, 19, 22, .3); }
.theme-light .link-card { background: #fff; box-shadow: 0 1px 2px rgba(12, 19, 22, .04); }
.theme-light .tile { --tile-ink: var(--teal); background: #efeee9; }
.theme-light a.tile:hover { background: #e8e6e0; }
.theme-light .tile__icon { background: #fff; border-color: transparent; box-shadow: 0 1px 2px rgba(12, 19, 22, .06), 0 4px 10px -4px rgba(12, 19, 22, .18); }
.theme-light .tile-group--blue .tile { --tile-ink: #3b6ef6; }
.theme-light .tile-group--green .tile { --tile-ink: #2f8a57; }
.theme-light .tile-group--plum .tile { --tile-ink: #a3324f; }
.theme-light .link-card__icon { color: var(--teal); }
.theme-light .faq-item[open] .faq-item__icon { color: var(--teal); }
.theme-light .tiles { background: var(--paper-2); }
.theme-light .closing { background: linear-gradient(180deg, #ffffff, #eef6f7); }
.theme-light main > .tiles + section { padding-top: var(--section-y); }
/* The tile grid sits on its own band here, so it keeps its full padding inside the band, top and bottom. */
.theme-light main > section.tiles { padding-top: var(--section-y); padding-bottom: var(--section-y); }

/* ----- two parts: framework + cloud admin ----- */
.parts { padding: var(--section-y) 0; }
.parts__head { max-width: 640px; margin-bottom: 40px; }
.parts__head h2 { font-family: var(--sans); font-weight: 500; letter-spacing: -0.02em; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; }
.parts__head p { margin-top: 12px; font-size: 17px; line-height: 1.55; color: var(--muted); }
.parts__diagram { display: grid; grid-template-columns: minmax(0, 1fr) clamp(96px, 12vw, 168px) minmax(0, 1fr); align-items: stretch; }
.part { display: flex; flex-direction: column; padding: clamp(22px, 2.6vw, 32px); border-radius: calc(var(--radius) + 6px); background: var(--surface); }
.part--admin { border-color: rgba(111, 176, 189, .35); }
.part__where { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); font: 500 12px/1 var(--mono); letter-spacing: .04em; color: var(--muted); }
.part__where .icon { width: 15px; height: 15px; color: var(--mark); }
.part h3 { margin-top: 18px; font-size: clamp(20px, 1.8vw, 24px); font-weight: 500; letter-spacing: -0.02em; }
.part > p { margin-top: 8px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.part__visual { margin-top: 24px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); font-size: 13px; }
.part__visual--tree { display: grid; gap: 2px; padding: 16px 18px; font-family: var(--mono); }
.tree__root { margin-bottom: 4px; color: var(--ink); }
.tree__row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0 6px 18px; border-left: 1px solid var(--line); margin-left: 6px; }
.tree__row b { font-weight: 400; color: var(--mark); }
.tree__row em { font-style: normal; color: var(--faint); font-size: 12px; text-align: right; }
.tree__api { display: inline-flex; align-items: center; gap: 8px; justify-self: start; margin-top: 10px; padding: 5px 10px; border-radius: 7px; background: var(--teal-tint); color: var(--mark); }
.part__visual--admin { display: grid; overflow: hidden; }
.adminwin__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.adminwin__bar > i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.adminwin__bar b { display: inline-flex; align-items: center; gap: 7px; margin-left: 8px; font: 500 12px/1 var(--sans); color: var(--muted); }
.adminwin__bar svg { height: 9px; width: auto; }
.adminwin__label { padding: 12px 16px 4px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.adminwin__site { display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; }
.adminwin__site:last-child { border-bottom: 0; }
.adminwin__site i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.adminwin__site i.is-draft { background: var(--warn); }
.adminwin__site em { margin-left: auto; font-style: normal; font-family: var(--sans); font-size: 11.5px; color: var(--faint); }
.part__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 22px; }
.part__tags li { padding: 5px 11px; border-radius: 99px; background: rgba(236, 235, 231, .05); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
/* the link: a dashed wire with packets travelling both ways */
.parts__link { position: relative; display: grid; place-items: center; }
.parts__line { position: absolute; left: 0; right: 0; top: 50%; height: 0; border-top: 1px dashed rgba(111, 176, 189, .55); }
.parts__line i { position: absolute; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--mark); box-shadow: 0 0 10px var(--mark); animation: packet-right 2.8s linear infinite; }
.parts__line i:nth-child(2) { animation-delay: -1.4s; }
.parts__line i:nth-child(3) { animation-name: packet-left; animation-delay: -.7s; opacity: .7; }
.parts__label { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 99px; border: 1px solid rgba(111, 176, 189, .45); background: var(--paper); font: 500 11.5px/1 var(--mono); color: var(--mark); white-space: nowrap; }
.parts__label .icon { width: 13px; height: 13px; }
.parts__note { display: flex; align-items: center; gap: 10px; margin-top: 24px; color: var(--muted); font-size: 15px; }
.parts__note .icon { width: 18px; height: 18px; color: var(--mark); flex: none; }
@keyframes packet-right { from { left: 0; } to { left: calc(100% - 6px); } }
@keyframes packet-left { from { left: calc(100% - 6px); } to { left: 0; } }
@keyframes packet-down { from { top: 0; } to { top: calc(100% - 6px); } }
@keyframes packet-up { from { top: calc(100% - 6px); } to { top: 0; } }
@media (max-width: 860px) {
  .parts__diagram { grid-template-columns: 1fr; grid-template-rows: auto 88px auto; }
  .parts__line { left: 50%; right: auto; top: 0; bottom: 0; width: 0; height: auto; border-top: 0; border-left: 1px dashed rgba(111, 176, 189, .55); }
  .parts__line i { top: 0; left: -3px; animation-name: packet-down; }
  .parts__line i:nth-child(3) { animation-name: packet-up; }
}
.theme-light .part { background: var(--paper-2); }
.theme-light .part--admin, .theme-light .parts__label { border-color: rgba(47, 116, 130, .4); }
.theme-light .part__where .icon, .theme-light .tree__row b, .theme-light .tree__api, .theme-light .parts__label, .theme-light .parts__note .icon { color: var(--teal); }
.theme-light .parts__line { border-color: rgba(47, 116, 130, .5); }
.theme-light .parts__line i { background: var(--teal); box-shadow: 0 0 8px rgba(47, 116, 130, .6); }
.theme-light .part__tags li { background: #fff; }

/* Hero entrance: the headline fades up on load, then the lede and the
   command bar follow. Visitors who ask for reduced motion see it at once
   (the reduced-motion rule above switches animations off). */
.field-hero h1 { animation: fade-up 1.1s cubic-bezier(.2, .7, .2, 1) .15s both; }
.field-hero__lede { animation: fade-up 1.1s cubic-bezier(.2, .7, .2, 1) .35s both; }
.field-hero .command-bar { animation: fade-up 1.1s cubic-bezier(.2, .7, .2, 1) .55s both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ----- product block: real media, and media on the left ----- */
.product__media { grid-area: stage; align-self: center; border-radius: calc(var(--radius) + 6px); }
.product--has-media .product__inner { align-items: center; }
.product--media-left .product__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "stage copy" "stage code"; }
@media (max-width: 960px) {
  .product--media-left .product__inner { grid-template-columns: 1fr; grid-template-areas: "copy" "stage" "code"; }
}
/* Media run to the page edge: out past the container's margin on its own side, square there, at the file's own proportions. */
.product--bleed .product__media { --bleed: calc((100vw - min(100vw, var(--container) + var(--gutter) * 2)) / 2 + var(--gutter)); aspect-ratio: auto; margin-right: calc(var(--bleed) * -1); border-radius: calc(var(--radius) + 6px) 0 0 calc(var(--radius) + 6px); }
.product--bleed .product__media img, .product--bleed .product__media video { height: auto; }
/* Padding removed from the section's top or bottom, set per section. Two classes, to outrank the spacing shared between consecutive sections. */
.product.product--flush-top { padding-top: 0; }
.product.product--flush-bottom { padding-bottom: 0; }
.product--bleed.product--media-left .product__media { margin-right: 0; margin-left: calc(var(--bleed) * -1); border-radius: 0 calc(var(--radius) + 6px) calc(var(--radius) + 6px) 0; }

/* ----- showcase: one big picture of the product ----- */
.showcase { padding: calc(var(--section-y) * .6) 0 var(--section-y); }
.showcase__heading { max-width: 760px; margin: 0 auto 40px; text-align: center; font-family: var(--sans); font-weight: 500; letter-spacing: -0.02em; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; }
.showcase__media { border-radius: calc(var(--radius) + 8px); }
.showcase__collage { position: relative; display: grid; place-items: center; min-height: clamp(420px, 46vw, 640px); padding: clamp(24px, 5vw, 64px); border-radius: calc(var(--radius) + 8px); background: radial-gradient(60% 60% at 50% 40%, rgba(111, 176, 189, .10), transparent 70%), var(--surface); overflow: hidden; }
.showcase__card .ui { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .95); }
.showcase__card--main { position: relative; z-index: 2; width: min(100%, 620px); }
@media (min-width: 861px) { .showcase__card--main { zoom: 1.25; } .showcase__card--left, .showcase__card--right { zoom: 1.1; } }
.showcase__card--left, .showcase__card--right { position: absolute; z-index: 1; width: min(34%, 330px); }
.showcase__card--left { left: 4%; bottom: 8%; transform: rotate(-2deg); }
.showcase__card--right { right: 4%; top: 8%; transform: rotate(2deg); }
.showcase__note { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 24px; text-align: center; color: var(--muted); font-size: 15px; }
.showcase__note .icon { width: 18px; height: 18px; color: var(--mark); flex: none; }
@media (max-width: 860px) {
  .showcase__card--left, .showcase__card--right { display: none; }
}

/* ----- principles: large centred headline option ----- */
.principles--centred .principles__head { max-width: 820px; margin: 0 auto; text-align: center; }
.principles--centred h2 { font-size: clamp(32px, 4.4vw, 60px); line-height: 1.08; letter-spacing: -0.03em; }
.principles--centred .principles__head p { font-size: 19px; }

/* ----- pick your side: two animated path cards ----- */
.fork { padding: var(--section-y) 0; }
.fork__head { max-width: 860px; margin: 0 auto 44px; text-align: center; }
.fork__head h2 { font-family: var(--sans); font-weight: 500; font-size: clamp(36px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -0.04em; }
.fork__head p { margin-top: 16px; font-size: 18px; color: var(--muted); }
/* Example sites: a screenshot in a browser frame per demo, linking out to the live site. */
.demos { padding: var(--section-y) 0; }
.demos__head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.demos__head h2 { font-family: var(--sans); font-weight: 500; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.04; letter-spacing: -0.035em; }
.demos__head p { margin-top: 16px; font-size: 18px; color: var(--muted); text-wrap: balance; }
.demos__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.demo-card { display: flex; flex-direction: column; border-radius: calc(var(--radius) + 6px); background: var(--surface); border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.demo-card:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: var(--shadow-card); }
.demo-card__main { display: flex; flex: 1; flex-direction: column; padding: 14px 14px 30px; color: inherit; text-decoration: none; }
.demo-card__shot { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: #000; }
.demo-card__shot .media { border-radius: 0; }
/* The screenshot is a little taller than its frame, so hovering can scroll it a touch, as in a browser. */
.demo-card__shot .media img { height: calc(100% + 18px); object-position: 50% 0; transition: transform .45s cubic-bezier(.4, 0, .2, 1); }
.demo-card:hover .demo-card__shot .media img { transform: translateY(-18px); }
.demo-card__title { margin: 34px 20px 0; font-weight: 500; font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; }
.demo-card__text { margin: 10px 20px 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.demo-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 34px 20px; border-top: 1px solid var(--line); }
.demo-card__source { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15.5px; text-decoration: none; transition: color .2s ease; }
.demo-card__source:hover { color: var(--ink); }
.demo-card__source .icon { font-size: 17px; }
.demo-card__go { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; color: var(--ink); font-size: 15.5px; font-weight: 500; text-decoration: none; }
.demo-card__go .icon { transition: transform .2s ease; }
.demo-card__go:hover .icon, .demo-card:hover .demo-card__go .icon { transform: translateX(4px); }
.theme-light .demo-card { background: #fff; box-shadow: 0 1px 2px rgba(12, 19, 22, .04); }
@media (max-width: 900px) { .demos__grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; } }
@media (prefers-reduced-motion: reduce) { .demo-card, .demo-card__shot .media img { transition: none; } .demo-card:hover, .demo-card:hover .demo-card__shot .media img { transform: none; } }
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .paths { grid-template-columns: 1fr; } }
.path { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 26px; text-decoration: none; transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease; }
.path:hover { transform: translateY(-6px); box-shadow: 0 34px 70px -30px rgba(0, 0, 0, .8); }
.path--build { background: #0b1e2a; color: var(--on-dark); border: 1px solid rgba(111, 176, 189, .22); }
.path--run { background: #f8f3eb; color: #0c1316; border: 1px solid #efe6d8; }
.path__scene { position: relative; display: block; height: clamp(180px, 20vw, 250px); overflow: hidden; }
.path__grid { position: absolute; inset: 0; background: linear-gradient(rgba(111, 176, 189, .14) 1px, transparent 1px) 0 0 / 30px 30px, linear-gradient(90deg, rgba(111, 176, 189, .14) 1px, transparent 1px) 0 0 / 30px 30px; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent); mask-image: linear-gradient(180deg, #000 30%, transparent); transition: transform 1.2s ease; }
.path--build:hover .path__grid { transform: translate(-15px, -15px); }
.path__code { position: absolute; z-index: 1; left: clamp(22px, 3vw, 34px); top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; padding: 12px 16px; border-radius: 12px; background: rgba(236, 235, 231, .05); border: 1px solid rgba(111, 176, 189, .3); font: 400 15px/1 var(--mono); color: #8fd0db; white-space: nowrap; }
.path__code::before { content: ""; width: 10px; height: 10px; margin-right: 12px; border-radius: 3px; background: var(--mark); }
.path__code .ui__caret { background: var(--on-dark); }
.path__bubble { position: absolute; right: clamp(22px, 3vw, 34px); top: clamp(22px, 3vw, 30px); max-width: 78%; padding: 12px 18px; border-radius: 18px 18px 4px 18px; background: #3b6ef6; color: #fff; font-size: 15.5px; font-weight: 500; line-height: 1.35; }
.path__done { position: absolute; left: clamp(22px, 3vw, 34px); bottom: 22px; display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; border-radius: 99px; background: #fff; box-shadow: 0 8px 20px -10px rgba(12, 19, 22, .35); font-size: 14.5px; font-weight: 600; color: #0c1316; animation: done-pop 5s ease infinite; }
.path__done .icon { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: #3ecf6e; color: #fff; }
.path__cursor { position: absolute; left: 58%; bottom: 16px; width: 26px; height: 26px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); animation: path-cursor 5s ease-in-out infinite; }
.path__body { display: flex; flex-direction: column; flex: 1; padding: 4px clamp(22px, 3vw, 34px) clamp(24px, 3vw, 34px); }
.path__label { font: 500 12.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; opacity: .6; }
.path__title { margin-top: 12px; font-family: var(--sans); font-size: clamp(28px, 3.2vw, 40px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.path__text { margin-top: 12px; font-size: 16.5px; line-height: 1.55; opacity: .72; }
.path__link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 26px; font-weight: 600; font-size: 16px; }
.path__link .icon { transition: transform .25s ease; }
.path:hover .path__link .icon { transform: translateX(5px); }
.path--build .path__link { color: var(--mark); }
.path--run .path__link { color: #3b6ef6; }
@keyframes done-pop { 0%, 30% { opacity: 0; transform: translateY(8px) scale(.9); } 40%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes path-cursor { 0%, 10% { transform: translate(60px, 30px); } 28% { transform: translate(0, -60px) scale(.88); } 34%, 100% { transform: translate(0, -60px); } }
@media (max-width: 480px) { .path__code { right: 22px; font-size: 13px; overflow: hidden; } }

/* ============================================================
   Developer page sections
   ============================================================ */
.cmds__head h2, .c2f__head h2, .folders__head h2 { font-family: var(--sans); font-weight: 500; letter-spacing: -0.02em; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; }
.cmds__head p, .c2f__head p, .folders__head p { margin-top: 12px; font-size: 17px; line-height: 1.55; color: var(--muted); }

/* ----- split hero ----- */
.split-hero { position: relative; margin-top: calc(var(--header-h) * -1); background: var(--void); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.split-hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 5vw, 80px); align-items: center; min-height: max(620px, 92svh); padding-top: calc(var(--header-h) + 48px); padding-bottom: 72px; }
.split-hero__copy { position: relative; min-width: 0; }
.split-hero__cmd .command-bar__txt { flex: 1; min-width: 0; }
.split-hero__copy::before { content: ""; position: absolute; inset: -25% -20%; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 50% 50% at 40% 50%, rgba(0, 0, 0, .85), rgba(0, 0, 0, .55) 50%, transparent); }
.split-hero h1 { font-size: clamp(36px, 4.4vw, 64px); max-width: 12em; animation: fade-up 1.1s cubic-bezier(.2, .7, .2, 1) .15s both; -webkit-user-select: none; user-select: none; }
.split-hero__lede { margin-top: 22px; max-width: 32em; font-size: 18px; color: var(--on-dark-soft); animation: fade-up 1.1s cubic-bezier(.2, .7, .2, 1) .3s both; -webkit-user-select: none; user-select: none; }
.split-hero__cmd { display: flex; align-items: center; gap: 12px; width: min(100%, 460px); margin-top: 32px; padding: 14px 18px; border-radius: 12px; border: 1px solid rgba(236, 235, 231, .2); background: var(--night); color: var(--on-dark); font: 400 14px/1 var(--mono); text-align: left; cursor: pointer; animation: fade-up 1.1s cubic-bezier(.2, .7, .2, 1) .45s both; }
.split-hero__cmd:hover .command-bar__state { color: var(--on-dark); }
.split-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; animation: fade-up 1.1s cubic-bezier(.2, .7, .2, 1) .55s both; }
/* With no command bar between them, the buttons need their own space under the intro. */
.split-hero__lede + .split-hero__actions { margin-top: 32px; }
.split-hero__actions .btn--primary { background: var(--on-dark); color: var(--void); }
.split-hero__actions .btn--primary:hover { background: #fff; }
.split-hero__actions .btn--secondary { color: var(--on-dark); border-color: rgba(236, 235, 231, .3); }
.split-hero__visual { min-width: 0; animation: fade-up 1.2s cubic-bezier(.2, .7, .2, 1) .35s both; }
.split-hero__placeholder { position: relative; padding: 0 0 72px 0; }
.split-hero__code { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); }
.split-hero__code .code__body { max-height: 380px; font-size: 13px; }
/* The section file alone: no card beside it, and every line shown. */
.split-hero__placeholder--code-only { padding-bottom: 0; }
/* Shown as an editor window: a title bar with window dots, a numbered gutter, larger code and a drop shadow to lift it off the field. */
@media (min-width: 961px) { .split-hero__inner:has(.split-hero__placeholder--code-only) { grid-template-columns: minmax(0, 4.6fr) minmax(0, 6.4fr); } }
.split-hero__placeholder--code-only .split-hero__code { border: 0; border-radius: 12px; background: linear-gradient(155deg, rgba(255, 255, 255, .06) 0%, rgba(255, 255, 255, .015) 40%, transparent 70%), linear-gradient(180deg, #1e2124, #17191c); box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .95), 0 24px 48px -24px rgba(0, 0, 0, .8); }
.split-hero__placeholder--code-only .code__bar { padding: 14px 18px; background: linear-gradient(180deg, #303438, #25282b); border-bottom-color: rgba(255, 255, 255, .07); font-size: 12.5px; color: #9aa0a4; }
.split-hero__placeholder--code-only .code__bar::before { width: 10px; height: 10px; margin-right: 46px; background: #4b5053; box-shadow: 16px 0 #4b5053, 32px 0 #4b5053; }
.split-hero__placeholder--code-only .code__body { max-height: none; padding: 18px 0 24px; font-size: 12.5px; line-height: 1.8; -webkit-mask-image: none; mask-image: none; }
.split-hero__placeholder--code-only .code__body .ln { padding-right: 22px; }
.split-hero__placeholder--code-only .code__body .ln::before { display: inline-block; width: 3.4em; margin-right: 1.2em; padding-right: .9em; border-right: 1px solid rgba(255, 255, 255, .08); color: #5c6166; }
/* The rendered website, overlapping the editor's lower right corner like a window brought to the front. */
.split-hero__preview { position: absolute; z-index: 1; right: max(-14%, 16px - var(--gutter)); bottom: -7%; width: 68%; padding: 0; background: #000; border-radius: 6px; overflow: hidden; box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .95), 0 20px 40px -20px rgba(0, 0, 0, .7); }
.split-hero__preview .media { border-radius: 0; }
@media (max-width: 960px) { .split-hero__preview { display: none; } }
.split-hero__preview { animation: preview-fade-right 1.1s cubic-bezier(.2, .7, .2, 1) .4s both; }
@keyframes preview-fade-right { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .split-hero__preview { animation: none; } }
/* Too narrow for the longest line: drop the gutter and wrap it, with the wrapped part hanging indented. */
@media (max-width: 560px) {
  .split-hero__placeholder--code-only .code__body { padding: 16px 16px 20px; font-size: 12px; }
  .split-hero__placeholder--code-only .code__body .ln { padding: 0 0 0 2ch; white-space: pre-wrap; text-indent: -2ch; }
  .split-hero__placeholder--code-only .code__body .ln::before { display: none; }
}
.split-hero__card { position: absolute; right: -8px; bottom: 0; width: min(62%, 380px); }
.split-hero__card .ui { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .95); }
@media (max-width: 960px) {
  .split-hero__inner { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .split-hero__card { position: relative; right: auto; width: auto; margin: -48px 16px 0; }
  .split-hero__placeholder { padding-bottom: 0; }
}

/* ----- code to fields ----- */
.c2f { padding: var(--section-y) 0; }
.c2f__head { max-width: 640px; margin-bottom: 40px; }
.c2f__demo { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: clamp(16px, 3vw, 40px); padding: clamp(20px, 3vw, 40px); border-radius: calc(var(--radius) + 6px); background: var(--surface); }
.c2f__code { border-radius: 12px; border: 0; overflow: hidden; background: linear-gradient(155deg, rgba(255, 255, 255, .06) 0%, rgba(255, 255, 255, .015) 40%, transparent 70%), linear-gradient(180deg, #1e2124, #17191c); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 18px 36px -18px rgba(0, 0, 0, .7); }
.c2f__code .code__bar { padding: 14px 18px; background: linear-gradient(180deg, #303438, #25282b); border-bottom-color: rgba(255, 255, 255, .07); color: #9aa0a4; }
.c2f__lines { display: grid; padding: 16px 0 20px; font: 400 13.5px/1.75 var(--mono); color: #cfd8da; }
.c2f__line { padding: 0 18px; white-space: pre; border-left: 2px solid transparent; transition: background-color .3s ease, border-color .3s ease; }
.c2f__line--map { cursor: default; }
.c2f__line--map:focus { outline: none; }
.c2f__line.is-active { background: rgba(59, 110, 246, .14); border-left-color: #3b6ef6; }
.c2f__arrow { display: grid; justify-items: center; gap: 10px; width: clamp(110px, 12vw, 170px); color: #3b6ef6; }
.c2f__arrow .icon { width: 26px; height: 26px; }
.c2f__caption { padding: 6px 10px; border-radius: 99px; border: 1px solid rgba(59, 110, 246, .5); font: 500 11.5px/1.3 var(--mono); text-align: center; }
.c2f__form { font-size: 14px; }
.c2f__form .ui__body { gap: 0; }
.c2f__field { padding: 7px 8px 9px; margin: 0 -8px; border-radius: 5px; transition: background-color .3s ease, box-shadow .3s ease; }
.c2f__field .ui__label { margin-top: 0; }
.c2f__field.is-active { background: rgba(59, 110, 246, .1); box-shadow: inset 0 0 0 1px rgba(59, 110, 246, .5); }
.c2f__field--row .c2f__switch { display: block; }
.c2f__switch { width: 2.86em; height: 1.6em; padding: 2px; border-radius: 99px; background: #3b6ef6; }
.c2f__switch i { display: block; width: calc(1.6em - 4px); height: calc(1.6em - 4px); margin-left: auto; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.c2f__swatches { display: flex; gap: 8px; }
.c2f__swatches i { width: 26px; height: 26px; border-radius: 5px; border: 1px solid rgba(236, 235, 231, .2); }
.c2f__swatches i:first-child { box-shadow: 0 0 0 2px var(--surface-2), 0 0 0 4px var(--mark); }
@media (max-width: 860px) {
  .c2f__demo { grid-template-columns: 1fr; }
  .c2f__arrow { width: auto; grid-auto-flow: column; }
  .c2f__arrow .icon { transform: rotate(90deg); }
}

/* ----- folder structure (centred, full width) ----- */
.folders { padding: var(--section-y) 0; }
.folders__head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.folders__head h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -0.03em; }
.folders__head p { font-size: 18px; }
.folders__root { position: relative; }
.folders__rootname { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font: 500 15px/1 var(--mono); }
.folders__rootname .icon { color: var(--mark); width: 18px; height: 18px; }
.folders__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; padding-left: 22px; border-left: 1px dashed var(--line-strong); margin-left: 22px; }
.fgroup { position: relative; display: flex; flex-direction: column; padding: 22px; border-radius: calc(var(--radius) + 2px); border: 1px solid var(--line); background: var(--surface); }
.fgroup::before { content: ""; position: absolute; left: -23px; top: 34px; width: 22px; border-top: 1px dashed var(--line-strong); }
.fgroup__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fgroup__name { font: 500 19px/1 var(--mono); color: var(--mark); }
.fgroup__owner { padding: 4px 9px; border-radius: 99px; background: rgba(236, 235, 231, .06); font-size: 12px; color: var(--muted); white-space: nowrap; }
.fgroup__text { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.fgroup__items { margin-top: 16px; border-top: 1px solid var(--line); }
.fitem { display: grid; gap: 2px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.fitem:last-child { border-bottom: 0; padding-bottom: 0; }
.fitem b { font: 400 13.5px/1.4 var(--mono); color: var(--ink); }
.fitem span { font-size: 13.5px; line-height: 1.45; color: var(--faint); }
@media (max-width: 600px) { .folders__grid { padding-left: 14px; margin-left: 10px; } .fgroup::before { left: -15px; width: 14px; } }

/* ----- command explorer ----- */
.cmds { padding: var(--section-y) 0; }
.cmds__head { max-width: 640px; margin-bottom: 36px; }
.cmds__box { border-radius: calc(var(--radius) + 6px); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.cmds--list .cmds__box { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); }
.cmds__nav { display: flex; gap: 4px; padding: 12px; }
.cmds--list .cmds__nav { flex-direction: column; border-right: 1px solid var(--line); }
.cmds--tabs .cmds__nav { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.cmds__nav .tab { display: grid; gap: 4px; padding: 12px 14px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--muted); font: 500 14px/1.2 var(--mono); text-align: left; }
.cmds__nav .tab span { font: 400 13px/1.35 var(--sans); color: var(--faint); }
.cmds__nav .tab:hover { color: var(--ink); background: rgba(236, 235, 231, .04); }
/* Selected: the CMS admin's primary blue (--colour-primary #3b6ef6), as a tint with a border. */
.cmds__nav .tab[aria-selected="true"] { color: var(--ink); background: rgba(59, 110, 246, .14); border-color: rgba(59, 110, 246, .55); }
.cmds--tabs .cmds__nav .tab { font-family: var(--sans); font-size: 15px; padding: 10px 16px; }
.cmds__panels { min-width: 0; padding: clamp(20px, 3vw, 36px); }
.cmd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(20px, 3vw, 40px); align-items: start; animation: panel-in .4s ease; }
.cmds--list .cmd { grid-template-columns: 1fr; }
.cmd h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.015em; }
.cmd p { margin-top: 8px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.cmd__notes { display: grid; gap: 8px; margin-top: 16px; }
.cmd__notes li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.cmd__notes .icon { margin-top: 3px; color: var(--mark); flex: none; }
.cmd__code .code__body { min-height: 0; }
.cmd__code { border: 0; border-radius: 12px; background: linear-gradient(155deg, rgba(255, 255, 255, .06) 0%, rgba(255, 255, 255, .015) 40%, transparent 70%), linear-gradient(180deg, #1e2124, #17191c); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 18px 36px -18px rgba(0, 0, 0, .7); }
.cmd__code .code__bar { padding: 14px 18px; background: linear-gradient(180deg, #303438, #25282b); border-bottom-color: rgba(255, 255, 255, .07); color: #9aa0a4; }
@media (max-width: 860px) {
  .cmds--list .cmds__box { grid-template-columns: 1fr; }
  .cmds--list .cmds__nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .cmds--list .cmds__nav .tab { flex: none; }
  .cmds--list .cmds__nav .tab span { display: none; }
  .cmd { grid-template-columns: 1fr; }
}

/* ----- feature list: centred headline, two columns, icon tile beside the words ----- */
.flist { padding: var(--section-y) 0; }
.flist__heading { max-width: 18em; margin: 0 auto; text-align: center; font-family: var(--sans); font-weight: 500; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.08; letter-spacing: -0.03em; }
.flist__heading span { color: var(--faint); }
.flist__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(44px, 5vw, 64px) clamp(32px, 6vw, 88px); max-width: 1100px; margin: clamp(48px, 6vw, 88px) auto 0; }
.feature { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 24px; align-items: start; }
.feature__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; color: #fff; background: linear-gradient(150deg, #3b8796 0%, #154350 55%, #0b2730 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -10px 18px rgba(0, 0, 0, .25), 0 10px 24px -10px rgba(0, 0, 0, .8); border: 1px solid rgba(255, 255, 255, .08); }
.feature:nth-child(3n + 2) .feature__icon { background: linear-gradient(150deg, #6680c6 0%, #2c4282 55%, #172649 100%); }
.feature:nth-child(3n + 3) .feature__icon { background: linear-gradient(150deg, #5d6b72 0%, #283238 55%, #141a1d 100%); }
.feature__icon .icon { width: 28px; height: 28px; stroke-width: 1.6; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.feature h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }
.feature p { margin-top: 8px; font-size: 16px; line-height: 1.6; color: var(--muted); }
@media (max-width: 860px) { .flist__grid { grid-template-columns: 1fr; max-width: 560px; } }
@media (max-width: 480px) { .feature { grid-template-columns: 52px minmax(0, 1fr); gap: 16px; } .feature__icon { width: 52px; height: 52px; border-radius: 13px; } .feature__icon .icon { width: 24px; height: 24px; } }

/* split hero: editor placeholder, and the light theme */
.split-hero__placeholder--editor { padding-bottom: 190px; }
.split-hero__main .ui { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); font-size: 14px; }
.split-hero__placeholder--editor .split-hero__card { width: min(54%, 320px); right: -16px; }
.theme-light .split-hero { background: radial-gradient(70% 60% at 70% 45%, #eaf4f6 0%, #ffffff 100%); color: var(--ink); }
.theme-light .split-hero__copy::before { background: radial-gradient(ellipse 50% 50% at 40% 50%, rgba(255, 255, 255, .92), rgba(255, 255, 255, .6) 50%, transparent); }
.theme-light .split-hero__lede { color: var(--muted); }
.theme-light .split-hero__cmd { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-card); }
.theme-light .split-hero__cmd .command-bar__prompt { color: var(--teal); }
.theme-light .split-hero__actions .btn--primary { background: var(--ink); color: #fff; }
.theme-light .split-hero__actions .btn--primary:hover { background: var(--teal); }
.theme-light .split-hero__actions .btn--secondary { color: var(--ink); border-color: var(--line-strong); background: rgba(255, 255, 255, .7); }
.theme-light .split-hero__actions .btn--secondary:hover { border-color: var(--ink); }
.theme-light .split-hero__main .ui, .theme-light .split-hero__card .ui { box-shadow: 0 30px 60px -24px rgba(12, 19, 22, .28); }
@media (max-width: 960px) { .split-hero__placeholder--editor { padding-bottom: 0; } }

/* ----- agent instructions ----- */
.agents { padding: var(--section-y) 0; }
.agents__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.agents h2 { font-family: var(--sans); font-weight: 500; letter-spacing: -0.02em; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; }
.agents__body { margin-top: 12px; font-size: 17px; line-height: 1.55; color: var(--muted); }
.agents__toolslabel { display: block; margin-top: 28px; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.agents__tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.agents__tools li { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: rgba(236, 235, 231, .04); font-size: 14px; color: var(--ink-2); }
.agents__box { min-width: 0; padding: clamp(16px, 2.4vw, 24px); border-radius: calc(var(--radius) + 6px); background: var(--surface); }
.agents__tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.arule { display: grid; gap: 12px; animation: panel-in .4s ease; }
.arule__doc { padding: 18px 20px; border-radius: var(--radius); border: 1px solid rgba(111, 176, 189, .35); background: rgba(111, 176, 189, .06); }
.arule__doclabel { display: flex; align-items: center; gap: 8px; font: 500 12.5px/1 var(--mono); color: var(--mark); }
.arule__doclabel span { margin-left: auto; font-family: var(--sans); font-size: 12px; color: var(--faint); }
.arule__doc p { margin-top: 12px; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.arule__run .code__body { min-height: 0; }
@media (max-width: 960px) { .agents__inner { grid-template-columns: 1fr; } }
.arule__run .code__body { overflow-x: hidden; }
.arule__run .code__body { padding: 16px 20px 20px; }
.arule__run .code__body .ln { white-space: pre-wrap; overflow-wrap: anywhere; padding: 0; }
.arule__run .code__body .ln::before { display: none; }

/* principles: optional tags and link */
.principles__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.principles--centred .principles__tags { justify-content: center; }
.principles__tags li { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: rgba(236, 235, 231, .04); font-size: 14px; color: var(--ink-2); }
/* Host logos: large cards rolling across the full width of the page, endlessly.
   The track holds two identical lists and slides by exactly one list's width. */
.hosts { position: relative; width: 100vw; margin: 48px 0 0 calc(50% - 50vw); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.hosts__track { display: flex; width: max-content; animation: hosts-roll 40s linear infinite; }
.hosts:hover .hosts__track { animation-play-state: paused; }
.hosts__list { display: flex; gap: 16px; padding-right: 16px; margin: 0; }
.hosts__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; width: 240px; height: 220px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); font-size: 17px; font-weight: 500; color: var(--ink); transition: border-color .2s ease; }
.hosts__item:hover { border-color: var(--line-strong); }
.hosts__item .host-logo, .hosts__item .icon { width: 52px; height: 52px; color: var(--ink); }
@keyframes hosts-roll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 600px) { .hosts__item { width: 170px; height: 160px; gap: 16px; font-size: 15px; } .hosts__item .host-logo, .hosts__item .icon { width: 40px; height: 40px; } .hosts__track { animation-duration: 30s; } }
@media (prefers-reduced-motion: reduce) {
  .hosts { width: auto; margin-left: 0; -webkit-mask-image: none; mask-image: none; }
  .hosts__track { width: auto; }
  .hosts__list { flex-wrap: wrap; justify-content: center; padding-right: 0; }
  .hosts__list[aria-hidden="true"] { display: none; }
}
.principles__link { margin-top: 36px; }
.principles--centred .principles__link { text-align: center; }
.principles .text-link { color: var(--on-dark); border-bottom-color: var(--night-line); }
.principles .text-link:hover { border-bottom-color: var(--on-dark); }
.principles__row:empty { display: none; }

/* product block: optional buttons under the text */
.product__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
/* product block without a code sample: the text sits level with the middle of the visual */
.product--no-code .product__inner { grid-template-rows: auto; grid-template-areas: "copy stage"; align-items: center; }
.product--no-code.product--media-left .product__inner { grid-template-areas: "stage copy"; }
@media (max-width: 960px) { .product--no-code .product__inner, .product--no-code.product--media-left .product__inner { grid-template-areas: "copy" "stage"; } }

/* ----- feature tour: pinned step list beside large media cards ----- */
.tour { padding: var(--section-y) 0; }
.tour__inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.tour__aside { align-self: stretch; }
.tour__sticky { position: sticky; top: calc(var(--header-h) + 64px); }
.tour h2 { font-family: var(--sans); font-weight: 500; font-size: clamp(28px, 3vw, 40px); line-height: 1.12; letter-spacing: -0.025em; }
.tour__intro { margin-top: 14px; font-size: 17px; line-height: 1.55; color: var(--muted); }
.tour__steps { margin: 36px 0 0; padding: 0; list-style: none; }
.tour__step { position: relative; border-bottom: 1px solid var(--line); }
.tour__stepbtn { display: grid; width: 100%; padding: 16px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.tour__steptitle { font-size: 16px; font-weight: 500; color: var(--muted); transition: color .3s ease; }
.tour__stepbtn:hover .tour__steptitle, .tour__step.is-active .tour__steptitle { color: var(--ink); }
.tour__steptext { display: block; max-height: 0; overflow: hidden; opacity: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); transition: max-height .45s ease, opacity .35s ease, margin-top .45s ease; }
.tour__step.is-active .tour__steptext { max-height: 8em; opacity: 1; margin-top: 6px; }
.tour__bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; }
.tour__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), #3b6ef6); transform: scaleX(0); transform-origin: left center; }
.tour__cards { display: grid; gap: 24px; }
.tour__card { border-radius: 24px; background: var(--surface); overflow: hidden; }
.tour__media .media { border-radius: 0; }
/* 3:2 like the screenshots that will replace it; it only grows taller if an admin glimpse needs the room */
.tour__placeholder { display: grid; place-items: center; aspect-ratio: 3 / 2; padding: clamp(20px, 3.5vw, 48px); }
.tour__placeholder .ui { max-width: 520px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55); }
.tour__placeholder .ui--wide { max-width: 600px; }
.tour__caption { padding: 24px 24px 0; }
.tour__caption h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.015em; }
.tour__caption p { margin-top: 6px; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
@media (min-width: 961px) { .tour--ready .tour__caption { display: none; } }
@media (max-width: 960px) {
  .tour__inner { grid-template-columns: 1fr; }
  .tour__sticky { position: static; }
  .tour__steps { display: none; }
  /* Small screens: no box around each step, just a caption over its glimpse or media. The glimpse
     sets its own height, as a fixed 3:2 box is shorter than a tall glimpse at phone width. */
  .tour__cards { gap: 80px; margin-top: 32px; }
  .tour__caption { padding: 0 0 18px; }
  .tour__caption h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
  .tour__caption p { margin-top: 4px; font-size: 14.5px; }
  .tour__placeholder { aspect-ratio: auto; padding: 0; }
  .tour__media .media { border-radius: 16px; }
}
.theme-light .tour__card { background: var(--paper-2); }
.theme-light .tour__placeholder .ui { box-shadow: 0 30px 60px -26px rgba(12, 19, 22, .3); }

/* Feature tour in a dark, rounded panel inset from the page edges. The panel
   sets the dark theme's colours for everything inside it, so it reads the
   same on light and dark pages. */
.tour--panel {
  --paper: #091318; --paper-2: #0f1d24; --paper-3: #132630; --surface: #0f1d24; --surface-2: #132630;
  --ink: #ecebe7; --ink-2: rgba(236, 235, 231, .82); --muted: rgba(236, 235, 231, .62); --faint: rgba(236, 235, 231, .4);
  --line: rgba(236, 235, 231, .12); --line-strong: rgba(236, 235, 231, .26);
  --teal: #6fb0bd; --teal-tint: rgba(111, 176, 189, .14); --ok: #4fbf7f; --warn: #e0a347; --danger: #e2766b; --on-ink: #000;
  margin: 0 clamp(12px, 4.5vw, 64px); border-radius: clamp(20px, 2.4vw, 32px); background: var(--paper); color: var(--ink); color-scheme: dark;
}
.theme-light .tour--panel .tour__card, .tour--panel .tour__card { background: var(--surface); }
.theme-light .tour--panel .tour__placeholder .ui, .tour--panel .tour__placeholder .ui { box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .8); }
.tour--panel .tour__bar i { background: linear-gradient(90deg, #6fb0bd, #3b6ef6); }
main > section.tour.tour--panel { padding: clamp(64px, 8vw, 112px) 0; margin-bottom: clamp(24px, 4vw, 56px); }
/* Small screens: no box around each step (after the panel's card rule, which it overrides). */
@media (max-width: 960px) {
  .tour__card, .theme-light .tour__card, .tour--panel .tour__card, .theme-light .tour--panel .tour__card { border: 0; border-radius: 0; background: none; overflow: visible; }
}

/* ----- pricing ----- */
.pricing { padding: var(--section-y) 0; }
.pricing__head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.pricing__head h2 { font-family: var(--sans); font-weight: 500; letter-spacing: -0.02em; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; }
.pricing__head p { margin-top: 12px; font-size: 17px; line-height: 1.55; color: var(--muted); }
.pricing__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; max-width: 920px; margin: 0 auto; }
.plan { display: flex; flex-direction: column; padding: clamp(26px, 3vw, 36px); border-radius: calc(var(--radius) + 8px); border: 1px solid var(--line); background: var(--surface); }
.plan--highlight { border-color: rgba(111, 176, 189, .55); background: radial-gradient(120% 80% at 50% 0%, rgba(111, 176, 189, .14), transparent 60%), var(--surface); box-shadow: 0 30px 70px -40px rgba(111, 176, 189, .45); }
.plan__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan__name { font-size: 18px; font-weight: 500; }
.plan__badge { padding: 5px 10px; border-radius: 99px; background: var(--teal-tint); color: var(--mark); font-size: 12px; font-weight: 500; white-space: nowrap; }
.plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.plan__price b { font-family: var(--sans); font-weight: 500; font-size: clamp(48px, 5vw, 64px); line-height: 1; letter-spacing: -0.04em; }
.plan__price span { color: var(--muted); font-size: 15px; }
.plan__summary { margin-top: 14px; font-size: 16px; line-height: 1.55; color: var(--muted); }
.plan__btn { margin-top: 26px; }
.plan__features { display: grid; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.plan__features li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.plan__features .icon { margin-top: 3px; color: var(--mark); flex: none; }
.pricing__note { margin-top: 28px; text-align: center; font-size: 14px; color: var(--faint); }
/* Prices in one currency at a time (site.js): [hidden] wins over any
   display a price or note sets, such as .plan__price's flex. */
[data-currency][hidden] { display: none !important; }
.currency-switch { display: flex; justify-content: center; gap: 4px; width: max-content; margin: 0 auto 28px; padding: 4px; border: 1px solid var(--line); border-radius: 99px; }
.currency-switch button { padding: 6px 14px; border: 0; border-radius: 99px; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 500; letter-spacing: 0.04em; cursor: pointer; }
.currency-switch button:hover { color: var(--ink); }
.currency-switch button[aria-pressed="true"] { background: var(--teal-tint); color: var(--mark); }
.no-js .currency-switch { display: none; }

/* compact ripple hero: no minimum height, and the section after it starts right below */
.field-hero--compact .field-hero__inner { padding-bottom: 8px; }
.field-hero--compact .field-hero__copy { margin-bottom: 0; }
.field-hero--compact + section { position: relative; z-index: 1; padding-top: clamp(32px, 4vw, 56px); }
/* The compact hero's dot field keeps the full hero height of the other pages,
   so it carries on behind the section underneath and fades out there. */
.field-hero--compact { overflow: visible; z-index: 0; }
.field-hero--compact .field-hero__canvas { bottom: auto; height: max(640px, 100svh); }

/* ----- legal document (Terms, Privacy) ----- */
/* One readable column, clear of the fixed header, with plain document
   typography: sans headings, comfortable line length, real lists. */
.legal { padding: 160px 0 var(--section-y); }
.legal__inner { max-width: calc(760px + var(--gutter) * 2); }
.legal__head { margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.legal__head h1 { font-size: clamp(40px, 5vw, 60px); }
.legal__updated { margin-top: 16px; font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.legal__summary { margin-top: 20px; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.legal__body { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.legal__body h2 { margin: 48px 0 12px; font-family: var(--sans); font-weight: 500; font-size: 22px; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.legal__body h3 { margin: 28px 0 8px; font-weight: 500; font-size: 17px; color: var(--ink); }
.legal__body p { margin: 0 0 14px; }
.legal__body ul, .legal__body ol { margin: 0 0 16px; padding-left: 22px; }
.legal__body ul { list-style: disc; }
.legal__body ol { list-style: decimal; }
.legal__body li { margin-bottom: 6px; }
.legal__body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal__body a:hover { color: var(--mark); }
.legal__body strong { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .legal { padding-top: 120px; } }

/* ----- stage hero: a centred headline over a warm glow, then a website on a stage ----- */
.stage-hero { position: relative; margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + clamp(24px, 4.5vh, 80px)) 0 clamp(48px, 6vw, 96px); overflow: hidden; isolation: isolate; text-align: center; background: linear-gradient(180deg, transparent 80%, var(--paper) 100%), radial-gradient(90% 46% at 50% 60%, var(--stage-glow) 0%, var(--stage-glow) 30%, transparent 78%), var(--paper); }
.stage-hero__canvas { -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 42%); mask-image: linear-gradient(180deg, #000 0%, transparent 42%); }
.stage-hero h1 { max-width: 15em; margin: 0 auto; font-size: clamp(32px, 3.8vw, 56px); font-weight: 300; line-height: 1.04; letter-spacing: -0.02em; animation: fade-up 1.1s cubic-bezier(.2, .7, .2, 1) .15s both; }
.stage-hero__lede { max-width: 44em; margin: 16px auto 0; text-wrap: balance; font-size: clamp(16px, 1.2vw, 18px); color: var(--muted); animation: fade-up 1.1s cubic-bezier(.2, .7, .2, 1) .3s both; }
.stage-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; animation: fade-up 1.1s cubic-bezier(.2, .7, .2, 1) .4s both; }
/* The stage: the browser frame takes the middle 60%; the cards sit behind its edges and the panel over its right edge.
   Its width is also capped by the window's height, so the browser frame fits on screen under the copy. */
.stage-hero__stage { position: relative; width: min(100% - var(--gutter) * 2, 1320px, (100svh - 440px) * 2.35); min-width: min(100% - var(--gutter) * 2, 680px); margin: clamp(24px, 3.5vh, 48px) auto 0; padding: 2% 0 4%; text-align: left; }
.stage-hero__browser { position: relative; z-index: 1; width: 62%; margin: 0 auto; padding: 0 8px 8px; border-radius: 16px; background: rgba(255, 255, 255, .85); border: 1px solid rgba(12, 19, 22, .08); box-shadow: 0 50px 100px -40px rgba(60, 40, 10, .45), 0 2px 6px rgba(12, 19, 22, .06); }
.stage-hero__bar { display: flex; gap: 6px; padding: 11px 6px; }
.stage-hero__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(12, 19, 22, .14); }
.stage-hero__browser .media { border-radius: 10px; }
.stage-hero__placeholder .ui { font-size: 14px; }
.stage-hero__side { position: absolute; z-index: 0; top: 12%; width: 21%; }
.stage-hero__side .media { border-radius: 14px; box-shadow: 0 40px 80px -36px rgba(60, 40, 10, .55); }
/* On load the pieces arrive in turn: the browser frame rises, the cards slide out from behind it, then the panel lifts in. */
.stage-hero__browser { animation: fade-up 1.1s cubic-bezier(.2, .7, .2, 1) .4s both; }
.stage-hero__side--left { animation: stage-from-right 1.2s cubic-bezier(.2, .7, .2, 1) .85s both; }
.stage-hero__side--right { animation: stage-from-left 1.2s cubic-bezier(.2, .7, .2, 1) .95s both; }
.stage-hero__panel { animation: stage-lift 1s cubic-bezier(.2, .7, .2, 1) 1.3s both; }
@keyframes stage-from-right { from { opacity: 0; transform: translateX(45%); } to { opacity: 1; transform: none; } }
@keyframes stage-from-left { from { opacity: 0; transform: translateX(-45%); } to { opacity: 1; transform: none; } }
@keyframes stage-lift { from { opacity: 0; transform: translateY(28px) scale(.96); } to { opacity: 1; transform: none; } }
.stage-hero__side--left { left: 3%; rotate: -1deg; }
.stage-hero__side--right { right: 2%; top: 20%; width: 18%; filter: blur(3px); }
.stage-hero__panel { position: absolute; z-index: 2; right: 9%; top: 14%; width: min(27%, 340px); scale: .78; transform-origin: top right; }
.stage-hero__panel .ui { box-shadow: 0 40px 80px -30px rgba(12, 19, 22, .45); }
/* A cut-out person standing in front of the website, over its bottom edge and behind the floating panel. */
.stage-hero__person { position: absolute; z-index: 1; left: calc(25% + 60px); bottom: 8px; width: 62%; animation: stage-person-in 1.2s cubic-bezier(.2, .7, .2, 1) 1s both; }
.stage-hero__person .media { overflow: visible; border-radius: 0; background: none; }
.stage-hero__person .media img { object-fit: contain; object-position: bottom; }
@keyframes stage-person-in { from { opacity: 0; transform: translateX(-7%); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .stage-hero__person { animation: none; } }
@media (max-width: 900px) {
  .stage-hero__side { display: none; }
  .stage-hero__browser { width: 100%; }
  .stage-hero__stage { padding-bottom: 0; }
  .stage-hero__panel { position: relative; right: auto; top: auto; width: min(86%, 340px); margin: -56px 0 0 auto; scale: 1; }
}
/* Phones: a bigger headline, and the stage a square running to both edges of the screen: the browser runs off
   its right edge, the left card sits bottom left and a shrunken panel bottom right. */
@media (max-width: 640px) {
  .stage-hero h1 { font-size: clamp(38px, 11vw, 48px); line-height: 1.02; letter-spacing: -0.025em; }
  .stage-hero__lede { font-size: 16px; }
  .stage-hero__stage { width: 100%; min-width: 0; aspect-ratio: 1; padding: 0; overflow-x: clip; }
  .stage-hero__browser { position: absolute; top: 7%; left: 7%; width: 112%; }
  .stage-hero__side--left { display: block; top: auto; bottom: 7%; left: 7%; width: 31%; z-index: 2; rotate: -3deg; }
  .stage-hero__panel { position: absolute; top: auto; right: 6%; bottom: 6%; width: 86%; margin: 0; scale: .52; transform-origin: bottom right; }
  .stage-hero__person { left: 12%; width: 54%; }
}
.theme-light .stage-hero__lede { color: var(--muted); }
/* On the dark layout the frame turns dark and the glow is kept low, so the stage still reads. */
body:not(.theme-light) .stage-hero { background: radial-gradient(70% 48% at 50% 64%, color-mix(in srgb, var(--stage-glow) 22%, transparent), transparent 72%), var(--paper); }
body:not(.theme-light) .stage-hero__browser { background: var(--surface-2); border-color: var(--line); }
body:not(.theme-light) .stage-hero__bar i { background: var(--line-strong); }

/* ----- editor demo: an animated glimpse of the editor (snippets/editor-demo.liquid, assets/editor-demo.js) -----
   Laid out on a fixed 1600 x 896 stage, after the real admin, and scaled to fit by --ed-k. */
@font-face { font-family: "EB Garamond"; src: url("/assets/fonts/eb-garamond.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
.ed { --ed-k: .5; position: relative; margin: 0; aspect-ratio: 1600 / 896; border-radius: calc(var(--radius) + 8px); overflow: hidden; background: #1e2124; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9), 0 0 0 1px var(--line); }
.ed__stage { --blue: #3d72ea; position: absolute; left: 0; top: 0; width: 1600px; height: 896px; transform: scale(var(--ed-k)); transform-origin: 0 0; overflow: hidden; font-family: var(--sans); font-size: 14px; color: #e8eaeb; background: linear-gradient(#24282b, #1e2124 120px); user-select: none; }
.ed__stage svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ed__stage *, .ed__stage *::before, .ed__stage *::after { box-sizing: border-box; }
.ed__stage .is-press { scale: .96; }

/* top bar */
.ed__top { position: absolute; inset: 0 0 auto 0; height: 85px; }
.ed__logo { position: absolute; left: 62px; top: 31px; width: 144px; color: #eef0f1; }
.ed__logo .logo__svg { display: block; width: 100%; height: auto; fill: currentColor; stroke: none; }
.ed__logo .logo__mark { fill: currentColor; }
.ed__url { position: absolute; left: 403px; top: 17px; width: 830px; height: 51px; display: flex; align-items: center; gap: 12px; padding: 0 12px 0 15px; border: 1px solid #383d41; border-radius: 9px; background: #1b1e21; font-size: 15px; }
.ed__url > svg { width: 18px; height: 18px; color: #a3a9ad; stroke-width: 1.5; }
.ed__devices { display: flex; gap: 4px; margin-left: auto; }
.ed__devices i { display: grid; place-items: center; width: 34px; height: 33px; border-radius: 5px; color: #c4c8cb; transition: background .3s, color .3s, scale .12s; }
.ed__devices i svg { width: 20px; height: 20px; stroke-width: 1.5; }
.ed__devices i.is-on { background: #474c50; color: #fff; }
.ed__actions { position: absolute; right: 86px; top: 22px; display: flex; align-items: center; gap: 8px; opacity: 0; transform: translateY(-6px); transition: opacity .35s, transform .35s; }
.ed__actions.is-on { opacity: 1; transform: none; }
.ed__discard { padding: 0 12px; line-height: 40px; font-size: 13.5px; color: #cfd3d6; }
.ed__save { display: grid; padding: 0 15px; height: 40px; align-items: center; border-radius: 6px; background: var(--blue); color: #fff; font-size: 13.5px; transition: background .2s, scale .12s; }
.ed__save b { grid-area: 1 / 1; font-weight: 600; text-align: center; transition: opacity .2s; }
.ed__save b + b { opacity: 0; }
.ed__save.is-busy { background: #2f5cc0; }
.ed__save.is-busy b:first-child { opacity: 0; }
.ed__save.is-busy b + b { opacity: 1; }
.ed__avatar { position: absolute; right: 26px; top: 24px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #c665ae; color: #fff; font-weight: 600; font-size: 16px; }
.ed__avatar::after { content: ""; position: absolute; right: -2px; bottom: 0; width: 9px; height: 9px; border-radius: 50%; background: #34c06a; border: 2px solid #22262a; }

/* left rail */
.ed__rail { position: absolute; left: 0; top: 112px; width: 62px; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.ed__rail span { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11px; color: #9aa0a4; }
.ed__rail svg { width: 20px; height: 20px; stroke-width: 1.5; }
.ed__rail .is-on { color: #fff; }

/* sections panel */
.ed__panel { position: absolute; left: 62px; top: 85px; bottom: 0; width: 332px; border-radius: 6px 6px 0 0; background: #24282b; }
.ed__tabs { display: flex; gap: 4px; padding: 4px; border-radius: 6px 6px 0 0; background: #2b2f32; }
.ed__tabs span { flex: 1; padding: 11px 0; text-align: center; font-size: 14px; color: #9ca2a6; border-radius: 4px; }
.ed__tabs .is-on { background: #4a4f53; color: #f0f2f3; box-shadow: inset 0 0 0 1px #5d6367; }
.ed__panel-head { margin-top: 10px; padding: 16px 17px; background: #2b2f32; font-size: 13px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.ed__list { position: relative; margin: 25px 17px 0; }
.ed__row { position: absolute; left: 0; top: 0; width: 298px; height: 40px; display: flex; align-items: center; border-radius: 4px; background: #3a3e42; box-shadow: inset 0 0 0 1px #4a4f53, 0 1px 2px rgba(0, 0, 0, .3); font-size: 14px; transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .35s, background .2s, box-shadow .2s, color .2s; will-change: transform; }
.ed__row--child { left: 39px; width: 259px; }
.ed__row > span { flex: 1; white-space: nowrap; overflow: hidden; }
.ed__grip { position: relative; align-self: stretch; flex: none; width: 24px; margin-right: 14px; border-radius: 4px 0 0 4px; background: #45494d; }
.ed__grip::before { content: ""; position: absolute; left: 8px; top: 13px; width: 8px; height: 14px; background: radial-gradient(circle, #a2a8ac 1.2px, transparent 1.5px) 0 0 / 5px 5px; }
.ed__row--child .ed__grip { margin-right: 12px; }
.ed__chev { flex: none; width: 7px; height: 7px; margin: 0 18px 0 4px; border: solid #b0b6ba; border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); transition: transform .3s; }
.ed__chev--none { visibility: hidden; }
.ed__trash { flex: none; width: 17px; height: 17px; margin-right: 12px; opacity: 0; transition: opacity .2s; }
.ed__row.is-hover { box-shadow: inset 0 0 0 1px var(--blue); }
.ed__row.is-hover .ed__trash, .ed__row.is-selected .ed__trash { opacity: .85; }
.ed__row.is-open .ed__chev { transform: rotate(135deg); }
.ed__row.is-selected { background: var(--blue); box-shadow: inset 0 0 0 1px #5a8af2; color: #fff; }
.ed__row.is-selected .ed__grip { background: #3464cf; }
.ed__row.is-selected .ed__chev { border-color: #fff; }
.ed__row.is-ghost { opacity: .35; }
.ed__row.is-landed { animation: ed-land .6s ease-out; }
@keyframes ed-land { from { opacity: .2; } to { opacity: 1; } }
.ed__row--child, .ed__add--child, .ed__tree { opacity: 0; pointer-events: none; }
.ed__list.is-tree .ed__row--child, .ed__list.is-tree .ed__add--child, .ed__list.is-tree .ed__tree { opacity: 1; }
.ed__tree { position: absolute; left: 24px; top: 0; width: 1px; height: 88px; background: #474c50; transition: opacity .35s, transform .45s; }
.ed__add { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: #4f8bff; transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .35s; }
.ed__add--child { left: 39px; font-size: 14px; }
.ed__add svg { width: 18px; height: 18px; }
.ed__pill { position: absolute; z-index: 6; left: 0; top: 0; padding: 7px 14px; border-radius: 99px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .7); opacity: 0; pointer-events: none; }
.ed__drop { position: absolute; left: 0; width: 298px; height: 2px; border-radius: 2px; background: var(--blue); opacity: 0; transition: opacity .2s, transform .25s; }

/* live preview */
.ed__preview { position: absolute; left: 403px; right: 23px; top: 85px; bottom: 0; overflow: hidden; border-radius: 4px 4px 0 0; background: #2a2e31; transition: right .6s cubic-bezier(.65, 0, .35, 1), background .8s; }
.ed.is-fields .ed__preview { right: 364px; }
/* The viewport's own colour shows as a hairline where the scaled stage lands between pixels, so its left 2px are dark:
   a cream line there reads as an untinted edge down the banner, a dark one disappears against the panel beside it. */
.ed__viewport { position: absolute; top: 0; bottom: 0; left: 50%; width: 100%; overflow: hidden; container-type: inline-size; transform: translateX(-50%); background: linear-gradient(90deg, #141c18 2px, #f3eee5 2px); transition: width .8s cubic-bezier(.65, 0, .35, 1), top .8s, bottom .8s, border-radius .8s; }
.ed__preview.is-phone { background: #dde2e5; }
.ed__preview.is-phone .ed__viewport { width: 390px; top: 41px; border-radius: 5px 5px 0 0; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .35); }
.ed__scrollbar { position: absolute; right: 3px; top: 6px; width: 6px; height: 56px; border-radius: 6px; background: rgba(255, 255, 255, .35); }
.ed__preview.is-phone .ed__scrollbar { opacity: 0; }
.sw { position: absolute; left: 0; right: 0; top: 0; display: flex; flex-direction: column; color: #18201c; transition: transform 1.1s cubic-bezier(.65, 0, .35, 1); }
.sw section { position: relative; flex: none; }
.sw section::after { content: ""; position: absolute; z-index: 4; inset: 0; box-shadow: inset 0 0 0 2px var(--blue); opacity: 0; transition: opacity .25s; pointer-events: none; }
.sw section.is-outline::after { opacity: 1; }
.sw section.is-flash::after { animation: ed-flash 1.8s ease-out forwards; }
@keyframes ed-flash { 0%, 55% { opacity: 1; } 100% { opacity: 0; } }
.sw-hero { order: 0; height: 811px; overflow: hidden; background: #141c18; color: #f3eee5; }
.sw-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transition: opacity .9s; }
.sw-hero__video--b { opacity: 0; }
.sw-hero.is-b .sw-hero__video--b { opacity: 1; }
/* Stillwater's own hero scrim (minamo-demo-stillwater, .hero::after), over either video. */
.sw-hero::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, rgba(14, 20, 17, .5) 0%, rgba(14, 20, 17, 0) 24%), linear-gradient(90deg, rgba(14, 20, 17, .5) 0%, rgba(14, 20, 17, .2) 45%, rgba(14, 20, 17, 0) 70%), linear-gradient(0deg, rgba(14, 20, 17, .85) 0%, rgba(14, 20, 17, .55) 40%, rgba(14, 20, 17, .15) 68%, rgba(14, 20, 17, 0) 85%); }
.sw-nav { position: absolute; z-index: 2; left: 45px; right: 45px; top: 30px; height: 82px; display: flex; align-items: center; justify-content: space-between; padding: 0 47px; border-radius: 4px; background: #172723; font-size: 17px; }
.sw-nav__links { display: flex; gap: 38px; flex: 1; }
.sw-nav__links--end { justify-content: flex-end; }
.sw-nav__links i { font-style: normal; }
.sw-mark { display: flex; align-items: center; gap: 12px; font-family: "EB Garamond", Georgia, serif; font-size: 37px; letter-spacing: -.01em; }
.sw-mark__svg { width: 32px; height: 25px; fill: currentColor !important; stroke: none !important; }
.sw-nav__burger { display: none; flex-direction: column; gap: 7px; }
.sw-nav__burger i { display: block; width: 24px; height: 1.5px; background: currentColor; }
.sw-hero__copy { position: absolute; z-index: 2; left: 94px; bottom: 70px; width: 640px; }
.sw-hero__h1 { display: block; font-family: "EB Garamond", Georgia, serif; font-size: 66px; line-height: 1.03; letter-spacing: -.012em; }
.sw-hero__sub { display: block; max-width: 530px; margin-top: 24px; font-size: 18.5px; line-height: 1.6; color: rgba(243, 238, 229, .9); }
.sw-hero__actions { display: flex; align-items: center; gap: 34px; margin-top: 40px; font-size: 13.5px; letter-spacing: .2em; text-transform: uppercase; }
.sw-hero__actions b { position: relative; padding: 18px 26px; border-radius: 99px; background: #f3eee5; color: #18201c; font-weight: 500; }
.sw-hero__actions b::after { content: ""; position: absolute; inset: -4px; border-radius: 99px; box-shadow: 0 0 0 2px var(--blue); opacity: 0; transition: opacity .25s; }
.sw-hero__actions b.is-outline::after { opacity: 1; }
.sw-hero__actions u { display: flex; align-items: center; gap: 14px; text-decoration: none; padding-bottom: 9px; border-bottom: 1px solid rgba(243, 238, 229, .6); }
.sw-hero__actions u svg { width: 30px; height: 10px; stroke-width: 1.2; }
.sw-cue { position: absolute; z-index: 2; right: 52px; bottom: 74px; writing-mode: vertical-rl; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: rgba(243, 238, 229, .8); }
.sw-statement { order: 1; padding: 110px 120px; text-align: center; background: #f3eee5; }
.sw-statement__p { display: block; max-width: 760px; margin: 0 auto; font-family: "EB Garamond", Georgia, serif; font-size: 40px; line-height: 1.2; }
.sw-strip { order: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 0 40px 80px; background: #f3eee5; }
.sw-strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px; }
.sw-invite { order: 3; padding: 100px 60px 108px; text-align: center; background: #172723; color: #f3eee5; }
.sw-eyebrow { display: block; margin-bottom: 22px; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: #dc9a78; }
.sw-invite__h { display: block; font-family: "EB Garamond", Georgia, serif; font-size: 60px; line-height: 1.05; }
.sw-btn { display: inline-block; margin-top: 34px; padding: 17px 24px; border-radius: 99px; background: #f3eee5; color: #18201c; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.sw.is-moved .sw-invite { order: 1; }
.sw.is-moved .sw-statement { order: 2; }
.sw.is-moved .sw-strip { order: 3; }
/* The site's own breakpoints, read from the preview's width. */
@container (max-width: 1000px) {
  .sw-nav { left: 40px; right: 40px; top: 24px; height: 76px; padding: 0 38px; }
  .sw-nav__links { display: none; }
  .sw-nav__burger { display: flex; }
  .sw-hero__copy { left: 40px; }
  .sw-cue { right: 44px; }
}
@container (max-width: 500px) {
  /* Stillwater's stacked phone layout: the video on top, the words beneath it on dark. */
  .sw-hero { height: 1060px; }
  .sw-hero__video { bottom: auto; height: 420px; }
  .sw-hero::before { background: linear-gradient(180deg, rgba(20, 28, 24, .3), transparent 25%, transparent 30%, #141c18 400px); }
  .sw-hero.is-b::before { background: linear-gradient(180deg, rgba(20, 28, 24, .35), transparent 25%, transparent 30%, #141c18 400px); }
  .sw-nav { left: 21px; right: 21px; top: 12px; height: 70px; padding: 0 22px; }
  .sw-mark { font-size: 30px; }
  .sw-hero__copy { top: 420px; bottom: auto; left: 21px; width: 345px; }
  .sw-hero__h1 { font-size: 40px; }
  .sw-hero__sub { margin-top: 30px; font-size: 18.5px; }
  .sw-hero__actions { flex-direction: column; align-items: flex-start; gap: 36px; margin-top: 40px; }
  .sw-cue { display: none; }
  .sw-statement { padding: 70px 26px; }
  .sw-statement__p { font-size: 28px; }
  .sw-invite { padding: 70px 24px; }
  .sw-invite__h { font-size: 38px; }
}

/* fields panel, sliding in from the right */
.ed__fields { position: absolute; top: 85px; right: 0; bottom: 0; width: 350px; background: #24282b; transform: translateX(105%); transition: transform .6s cubic-bezier(.65, 0, .35, 1); }
.ed.is-fields .ed__fields { transform: none; }
.ed__fields-view { position: absolute; inset: 0; opacity: 0; transform: translateX(16px); transition: opacity .35s, transform .35s; pointer-events: none; }
.ed__fields-view.is-on { opacity: 1; transform: none; }
.ed__fields-head { display: flex; align-items: center; justify-content: space-between; height: 50px; padding: 0 17px; background: #2b2f32; font-size: 13px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.ed__close { position: relative; width: 14px; height: 14px; transition: scale .12s; }
.ed__close::before, .ed__close::after { content: ""; position: absolute; left: 6px; top: -2px; width: 1.5px; height: 18px; background: #b8bec2; transform: rotate(45deg); }
.ed__close::after { transform: rotate(-45deg); }
.ed__fields-body { display: flex; flex-direction: column; padding: 4px 17px 0; }
.ed__label { margin: 18px 0 8px; font-size: 13px; color: #9ba1a5; }
.ed__input { position: relative; display: block; min-height: 36px; padding: 9px 12px; border: 1px solid #3c4145; border-radius: 3px; background: #1c1f22; font-size: 13.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.ed__input--area { height: 112px; white-space: normal; line-height: 1.45; }
.ed__input--path { margin-top: -1px; border-radius: 0 0 3px 3px; text-overflow: clip; }
.ed__input--select i { position: absolute; right: 13px; top: 12px; width: 7px; height: 7px; border: solid #b0b6ba; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.ed__input.is-focus { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.ed__input.is-select > span { background: rgba(61, 114, 234, .55); }
.ed__caret { display: none; width: 1.5px; height: 16px; margin-left: 1px; vertical-align: -3px; background: #fff; animation: caret 1s steps(1) infinite; }
.ed__input.is-focus:not(.is-select) .ed__caret { display: inline-block; }
.ed__media { position: relative; display: block; height: 108px; overflow: hidden; border: 1px solid #3c4145; border-radius: 3px 3px 0 0; background: #1c1f22; }
.ed__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s; }
.ed__media--video img + img { opacity: 0; }
.ed__media--video.is-b img + img { opacity: 1; }
.ed__focal { position: absolute; left: 60%; top: 45%; width: 13px; height: 13px; margin: -6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 2px #fff; }
.ed__play { position: absolute; left: 14px; bottom: 12px; border: solid transparent; border-width: 6px 0 6px 10px; border-left-color: #fff; }
.ed__swap { display: grid; }
.ed__swap b { grid-area: 1 / 1; font-weight: 400; transition: opacity .4s; }
.ed__swap b + b, .ed__swap.is-b b:first-child { opacity: 0; }
.ed__swap.is-b b + b { opacity: 1; }
.ed__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.ed__pair span { padding: 10px 0; text-align: center; border: 1px solid #3c4145; border-radius: 3px; background: #2a2e31; font-size: 13.5px; transition: border-color .2s, scale .12s; }
.ed__pair span.is-hover { border-color: var(--blue); }

/* media picker */
.ed__modal { position: absolute; z-index: 7; inset: 0; background: rgba(12, 14, 16, .55); opacity: 0; pointer-events: none; transition: opacity .3s; }
.ed__modal.is-on { opacity: 1; }
.ed__dialog { position: absolute; left: 303px; top: 100px; width: 993px; height: 744px; padding: 26px; border-radius: 6px; background: #22262a; box-shadow: 0 0 0 1px #34393d, 0 40px 80px -20px rgba(0, 0, 0, .8); transform: translateY(12px); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.ed__modal.is-on .ed__dialog { transform: none; }
.ed__dialog-title { display: block; font-size: 19px; font-weight: 600; }
.ed__dialog-search { display: flex; gap: 9px; margin-top: 20px; padding: 16px; background: #2b2f32; }
.ed__dialog-search span { flex: 1; padding: 11px 18px; border: 1px solid #3c4145; border-radius: 3px; background: #1c1f22; color: #9ba1a5; }
.ed__dialog-search b { padding: 11px 18px; border: 1px solid #3c4145; border-radius: 3px; background: #2a2e31; font-weight: 500; }
.ed__dialog-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 19px; margin-top: 18px; }
.ed__tile { min-width: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.ed__tile img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 2px; transition: box-shadow .2s; }
.ed__tile em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #c9cdd0; }
.ed__tile.is-hover img { box-shadow: 0 0 0 2px #6f7579; }
.ed__tile.is-picked img { box-shadow: 0 0 0 3px var(--blue); }
.ed__dialog-foot { position: absolute; right: 26px; bottom: 22px; display: flex; gap: 10px; }
.ed__dialog-foot span { padding: 12px 20px; border: 1px solid #44494d; border-radius: 3px; background: #2a2e31; font-size: 14px; transition: background .2s, scale .12s; }
.ed__dialog-foot .ed__select { border-color: transparent; background: #3a3e42; color: #8d9397; }
.ed__dialog-foot .ed__select.is-ready { background: var(--blue); color: #fff; }

/* toast, cursor and the veil that fades between loops */
.ed__toast { position: absolute; z-index: 8; left: 990px; bottom: 36px; display: flex; align-items: center; gap: 14px; padding: 14px 22px 14px 16px; border-radius: 8px; background: #f6f7f8; color: #1d2023; font-size: 14px; box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .7); opacity: 0; transform: translate(-50%, 16px); transition: opacity .35s, transform .35s cubic-bezier(.2, .8, .2, 1); }
.ed__toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.ed__toast i { position: relative; width: 26px; height: 26px; border-radius: 50%; background: #2fb463; }
.ed__toast i::after { content: ""; position: absolute; left: 9px; top: 6px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.2px 2.2px 0; transform: rotate(45deg); }
.ed__toast b { display: block; font-weight: 600; }
.ed__toast span { color: #4c5358; }
.ed__cursor { position: absolute; z-index: 9; left: 0; top: 0; width: 28px; height: 28px; fill: #fff !important; stroke: #111 !important; stroke-width: 1.3 !important; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .45)); opacity: 0; transition: opacity .4s, scale .12s; }
.ed.is-playing .ed__cursor { opacity: 1; }
.ed__cursor.is-down { scale: .86; }
.ed__veil { position: absolute; z-index: 10; inset: 0; background: #1e2124; opacity: 0; pointer-events: none; transition: opacity .6s; }
.ed__veil.is-on { opacity: 1; }
.ed.is-resetting .ed__stage *:not(.ed__veil) { transition: none !important; }
/* Without JavaScript the stage cannot be scaled, so the showcase shows its still image instead. */
.no-js .ed { display: none; }
html:not(.no-js) .showcase__fallback { display: none; }

/* ----- live edit: a rendered hero with its Fields panel over it -----
   The hero is real markup (photograph, heading, button) the height of the code sample beside it; the panel is the admin's
   own Fields card over its right side. site.js types in the Heading field and the hero follows. */
.code--compact.code--full .code__body { max-height: none; -webkit-mask-image: none; mask-image: none; }
.product--live .product__inner { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); grid-template-areas: "copy copy" "code stage"; column-gap: clamp(28px, 3vw, 44px); align-items: stretch; }
.product--live .product__copy { max-width: 560px; }
.product__stage--live { display: block; min-height: 0; padding: 0; border-radius: 0; background: none; }
.ui-live { position: relative; width: 100%; height: 100%; }
.ui-live__hero { position: relative; height: 100%; min-height: clamp(380px, 38vw, 520px); border-radius: calc(var(--radius) + 6px); overflow: hidden; background: #0f1a17; }
.ui-live__hero .media { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; background: none; }
/* The wide frame shows the upper part of the photograph, whatever its focal point, so the subject sits below the heading
   and clear of the panel. The slow zoom on scrolling into view is the hero's own "Image reveal" setting, as the panel shows it. */
.ui-live__hero .media img { object-position: 50% 8% !important; }
/* site.js adds is-inview when the mock-up scrolls into view and takes it off when it leaves, so the zoom plays each visit. */
.ui-live.is-inview .ui-live__hero .media img { transform: scale(1.12); transition: transform 9s cubic-bezier(.2, .6, .3, 1); }
/* The tint is Stillwater's own hero scrim (minamo-demo-stillwater, .hero::after), dark from the top, the left and the bottom,
   with the bottom fade lightened: here the copy sits at the top, so the lower half has nothing to carry. */
.ui-live__hero .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 20, 17, .5) 0%, rgba(14, 20, 17, 0) 24%), linear-gradient(90deg, rgba(14, 20, 17, .5) 0%, rgba(14, 20, 17, .2) 45%, rgba(14, 20, 17, 0) 70%), linear-gradient(0deg, rgba(14, 20, 17, .5) 0%, rgba(14, 20, 17, .28) 40%, rgba(14, 20, 17, .08) 68%, rgba(14, 20, 17, 0) 85%); }
.ui-live__tag { position: absolute; z-index: 1; left: 0; top: 0; padding: 4px 10px; border-radius: 0 0 5px 0; background: #3b6ef6; color: #fff; font: 500 11px/1.4 var(--mono); font-style: normal; }
.ui-live__copy { position: absolute; z-index: 1; left: 0; right: 0; top: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: clamp(40px, 9%, 60px) 44% 0 clamp(22px, 5%, 40px); }
.ui-live__copy b { min-height: 2.2em; font: 300 clamp(24px, 2.5vw, 36px)/1.1 var(--serif); letter-spacing: -.01em; color: #f6f2ea; text-shadow: 0 1px 18px rgba(8, 16, 14, .45); }
.ui-live__copy u { padding: 9px 17px; border-radius: 99px; background: #f3efe6; color: #18261f; font: 500 13px/1 var(--sans); text-decoration: none; }
.ui-live__panel.ui { position: absolute; z-index: 2; right: clamp(16px, 5%, 52px); top: 50%; transform: translateY(-50%); width: 32%; min-width: 220px; max-width: 300px; font-size: 13px; box-shadow: 0 34px 60px -18px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .06); }
.ui-live__panel .ui__focal { border-color: #3b6ef6; box-shadow: 0 0 0 1px rgba(255, 255, 255, .85), 0 0 0 6px rgba(59, 110, 246, .35); }
.ui__select { padding-right: 2.2em; }
.ui__select::after { content: ""; position: absolute; right: .9em; top: 50%; width: .42em; height: .42em; margin-top: -.34em; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.ui-live__panel .ui__input { white-space: normal; }
.ui-live__panel .ui__image { height: 88px; }
.ui-live__panel .ui__image b { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ui-live__close { color: var(--muted); font-size: 18px; line-height: .8; }
@media (max-width: 960px) {
  .product--live .product__inner { grid-template-columns: 1fr; grid-template-areas: "copy" "stage" "code"; }
  .ui-live__hero { height: auto; aspect-ratio: 4 / 3; min-height: 440px; }
}
@media (max-width: 560px) {
  .ui-live__hero { aspect-ratio: 4 / 5; min-height: 0; }
  .ui-live__copy { gap: 12px; padding-top: 34px; padding-right: 20%; }
  /* Upright, the frame shows a narrow slice of the photograph: centre it on the subject instead of the wide layout's focal point. */
  .ui-live__hero .media img { object-position: 38% 30% !important; }
  .ui-live__panel.ui { position: relative; right: auto; top: auto; transform: none; width: auto; min-width: 0; max-width: none; margin: -96px 14px 0; }
}

/* ----- laptop with floating admin panels -----
   The photograph is the bare laptop; the two panels are real markup on a stage the photograph's own size (1800 x 1500),
   which site.js scales to the picture (--lap-k). The panels are laid out flat on one shared plane, set at the photograph's angle by a matrix3d
   solved from the Hero Banner panel's four corners in the original render. They fade in from the right, sliding along that plane, when the section scrolls into view (is-armed and is-inview, both set by site.js). */
.lap { grid-area: stage; align-self: center; position: relative; overflow: hidden; border-radius: calc(var(--radius) + 6px); }
.lap > .media { border-radius: 0; }
.product--bleed .lap { --bleed: calc((100vw - min(100vw, var(--container) + var(--gutter) * 2)) / 2 + var(--gutter)); margin-right: calc(var(--bleed) * -1); border-radius: calc(var(--radius) + 6px) 0 0 calc(var(--radius) + 6px); }
.lap__stage { position: absolute; left: 0; top: 0; width: 1800px; height: 1500px; transform: scale(var(--lap-k, 0)); transform-origin: 0 0; pointer-events: none; }
/* Both panels lie on one plane, side by side with their tops and bottoms level, so a single matrix3d tilts them together. */
.lap__plane { position: absolute; left: 0; top: 0; width: 576px; height: 704px; transform-origin: 0 0; transform: matrix3d(0.6027362, -0.2961775, 0, -0.0004286, -0.1704792, 0.9772083, 0, -0.0000153, 0, 0, 1, 0, 518.9496741, 343.823401, 0, 1); }
.lap__panel.ui { position: absolute; top: 0; height: 704px; border-radius: 3px; font-size: 14px; box-shadow: -30px 40px 70px -20px rgba(0, 0, 0, .75); transition: opacity .9s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.lap__panel--sections { left: 0; width: 260px; }
.lap__panel--fields { left: 272px; width: 304px; transition-delay: .22s; }
.lap.is-armed:not(.is-inview) .lap__panel { opacity: 0; transform: translateX(150px); transition: none; }
.lap__panel .ui__head { padding: 17px 18px; }
.lap__panel .ui__body { padding: 16px 18px; }
.lap__panel .ui__body--list { gap: 6px; padding-top: 20px; }
.lap__row { gap: 0; flex: none; height: 34px; font-size: 12.5px; padding: 0 12px 0 0; border-radius: 4px; overflow: hidden; white-space: nowrap; }
.lap__row.ui__row--child { margin-left: 24px; border: 0; background: linear-gradient(0deg, #34393c, #3e4346); }
.lap__row .icon { margin-left: auto; color: #fff; font-size: 16px; }
.lap__row.is-selected { background: #3d64d8; color: #fff; }
.lap__grip { position: relative; align-self: stretch; flex: none; width: 22px; margin-right: 12px; background: rgba(255, 255, 255, .07); }
.lap__grip::before { content: ""; position: absolute; left: 7px; top: 10px; width: 8px; height: 14px; background: radial-gradient(circle, #a2a8ac 1.2px, transparent 1.5px) 0 0 / 5px 5px; }
.lap__chev { flex: none; width: 7px; height: 7px; margin: 0 12px 0 2px; border: solid #b0b6ba; border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); }
.lap__chev--open { transform: rotate(135deg); border-color: #fff; }
.lap__chev--none { visibility: hidden; }
.lap__add { padding: 5px 2px; }
.lap__add--child { margin-left: 24px; }
.lap__close { color: var(--ink); font-size: 26px; font-weight: 300; line-height: .6; }
.lap__panel--fields .ui__label { margin-top: 20px; font-size: 13.5px; }
.lap__panel--fields .ui__label:first-child { margin-top: 2px; }
.lap__panel--fields .ui__input { padding: 11px 11px; font-size: 14px; white-space: normal; }
.lap__textarea { min-height: 124px; line-height: 1.55; }
.lap__thumb { display: block; }
.lap__thumb .media { border-radius: 3px 3px 0 0; background: none; }
.lap__panel--fields .lap__path { padding: 8px 9px; border-top: 0; border-radius: 0 0 3px 3px; font-size: 11.5px; white-space: nowrap; text-overflow: clip; }
.lap__buttons { display: grid; grid-template-columns: 1fr 1.15fr; gap: 8px; margin-top: 12px; }
.lap__buttons b { padding: 15px 0; border: 1px solid var(--line); border-radius: 3px; background: var(--paper-2); font-weight: 400; font-size: 14px; text-align: center; }
/* On desktop the picture sits further left, over the column gap: its own left side is empty black, so the laptop reads as
   closer to the text. The copy stays above it. */
@media (min-width: 961px) {
  .lap { left: calc(-1 * clamp(70px, 8.5vw, 150px)); }
  .product__copy { position: relative; z-index: 1; }
}
@media (max-width: 960px) { .product--bleed .lap { margin-right: 0; border-radius: calc(var(--radius) + 6px); } }
@media (prefers-reduced-motion: reduce) { .lap__panel.ui { transition: none; } }
