/* Noetic Leads: site styles (tokens, layout, page sections).
   The Leo demo has its own file: leo.css. */

/* ---------- Fonts (self-hosted, SIL Open Font License; see assets/fonts/OFL-*.txt) ---------- */
@font-face {
  font-family: 'Onest';
  src: url('../fonts/onest-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  src: url('../fonts/onest-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Parkinsans';
  src: url('../fonts/parkinsans-latin.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Parkinsans';
  src: url('../fonts/parkinsans-latin-ext.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  /* Brand colours, taken from the supplied logo */
  --plum: #46022F;
  --plum-deep: #2F011F;
  --plum-soft: #6B2A55;
  --ink: #1C1A18;
  --lavender: #C9BBFC;
  --lime: #EFF873;
  --orange: #FF7716;

  /* Supporting colours */
  --mist: #F6F3FB;        /* page */
  --paper: #FFFFFF;
  --lavender-100: #F1ECFF;
  --lavender-200: #E2D9FE;
  --lime-200: #F8FBC2;
  --orange-100: #FFEBDC;
  --text-muted: #5B5462;  /* 6.6:1 on --mist, 7.1:1 on white */
  --text-on-plum: #FFFFFF;
  --text-on-plum-muted: #E6DDFF; /* 11:1 on --plum */
  --line: rgba(70, 2, 47, 0.14);
  --line-strong: rgba(70, 2, 47, 0.28);

  /* Demo account accents (fictional companies) */
  --tide: #8ED8F0;
  --tide-100: #DDF4FB;
  --tide-ink: #0C4F63;
  --rose: #FFB2CF;
  --rose-100: #FFE4EE;
  --rose-ink: #7A1840;

  /* Type */
  --font-display: 'Parkinsans', 'Onest', ui-rounded, system-ui, sans-serif;
  --font-text: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Shape and space */
  --radius-xl: 44px;
  --radius-l: 30px;
  --radius-m: 20px;
  --radius-s: 12px;
  --gutter: clamp(20px, 4vw, 48px);
  --edge: clamp(8px, 1.2vw, 16px);   /* inset of the big colour panels */
  --wrap: 1320px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 0.9, 0.24, 1);
  --ease-spring: cubic-bezier(0.34, 1.36, 0.5, 1);
  --dur-s: 180ms;
  --dur-m: 380ms;
  --dur-l: 560ms;

  --focus: 0 0 0 3px var(--paper), 0 0 0 6px var(--plum);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:where(a, button, input, [tabindex]):focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important; 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; left: 12px; top: -60px; z-index: 50;
  background: var(--plum); color: #fff; padding: 10px 16px; border-radius: 12px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Buttons, tags, links ---------- */
.btn {
  --btn-bg: var(--plum); --btn-fg: #fff; --btn-border: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 2px solid var(--btn-border);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-text); font-weight: 600; font-size: 1rem; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--dur-s) var(--ease-out), background-color var(--dur-s), border-color var(--dur-s), color var(--dur-s);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn:focus-visible { border-radius: 999px; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 0.9375rem; }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 1.0625rem; }
.btn--plum { --btn-bg: var(--plum); --btn-fg: #fff; }
.btn--plum:hover { --btn-bg: var(--plum-deep); }
.btn--lime { --btn-bg: var(--lime); --btn-fg: var(--plum); }
.btn--lime:hover { --btn-bg: #F5FC9A; }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-border: rgba(255, 255, 255, 0.55); }
.btn--outline-light:hover { --btn-border: #fff; --btn-bg: rgba(255, 255, 255, 0.08); }
.btn--outline-plum { --btn-bg: transparent; --btn-fg: var(--plum); --btn-border: var(--line-strong); }
.btn--outline-plum:hover { --btn-border: var(--plum); }
.hero .btn:focus-visible { box-shadow: 0 0 0 3px var(--plum), 0 0 0 6px var(--lime); }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 8px; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 600; line-height: 1.2; white-space: nowrap;
}
.tag--demo { background: var(--orange-100); color: #7A2E00; }
.tag--demo::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--orange);
}

.text-link {
  font-weight: 600; color: var(--plum); text-decoration: underline;
  text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--lavender);
  white-space: nowrap;
}
.text-link:hover { text-decoration-color: var(--plum); }

mark { color: inherit; }
.mark-research {
  background: linear-gradient(transparent 8%, var(--lime) 8%, var(--lime) 92%, transparent 92%);
  padding: 0 0.12em; margin: 0 -0.04em;
  border-radius: 0.2em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- Header ---------- */
.site-header {
  display: flex; align-items: center; gap: 24px;
  max-width: calc(var(--wrap) + 2 * var(--edge));
  margin-inline: auto;
  padding: 18px calc(var(--edge) + 18px);
}
.brand { display: inline-flex; flex: none; border-radius: 10px; }
.brand__logo { height: 36px; width: auto; aspect-ratio: 704 / 170; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a {
  padding: 8px 14px; border-radius: 999px; text-decoration: none;
  font-weight: 500; font-size: 0.9688rem; color: var(--ink);
  transition: background-color var(--dur-s);
}
.site-nav a:hover { background: var(--lavender-100); }

/* ---------- Hero ---------- */
.hero { padding-inline: var(--edge); }
.hero__panel {
  position: relative; overflow: hidden; isolation: isolate;
  max-width: calc(var(--wrap) + 80px);
  margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 24px;
  min-height: min(760px, calc(100svh - 96px));
  padding: clamp(48px, 6vw, 88px) clamp(24px, 5vw, 72px);
  border-radius: var(--radius-xl);
  background: var(--plum); color: var(--text-on-plum);
}
.hero__copy { align-self: center; position: relative; z-index: 2; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(2.6rem, 5vw, 4.625rem);
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
  max-width: 9.6em;
}
.hero__lede {
  margin-top: 28px; max-width: 32em;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.5;
  color: var(--text-on-plum-muted);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero__art { position: relative; min-height: 560px; z-index: 1; }
.hero__shapes {
  position: absolute; inset: -16% -26% -20% 4%;
  width: auto; height: auto; max-width: none; z-index: -1;
}
.shape--lavender { fill: var(--lavender); }
.shape--lime { fill: var(--lime); }
.hero__trail { fill: none; stroke: var(--plum); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 12; opacity: 0.55; }

.hero-card {
  position: absolute; width: min(300px, 74%);
  padding: 16px 18px 15px;
  border-radius: var(--radius-m);
  background: var(--paper); color: var(--ink);
  box-shadow: 0 24px 48px -24px rgba(47, 1, 31, 0.6), 0 2px 0 rgba(47, 1, 31, 0.06);
}
.hero-card__label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); }
.hero-card__text { margin-top: 6px; font-size: 1.0625rem; font-weight: 500; line-height: 1.35; }
.hero-card__meta { display: block; margin-top: 10px; font-size: 0.8125rem; color: var(--text-muted); }
.hero-card--signal { top: 6%; left: 2%; transform: rotate(-4deg); }
.hero-card--reply { top: 40%; right: 0; display: flex; gap: 12px; align-items: flex-start; transform: rotate(3deg); }
.hero-card--handoff { bottom: 7%; left: 10%; background: var(--lime); color: var(--plum); transform: rotate(-2deg); }
.hero-card--handoff .hero-card__label,
.hero-card--handoff .hero-card__meta { color: #4A3A12; }
.hero__leo { position: absolute; top: 2%; right: 8%; width: clamp(72px, 8vw, 112px); transform: rotate(8deg); }
.hero__caption {
  position: absolute; right: 0; bottom: 0;
  font-size: 0.8125rem; color: var(--plum); font-weight: 600;
  background: rgba(255, 255, 255, 0.7); padding: 4px 10px; border-radius: 999px;
}

.avatar {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 46% 54% 50% 50% / 52% 48% 52% 48%;
}
.avatar svg { width: 100%; height: 100%; }
.avatar--tide { background: var(--tide); }
.avatar--rose { background: var(--rose); }

/* One orchestrated entrance: the hero story assembles once on load. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-card, .js .hero__leo { animation: hero-in 700ms var(--ease-spring) both; }
  .js .hero-card--signal { animation-delay: 200ms; }
  .js .hero-card--reply { animation-delay: 480ms; }
  .js .hero-card--handoff { animation-delay: 760ms; }
  .js .hero__leo { animation-delay: 60ms; }
  .js .hero__trail { animation: fade-in 900ms 300ms var(--ease-out) both; }
}
@keyframes hero-in {
  from { opacity: 0; translate: 0 28px; scale: 0.94; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}
@keyframes fade-in { from { opacity: 0; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 9vw, 136px); }
.section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--split {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.125rem, 4.4vw, 3.875rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 16em;
  color: var(--plum);
}
.section-lede {
  margin-top: 18px; max-width: 36em;
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.55; color: var(--text-muted);
}
.section-head--split .section-lede { margin-top: 0; }

/* ---------- Who it's for ---------- */
.who__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.who-card {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 300px; padding: 32px 30px 28px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  border-radius: var(--radius-l);
}
.who-card:nth-child(2) { margin-top: 48px; }
.who-card:nth-child(3) { margin-top: 96px; }
.who-card__shape { position: absolute; width: 132px; right: -46px; top: -54px; z-index: -1; transform: rotate(18deg); }
.who-card__title {
  font-family: var(--font-display); font-weight: 450;
  font-size: clamp(1.5rem, 2.1vw, 1.875rem); line-height: 1.1; letter-spacing: -0.02em;
  max-width: 11em; padding-right: 40px;
}
.who-card__example { font-size: 0.9688rem; line-height: 1.45; }
.who-card__example span:first-child { display: block; font-weight: 600; font-size: 0.8125rem; }
.who-card--plum { background: var(--plum); color: #fff; }
.who-card--plum .who-card__shape { fill: var(--orange); }
.who-card--plum .who-card__example { color: var(--text-on-plum-muted); }
.who-card--lavender { background: var(--lavender); color: var(--plum); }
.who-card--lavender .who-card__shape { fill: var(--paper); }
.who-card--lime { background: var(--lime); color: var(--plum); }
.who-card--lime .who-card__shape { fill: var(--lavender); }

/* ---------- What Noetic handles / what sales receives ---------- */
.handles__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr); align-items: stretch;
}
.handles-card { padding: clamp(28px, 3.4vw, 48px); border-radius: var(--radius-l); }
.handles-card__title {
  font-family: var(--font-display); font-weight: 450;
  font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.1; letter-spacing: -0.02em;
}
.handles-card--noetic { background: var(--plum); color: #fff; }
.handles-card__steps { margin-top: 28px; counter-reset: step; display: grid; gap: 4px; }
.handles-card__steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 44px 1fr; align-items: baseline;
  padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 1.125rem; font-weight: 500;
}
.handles-card__steps li::before {
  content: counter(step);
  font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; color: var(--lavender);
}
.handles-card__notes { margin-top: 24px; display: grid; gap: 10px; color: var(--text-on-plum-muted); font-size: 0.9688rem; }
.handles-card__notes li { padding-left: 22px; position: relative; }
.handles-card__notes li::before {
  content: ''; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px;
  border-radius: 40% 60% 55% 45%; background: var(--lime);
}
.handles-card--sales { background: var(--lime); color: var(--plum); display: flex; flex-direction: column; }
.handles-card__when { margin-top: 12px; font-weight: 500; }
.handles-card__receives { margin-top: 20px; display: grid; gap: 12px; margin-bottom: 28px; }
.handles-card__receives li {
  display: grid; gap: 2px; padding: 16px 18px; border-radius: var(--radius-m);
  background: rgba(255, 255, 255, 0.72);
}
.receives__name { font-weight: 650; font-size: 1.125rem; }
.receives__desc { color: #3B3341; font-size: 0.9688rem; }
.handles-card--sales .btn { align-self: flex-start; margin-top: auto; }
.handles__link { display: grid; place-items: center; position: relative; }
.handles__link::before {
  content: ''; position: absolute; left: -8px; right: -8px; top: 50%;
  border-top: 3px dotted var(--plum); opacity: 0.45;
}
.handles__link svg { width: 84px; position: relative; transform: rotate(-8deg); }

/* ---------- Expandable service example ---------- */
.example-card {
  border-radius: var(--radius-l); background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -48px rgba(47, 1, 31, 0.5);
}
.example-card__summary {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px 28px; align-items: center;
  padding: clamp(22px, 3vw, 36px);
}
.example-card__lead {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.25rem, 1.8vw, 1.625rem); line-height: 1.25; letter-spacing: -0.01em; color: var(--plum);
  max-width: 34em;
}
.chev { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur-m) var(--ease-out); }
[aria-expanded="true"] > .chev { transform: rotate(180deg); }

.example-card__detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-l) var(--ease-out); }
.example-card__detail.is-open { grid-template-rows: 1fr; }
.example-card__inner { overflow: hidden; min-height: 0; }
html:not(.js) .example-card__detail { grid-template-rows: 1fr; }
html:not(.js) .example-card__toggle { display: none; }
.example-flow {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  padding: 0 clamp(22px, 3vw, 36px) clamp(22px, 3vw, 36px);
  counter-reset: flow;
}
.example-flow__step {
  counter-increment: flow;
  padding: 24px; border-radius: var(--radius-m); background: var(--mist);
  opacity: 0; translate: 0 12px;
  transition: opacity var(--dur-m) var(--ease-out), translate var(--dur-m) var(--ease-out);
}
.is-open .example-flow__step { opacity: 1; translate: 0 0; }
.is-open .example-flow__step:nth-child(2) { transition-delay: 90ms; }
.is-open .example-flow__step:nth-child(3) { transition-delay: 180ms; }
html:not(.js) .example-flow__step { opacity: 1; translate: none; }
.example-flow__title {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; color: var(--plum); line-height: 1.2;
}
.example-flow__title::before {
  content: counter(flow); flex: none;
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 45% 55% 52% 48%; background: var(--lavender); font-size: 1rem;
}
.example-flow__facts { margin-top: 18px; display: grid; gap: 14px; }
.example-flow__facts dt { font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); }
.example-flow__facts dd { font-weight: 500; }
.example-flow__list { margin-top: 18px; display: grid; gap: 12px; }
.example-flow__list li { padding-left: 20px; position: relative; }
.example-flow__list li::before {
  content: ''; position: absolute; left: 0; top: 0.55em; width: 9px; height: 9px; border-radius: 50%; background: var(--orange);
}
.example-flow__handoffs { margin-top: 18px; display: grid; gap: 12px; }
.example-flow__handoffs li {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: start;
  padding: 14px; border-radius: var(--radius-s); background: var(--paper);
}
.example-flow__handoffs .text-link { grid-column: 2; justify-self: start; font-size: 0.9375rem; }

.mono-pebble {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 42% 58% 55% 45% / 50% 44% 56% 50%;
  font-family: var(--font-display); font-weight: 600; font-size: 0.875rem; letter-spacing: 0.02em; color: var(--ink);
}
.mono-pebble--tide { background: var(--tide); }
.mono-pebble--rose { background: var(--rose); }

/* ---------- FAQ ---------- */
.faq__wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.faq__list { border-top: 2px solid var(--plum); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item__q button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-text); font-size: clamp(1.0625rem, 1.4vw, 1.25rem); font-weight: 550; line-height: 1.35; color: var(--ink);
}
.faq-item__q button:hover { color: var(--plum); }
.faq-item__icon {
  position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--lavender-100); transition: background-color var(--dur-m), transform var(--dur-m) var(--ease-out);
}
.faq-item__icon::before, .faq-item__icon::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 2.5px; border-radius: 2px;
  background: var(--plum); translate: -50% -50%; transition: rotate var(--dur-m) var(--ease-out);
}
.faq-item__icon::after { rotate: 90deg; }
[aria-expanded="true"] .faq-item__icon { background: var(--lime); transform: rotate(180deg); }
[aria-expanded="true"] .faq-item__icon::after { rotate: 0deg; }
.faq-item__a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows var(--dur-m) var(--ease-out); }
.js .faq-item__a { grid-template-rows: 0fr; }
.js .faq-item__a.is-open { grid-template-rows: 1fr; }
.faq-item__a > div { overflow: hidden; min-height: 0; }
.faq-item__a p { padding: 0 56px 24px 4px; color: #3B3341; max-width: 40em; }

/* ---------- Booking ---------- */
.book__panel {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 48px; align-items: end;
  padding: clamp(36px, 5vw, 72px);
  border-radius: var(--radius-xl); background: var(--lime);
}
.book__panel .section-lede { color: #3E3520; }
.book__shape { position: absolute; width: 420px; right: -90px; top: -160px; fill: var(--lavender); z-index: -1; transform: rotate(-12deg); }
.book__leo { position: absolute; width: 92px; right: 64px; top: 40px; transform: rotate(10deg); }
.book__copy { position: relative; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 48px 56px; }
.site-footer__inner {
  display: grid; grid-template-columns: auto 1fr; gap: 20px 32px; align-items: center;
  border-top: 1px solid var(--line-strong); padding-top: 36px;
}
.site-footer .brand__logo { height: 40px; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: flex-end; }
.site-footer__nav a { font-weight: 600; text-underline-offset: 4px; }
.site-footer__small { grid-column: 1 / -1; font-size: 0.875rem; color: var(--text-muted); }

/* ---------- Privacy notice ---------- */
.doc-page { padding-inline: var(--edge); padding-bottom: clamp(56px, 8vw, 112px); }
.doc-page__panel {
  position: relative; overflow: hidden; isolation: isolate;
  max-width: calc(var(--wrap) + 80px); margin-inline: auto;
  padding: clamp(32px, 5vw, 64px) clamp(22px, 5vw, 72px) clamp(36px, 5vw, 72px);
  border-radius: var(--radius-xl); background: var(--plum); color: #fff;
}
.doc-page__panel::after {
  content: ''; position: absolute; z-index: -1; width: 300px; height: 260px; right: -70px; top: -110px;
  border-radius: 58% 42% 46% 54% / 50% 58% 42% 50%; background: var(--lavender);
}
.back-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.12); color: #fff;
  font-weight: 600; text-decoration: none; transition: background-color var(--dur-s);
}
.back-link:hover { background: rgba(255, 255, 255, 0.2); }
.back-link:focus-visible { box-shadow: 0 0 0 3px var(--plum), 0 0 0 6px var(--lime); border-radius: 999px; }
.back-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.doc-page__title {
  margin-top: clamp(28px, 4vw, 48px);
  font-family: var(--font-display); font-weight: 380; letter-spacing: -0.035em; line-height: 1;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
}
.doc-page__meta { margin-top: 14px; color: var(--text-on-plum-muted); }
.doc-page__body { max-width: 46rem; margin: clamp(32px, 5vw, 64px) auto 0; padding-inline: var(--gutter); }
.doc-page__placeholder {
  padding: 14px 18px; border-radius: var(--radius-s);
  background: var(--orange-100); color: #5A2400; font-size: 0.9375rem;
}
.doc { margin-top: 32px; font-size: 1.0625rem; line-height: 1.7; }
.doc h2 {
  margin-top: 2.2em; margin-bottom: 0.5em;
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  line-height: 1.2; letter-spacing: -0.015em; color: var(--plum);
}
.doc h2:first-child { margin-top: 0; }
.doc p + p { margin-top: 1em; }
.doc a { color: var(--plum); font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--lavender); overflow-wrap: anywhere; }
.doc a:hover { text-decoration-color: var(--plum); }
.doc-page__end { margin-top: 48px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__panel { grid-template-columns: 1fr; }
  .hero__art { min-height: 480px; max-width: 620px; width: 100%; justify-self: center; }
  .section-head--split { grid-template-columns: 1fr; }
  .who__list { grid-template-columns: 1fr 1fr; }
  .who-card:nth-child(n) { margin-top: 0; }
  .who-card:nth-child(3) { grid-column: 1 / -1; min-height: 220px; }
  .handles__grid { grid-template-columns: 1fr; }
  .handles__link { height: 96px; }
  .handles__link::before { left: 50%; right: auto; top: -8px; bottom: -8px; border-top: 0; border-left: 3px dotted var(--plum); }
  .example-flow { grid-template-columns: 1fr; }
  .faq__wrap { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 720px) {
  body { font-size: 1rem; }
  .site-header { padding: 14px calc(var(--edge) + 12px); gap: 12px; }
  .site-nav { display: none; }
  .site-header .btn { margin-left: auto; }
  .brand__logo { height: 30px; }

  .hero__panel { border-radius: 32px; padding: 40px 22px 24px; gap: 8px; min-height: 0; }
  .hero__title { font-size: clamp(2.375rem, 10.6vw, 3rem); line-height: 1.0; max-width: none; }
  .hero__lede { margin-top: 20px; }
  .hero__actions { margin-top: 28px; }
  .hero__actions .btn { width: 100%; }
  .hero__art { min-height: 430px; margin-top: 12px; }
  .hero__shapes { inset: -6% -40% -10% -30%; }
  .hero-card { width: min(260px, 80%); padding: 14px 15px 13px; }
  .hero-card__text { font-size: 1rem; }
  .hero-card--signal { top: 4%; left: 0; }
  .hero-card--reply { top: 37%; right: 0; }
  .hero-card--handoff { bottom: 9%; left: 4%; }
  .hero__leo { top: 0; right: 2%; width: 68px; }

  .section { padding-block: 64px; }
  .section-head { margin-bottom: 28px; }
  .who__list { grid-template-columns: 1fr; gap: 14px; }
  .who-card { min-height: 0; gap: 28px; padding: 26px 24px 24px; }
  .who-card__shape { width: 112px; right: -40px; top: -46px; }
  .who-card__title { max-width: 10.5em; }
  .who-card:nth-child(3) { min-height: 0; }

  .example-card__summary { grid-template-columns: 1fr; justify-items: start; }
  .example-card__toggle { width: 100%; }
  .example-flow__step { padding: 20px; }

  .faq-item__q button { padding: 18px 0; }
  .faq-item__a p { padding: 0 0 20px; }

  .book__panel { grid-template-columns: 1fr; border-radius: 32px; }
  .book__panel .btn { width: 100%; }
  .book__leo { width: 64px; right: 20px; top: 20px; }
  .book__copy { padding-right: 0; padding-top: 56px; }
  .book__shape { width: 220px; right: -90px; top: -110px; }

  .site-footer__inner { grid-template-columns: 1fr; }
  .doc-page__panel { border-radius: 32px; }
  .doc-page__panel::after { width: 150px; height: 130px; right: -56px; top: -58px; }
  .site-footer__nav { justify-content: flex-start; }
}

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