/* AJ Design — site styles
   Boutique AI automation studio for Australian businesses.

   Visual system: the AJ Design house design system (linked ahead of this file as
   ds/styles.css). Deep navy ink — --brand-ink #1E305C, dark surfaces #16223F — on
   off-white #F8F9FA. Inter (shipped locally by the system), generous whitespace,
   large soft radii (cards 32 / frames 28 / panels 20 / inputs 16), pill buttons,
   and the premium materials layer (navy-tinted layered shadows, inner highlight,
   hairline gradient edge, the chipset hero wallpaper).

   ── ALL colour flows from the design-system tokens. ──
   The :root block below maps the site's long-standing class names (--primary,
   --bg, --card, …) onto the system's tokens, so the whole site reads navy without
   touching every rule. Fonts come from ds/assets (no external CDN). */

:root {
  /* ---- Surfaces (mapped to the design-system palette) ---- */
  --bg: var(--bg-page);             /* page shell — #F8F9FA */
  --band: var(--bg-muted);          /* banded / alternate sections — #F1F3F5 */
  --card: var(--surface);           /* card + panel surface — #FFFFFF */
  --text: var(--text-primary);      /* primary text — deep navy ink */
  --muted: var(--text-secondary);   /* secondary text */
  --faint: var(--text-muted);       /* metadata text */
  --border: var(--border-subtle);   /* hairline borders */
  --line: rgba(22, 34, 63, 0.10);            /* divider hairline on light (navy-tinted) */
  --line-dark: rgba(255, 255, 255, 0.14);    /* divider hairline on dark */
  --ring: var(--focus-ring);                 /* focus ring — navy */
  --ring-on-dark: rgba(255, 255, 255, 0.7);  /* focus ring on dark surfaces (footer, demo thumbs) */

  /* ---- Brand / actions — the ink is AJ navy ---- */
  --primary: var(--brand-ink);                    /* #1E305C */
  --primary-2: var(--brand-ink-deep);             /* #16223F — deeper navy on hover/press */
  --primary-tint: rgba(30, 48, 92, 0.08);         /* eyebrow / chip / icon wells */
  --primary-tint-strong: rgba(30, 48, 92, 0.12);  /* number badges, active wells */

  --primary-contrast: #ffffff;        /* text on navy */
  --on-dark: #ffffff;
  --on-dark-muted: rgba(255, 255, 255, 0.66);
  --live: var(--aj-positive);         /* "live" indicator — muted brand green (state only) */
  --accent: var(--brand-ink);         /* retained for compatibility */
  --ok: var(--aj-positive);           /* form-submit success */
  --danger: var(--aj-danger);         /* form-submit error */

  --pattern-ink: rgba(22, 34, 63, 0.12);

  /* ---- Materials — navy-tinted layered shadows (design-system) ---- */
  --shadow: var(--shadow-card);
  --shadow-sm: var(--shadow-soft);
  --shadow-lg: var(--shadow-pop);

  /* ---- Radii — design-system scale; --radius-input / --radius-pill inherit from it ---- */
  --radius: var(--radius-frame);      /* standard cards / panels — 28px */
  --radius-lg: var(--radius-card);    /* large marketing panels + hero frame — 32px */
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.container-narrow {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(248, 249, 250, 0.82);
  backdrop-filter: blur(16px) saturate(1.25);
  border-bottom: 1px solid var(--border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 20px;
  width: min(1140px, 100%);
}

.nav-brand a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* Horizontal lockup (mark + "AJ Design" in Inter) — sized to sit comfortably in the bar. */
.nav-logo {
  height: 40px;
  width: auto;
  display: block;
  background: transparent;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  display: inline-flex;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.96rem;
  letter-spacing: 0.1px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-menu a:hover {
  background: var(--primary-tint);
  color: var(--text);
}

.nav-menu a.active {
  color: var(--primary);
  background: var(--primary-tint);
}

.nav-menu a:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.nav-menu .nav-cta {
  margin-left: 6px;
  background: var(--primary);
  color: var(--primary-contrast);
  padding: 9px 18px;
}

.nav-menu .nav-cta:hover {
  background: var(--primary-2);
  color: var(--primary-contrast);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: #ffffff;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--brand-ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  user-select: none;
  cursor: pointer;
}

.btn:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

/* External-link arrow — inline SVG (inherits currentColor) so it never renders
   emoji-style across platforms, staying safe under WeightFlow's no-emoji rule.
   Inside .btn the button's flex gap handles spacing; margin-left covers inline use. */
.ext-arrow {
  display: inline-block;
  vertical-align: -2px;
  margin-left: 4px;
}

.btn .ext-arrow {
  margin-left: 0; /* the button's flex gap already spaces it */
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-contrast);
}

.btn-primary:hover {
  background: var(--primary-2);
}

.btn-secondary {
  background: var(--card);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--card);
  border-color: var(--primary);
}

.btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ---------- Shared section furniture ---------- */
section {
  scroll-margin-top: 90px;
}

.section {
  padding: 84px 0;
}

.section--surface {
  background: var(--band);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.7vw, 2.35rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-subtitle {
  margin: 12px auto 0;
  color: var(--muted);
  width: min(64ch, 100%);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--primary-tint);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.page-head {
  padding-top: 132px;
  padding-bottom: 8px;
  text-align: center;
}

.page-head h1 {
  margin: 16px 0 0;
  font-size: clamp(2.1rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.page-head p {
  margin: 16px auto 0;
  color: var(--muted);
  width: min(62ch, 100%);
  font-size: 1.12rem;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 128px;
  padding-bottom: 64px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--bg-circuit);
  background-size: var(--bg-circuit-size);
  background-position: center top;
  opacity: 0.55;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.25) 60%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.25) 60%, rgba(0, 0, 0, 0) 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.1rem, 3.7vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero-title .accent {
  color: var(--primary);
}

.hero-subtitle {
  margin: 0;
  width: min(52ch, 100%);
  color: var(--muted);
  font-size: clamp(1.08rem, 1.5vw, 1.22rem);
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 2px;
}

.hero-meta .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 4px rgba(30, 122, 82, 0.14);
}

/* ---------- Demo frame (animated workflow mock; swap for a Loom embed later) ---------- */
.demo-frame {
  position: relative;
  background: var(--card);
  border: 6px solid var(--primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  aspect-ratio: 16 / 11;
}

.demo-frame__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: var(--band);
  border-bottom: 1px solid var(--line);
}

.demo-frame__bar .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(30, 48, 92, 0.18);
}

.demo-frame__label {
  margin-left: auto;
  color: var(--faint);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.demo-frame__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.demo-frame__live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(30, 122, 82, 0.5);
  animation: live-pulse 1.8s ease-out infinite;
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(30, 122, 82, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(30, 122, 82, 0); }
  100% { box-shadow: 0 0 0 0 rgba(30, 122, 82, 0); }
}

/* The flow: vertical list of nodes a "signal" travels down */
.flow {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.flow-node {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--band);
  border: 1px solid var(--line);
  color: var(--text);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.flow-node.is-active {
  background: var(--primary-tint-strong);
  border-color: rgba(30, 48, 92, 0.28);
  transform: translateX(2px);
}

.flow-node__icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--primary-tint);
  color: var(--text);
}

.flow-node__icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-node.is-active .flow-node__icon {
  background: var(--primary);
  color: var(--primary-contrast);
}

.flow-node__text strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
}

.flow-node__text span {
  font-size: 0.78rem;
  color: var(--muted);
}

.flow-node__check {
  margin-left: auto;
  color: var(--primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.flow-node.is-done .flow-node__check {
  opacity: 1;
}

.flow-connector {
  height: 16px;
  width: 2px;
  margin-left: 31px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

.flow-connector.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--primary), rgba(0, 0, 0, 0));
  animation: signal 0.6s linear;
}

@keyframes signal {
  from { transform: translateY(-100%); }
  to { transform: translateY(100%); }
}

@media (prefers-reduced-motion: reduce) {
  .flow-node, .flow-connector { transition: none; }
  .demo-frame__live::before { animation: none; }
  .flow-connector.is-active::after { animation: none; }
}

/* ---------- Pains (3-up) ---------- */
.pain-grid,
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.pain-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-soft), var(--inner-highlight);
}

.pain-card .quote {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--text);
}

.pain-card p {
  margin: 0;
  color: var(--muted);
}

.pain-card .pain-fix {
  margin-top: 14px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--primary);
}

/* ---------- Service ladder ---------- */
.ladder {
  display: grid;
  gap: 12px;
}

.ladder-step {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-soft), var(--inner-highlight);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ladder-step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(30, 48, 92, 0.24);
}

.ladder-step__num {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--primary-tint-strong);
  color: var(--primary);
  font-weight: 800;
  font-size: 1.15rem;
  display: grid;
  place-items: center;
}

.ladder-step__body h3 {
  margin: 0 0 3px;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.ladder-step__body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.ladder-step__price {
  text-align: right;
  font-weight: 800;
  color: var(--primary);
  font-size: 1rem;
  white-space: nowrap;
}

.ladder-step__price small {
  display: block;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.78rem;
}

/* connecting rail */
.ladder-rail {
  position: relative;
}

/* ---------- Workflow gallery tiles ---------- */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
}

.workflow-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft), var(--inner-highlight);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.workflow-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.workflow-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--primary);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.workflow-thumb:focus-visible {
  /* full-bleed dark thumb inside an overflow:hidden card — inset a light ring so
     it stays visible against the dark surface and is never clipped by the card. */
  outline: 3px solid var(--ring-on-dark);
  outline-offset: -3px;
}

.workflow-thumb__play {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  display: grid;
  place-items: center;
  transition: transform 0.25s ease, background 0.25s ease;
}

.workflow-card:hover .workflow-thumb__play {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.26);
}

.workflow-thumb__play svg {
  width: 22px;
  height: 22px;
  fill: #fff;
  margin-left: 3px;
}

.workflow-thumb__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 11px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.workflow-thumb__demo {
  position: absolute;
  bottom: 12px;
  right: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.74rem;
  font-weight: 600;
}

/* Hover-autoplay demo video — drop a real MP4 / Loom export path into a card's
   data-demo-src (see script.js) and it fills the thumb, muted + looping, and
   plays on hover/focus. Empty data-demo-src keeps the static placeholder. */
.workflow-thumb__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.workflow-thumb.has-demo .workflow-thumb__tag,
.workflow-thumb.has-demo .workflow-thumb__play {
  z-index: 2;
}
.workflow-thumb.has-demo .workflow-thumb__demo {
  display: none;
}

.workflow-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.workflow-body h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.workflow-body .who {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
}

.workflow-body ul {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.workflow-body ul li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 0.93rem;
}

.workflow-body ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--primary);
  opacity: 0.5;
}

.workflow-meta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.workflow-meta .price {
  font-weight: 800;
  color: var(--primary);
  font-size: 0.95rem;
}

.workflow-meta .built {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- Offer (Services page) ---------- */
.offer {
  position: relative;
  background: var(--card);
  border: 1px solid transparent;
  background-clip: padding-box;
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  box-shadow: var(--shadow-card), var(--inner-highlight);
  margin-bottom: 20px;
}

/* Hairline gradient edge (design-system .aj-edge material): a 1px ring that
   catches light at the top and deepens to navy at the bottom — on the premium
   white panels (Services offers + Home workflow slides). */
.offer::before,
.wf-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--edge-gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.offer__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
  margin-bottom: 20px;
}

.offer__head h2 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.offer__head .step {
  color: var(--primary);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.offer__price {
  text-align: right;
  font-weight: 800;
  color: var(--primary);
  font-size: 1.15rem;
  white-space: nowrap;
}

.offer__price small {
  display: block;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.8rem;
}

.offer__framing {
  font-size: 1.08rem;
  color: var(--text);
  margin: 0 0 22px;
}

.offer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.offer__cols h4 {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
}

.offer__cols ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.offer__cols ul li {
  position: relative;
  padding-left: 20px;
  color: var(--text);
  font-size: 0.94rem;
}

.offer__cols ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--primary);
  opacity: 0.45;
}

.offer__cta {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

/* ---------- Case study cards ---------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.case-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft), var(--inner-highlight);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.case-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.case-card__banner {
  background: var(--primary);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  padding: 24px 22px 20px;
}

.case-card__banner .cat {
  display: inline-flex;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.case-card__banner h3 {
  margin: 0;
  color: #fff;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.case-card__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.case-card__body p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.case-card__outcome {
  margin-top: auto;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.case-card__stat strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.case-card__stat span {
  font-size: 0.78rem;
  color: var(--muted);
}

.case-card__synthetic {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
}

/* ---------- "What's different" ---------- */
.diff-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-soft), var(--inner-highlight);
}

.diff-card .diff-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--primary-tint-strong);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.diff-card .diff-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.diff-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.diff-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* ---------- Trust strip ---------- */
.trust {
  text-align: center;
}

.trust__quote {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  max-width: 22ch;
  margin: 0 auto;
  line-height: 1.35;
}

.trust__sub {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  letter-spacing: -0.02em;
}

.cta-band p {
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 52ch;
  font-size: 1.05rem;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--primary);
}

.cta-band .btn-primary:hover {
  background: rgba(255, 255, 255, 0.86);
}

.cta-band .btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.cta-band .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- About ---------- */
.about-photo {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: block;
  margin: 0 auto 24px;
}

.about-text p {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 1.05rem;
}

.about-values {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  text-align: left;
}

.value-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-soft), var(--inner-highlight);
}

.value-item h3 {
  margin: 0 0 6px;
  font-size: 1.04rem;
}

.value-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* ---------- Contact / booking ---------- */
.contact-content {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  align-items: start;
}

.contact-info {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-soft), var(--inner-highlight);
}

.contact-info h3 {
  margin: 0 0 10px;
}

.contact-info p {
  color: var(--muted);
}

.contact-info .booking-cta {
  margin-top: 18px;
}

.contact-details {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.contact-details a {
  color: var(--primary);
  font-weight: 700;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-soft), var(--inner-highlight);
}

.form-group {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

label {
  font-weight: 700;
  color: var(--text);
  font-size: 0.94rem;
}

input,
textarea {
  width: 100%;
  padding: 12px 13px;
  border-radius: var(--radius-input);
  border: 1px solid var(--border);
  font: inherit;
  background: var(--card);
}

input:focus,
textarea:focus {
  outline: 3px solid var(--ring);
  border-color: var(--brand-ink);
}

.form-status {
  margin: 10px 0 0;
  font-size: 0.95rem;
  min-height: 1.4em;
}

/* Placeholder note for things to wire up (Calendly, Loom) — visually muted */
.placeholder-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--primary-tint);
  border: 1px dashed rgba(30, 48, 92, 0.3);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--primary);
  color: #fff;
  padding: 56px 0 32px;
}

.footer .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 14px;
}

.footer-brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  max-width: 34ch;
}

.footer-col h4 {
  margin: 0 0 14px;
  font-size: 0.78rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.96rem;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer a:focus-visible {
  outline: 3px solid var(--ring-on-dark);
  outline-offset: 2px;
  border-radius: 4px;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* ---------- Reveal animation ----------
   Content is visible by DEFAULT. The hidden-then-reveal state only applies when
   JS is present (the inline <head> script adds `.js` to <html>), so no-JS users
   and crawlers always see content — robust + indexable. */
.reveal {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced-motion: show content immediately, no reveal animation. */
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-content { align-items: flex-start; }
  .pain-grid,
  .diff-grid,
  .offer__cols,
  .about-values {
    grid-template-columns: 1fr;
  }
  .contact-content {
    grid-template-columns: 1fr;
  }
  .footer .container {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav-menu {
    position: absolute;
    top: 66px;
    right: 20px;
    left: 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 4px;
    box-shadow: var(--shadow);
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-menu a {
    justify-content: center;
  }
  .nav-menu .nav-cta {
    margin-left: 0;
  }
  .ladder-step {
    grid-template-columns: 46px 1fr;
  }
  .ladder-step__price {
    grid-column: 2;
    text-align: left;
  }
  .offer {
    padding: 24px 20px;
  }
  .footer .container {
    grid-template-columns: 1fr;
  }
}

/* ---------- Hero-workflow slide-across selector (Home) ---------- */
.wf-selector {
  max-width: 960px;
  margin: 0 auto;
}

.wf-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
}

.wf-tab {
  appearance: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.wf-tab:hover {
  color: var(--text);
  border-color: var(--primary);
}

.wf-tab.is-active {
  background: var(--primary);
  color: var(--primary-contrast);
  border-color: var(--primary);
}

.wf-tab:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.wf-stage {
  overflow: hidden;
}

.wf-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.wf-slide {
  position: relative;
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 26px;
  align-items: center;
  padding: 22px;
  background: var(--card);
  border: 1px solid transparent;
  background-clip: padding-box;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card), var(--inner-highlight);
}

.wf-preview {
  border-radius: 18px;
  cursor: pointer;
}

.wf-info h3 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.wf-info .who {
  margin: 0 0 12px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.wf-info .wf-desc {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.04rem;
}

.wf-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--primary);
}

.wf-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wf-all {
  text-align: center;
  margin-top: 22px;
}

@media (prefers-reduced-motion: reduce) {
  .wf-track {
    transition: none;
  }
}

@media (max-width: 820px) {
  .wf-slide {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .wf-info h3 {
    font-size: 1.3rem;
  }
}

/* Nav wordmark retired 9 Jul 2026 — the wordmark now lives inside the new Inter
   lockup (logo.png / logo-white.png). Caveat script is no longer used in the logo. */
