/* ==========================================================================
   Cloutly homepage — clean rebuild
   One stylesheet. Values are lifted from the Webflow export so the render
   matches; the structure is ours. Breakpoints: 991 / 767 / 479 (Webflow's),
   plus 1440+ / 1920+ where the original changed a value.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --ink: #0f0d19;
  --black: #060606;
  --blue: #003dff;
  --blue-2: #1a51ff;
  --ghost: #f2f5ff;
  --field: #f1f0f5;
  --smoke: #f5f5f5;
  --midnight: #000d35;
  --border: #e4e4e4;
  --muted: #717175;
  --pink: #ff416a;

  --font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.215, .61, .355, 1);

  --container: 1360px;
  --gutter: 40px;
  --header-h: 100px;
}

/* ---------- fonts ---------- */
@font-face { font-family: Inter; src: url("../fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url("../fonts/Inter-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: Inter; src: url("../fonts/Inter-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url("../fonts/Inter-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* Vendor marks. A third-party system is drawn as its own logo and never as an initial in a disc: a sprite symbol where
   the vendor publishes an SVG (i-hubspot-mark, i-xero-mark, i-zapier-mark, i-square-mark, i-instagram), a PNG under
   /images/integrations otherwise. The colour is the brand's as it ships on white, never the site palette. */
.mk-logo { flex: none; display: block; width: 15px; height: 15px; object-fit: contain; }
.vmk { display: inline-flex; align-items: center; gap: 7px; }
.vmk .icon, .vmk .mk-logo { width: 15px; height: 15px; }
.vmk .icon { color: #0f0d19; }  /* a currentColor mark (Square) keeps its own black, not the tile’s text colour */

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section-intro { max-width: 920px; margin: 0 auto 60px; text-align: center; }
.section-intro p { max-width: 90%; margin: 0 auto 20px; font: 400 18px/1.6 var(--font-display); }
.section-title { font: 700 40px/1.2 var(--font-display); color: var(--ink); margin-bottom: 40px; }
.accent { color: var(--blue); }
.highlight { color: var(--smoke); background: url("../images/highlight-pink-.svg") 50% / 200% repeat; }
.pill { display: inline-flex; align-items: center; margin-bottom: 40px; padding: 0 20px; border: 3px solid #000; border-radius: 20px; font-family: var(--font-display); line-height: 1.6; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 25px; background: var(--blue); color: #fff; font: 700 16px/1.6 var(--font-display); transition: background-color .4s var(--ease); }
.btn:hover { background: var(--blue-2); }
.btn .icon { width: 20px; height: 20px; }
.btn--sm { padding: 10px 20px 11px; font-size: 14px; line-height: 1.4; }
.btn--ghost { background: var(--ghost); color: var(--ink); font-weight: 400; }
.btn--ghost:hover { background: #e6ebff; }
.btn--cta { width: 100%; padding: 20px 24px; background: #fff; color: var(--blue-2); outline: 3px solid #fff; }
.btn--cta:hover { background: var(--ghost); }

/* ---------- hero ---------- */
.hero { margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-h) + 100px) 0 100px; background: var(--ghost) url("../images/Pattern---Hero-2.svg") 50% 0 / contain no-repeat fixed; }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.hero h1 { margin-bottom: 40px; font: 700 60px/1.2 var(--font-display); color: var(--ink); }
.hero-sub { margin: 0 50px 40px 0; font-size: 20px; }
.hero-cta { display: flex; align-items: flex-start; }
.hero-cta .btn { margin-bottom: 40px; }
.hero-note { margin-left: 30px; }
.hero-art { position: relative; display: flex; align-items: center; }
.hero-art__dash { width: 100%; }
.hero-art__notifs { position: absolute; right: -1%; bottom: calc(99px - 1%); max-width: 42%; }
.hero-art__insights { position: absolute; left: -2%; bottom: 18%; max-width: 40%; }

/* ---------- logos ---------- */
.logos { padding: 50px 0; background: #fff; }
.logos p { margin-bottom: 20px; font: 400 16px/1.6 var(--font-display); color: var(--muted); text-align: center; }
.logos ul { display: grid; grid-template-columns: repeat(6, 1fr); max-width: 900px; margin: 0 auto; }
.logos li { display: flex; justify-content: center; align-items: center; }
.logos img { max-width: 70%; max-height: 30px; width: auto; opacity: .7; }

/* ---------- showcase (tabs) ---------- */
.showcase { display: flow-root; padding-top: 100px; margin-bottom: 100px; background: var(--ghost); }
.showcase .container { display: flow-root; }
.showcase .section-title { text-align: center; }
.tabs { display: flex; flex-direction: column; align-items: center; margin-top: 24px; }
.tabs-nav { display: flex; justify-content: center; width: 100%; }
.tab-btn { padding: 20px 28px; border: 5px solid transparent; border-radius: 20px 20px 0 0; font: 400 16px/1.4 var(--font-display); color: var(--ink); }
.tab-btn[aria-selected="true"] { padding: 25px 28px; border: 0; background: var(--blue-2) url("../images/nnnoise-2.svg"); color: var(--ghost); }
.tab-panel { width: 100%; max-width: 1200px; margin-bottom: 100px; border-radius: 40px; background: url("../images/nnnoise-2.svg") 50% 0 / cover, url("../images/blob-4.svg") -3% / 200% no-repeat, linear-gradient(180deg, var(--blue-2), var(--ghost)); }
.tab-panel[hidden] { display: none; }
.tab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; width: 90%; margin: 60px auto; }

.tab-media { display: flex; flex-direction: column; background: #fff; border-radius: 20px; }
.video-trigger { display: flex; justify-content: center; align-items: center; width: 100%; margin: 25px auto 0; background: 50% / contain no-repeat; }
.play { position: relative; width: 80%; aspect-ratio: 1; }
.play::before, .play::after { content: ""; position: absolute; left: 50%; top: 50%; width: 28%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); }
.play::before { background: rgba(15, 13, 25, .35); }
.play::after { background: var(--ink); box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .6); }
.play .icon { position: absolute; left: 50%; top: 50%; z-index: 1; width: 8%; height: 8%; transform: translate(-42%, -50%); color: #fff; }
.video-trigger:hover .play::after { transform: translate(-50%, -50%) scale(1.06); }
.play::after { transition: transform .2s; }
@media (prefers-reduced-motion: no-preference) {
  .play::before { animation: play-pulse 1.3s ease-out infinite; }
  @keyframes play-pulse { from { transform: translate(-50%, -50%) scale(1); opacity: .7; } to { transform: translate(-50%, -50%) scale(1.9); opacity: 0; } }
}
.tab-caption { margin: 25px 0; text-align: center; font: 400 16px/1.6 var(--font-display); }
.tab-actions { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: auto; margin-bottom: 35px; }
.tab-actions .btn { max-width: 50%; }

.tab-copy h3 { margin-bottom: 20px; font: 700 35px/1.2 var(--font-display); color: var(--ghost); }
.tab-copy > p { margin-bottom: 20px; font: 400 18px/1.6 var(--font-display); color: #fff; }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.chips li { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 10px; border-radius: 20px; background: var(--ghost); font: 400 12px/1.6 var(--font-display); color: var(--ink); }
.chips .icon { width: 15px; height: 15px; }

.quote { display: flex; gap: 16px; margin-top: 40px; padding: 20px 0; }
.quote img { width: 90px; height: 90px; flex: none; object-fit: cover; clip-path: circle(43% at 50% 50%); }
.quote blockquote { margin: 0; font: 300 15px/1.6 var(--font-display); }
.quote blockquote p { font-style: italic; }
.quote strong { font-weight: 700; }
.quote footer { margin-top: 26px; font-size: 14px; }
.quote footer b { display: block; font-weight: 700; text-transform: uppercase; }

/* ---------- problem ---------- */
.problem { padding-bottom: 100px; text-align: center; }
.compare { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; width: 100%; text-align: left; }
.compare-old { margin-left: 70px; padding: 40px 60px 184px 100px; background: var(--smoke); border-radius: 20px 0 0 20px; }
.compare-new { margin-right: 70px; padding: 40px 60px; background: var(--ghost); border-radius: 0 20px 20px 0; }
.compare h3 { margin-bottom: 40px; font: 700 35px/1.2 var(--font-display); color: var(--black); }
.check-list { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.check-list li { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); }
.check-list .icon { width: 35px; height: 35px; color: var(--blue); }
.check-list--bad .icon { width: 30px; height: 30px; color: var(--ink); }
.check-list--wide li { gap: 20px; }
.compare .btn { margin-top: 40px; margin-bottom: 35px; }

/* ---------- benefits ---------- */
.benefits { padding: 100px 0; background: url("../images/nnnoise-1.svg"), url("../images/gradient-light.png") 50% / cover var(--ghost); text-align: center; }
.benefits-grid { display: grid; grid-template-columns: 1fr 1fr; width: 100%; text-align: left; }
.benefits-list { max-width: 510px; margin: 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.benefit { display: flex; align-items: center; gap: 20px; font-family: var(--font-display); }
.benefit .icon { width: 35px; height: 35px; color: var(--blue); }
.benefit h4 { font: 600 20px/1.6 var(--font-display); }
.benefit em { font-weight: 600; }
.benefits-list .btn { margin-top: 40px; margin-bottom: 35px; }
.benefits-photo { margin: 0 40px; align-self: center; justify-self: end; }
.benefits-photo img { max-width: 100%; margin: auto; border-radius: 20px; }

/* ---------- case study ---------- */
.case { margin-top: 160px; }
.case-card { display: grid; grid-template-columns: .5fr 1fr; max-width: 1200px; margin: 0 auto; border-radius: 20px; background: var(--pink) url("../images/nnnoise-2.svg") 50%; color: #fff; }
.case-media { grid-row: 1 / span 2; align-self: stretch; display: flex; justify-content: center; align-items: center; border-radius: 20px 0 0 20px; background: url("../images/Bishops-Cuts--Color-Hero.jpg") 50% / cover no-repeat; }
.case-media .play { width: 80%; }
.case-body { margin: 40px 100px auto; align-self: center; }
.eyebrow { margin-bottom: 30px; font: 700 16px/1.6 var(--font-display); color: var(--ghost); }
.case-quote { display: flex; }
.case-quote .icon { width: 60px; height: 60px; margin-left: -60px; color: var(--midnight); }
.case-quote h3 { margin: 0 0 32px 20px; font: 300 30px/1.2 var(--font-display); font-style: italic; color: var(--midnight); }
.case-quote strong { font-weight: 700; }
.case-who { margin-bottom: 30px; font: 700 16px/1.6 var(--font-display); color: var(--midnight); }
.case-who span { display: block; font-weight: 300; }
.case-divider { height: 0; margin: 20px auto; border: 0; border-top: 1px solid var(--border); }
.case-stat { display: flex; margin-bottom: 10px; }
.case-stat .icon { width: 40px; height: 40px; align-self: center; color: var(--ghost); }
.case-stat strong { font: 700 50px/1.6 var(--font-display); color: var(--ghost); }
.case-stat-label { margin-bottom: 40px; font: 400 16px/1.6 var(--font-display); color: var(--ghost); }

/* ---------- outcomes ---------- */
.outcomes { padding: 160px 0; text-align: center; }
.outcomes .section-intro { margin-bottom: 160px; }
.outcomes-grid { display: grid; grid-template-columns: 1fr 1fr; row-gap: 160px; text-align: left; }
.outcome { max-width: 510px; margin: 0 auto; align-self: center; }
.outcome h3 { margin-bottom: 20px; font: 700 30px/1.2 var(--font-display); }
.outcome > p { margin-bottom: 40px; font-family: var(--font-display); }
.outcome-img { max-width: 90%; margin: 0 auto; align-self: center; justify-self: end; }

/* ---------- testimonials ---------- */
.testimonials { margin-top: 160px; }
.testimonials .section-title { text-align: center; }
.marquee { position: relative; margin: 40px 0 160px; overflow: hidden; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 30%; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0)); }
.marquee::after { right: 0; background: linear-gradient(270deg, #fff, rgba(255, 255, 255, 0)); }
.marquee-row { display: flex; gap: 40px; width: max-content; padding: 0 20px; margin-bottom: 40px; }
.marquee-row:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-row { animation: marquee 90s linear infinite; }
  .marquee-row--reverse { animation-direction: reverse; }
  .marquee:hover .marquee-row { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(calc(-50% - 20px)); } }
}
.t-card { flex: none; width: 500px; min-height: 275px; border-radius: 10px; background: linear-gradient(180deg, var(--ghost), #e5ebff); }
.t-card header { display: flex; align-items: center; }
.t-card img { width: 80px; height: 80px; margin: 0 20px; border: 3px solid #fff; border-radius: 50%; object-fit: cover; }
.t-card cite { display: block; margin-top: 40px; font: 400 16px/1.6 var(--font-display); font-style: normal; }
.t-card cite span { display: block; font-size: 14px; color: var(--muted); }
.t-card p { margin: 0 20px 40px; font: 400 16px/1.6 var(--font-display); }

/* ---------- cta ---------- */
.cta { padding: 40px 0; }
.cta-inner { max-width: 1920px; margin: 0 auto; padding: 0 5%; }
.cta-card { display: flex; flex-direction: column; align-items: center; padding: 40px 0; border-radius: 40px; background: var(--blue); }
.cta-col { display: flex; flex-direction: column; align-items: stretch; width: max-content; max-width: 100%; }
.cta-card h2 { margin: 40px 0; text-align: center; font: 700 35px/1.1 var(--font-display); color: #fff; }
.cta-card .btn--cta { margin-bottom: 20px; }
.cta-ticks { display: grid; grid-template-columns: repeat(3, 1fr); padding: 20px 0 40px; }
.cta-ticks li { text-align: center; font: 400 14px/1.6 var(--font-display); color: var(--smoke); }


/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 2000; display: none; background: rgba(0, 0, 0, .9); opacity: 0; transition: opacity .3s; }
.lightbox.is-open { display: block; opacity: 1; }
.lightbox-frame { position: absolute; left: 50%; top: 50%; width: min(940px, 92vw); aspect-ratio: 940 / 529; transform: translate(-50%, -50%); background: #000; }
.lightbox-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.lightbox-close { position: absolute; right: 16px; top: 12px; width: 44px; height: 44px; display: grid; place-items: center; color: #fff; opacity: .8; }
.lightbox-close:hover { opacity: 1; }
.lightbox-close .icon { width: 18px; height: 18px; }
html.lightbox-open { overflow: hidden; }

/* ---------- scroll reveals (same timings as the original IX2 actions) ---------- */
.reveal { opacity: 1; transform: none; }
.reveal.is-pending { opacity: 0; transform: translate3d(0, 24px, 0); }
.reveal.is-visible { opacity: 1; transform: none; transition: opacity .5s var(--ease) var(--delay, 0s), transform .6s var(--ease) var(--delay, 0s); }
.reveal.is-enter { animation: rise .7s var(--ease) both; animation-delay: var(--delay, 0s); }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 14px, 0); } }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal.is-pending, .reveal.is-enter { opacity: 1; transform: none; transition: none; animation: none; } }

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 1440px) {
  .hero-art__insights { bottom: 16%; }
  .compare-old { margin-left: 100px; }
  .compare-new { margin-right: 100px; }
  .benefits-list { margin-right: 20px; }
  .benefits-photo img { max-width: 85%; }
}
@media (min-width: 1920px) {
  .hero h1 { font-size: 70px; }
  .showcase { margin-bottom: 0; }
  .tab-btn[aria-selected="true"] { padding: 20px 40px; }
  .tab-panel { margin-top: -4px; }
  .tab-grid { gap: 40px; }
  .problem { padding-top: 100px; }
  .compare-old { margin-left: 400px; padding-left: 60px; }
  .compare-new { margin-right: 388px; }
  .benefits-list { margin-right: 60px; }
  .benefits-photo { margin-right: 20px; }
  .benefits-photo img { max-width: 60%; margin-left: 0; }
}

@media (max-width: 991px) {
  :root { --header-h: 80px; }

  .hero { padding-top: var(--header-h); }
  .hero .container { grid-template-columns: 1fr; text-align: center; margin-top: 100px; }
  .hero h1 { text-align: center; }
  .hero-sub { margin-right: 0; }
  .hero-cta { justify-content: center; margin: 0 auto; }
  .hero-note { max-width: 30%; }
  .hero-art { max-width: 80%; margin: 0 auto; }

  .logos ul { grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 510px; }
  .logos p { margin: 40px 0 60px; }

  .showcase { padding-top: 20px; }
  .section-title { padding: 0 40px; }
  .tabs-nav { flex-wrap: wrap; margin-bottom: 40px; }
  .tab-btn[aria-selected="true"] { padding: 20px 25px; border-radius: 20px; }
  .tab-panel { background: url("../images/nnnoise-2.svg") 50% 0 / cover, linear-gradient(180deg, var(--blue), var(--ghost)); }
  .tab-grid { display: flex; flex-direction: column; }
  .tab-media { order: -1; }
  .tab-caption, .tab-actions { display: none; }
  .tab-copy { text-align: center; }
  .chips li { text-align: left; }
  .quote { flex-direction: column; align-items: center; text-align: center; }
  .quote img { margin-bottom: 35px; }
  .tab-copy .btn--mobile { display: inline-flex; margin: 40px auto 0; }

  .problem { padding-bottom: 100px; }
  .compare { grid-template-columns: 1fr; gap: 40px 0; }
  .compare-old { margin: 0 20px; padding: 40px 60px; border-radius: 20px 20px 0 0; }
  .compare-new { margin: 0 20px; padding: 40px 60px; border-radius: 0 0 20px 20px; }
  .compare .btn--mobile { display: inline-flex; }

  .benefits-grid { grid-template-columns: 1fr; gap: 40px; }
  .benefits-photo { margin: 0 auto; justify-self: center; }
  .benefits-photo img { max-width: 60%; }

  .case-card { margin-bottom: 100px; }

  .outcomes { margin-top: 160px; padding: 0 0 100px; }
  .outcomes-grid { grid-template-columns: 1fr; gap: 40px; }
  .outcome-img { max-width: 70%; margin-top: 40px; justify-self: center; }
  .outcome { justify-self: center; }

  .testimonials { margin: 0 0 160px; }

  .cta-card { padding: 20px 0; }
  .cta-card h2 { font-size: 30px; }

  .btn--mobile { display: none; }
}

@media (min-width: 992px) { .btn--mobile { display: none !important; } }

@media (max-width: 767px) {
  :root { --header-h: 60px; --gutter: 24px; }

  .hero .container { margin-top: 0; }
  .hero { background-image: none; padding-bottom: 80px; }
  .hero-note { max-width: 25%; }

  .cta-ticks { grid-template-columns: 1fr; }
  .cta-ticks li:not(:first-child) { display: none; }
  .cta-card { padding: 20px 24px; }
  .eyebrow { padding-top: 0; }

  .case-card { display: flex; flex-direction: column; margin: 0 20px; }
  .case-media { order: 2; min-height: 300px; border-radius: 0 0 20px 20px; }
  .case-body { margin: 40px 60px; }
  .case-quote .icon { margin: -86px 0 0 -24px; }
  .case-quote { gap: 38px; }
  .outcome-img { width: 100%; max-width: 100%; }
  .outcomes { padding-bottom: 80px; }
  .problem { padding-bottom: 80px; }
  .cta-inner { padding: 0 24px; }
}

@media (max-width: 479px) {
  .container { width: 85%; padding: 0; }
  .hero { padding-bottom: 60px; }
  .hero h1 { font-size: clamp(34px, 11vw, 50px); margin-bottom: 32px; }
  .hero-sub { margin-top: 40px; }
  .hero-cta { flex-direction: column; align-items: center; width: 100%; }
  .hero-cta .btn { min-width: 80%; margin-bottom: 20px; }
  .hero-note { display: none; }
  .hero-art { max-width: 100%; }
  .logos ul { grid-template-columns: 1fr 1fr; }
  .section-title { font-size: 35px; padding: 0; }
  .tabs-nav { gap: 12px 0; }
  .tab-panel { border-radius: 0 0 40px 40px; margin-bottom: 0; }
  .tab-grid { width: 100%; margin: 40px auto; }
  .tab-media { margin: 0 20px; }
  .compare-old, .compare-new { margin: 0 10px; padding: 40px 20px; }
  .compare h3, .section-intro { text-align: center; }
  .check-list--bad .icon { width: 20px; height: 20px; }
  .case-body { margin: 40px; }
  .case-quote .icon { display: none; }
  .case-quote h3 { margin-left: 0; }
  .cta-card { padding: 60px 0; }
  .cta-card h2 { font-size: 28px; }
  .marquee { overflow: visible; margin: 40px 0 80px; }
  .marquee::before, .marquee::after { display: none; }
  .marquee-row { flex-direction: column; width: 100%; padding: 0; animation: none; }
  .marquee-row--reverse { display: none; }
  .marquee-row .is-clone { display: none; }
  .t-card { width: 100%; text-align: center; }
  .t-card header { flex-direction: column; }
  .t-card img { margin: 40px 0 10px; }
  .t-card cite { margin: 0 0 10px; }
}

/* ==========================================================================
   Navigation — island header. Transparent full-width bar at rest; on scroll
   it condenses into a floating glass pill. Panels are anchored popovers.
   ========================================================================== */
:root { --header-h: 84px; --nav-h: 64px; --nav-ease: cubic-bezier(.22, 1, .36, 1); }
html.nav-open { overflow: hidden; }
/* The Plain chat launcher (loaded by GTM into div#plain-chat, fixed bottom-right) sat on top of the menu sheet's
   Start free trial button on phones. Hidden while the menu is open (Lachlan, 2026-09-06). */
html.nav-open #plain-chat { visibility: hidden; pointer-events: none; }
/* visibility, not display: toggling display on the ancestor of a fixed element can leave it unpainted on iOS Safari
   until the next scroll, which read as the bubble having vanished after the menu was used once. */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); pointer-events: none; }
.site-header::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--nav-h); background: rgba(255, 255, 255, .84); box-shadow: 0 1px 0 rgba(15, 13, 25, .08); opacity: 0; transition: opacity .3s var(--nav-ease); }
.site-header.is-stuck::before { opacity: 1; -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); }
.nav-bar { pointer-events: auto; position: relative; z-index: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; height: var(--header-h); max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); transition: height .4s var(--nav-ease); }
.is-stuck .nav-bar { height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 30px; width: auto; transition: height .45s var(--nav-ease); }
.is-stuck .brand img { height: 28px; }

.nav { position: relative; }
.nav-glow { position: absolute; top: 50%; left: 0; height: 36px; width: 100px; border-radius: 999px; background: var(--ghost); opacity: 0; transform: translate(0, -50%) scaleX(1); transform-origin: 0 50%; transition: transform .3s var(--nav-ease), opacity .2s; pointer-events: none; will-change: transform; }
.nav-glow.is-on { opacity: 1; }
.nav-list { position: relative; z-index: 1; display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font: 500 14.5px/1.4 var(--font-display); color: var(--ink); transition: color .2s; }
.nav-link .icon { width: 9px; height: 9px; opacity: .55; transition: transform .3s var(--nav-ease); }
.nav-item[data-open="true"] .nav-link { color: var(--blue); }
.nav-item[data-open="true"] .nav-link .icon { transform: rotate(180deg); }

.panel { position: absolute; top: calc(100% + 10px); left: -8px; z-index: 5; padding: 8px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px rgba(15, 13, 25, .08), 0 30px 70px -24px rgba(15, 13, 25, .35); opacity: 0; visibility: hidden; transform: translateY(8px) scale(.985); transform-origin: 24px 0; transition: opacity .18s var(--nav-ease), transform .28s var(--nav-ease), visibility 0s .28s; }
.panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-item[data-open="true"] .panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.panel-grid { display: grid; gap: 14px; }
/* the mega panel is centred on the nav rather than hung off the Product item, so a wide menu still fits a 1280 laptop.
   Its li is position:static so this panel resolves against .nav; margin-left does the centring because the open animation owns transform. */
.nav-item--mega { position: static; }
.panel--product { --pw: min(1120px, calc(100vw - 48px)); width: var(--pw); left: 50%; margin-left: calc(var(--pw) / -2); }
.panel--product .panel-grid { grid-template-columns: 1fr 1fr 1fr 258px; }
.panel--solutions { width: 560px; }
.panel--solutions .panel-grid { grid-template-columns: 1fr 1fr; }
.panel--resources { width: 280px; }
.panel-col { padding: 12px 4px; }
.panel-col h3 { margin: 0 0 6px 10px; font: 500 12.5px/1.4 var(--font-display); letter-spacing: 0; color: #6b7088; }
.p-link { display: grid; grid-template-columns: 20px 1fr; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 10px; transition: background-color .15s; }
/* no container: the icon is a fine stroke on the page, centred against the whole text block. display:block on the svg matters, an
   inline svg carries baseline space and sits high in its box. */
.p-ico { display: block; width: 20px; height: 20px; color: #6b7088; transition: color .15s; }
.p-ico .icon { display: block; width: 20px; height: 20px; }
.p-link:hover .p-ico { color: var(--blue); }
.p-txt { display: block; min-width: 0; }
.p-link:hover { background: var(--ghost); }
.p-link strong { display: block; font: 600 13.5px/1.3 var(--font-display); color: var(--ink); text-wrap: balance; transition: color .15s; }
.p-link:hover strong { color: var(--blue); }
.p-link span { display: block; margin-top: 2px; font: 400 12px/1.45 var(--font-body); color: #6b7088; }
.tag-ai { display: inline-block; padding: 1px 6px; border-radius: 999px; background: var(--pink); color: #fff; font: 700 9.5px/1.5 var(--font-display); letter-spacing: .05em; text-transform: uppercase; }
/* the case-study card: Daniel's video, clipped, with the play button over it. Swap the <img> for a muted looping <video>
   the day we have a short clip of our own; the markup and these styles do not otherwise change. */
.panel-case { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 268px; height: 100%; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.panel-case img, .panel-case video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .6s var(--nav-ease), opacity .3s; }
.panel-case::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 13, 25, .1) 0%, rgba(15, 13, 25, .55) 52%, rgba(15, 13, 25, .88) 100%); }
.panel-case:hover img, .panel-case:hover video { transform: scale(1.05); opacity: 1; }
.panel-case-play { position: absolute; left: 50%; top: 44%; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--ink); transform: translate(-50%, -50%); transition: transform .25s var(--nav-ease); }
.panel-case-play .icon { width: 15px; height: 15px; margin-left: 2px; }
.panel-case:hover .panel-case-play { transform: translate(-50%, -50%) scale(1.08); }
.panel-case:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.panel-case.video-trigger { margin: 0; } /* .video-trigger's 25px top margin (the home case) pushed the nav card out of the panel */
.panel-case-body { position: relative; z-index: 1; display: block; padding: 16px; color: #fff; }
.panel-case-body b { display: block; font: 500 17px/1.2 var(--font-serif, Georgia, serif); letter-spacing: -.01em; text-wrap: balance; }
.panel-case-body > span { display: block; margin-top: 6px; font: 400 12px/1.4 var(--font-body); color: rgba(255, 255, 255, .72); }
.panel-case-body em { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font: 600 12px/1.4 var(--font-display); font-style: normal; color: #fff; }

.nav-actions { display: flex; align-items: center; justify-self: end; gap: 4px; }
.nav-login { padding: 8px 14px; border-radius: 999px; font: 500 14.5px/1.4 var(--font-display); color: var(--ink); transition: background-color .15s; }
.nav-login:hover { background: var(--ghost); }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 16px; border-radius: 999px; background: var(--ink); color: #fff; font: 600 14px/1 var(--font-display); transition: background-color .2s; }
.nav-cta i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .14); transition: background-color .2s; }
.nav-cta i .icon { width: 12px; height: 12px; }
.nav-cta:hover { background: var(--blue); }
.nav-cta:hover i { background: rgba(255, 255, 255, .22); }

.nav-toggle { display: none; position: relative; z-index: 3; width: 40px; height: 40px; border-radius: 50%; justify-self: end; background: var(--ghost); }
.nav-toggle span { position: absolute; left: 12px; width: 16px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--nav-ease), top .3s var(--nav-ease); }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 19px; transform: rotate(-45deg); }
.nav-sheet-actions { display: none; }

@media (max-width: 991px) {
  :root { --header-h: 72px; }
  .nav-bar { grid-template-columns: auto 1fr auto; padding: 0 20px; }
  .nav-actions { display: none; }
  .nav-toggle { display: block; }
  .brand { position: relative; z-index: 3; }
  .nav { position: fixed; inset: 0; z-index: 2; display: none; flex-direction: column; overflow: auto; padding: calc(var(--header-h) + 8px) 20px 24px; background: #fff; }
  .nav.is-open { display: flex; }
  .nav-glow { display: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li + li { border-top: 1px solid var(--border); }
  .nav-link { width: 100%; justify-content: space-between; padding: 16px 4px; border-radius: 0; font-size: 18px; }
  .nav-link .icon { width: 12px; height: 12px; }
  /* margin-left: 0 matters: .panel--product centres itself on desktop with a negative margin of half its width, and
     with position: static that margin still applies, which pushed the whole Product list off the left edge on phones
     (bug found live 2026-09-06). */
  .panel { position: static; left: auto; width: auto !important; margin-left: 0 !important; padding: 0 0 12px; box-shadow: none; border-radius: 0; opacity: 1; visibility: visible; transform: none; display: none; transition: none; }
  .nav-item[data-open="true"] .panel { display: block; }
  .panel-grid { grid-template-columns: 1fr !important; gap: 0; }
  .panel-col { padding: 4px 0; }
  .panel-case { display: none; }
  .nav-sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; padding-top: 20px; }
  .nav-sheet-actions a { display: inline-flex; justify-content: center; align-items: center; height: 48px; border-radius: 999px; font: 600 15px/1 var(--font-display); }
  .nav-sheet-actions .a-login { background: var(--ghost); color: var(--ink); }
  .nav-sheet-actions .a-start { background: var(--ink); color: #fff; }
}
@media (max-width: 479px) {
  :root { --header-h: 64px; }
  .brand img { height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-bar, .site-header::before, .brand img, .panel, .nav-glow, .nav-link .icon, .nav-toggle span { transition: none; }
}

/* ---------- footer (2026-09-04): hairlined, light, mirrors the nav ---------- */
.ft { margin-top: clamp(24px, 4vw, 56px); padding: clamp(48px, 6vw, 80px) 0 32px; border-top: 1px solid rgba(15, 13, 25, .08); background: #fff; }
.ft-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.ft-logo { display: inline-block; }
.ft-logo img { display: block; height: 30px; width: auto; }
.ft-line { margin-top: 20px; max-width: 32ch; font: 400 15px/1.55 var(--font-body); color: #4a5065; }
.ft-line em { display: block; margin-top: 6px; font: 500 17px/1.35 var(--font-serif); font-style: italic; color: var(--ink); }
.ft-social { display: flex; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.ft-social a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #f6f7fb; box-shadow: inset 0 0 0 1px rgba(15, 13, 25, .07); transition: background-color .2s; }
.ft-social a:hover { background: #eef1ff; }
.ft-social img { width: 15px; height: 15px; }
.ft-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.ft-col h3 { font: 600 13px/1.4 var(--font-display); color: var(--ink); }
.ft-col ul { margin: 14px 0 0; padding: 0; list-style: none; }
.ft-col li + li { margin-top: 10px; }
.ft-col ul + h3 { margin-top: 28px; }
.ft-col a { font: 400 14px/1.4 var(--font-body); color: #4a5065; transition: color .2s; }
.ft-col a:hover { color: var(--blue); }
.ft-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; margin-top: clamp(40px, 5vw, 64px); padding-top: 22px; border-top: 1px solid rgba(15, 13, 25, .08); }
.ft-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; font: 400 13px/1.4 var(--font-body); color: #6b7088; }
.ft-legal a { color: #6b7088; transition: color .2s; }
.ft-legal a:hover { color: var(--ink); }
.ft-x { display: block; color: var(--ink); }
@media (max-width: 991px) {
  .ft-top { grid-template-columns: 1fr; gap: 36px; }
  .ft-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
}
@media (max-width: 480px) { .ft-cols { grid-template-columns: 1fr; } .ft-bottom { flex-direction: column; align-items: flex-start; } }
