/* Caelaria: Standard and Premium websites for businesses. Tokens, type, header, the landing page (hero and its reel of
   sites, offer, software, management, FAQ), contact form, footer and the plain pages (privacy, 404).
   sales-agent.css (the closing section and the chat) follows this file.

   Design (docs/design/APPLE-BRIEF.md and the HIG skills): one idea per screen, generous space, a strict type scale.
   One family (Inter, self-hosted, weights 400 and 600), flat canvases (#000 and #1d1d1f), ink #f5f5f7, one accent
   (violet, to match the aurora and caelaria.ai: fill #7c4ddb, text links #b38cf5), 20 px cards, pill buttons, one easing curve. Words never sit on a
   photograph: every picture has its own space. No third-party requests. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-opsz-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --ink: #0c0b16;
  --c-bg: #0c0b16; /* the night sky's base: the same ink as caelaria.ai */
  --c-surface: #1d1d1f; /* cards */
  --c-panel: rgb(23 22 32 / 0.94); /* quiet surfaces above the moving sky */
  --c-panel-line: rgb(
    255 255 255 / 0.12
  ); /* their edge, so a see-through box still reads as one */
  --c-surface-2: #2c2c2e; /* controls on a card */
  --c-line: rgb(255 255 255 / 0.12);
  --c-line-strong: rgb(255 255 255 / 0.24);
  --c-ink: #f5f5f7;
  --c-ink-dim: #d2d2d7; /* body copy on dark */
  --c-ink-mute: #a1a1a6; /* secondary: 6.6:1 on #1d1d1f */
  --c-ink-faint: #86868b; /* fine print on black only: 5.8:1 */

  --c-accent: #7c4ddb; /* fill behind white: 5.3:1 */
  --c-accent-hi: #7446d4;
  --c-accent-lo: #6a3dc6;
  --c-link: #b38cf5; /* text on dark: 7.3:1 on the ink */
  --c-on-accent: #fff;
  --c-focus: #b38cf5;
  --c-error: #ff6b61;

  --font:
    "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    Helvetica, Arial, sans-serif;

  /* spacing: 8, 16, 24, 32, 56, 96, 144 */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 56px;
  --s6: 96px;
  --s7: 144px;
  --pad-x: clamp(1.25rem, 4.2vw, 4rem);
  --gutter: clamp(1.25rem, 5vw, 5.625rem);
  --col: 71.25rem; /* 1140 px content column */
  --sec-y: clamp(4rem, 7.5vw, 7rem);
  --tap: 44px;

  --r-card: 24px;
  --r-big: 28px;
  --r-ctl: 12px;
  --r-pill: 980px;

  --ease: cubic-bezier(0.4, 0, 0.6, 1);
  --t-fast: 160ms;
  --t-ui: 240ms;
  --t-panel: 320ms;

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--c-bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: var(--s2);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
/* The night sky: a fixed layer behind everything, the aurora and stars (aurora.js) on one canvas. It sits
   below the page's own backgrounds, so body stays transparent and html carries the ink. */
.space {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.space__aurora {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* Without WebGL, or without the script: a still glow in the shape of the arch (bright at the upper sides, a
   wash along the top) instead of the aurora. */
.space--flat,
html:not(.js) .space {
  background:
    radial-gradient(55% 48% at 6% 38%, rgb(152 98 232 / 0.4), transparent 70%),
    radial-gradient(
      55% 48% at 94% 38%,
      rgb(226 72 156 / 0.26),
      transparent 70%
    ),
    linear-gradient(rgb(152 98 232 / 0.2), transparent 45%);
}
.space--flat .space__aurora,
html:not(.js) .space__aurora {
  display: none;
}

body {
  margin: 0;
  background: transparent;
  color: var(--c-ink);
  font-family: var(--font);
  font-size: 1.0625rem; /* 17 */
  line-height: 1.4706; /* 25 */
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
}
p,
li,
dd,
figcaption {
  text-wrap: pretty;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
img {
  max-width: 100%;
}
a {
  color: var(--c-link);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 2px;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
[hidden] {
  display: none !important;
}
.skip {
  position: absolute;
  left: var(--s2);
  top: -100px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--c-accent);
  color: #fff;
  border-radius: var(--r-pill);
  text-decoration: none;
}
.skip:focus {
  top: calc(var(--safe-t) + 4px);
}
.t-narrow {
  display: none;
}
/* up to 499 px the header says "AI", not "AI automation": with the full label the four links overrun the edge */
@media (max-width: 499px) {
  .t-wide {
    display: none;
  }
  .t-narrow {
    display: inline;
  }
}

/* ---- header: the wordmark, then Pricing, AI automation and Contact ---- */
/* The top bar matches the main site's (public/cinema.css .brand): the wordmark on the left and one quiet
   glass pill on the right, on the same gutter and top offset. Nothing sits behind it: the aurora runs to
   the top edge, and the pill keeps its own glass. The four links are the pill's content. */
.bar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding: calc(var(--safe-t) + 48px) var(--gutter) 0;
  color: var(--c-ink);
  pointer-events: none;
}
.bar::before {
  content: none;
}
.bar__brand {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--c-ink);
  text-decoration: none;
}
.bar__wordmark {
  display: block;
  width: auto;
  height: 19px;
  overflow: visible;
}
/* the crescent-and-orbit mark (caelaria.ai's icon) stands in for the wordmark on the narrowest phones */
.bar__brand::before {
  content: "";
  display: none;
  width: 24px;
  height: 24px;
  background: url("/img/caelaria-favicon-96.png") center / contain no-repeat;
}
/* Original frosted navigation pill. The hit targets extend beyond its compact visual height. */
.bar__nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 36px;
  padding: 0 6px;
  border: 1px solid rgb(255 255 255 / 0.13);
  border-radius: var(--r-pill);
  background: rgb(12 11 22 / 0.4);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.bar__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: var(--tap);
  min-height: var(--tap);
  padding: 0 11px;
  border-radius: var(--r-pill);
  color: #fff;
  font-size: 0.875rem;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.bar__link::before {
  position: absolute;
  content: "";
  inset: 8px 0;
  border-radius: inherit;
  pointer-events: none;
  transition: background-color var(--t-fast) var(--ease);
}
.bar__link:focus-visible {
  outline: 2px solid rgb(179 140 245 / 0.7);
  outline-offset: 2px;
}
@media (hover: hover) {
  .bar__link:hover::before {
    background: rgb(255 255 255 / 0.08);
  }
}

/* phones: the wordmark and the pill share the gutter; the wordmark gives way first */
@media (max-width: 680px) {
  .bar {
    padding-top: calc(var(--safe-t) + 32px);
    gap: 10px;
  }
  .bar__wordmark {
    height: 12px;
  }
  .bar__nav {
    height: 34px;
    padding: 0 4px;
  }
  .bar__link {
    padding: 0 7px;
    font-size: 0.8125rem;
  }
}
@media (max-width: 499px) {
  .bar__wordmark {
    height: 10px;
  }
  .bar__link {
    padding: 0 6px;
    font-size: 0.75rem;
  }
}
/* the narrowest phones (320 to 374 px): the mark instead of the wordmark, so all four links keep clear of the edge */
@media (max-width: 374px) {
  .bar__brand {
    justify-content: center;
    min-width: var(--tap);
    margin: 0 -10px;
  }
  .bar__brand::before {
    display: block;
  }
  .bar__wordmark {
    display: none;
  }
  .bar__link {
    padding: 0 5px;
    font-size: 0.6875rem;
  }
}

/* ---- buttons: a blue pill, a quiet outlined pill, a text link with a chevron ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: var(--r-pill);
  font-family: var(--font);
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    background-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
}
.btn--primary {
  background: var(--c-accent);
  color: var(--c-on-accent);
}
.btn--primary:active {
  background: var(--c-accent-lo);
}
.btn--ghost {
  background: transparent;
  color: var(--c-link);
  box-shadow: inset 0 0 0 1px var(--c-link);
}
.btn--ghost:active {
  background: rgb(179 140 245 / 0.12);
}
.btn:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 3px;
}
@media (hover: hover) {
  .btn--primary:hover {
    background: var(--c-accent-hi);
  }
  .btn--ghost:hover {
    background: var(--c-link);
    color: #000;
  }
}
.link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: var(--tap);
  padding: 0;
  background: none;
  border: 0;
  color: var(--c-link);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
}

.link--ext {
  display: inline-block; /* wraps like text, the arrow stays on the last word */
  padding: 12px 0;
  line-height: 1.2;
}

@media (hover: hover) {
  .link:hover {
    text-decoration: underline;
  }
}

/* ---- shared section type: eyebrow 17/600 mute, title 56/60 (40 on phones), lede 21/29 ---- */
.sec {
  padding: var(--sec-y) var(--gutter);
}
.sec__in {
  max-width: var(--col);
  margin: 0 auto;
}
.sec__head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 4.5vw, 4rem);
}
.sec__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--c-ink-mute);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.08em;
}
.sec__title {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.sec__title:focus {
  outline: none;
}
.sec__lede {
  margin: var(--s3) 0 0;
  color: var(--c-ink-mute);
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  line-height: 1.4;
  letter-spacing: -0.012em;
}
.sec__head--center .sec__lede {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}
.fine {
  max-width: 44rem;
  margin: var(--s4) 0 0;
  color: var(--c-ink-faint);
  font-size: 0.875rem;
  line-height: 1.45;
}
.fine--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---- 1. hero: words centred on top, the reel of sites below them (never under them) ---- */
.hero {
  padding: clamp(2.75rem, 6vh, 4.5rem) var(--gutter) clamp(2.5rem, 5vw, 4.5rem);
  overflow: hidden;
}
.hero__copy {
  max-width: 66rem;
  margin: 0 auto;
  text-align: center;
}
.hero__title {
  margin: 0;
  color: #fff;
  font-size: clamp(2.25rem, 5.6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.038em;
  text-shadow: 0 2px 24px rgb(12 11 22 / 0.55);
}
.hero__title span {
  display: inline-block;
}
.hero__lede {
  max-width: 58ch;
  margin: 24px auto 0;
  color: #e4deef;
  font-size: clamp(1rem, 1.7vw, 1.125rem);
  line-height: 1.6;
  text-wrap: balance;
  text-shadow: 0 1px 14px #0c0b16;
}

/* The reel keeps its perspective as slides move. The previews sit still once selected. */
.reel {
  --reel-w: min(56rem, 84vw, 88vh);
  margin: clamp(2.5rem, 5vh, 4rem) auto 0;
}
.reel__stage {
  position: relative;
  width: var(--reel-w);
  margin: 0 auto;
  perspective: 2000px;
  perspective-origin: 50% 40%;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.reel__stage.is-dragging {
  cursor: grabbing;
}
.reel__slide {
  position: absolute;
  inset: 0;
  /* Each device pair is one layer, so neighbouring previews stay behind the active site. */
  transform-style: flat;
  pointer-events: none; /* a slide's empty box takes no tap; its two devices do (below) */
}
.reel__slide:first-child {
  position: relative;
}
.reel__slide[aria-hidden="true"]:not([style]) {
  visibility: hidden;
}
/* taps land on the sites themselves, so a site peeking in from the side can be tapped to the front; where
   they overlap the front one wins (z-index), and a slide far behind (reel.js: is-far) takes none */
.reel .device,
.reel .phone {
  pointer-events: auto;
}
.reel__slide.is-far picture {
  display: none;
}
.reel__slide.is-far .device,
.reel__slide.is-far .phone {
  pointer-events: none;
}
html:not(.js) .reel__slide + .reel__slide {
  display: none;
}
.reel__scene {
  position: relative;
  display: block;
  padding-bottom: 9%;
}
.reel__scene:focus-visible {
  outline: none;
}
.reel__scene:focus-visible .device,
.reel__scene:focus-visible .phone {
  outline: 2px solid var(--c-focus);
  outline-offset: 3px;
}
@media (hover: hover) {
  .reel__slide.is-front .reel__scene:hover :is(.device, .phone) {
    outline: 1px solid rgb(179 140 245 / 0.7);
  }
}
.device {
  position: relative;
  width: 88%;
  overflow: hidden;
  background: #000;
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgb(225 216 244 / 0.24),
    0 2px 4px rgb(0 0 0 / 0.25),
    0 32px 70px -24px rgb(0 0 0 / 0.8);
}
.device__chrome {
  position: relative;
  display: flex;
  gap: 7px;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  background: linear-gradient(#282730, #1d1c24);
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
}
.device__chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #55525e;
}
.device__url {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 14px;
  color: var(--c-ink-mute);
  font-size: 0.6875rem;
  font-weight: 400;
  line-height: 1.4;
  background: rgb(255 255 255 / 0.045);
  border-radius: 5px;
  white-space: nowrap;
}
.reel__slide:not(.is-front) .device__url {
  visibility: hidden;
}
.device__screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000;
}
.phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 24%;
  padding: 6px;
  background: linear-gradient(135deg, #514d5d, #1c1b23 30%, #302d38);
  border-radius: 30px;
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.18),
    0 0 0 1px rgb(0 0 0 / 0.8),
    0 30px 70px -10px rgb(0 0 0 / 0.95);
  transition: opacity 180ms ease-out;
}
.reel__slide:not(.is-front) .phone {
  opacity: 0;
  pointer-events: none;
}
.phone__screen {
  position: relative;
  aspect-ratio: 390 / 844;
  overflow: hidden;
  background: #000;
  border-radius: 24px;
}
.device__media {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Price and products first, then one description. Reserve room so switching never shifts pricing. */
.reel__meta {
  max-width: 36rem;
  min-height: calc(4.65em + 8px);
  margin: 32px auto 0;
  font-size: 1rem;
  line-height: 1.55;
  text-align: center;
}
.reel__text {
  margin: 0;
  color: #d5d0de;
  font-size: inherit;
  line-height: inherit;
  text-shadow: 0 1px 12px var(--c-bg);
}

.reel__product {
  display: block;
  margin-bottom: 6px;
  color: var(--c-ink);
  font-size: 1.0625em;
  font-weight: 600;
}
.reel__description {
  display: block;
}

@media (max-width: 599px) {
  .hero {
    padding-top: 40px;
  }
  .hero__title {
    font-size: clamp(2.125rem, 10vw, 2.75rem);
    line-height: 1.06;
    letter-spacing: -0.038em;
  }
  .hero__title span {
    display: block;
  }
  .hero__lede {
    max-width: 34ch;
    margin-top: 16px;
    line-height: 1.5;
  }
  .reel {
    --reel-w: 86vw;
    margin-top: 36px;
  }
  .device {
    width: 86%;
    border-radius: 10px;
  }
  .device__chrome {
    height: 18px;
    gap: 5px;
    padding: 0 8px;
  }
  .device__chrome span {
    width: 6px;
    height: 6px;
  }
  .device__url {
    display: none;
  }
  .phone {
    width: 29%;
    padding: 4px;
    border-radius: 18px;
  }
  .phone__screen {
    border-radius: 14px;
  }
  .reel__scene {
    padding-bottom: 19%;
  }
  .reel__meta {
    max-width: 36ch;
    min-height: calc(6.2em + 8px);
    margin-top: 20px;
    font-size: 0.9375rem;
  }
}
/* short phones (iPhone SE): a little tighter */
@media (max-width: 599px) and (max-height: 700px) {
  .hero {
    padding-top: var(--s2);
  }
}

/* ---- 2. the offer: two websites side by side ---- */
.plans {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s3);
}
@media (min-width: 760px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s3);
  }
}
.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 3.5vw, 3rem);
  background: var(--c-panel);
  box-shadow: inset 0 0 0 1px var(--c-panel-line);
  border-radius: 24px;
}
/* the 3D card leads: a violet wash and a hairline, nothing louder */
.plan--premium {
  background:
    radial-gradient(
      120% 80% at 100% 0%,
      rgb(124 77 219 / 0.18),
      transparent 60%
    ),
    var(--c-panel);
  box-shadow: inset 0 0 0 1px rgb(179 140 245 / 0.32);
}
.plan__name {
  margin: 0;
  font-size: clamp(1.3125rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.plan__price {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: var(--s3) 0 0;
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--c-line);
}
.plan__amount {
  font-size: clamp(2.75rem, 4.4vw, 3.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.plan__terms {
  max-width: 43ch;
  color: var(--c-ink-mute);
  font-size: 0.875rem;
  line-height: 1.4;
}
.plan__facts {
  display: grid;
  gap: 24px;
  margin: var(--s4) 0 0;
}
.plan__facts dt {
  margin-bottom: 4px;
  color: var(--c-ink-mute);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.3;
}
.plan__facts dd {
  margin: 0;
  color: var(--c-ink-dim);
  font-size: 1.0625rem;
  line-height: 1.47;
}
.plan__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: auto;
  padding-top: 32px;
}
.plan__actions .link {
  font-size: 0.9375rem;
}

/* ---- custom software and monthly management: two panels under the cards ---- */
.extras {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s3);
  margin-top: var(--s3);
}
@media (min-width: 760px) {
  .extras {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s3);
    margin-top: var(--s3);
  }
}
.addon,
.addon__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.addon {
  padding: clamp(1.75rem, 3.4vw, 3rem);
  background: var(--c-panel);
  box-shadow: inset 0 0 0 1px var(--c-panel-line);
  border-radius: 24px;
}
.addon .eyebrow {
  margin-bottom: 12px;
  font-size: 0.8125rem;
  letter-spacing: 0.035em;
}
.addon__title {
  margin: 0 0 var(--s2);
  font-size: clamp(1.3125rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.addon__text {
  max-width: 44ch;
  margin: 0 0 var(--s2);
  color: var(--c-ink-dim);
  font-size: 1.0625rem;
  line-height: 1.47;
  letter-spacing: -0.012em;
}

/* ---- 4. the FAQ: one centred list of native <details> (faq.js only opens one from a #faq-* link) ---- */
.faq__list {
  max-width: 46rem;
  margin: 0 auto;
  border-top: 1px solid var(--c-line);
}
.faq__item {
  border-bottom: 1px solid var(--c-line);
  scroll-margin-top: var(--s1);
}
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  min-height: 4.75rem;
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.012em;
}
.faq__q::-webkit-details-marker {
  display: none;
}
/* a plus that becomes a minus */
.faq__q::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--c-ink-mute);
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
}
.faq__item[open] > .faq__q::after {
  background: linear-gradient(currentColor, currentColor) center / 100% 2px
    no-repeat;
}
.faq__q:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 4px;
  border-radius: 6px;
}
.faq__a {
  padding: 0 clamp(1.5rem, 8vw, 3.5rem) var(--s3) 0; /* the answer stops short of the plus; less so on phones */
}
.faq__a p {
  max-width: 62ch;
  margin: 0;
  color: var(--c-ink-dim);
  font-size: 1.0625rem;
  line-height: 1.5;
}
/* ---- 5. contact: the way in ---- */
.contact {
  position: relative;
  padding: var(--sec-y) var(--gutter);
  background: transparent;
  color: var(--c-ink);
}
.contact__in {
  display: grid;
  gap: var(--s4);
  max-width: var(--col);
  margin: 0 auto;
}
.contact__title {
  margin: 0 0 var(--s2);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.contact__title:focus {
  outline: none;
}
.contact__lede {
  max-width: 34ch;
  margin: 0;
  color: var(--c-ink-mute);
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  line-height: 1.4;
  letter-spacing: -0.012em;
}
.contact input,
.contact select,
.contact textarea {
  scroll-margin-top: var(--s1);
  scroll-margin-bottom: 1.5rem;
}

.form {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--c-panel);
  border: 1px solid var(--c-panel-line);
  border-radius: var(--r-card);
}
.form__fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s2);
}
@media (min-width: 640px) {
  .form__fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .field--message,
  .field--website,
  .field--consent {
    grid-column: 1 / -1;
  }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field__label {
  color: var(--c-ink-mute);
  font-size: 0.875rem;
  line-height: 1.3;
}
.field__opt {
  margin-left: 6px;
  color: var(--c-ink-faint);
}
.field__input {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 14px;
  background: var(--c-bg);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-ctl);
  color: var(--c-ink);
  font-family: var(--font);
  font-size: 1.0625rem; /* 17 px: iOS does not zoom on focus */
  line-height: 1.4;
  letter-spacing: -0.012em;
  transition:
    border-color var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}
.field__input::placeholder {
  color: var(--c-ink-faint);
}
.field__input:focus {
  outline: none;
  border-color: var(--c-link);
  box-shadow: 0 0 0 1px var(--c-link);
}
.field__input[aria-invalid="true"] {
  border-color: var(--c-error);
}
.field__area {
  min-height: 7.5rem;
  resize: vertical;
}
.field__err {
  margin: 0;
  color: var(--c-error);
  font-size: 0.875rem;
  line-height: 1.35;
}
.form__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: var(--tap);
  padding-top: 10px;
  cursor: pointer;
}
.check__input {
  position: absolute;
  left: 0;
  top: 10px;
  width: 24px;
  height: 24px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.check__box {
  position: relative;
  flex: none;
  width: 24px;
  height: 24px;
  background: var(--c-bg);
  border: 1px solid var(--c-line-strong);
  border-radius: 7px;
  transition:
    background-color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
}
.check__box::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 3px;
  width: 6px;
  height: 12px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg) scale(0);
  transition: transform var(--t-fast) var(--ease);
}
.check__input:checked + .check__box {
  background: var(--c-accent);
  border-color: var(--c-accent);
}
.check__input:checked + .check__box::after {
  transform: rotate(45deg) scale(1);
}
.check__input:focus-visible + .check__box {
  outline: 2px solid var(--c-focus);
  outline-offset: 2px;
}
.check__input[aria-invalid="true"] + .check__box {
  border-color: var(--c-error);
}
.check__text {
  padding-top: 2px;
  color: var(--c-ink-dim);
  font-size: 0.9375rem;
  line-height: 1.4;
}
.check__more {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  min-height: var(--tap);
  margin: -6px 0 0 36px;
  color: var(--c-link);
  font-size: 0.875rem;
  text-decoration: none;
}
.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 24px;
  margin-top: var(--s3);
}
.form__submit {
  font-weight: 600;
}
.form__submit[aria-busy="true"] {
  cursor: progress;
  opacity: 0.8;
}
.form__submit[aria-busy="true"]::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.form__mail,
.form__alert-mail {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--c-link);
  font-size: 0.875rem;
  text-decoration: none;
}
@media (hover: hover) {
  .form__mail:hover,
  .check__more:hover,
  .form__alert-mail:hover {
    text-decoration: underline;
  }
}
.form__alert {
  margin-top: var(--s3);
  padding: 14px 16px;
  border-radius: var(--r-ctl);
  background: rgb(255 107 97 / 0.1);
}
.form__alert-text {
  margin: 0 0 4px;
  color: var(--c-ink);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.form__done {
  padding: 4px 0;
}
.form__done:focus {
  outline: none;
}
.form__done-title {
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1.143;
  letter-spacing: -0.012em;
}
.form__done-text {
  margin: 0;
  max-width: 40ch;
  color: var(--c-ink-dim);
}
.form.is-done .form__fields,
.form.is-done .form__actions,
.form.is-done .form__alert {
  display: none;
}

/* The public footer matches caelaria.ai. */
.site-foot {
  position: relative;
  z-index: 5;
  padding: 26px var(--gutter) 28px;
  padding-right: max(var(--gutter), 190px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--ink);
  color: rgba(240, 238, 232, 0.62);
  font-size: 12px;
  line-height: 1.6;
}
.site-foot p {
  margin: 0;
  max-width: 60em;
}
.site-foot a {
  color: rgba(240, 238, 232, 0.86);
  text-underline-offset: 3px;
}

@media (max-width: 699px) {
  .site-foot {
    padding: 22px var(--gutter) calc(22px + var(--safe-b));
  }
}

/* ---- section motion: a small lift, with the content readable from first paint ---- */
/* The flow: each section's heading and panels rise into place as they come up the screen, tied to the scroll
   itself (a scroll-driven animation, no script and no scroll hijack), so one section hands over to the next.
   Only opacity and a short lift; anything already on screen at load is already in place; browsers without
   scroll timelines, and Reduce Motion, get the page as it is. The chat panel is left alone (it sticks). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sec__head,
    .plans > .plan,
    .extras > .addon,
    .offer .fine,
    .faq__list,
    .contact__pitch,
    .contact__direct {
      animation: flow-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 25%;
    }
  }
}
@keyframes flow-rise {
  from {
    opacity: 0.75;
    translate: 0 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
