/* ==========================================================================
   Tarran Tech - design system
   Brand: #FC4C02 (orange) / #2D2926 (dark). No build step, no external fonts.
   ========================================================================== */

/* --- Tokens -------------------------------------------------------------- */
:root {
  /* Brand */
  --orange: #fc4c02;
  --orange-600: #e04302;
  --orange-300: #ff7a3d;
  --orange-tint: rgba(252, 76, 2, 0.12);

  /* Warm neutral ramp, anchored on the brand dark #2D2926 */
  --ink-900: #14110f;
  --ink-800: #1b1815;
  --ink-700: #2d2926;
  --ink-600: #3d3733;
  --ink-500: #5c534d;
  --ink-400: #8a7f78;

  --paper: #ffffff;
  --paper-2: #f7f5f3;
  --paper-3: #ece8e4;

  /* Semantic - dark surfaces (default for hero/footer/dark sections) */
  --bg: var(--paper);
  --fg: var(--ink-700);
  --muted: var(--ink-500);
  --line: rgba(45, 41, 38, 0.14);
  --surface: var(--paper-2);

  --ok: #16a34a;

  /* Type */
  --sans: "Segoe UI Variable Display", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  /* Layout */
  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --nav-h: 76px;

  /* Notch used to echo the logo's cut letterforms */
  --notch: 12px;
}

/* --- Reset --------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* --- Typography ---------------------------------------------------------- */
h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.028em;
  color: var(--ink-900);
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4.25rem); }
h2 { font-size: clamp(1.85rem, 1.2rem + 2.6vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.45rem); letter-spacing: -0.02em; }
h4 { font-size: 1.0625rem; letter-spacing: -0.01em; }

p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.55;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--orange);
}

.u-mono { font-family: var(--mono); }
.u-center { text-align: center; }
.u-measure { max-width: 62ch; }
.u-measure-tight { max-width: 52ch; }
.u-mt-0 { margin-top: 0; }

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* --- Layout -------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 860px; }

.section { padding-block: clamp(3.75rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.75rem, 5vw, 4.25rem); }

.section-head { max-width: 66ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* Dark section treatment */
.section--dark,
.is-dark {
  --bg: var(--ink-900);
  --fg: rgba(255, 255, 255, 0.76);
  --muted: rgba(255, 255, 255, 0.6);
  --line: rgba(255, 255, 255, 0.12);
  --surface: var(--ink-800);
  background: var(--bg);
  color: var(--fg);
}
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4,
.is-dark h1, .is-dark h2, .is-dark h3, .is-dark h4 { color: #fff; }

.section--muted { background: var(--paper-2); }

/* Faint technical grid, used behind dark sections */
.grid-bg { position: relative; isolation: isolate; }
.grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
  pointer-events: none;
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
  --btn-bg: var(--orange);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  clip-path: polygon(
    0 0,
    calc(100% - var(--notch)) 0,
    100% var(--notch),
    100% 100%,
    var(--notch) 100%,
    0 calc(100% - var(--notch))
  );
  transition: background-color 0.18s ease, transform 0.18s ease, color 0.18s ease;
}
.btn:hover { --btn-bg: var(--orange-600); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink-900);
  box-shadow: inset 0 0 0 2px currentColor;
}
.btn--ghost:hover { --btn-bg: var(--ink-900); --btn-fg: #fff; }

.is-dark .btn--ghost, .section--dark .btn--ghost, .hero .btn--ghost {
  --btn-fg: #fff;
}
.is-dark .btn--ghost:hover,
.section--dark .btn--ghost:hover,
.hero .btn--ghost:hover { --btn-bg: #fff; --btn-fg: var(--ink-900); }

.btn--lg { padding: 1.05rem 2rem; font-size: 1rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* Inline text link with underline flourish */
.link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--orange);
  font-weight: 700;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.25s ease;
}
.link:hover { background-size: 100% 2px; }
.link::after { content: "→"; transition: transform 0.2s ease; }
.link:hover::after { transform: translateX(3px); }

/* --- Header / nav -------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 17, 15, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.site-header.is-stuck { background: rgba(20, 17, 15, 0.94); }

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: auto;
  text-decoration: none;
}
.brand img { height: 30px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 0.55rem 0.85rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.18s ease;
}

/* The in-list CTA exists for the mobile drawer only; the header has its own. */
@media (min-width: 901px) {
  .nav-links .btn { display: none; }
}
.nav-links a:hover { color: #fff; }
.nav-links a[aria-current="page"] { color: #fff; }
.nav-links a[aria-current="page"]::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 3px;
  background: var(--orange);
}

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  cursor: pointer;
}
.nav-toggle span {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: background-color 0.2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 0.22s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--ink-900);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav-links.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-links a {
    padding: 0.9rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-links a[aria-current="page"] { color: var(--orange); }
  .nav-links .btn { margin-top: 1rem; }
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
  --bg: var(--ink-900);
  --fg: rgba(255, 255, 255, 0.76);
  --muted: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.12);
  position: relative;
  background: var(--bg);
  color: var(--fg);
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  overflow: hidden;
}
.hero h1, .hero h2, .hero h3 { color: #fff; }
.hero::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 780px;
  max-height: 780px;
  background: radial-gradient(circle, rgba(252, 76, 2, 0.2), transparent 62%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
}

.hero__title strong { color: var(--orange); font-weight: inherit; }

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}
.hero__points li { display: flex; align-items: center; gap: 0.5rem; }
.hero__points li::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--orange);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* Page hero (interior pages) */
.page-hero {
  --bg: var(--ink-900);
  --fg: rgba(255, 255, 255, 0.76);
  --muted: rgba(255, 255, 255, 0.64);
  background: var(--bg);
  color: var(--fg);
  padding-block: clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.page-hero h1 { color: #fff; }
.page-hero::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -5%;
  width: 46vw;
  height: 46vw;
  max-width: 620px; max-height: 620px;
  background: radial-gradient(circle, rgba(252, 76, 2, 0.18), transparent 64%);
  pointer-events: none;
}
.page-hero > .wrap { position: relative; z-index: 1; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.5; }

/* --- Console panel (hero graphic) --------------------------------------- */
.console {
  background: linear-gradient(160deg, #221e1b, #16130f);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
}
.console__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}
.console__dots { display: flex; gap: 6px; }
.console__dots i {
  width: 9px; height: 9px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 50%;
}
.console__dots i:first-child { background: var(--orange); }
.console__title {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.console__body { padding: 0.5rem 1rem 1rem; }

.console__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.09);
  font-size: 0.9rem;
}
.console__row:last-child { border-bottom: 0; }
.console__row span { color: rgba(255, 255, 255, 0.82); }

.pill {
  flex-shrink: 0;
  padding: 0.2rem 0.6rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border: 1px solid;
}
.pill--on { color: #6ee7a8; border-color: rgba(110, 231, 168, 0.4); background: rgba(110, 231, 168, 0.08); }
.pill--watch { color: var(--orange-300); border-color: rgba(255, 122, 61, 0.45); background: rgba(252, 76, 2, 0.1); }
.pill--info { color: rgba(255, 255, 255, 0.7); border-color: rgba(255, 255, 255, 0.22); }

.console__note {
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.38);
}

/* --- Trust strip --------------------------------------------------------- */
.trust {
  padding-block: 1.5rem;
  background: var(--ink-800);
  border-block: 1px solid rgba(255, 255, 255, 0.09);
}
.trust__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem clamp(1.25rem, 4vw, 3rem);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}
.trust__inner span { display: inline-flex; align-items: center; gap: 0.55rem; }
.trust__inner span::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--orange);
  transform: rotate(45deg);
}

/* --- Cards --------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.card::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: var(--notch); height: var(--notch);
  background: linear-gradient(225deg, var(--bg) 50%, transparent 50%);
  border-left: 1px solid var(--line);
  transform-origin: top right;
}
.card:hover { transform: translateY(-4px); border-color: rgba(252, 76, 2, 0.5); }

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  margin-bottom: 1.1rem;
  background: var(--orange-tint);
  color: var(--orange);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.card__icon svg { width: 22px; height: 22px; }

.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.96rem; color: var(--muted); }
.card .link { margin-top: auto; padding-top: 1.15rem; font-size: 0.92rem; }

/* Numbered process cards */
.step { position: relative; padding-top: 2.75rem; }
.step__num {
  position: absolute;
  top: 1.5rem; left: 1.75rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--orange);
}

/* --- Feature list -------------------------------------------------------- */
.ticks { margin: 0; padding: 0; list-style: none; }
.ticks li {
  position: relative;
  padding: 0.55rem 0 0.55rem 2rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
.ticks li:last-child { border-bottom: 0; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.15em;
  width: 11px; height: 6px;
  border-left: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: rotate(-45deg) translateY(-2px);
}
.ticks--2 { columns: 2; column-gap: 2.5rem; }
.ticks--2 li { break-inside: avoid; }
@media (max-width: 720px) { .ticks--2 { columns: 1; } }

/* --- Split (text + panel) ------------------------------------------------ */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 3.75rem);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-left { grid-template-columns: 1.15fr 0.85fr; }
  .split--flip .split__media { order: -1; }
}

.panel {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
}

/* --- Stats --------------------------------------------------------------- */
.stats {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}
.stat { padding: 1.5rem; background: var(--bg); }
.stat__k {
  display: block;
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--orange);
}
.stat__v {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* --- Accordion (FAQ) ----------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-900);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 12px; height: 12px;
  margin-top: 0.45em;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: rotate(45deg);
  transition: transform 0.22s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details > div { padding-bottom: 1.35rem; color: var(--muted); }
.is-dark .faq summary, .section--dark .faq summary { color: #fff; }

/* --- Contact / form ------------------------------------------------------ */
.contact-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
@media (min-width: 940px) {
  .contact-grid { grid-template-columns: 1fr 1.15fr; }
}

.contact-list { margin: 0; padding: 0; list-style: none; }
.contact-list li {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:first-child { padding-top: 0; }
.contact-list dt,
.contact-list .k {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-list .v { font-size: 1.05rem; font-weight: 700; color: var(--ink-900); }
.contact-list a { color: var(--orange); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.is-dark .contact-list .v, .section--dark .contact-list .v { color: #fff; }

/* n8n embedded form frame */
.form-shell {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -34px rgba(20, 17, 15, 0.5);
}
.form-shell__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.15rem;
  background: var(--ink-900);
  color: #fff;
}
.form-shell__bar strong { font-size: 0.95rem; }
.form-shell__bar .u-mono {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
/* Height is set generously so the cross-origin frame never shows its own
   scrollbar; site.js shrinks it to fit if n8n posts a height message. */
.form-shell iframe {
  display: block;
  width: 100%;
  height: 1000px;
  border: 0;
  background: var(--paper);
}
@media (max-width: 640px) {
  .form-shell iframe { height: 1060px; }
}

.form-fallback {
  padding: 1.15rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--paper-2);
}
.form-fallback a { color: var(--orange); font-weight: 700; }

/* --- CTA band ------------------------------------------------------------ */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--ink-900);
  color: rgba(255, 255, 255, 0.76);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.cta h2 { color: #fff; }
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 100% at 85% 50%, rgba(252, 76, 2, 0.22), transparent 70%);
  pointer-events: none;
}
.cta > .wrap { position: relative; z-index: 1; }
.cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cta__inner > div { max-width: 56ch; }
.cta .btn-row { margin-top: 0; }

/* --- Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--ink-800);
  color: rgba(255, 255, 255, 0.62);
  padding-block: clamp(2.75rem, 5vw, 4rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.94rem;
}
.site-footer h4 {
  margin-bottom: 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}
.site-footer a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.site-footer a:hover { color: var(--orange); }

.footer__grid {
  display: grid;
  gap: 2.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  padding-bottom: 2.5rem;
}
.footer__brand { grid-column: 1 / -1; }
@media (min-width: 860px) {
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .footer__brand { grid-column: auto; }
}
.footer__brand img { height: 30px; width: auto; margin-bottom: 1.15rem; }
.footer__brand p { max-width: 34ch; font-size: 0.92rem; }

.footer__list { margin: 0; padding: 0; list-style: none; }
.footer__list li { margin-bottom: 0.6rem; }

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer__bar ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0; padding: 0;
  list-style: none;
}

/* --- Prose (legal pages) ------------------------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.5rem; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem); }
.prose h3 { margin-top: 1.75rem; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1.15em; }
.prose li { margin-bottom: 0.45rem; }
.prose a { color: var(--orange); font-weight: 600; }

/* --- Reveal on scroll ---------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* --- Print --------------------------------------------------------------- */
@media print {
  .site-header, .cta, .nav-toggle, .form-shell iframe { display: none !important; }
  body { color: #000; background: #fff; }
}
