/* KindCaddy - applied AI brand system */
:root {
  --bg: #f8f4ed;
  --bg-elevated: rgba(255, 255, 255, 0.86);
  --bg-soft: #efe5d7;
  --bg-panel: #fffdf9;
  --ink: #1f2924;
  --text: #28312d;
  --text-muted: #5d645e;
  --accent: #b66a48;
  --accent-hover: #995538;
  --accent-soft: #f1d8c5;
  --sage: #6f7f68;
  --sage-soft: #d8e0d2;
  --line: rgba(31, 41, 36, 0.1);
  --shadow: 0 24px 60px rgba(24, 26, 24, 0.09);
  --shadow-soft: 0 12px 32px rgba(24, 26, 24, 0.06);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(241, 216, 197, 0.65), transparent 32%),
    radial-gradient(circle at top right, rgba(216, 224, 210, 0.7), transparent 26%),
    var(--bg);
  background-position: 0% 0%, 100% 0%, 0 0;
  background-size: 130% 130%, 120% 120%, auto;
  animation: kc-ambient-glow 18s ease-in-out infinite alternate;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  z-index: -1;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(182, 106, 72, 0.18) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(111, 127, 104, 0.16) 0 1px, transparent 1.5px);
  background-position: 0 0, 26px 34px;
  background-size: 86px 86px, 118px 118px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 62%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 62%);
  opacity: 0.28;
  z-index: -1;
  animation: kc-data-drift 28s linear infinite;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-hover);
}

main {
  padding: 1rem 0.6rem 4.5rem;
}

.container {
  width: min(1360px, calc(100vw - 1.2rem));
  margin: 0 auto;
}

.container--narrow {
  width: min(980px, calc(100vw - 1.2rem));
}

.page-stack {
  display: grid;
  gap: 1.75rem;
}

.page-stack > * {
  animation: kc-rise-in 0.72s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.page-stack > *:nth-child(2) {
  animation-delay: 0.08s;
}

.page-stack > *:nth-child(3) {
  animation-delay: 0.16s;
}

.page-stack > *:nth-child(4) {
  animation-delay: 0.24s;
}

.page-stack > *:nth-child(5) {
  animation-delay: 0.32s;
}

.page-stack > *:nth-child(n + 6) {
  animation-delay: 0.4s;
}

.surface {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.section {
  padding: 2rem;
}

.section-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 253, 249, 0.92));
}

.section-heading {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sage);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.7rem, 6vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
}

h3 {
  font-size: 1.45rem;
}

p {
  margin: 0;
}

.lead {
  font-size: 1.22rem;
  color: var(--text-muted);
  max-width: 44rem;
}

.text-muted {
  color: var(--text-muted);
}

/* Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
  background: rgba(255, 253, 249, 0.96);
  border-bottom: 1px solid rgba(31, 41, 36, 0.08);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

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

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-shell {
  width: min(1440px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 1rem 0.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.nav-brand:hover {
  color: var(--ink);
  text-decoration: none;
}

.nav-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: linear-gradient(145deg, var(--accent-soft), var(--sage-soft));
  box-shadow: inset 0 0 0 1px rgba(31, 41, 36, 0.05);
  animation: kc-brand-pulse 6.5s ease-in-out infinite;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.07rem;
}

.nav-brand-name {
  font-size: 1.55rem;
  letter-spacing: 0.01em;
}

.nav-brand-tag {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.nav-links-wrap {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.nav-links a {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: rgba(239, 229, 215, 0.9);
}

@media (max-width: 920px) {
  .nav-shell {
    position: relative;
    justify-content: space-between;
    padding: 0.65rem 1rem;
    gap: 0.75rem;
    flex-wrap: nowrap;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-brand {
    width: auto;
    justify-content: flex-start;
  }

  .nav-links-wrap {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    width: auto;
    background: rgba(255, 253, 249, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(31, 41, 36, 0.08);
    border-radius: 20px;
    box-shadow: 0 14px 40px rgba(22, 27, 23, 0.1);
    padding: 0.75rem;
    z-index: 200;
  }

  .nav-links-wrap.is-open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 0.25rem;
  }

  .nav-links a {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }
}

/* Buttons */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: -40% -60%;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.45) 50%, transparent 62%);
  transform: translateX(-80%) rotate(8deg);
  transition: transform 0.55s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:hover::after {
  transform: translateX(80%) rotate(8deg);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px rgba(182, 106, 72, 0.25);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
  color: var(--ink);
}

.btn-secondary:hover {
  background: #fff;
  color: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 2rem;
}

.hero::before,
.page-header::before {
  content: "";
  position: absolute;
  width: min(460px, 72vw);
  aspect-ratio: 1;
  right: -130px;
  top: -160px;
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 253, 249, 0.92) 0 10%, transparent 11%),
    repeating-conic-gradient(from 0deg, rgba(182, 106, 72, 0.2) 0deg 8deg, transparent 8deg 18deg),
    radial-gradient(circle, rgba(216, 224, 210, 0.4), transparent 64%);
  filter: blur(0.2px);
  opacity: 0.46;
  z-index: -1;
  animation: kc-orbit-field 26s linear infinite;
}

.hero::after,
.page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 36%, rgba(255, 255, 255, 0.38) 48%, transparent 60%),
    radial-gradient(circle at 18% 78%, rgba(182, 106, 72, 0.14), transparent 22%),
    radial-gradient(circle at 74% 24%, rgba(111, 127, 104, 0.16), transparent 24%);
  background-size: 220% 100%, auto, auto;
  opacity: 0.62;
  z-index: -1;
  animation: kc-panel-scan 13s ease-in-out infinite;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1.5rem;
  align-items: stretch;
}

.hero h1,
.page-header h1 {
  color: var(--ink);
  background: linear-gradient(100deg, var(--ink) 0%, var(--accent) 38%, var(--sage) 62%, var(--ink) 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: kc-text-current 10s ease-in-out infinite;
}

@supports (-webkit-text-fill-color: transparent) {
  .hero h1,
  .page-header h1 {
    -webkit-text-fill-color: transparent;
  }
}

.hero-copy {
  display: grid;
  align-content: center;
  gap: 1rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sage);
  background: rgba(216, 224, 210, 0.55);
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.2rem;
}

.hero-note span,
.trust-bar span,
.mini-pill {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(31, 41, 36, 0.08);
}

.hero-note span::before,
.trust-bar span::before,
.mini-pill::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(182, 106, 72, 0.12);
  animation: kc-dot-blink 4.8s ease-in-out infinite;
}

.hero-note span:nth-child(2)::before,
.trust-bar span:nth-child(2)::before {
  animation-delay: 0.7s;
}

.hero-note span:nth-child(3)::before,
.trust-bar span:nth-child(3)::before {
  animation-delay: 1.4s;
}

.trust-bar span:nth-child(4)::before {
  animation-delay: 2.1s;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.94), rgba(239, 229, 215, 0.75));
  border: 1px solid rgba(31, 41, 36, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  display: grid;
  gap: 1rem;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(182, 106, 72, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(111, 127, 104, 0.09) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(circle at 75% 18%, rgba(0, 0, 0, 0.72), transparent 58%);
  mask-image: radial-gradient(circle at 75% 18%, rgba(0, 0, 0, 0.72), transparent 58%);
  opacity: 0.48;
  animation: kc-grid-shift 18s linear infinite;
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

.hero-panel h3 {
  font-size: 1.3rem;
}

.hero-metrics {
  display: grid;
  gap: 0.8rem;
}

.metric {
  position: relative;
  display: grid;
  gap: 0.15rem;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 41, 36, 0.08);
  border-radius: var(--radius-md);
}

.metric::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--sage));
  opacity: 0.52;
  transform: scaleY(0.35);
  transform-origin: center;
  animation: kc-metric-read 5.8s ease-in-out infinite;
}

.metric:nth-child(2)::before {
  animation-delay: 0.8s;
}

.metric:nth-child(3)::before {
  animation-delay: 1.6s;
}

.metric strong {
  font-size: 1.05rem;
  color: var(--ink);
}

.metric span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.quote-block {
  position: relative;
  overflow: hidden;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.66);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.quote-block::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.42) 45%, transparent 72%);
  transform: translateX(-120%);
  animation: kc-sheen 9s ease-in-out infinite;
}

.quote-block strong,
.quote-block span {
  position: relative;
  z-index: 1;
}

.quote-block strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

/* Content layouts */
.grid-2,
.split-grid,
.contact-grid,
.footer-grid,
.service-card-grid,
.product-grid,
.outcome-grid,
.process-grid,
.principles-grid,
.compare-grid {
  display: grid;
  gap: 1rem;
}

.grid-2,
.split-grid,
.compare-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card-grid,
.product-grid,
.outcome-grid,
.process-grid,
.principles-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card,
.step-card,
.info-card,
.service-card,
.product-card,
.compare-card,
.contact-card,
.footer-card {
  padding: 1.35rem;
  border-radius: var(--radius-md);
  background: var(--bg-panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card,
.service-card,
.product-card,
.compare-card,
.step-card {
  display: grid;
  gap: 0.7rem;
}

.card:hover,
.step-card:hover,
.info-card:hover,
.service-card:hover,
.product-card:hover,
.compare-card:hover,
.contact-card:hover,
.footer-card:hover {
  transform: translateY(-2px);
  border-color: rgba(182, 106, 72, 0.24);
  box-shadow: var(--shadow);
}

.card p,
.service-card p,
.product-card p,
.compare-card p,
.step-card p,
.contact-card p,
.footer-card p {
  color: var(--text-muted);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  text-decoration: none;
}

.card-link::after {
  content: "->";
  opacity: 0.75;
}

.list-clean,
.bullet-list,
.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bullet-list,
.info-list {
  display: grid;
  gap: 0.75rem;
}

.bullet-list li,
.info-list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--text-muted);
}

.bullet-list li::before,
.info-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.kpi {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.kpi strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 0.45rem;
}

.kpi span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.page-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 2rem;
  display: grid;
  gap: 0.65rem;
}

.page-header > * {
  position: relative;
  z-index: 1;
}

.page-header .lead {
  max-width: 48rem;
}

.highlight-band,
.cta-band {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(182, 106, 72, 0.12), rgba(216, 224, 210, 0.32));
  border: 1px solid rgba(31, 41, 36, 0.08);
}

.highlight-band {
  display: grid;
  gap: 1rem;
}

.cta-band {
  display: grid;
  gap: 0.8rem;
  align-items: center;
}

.cta-band .btn-row {
  margin-top: 0.25rem;
}

.number-tag {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(182, 106, 72, 0.12);
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.38rem 0.68rem;
  border-radius: var(--radius-pill);
  background: rgba(216, 224, 210, 0.6);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.service-meta,
.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.contact-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.contact-form,
.contact-aside {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.form-stack {
  display: grid;
  gap: 1rem;
}

.form-group {
  display: grid;
  gap: 0.45rem;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: rgba(255, 253, 249, 0.95);
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid rgba(182, 106, 72, 0.22);
  outline-offset: 2px;
}

.contact-aside {
  display: grid;
  gap: 1.1rem;
  background: linear-gradient(180deg, rgba(239, 229, 215, 0.5), rgba(255, 255, 255, 0.82));
}

.contact-prompt {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
}

/* Footer */
.site-footer {
  padding: 0 0.6rem 2.4rem;
}

.footer-shell {
  width: min(1440px, calc(100vw - 1.2rem));
  margin: 0 auto;
  padding: 1.5rem;
  border-radius: 18px;
  background: rgba(33, 41, 37, 0.96);
  color: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.footer-grid {
  grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(180px, 1fr));
  align-items: start;
}

.footer-brand {
  display: grid;
  gap: 0.9rem;
}

.footer-brand-top {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(241, 216, 197, 0.9), rgba(216, 224, 210, 0.95));
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: #fff;
}

.footer-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links,
.footer-meta {
  display: grid;
  gap: 0.55rem;
}

.footer-links strong,
.footer-meta strong {
  color: #fff;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.footer-links a,
.footer-meta a,
.footer-shell p {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.footer-links a:hover,
.footer-meta a:hover {
  color: #fff;
}

.footer-meta .footer-link-btn,
.footer-link-btn {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  background-color: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  width: max-content;
  justify-self: start;
}

.footer-link-btn:hover,
.footer-link-btn:focus-visible {
  color: #fff;
  text-decoration: underline;
  background: transparent;
  background-color: transparent;
}

.footer-link-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer-bottom {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.62);
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1200;
  background: rgba(22, 24, 29, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.38);
}

.cookie-banner-body {
  flex: 1 1 22rem;
  min-width: 0;
}

.cookie-banner-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: 0.01em;
}

.cookie-banner-text {
  margin: 0;
  max-width: 68ch;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.5;
}

.cookie-banner-text a {
  color: #fff;
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.cookie-banner .btn {
  padding: 0.55rem 0.95rem;
  min-width: unset;
  font-size: 0.92rem;
}

.cookie-modal-open {
  overflow: hidden;
}

.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(16, 18, 22, 0.55);
  display: none;
  place-items: center;
  padding: 1rem;
}

.cookie-modal-backdrop.is-open {
  display: grid;
}

.cookie-modal {
  position: relative;
  width: min(560px, 100%);
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(24, 30, 38, 0.12);
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.cookie-modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: rgba(24, 30, 38, 0.55);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 999px;
  padding: 0;
}

.cookie-modal-close:hover,
.cookie-modal-close:focus-visible {
  color: #111;
  background: rgba(24, 30, 38, 0.06);
  outline: none;
}

.cookie-modal-view {
  display: grid;
  gap: 0.95rem;
}

.cookie-modal-view[hidden] {
  display: none;
}

.cookie-modal-title {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.25;
  padding-right: 1.5rem;
}

.cookie-modal-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.cookie-toggle-list {
  display: grid;
  gap: 0.65rem;
  margin: 0.1rem 0 0.25rem;
}

.cookie-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(24, 30, 38, 0.1);
  border-radius: 12px;
  background: rgba(24, 30, 38, 0.02);
  cursor: pointer;
}

.cookie-toggle input {
  width: 18px;
  height: 18px;
  margin-top: 0.18rem;
  flex-shrink: 0;
}

.cookie-toggle.is-locked {
  cursor: not-allowed;
  opacity: 0.85;
}

.cookie-toggle-text {
  display: grid;
  gap: 0.15rem;
}

.cookie-toggle-text strong {
  color: #181e26;
  font-size: 0.98rem;
}

.cookie-toggle-text span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 0.2rem;
}

.cookie-modal-actions .btn {
  min-width: unset;
}

.cookie-modal-actions-stack {
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  gap: 0.55rem;
}

.cookie-modal-actions-stack .btn {
  width: 100%;
  justify-content: center;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .grid-2,
  .split-grid,
  .compare-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust-bar,
  .kpi-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  main {
    padding: 0.85rem 0.45rem 4rem;
  }

  .site-header,
  .site-footer {
    padding-left: 0.45rem;
    padding-right: 0.45rem;
  }

  .site-header {
    padding-left: 0;
    padding-right: 0;
  }

  .hero,
  .page-header,
  .section {
    padding: 1.35rem;
  }

  .nav-brand-name {
    font-size: 1.35rem;
  }

  .nav-brand-tag {
    font-size: 0.58rem;
    letter-spacing: 0.14em;
  }

  h1 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 2rem;
  }

  .cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 1rem;
  }

  .cookie-banner-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .cookie-modal {
    padding: 1.4rem 1.15rem 1.2rem;
  }

  .cookie-modal-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-modal-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.form-errors {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.form-success {
  padding: 2rem 1.5rem;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--radius-md);
  color: #166534;
  text-align: center;
  display: grid;
  gap: 0.5rem;
}

.form-success strong {
  display: block;
  font-size: 1.15rem;
  color: #14532d;
}

/* Engagement workflow (visual, abstract — no platform internals) */
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  position: relative;
}

.flow::before {
  content: "";
  position: absolute;
  top: 34px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--accent-soft) 0%,
    var(--sage-soft) 50%,
    var(--accent-soft) 100%
  );
  background-size: 200% 100%;
  border-radius: 2px;
  opacity: 0.85;
  z-index: 0;
  animation: kc-flow-line 7s ease-in-out infinite;
}

.flow-step {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.85rem;
  padding: 1.25rem 1.1rem 1.35rem;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.flow-step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.flow-node {
  position: relative;
  width: 68px;
  height: 68px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent-soft), var(--sage-soft));
  border: 1px solid rgba(31, 41, 36, 0.08);
  box-shadow: inset 0 0 0 4px rgba(255, 253, 249, 0.85);
  color: var(--accent);
  animation: kc-node-pulse 6.5s ease-in-out infinite;
}

.flow-icon {
  width: 26px;
  height: 26px;
}

.flow-step-num {
  position: absolute;
  bottom: -6px;
  right: -6px;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(24, 26, 24, 0.18);
}

.flow-body {
  display: grid;
  gap: 0.4rem;
}

.flow-body h3 {
  font-size: 1.25rem;
}

.flow-body p {
  color: var(--text-muted);
  font-size: 0.97rem;
}

@media (max-width: 900px) {
  .flow {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .flow::before {
    top: 0;
    bottom: 0;
    left: 50%;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(
      180deg,
      var(--accent-soft) 0%,
      var(--sage-soft) 50%,
      var(--accent-soft) 100%
    );
    background-size: 100% 200%;
    transform: translateX(-50%);
    animation-name: kc-flow-line-vertical;
  }

  .flow-step {
    text-align: left;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
  }

  .flow-node {
    width: 58px;
    height: 58px;
  }

  .flow-icon {
    width: 22px;
    height: 22px;
  }
}

/* Guardrails strip — outcome language only, no platform internals */
.guardrail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.guardrail-card {
  position: relative;
  display: grid;
  gap: 0.7rem;
  padding: 1.4rem 1.3rem;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.guardrail-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--sage) 100%);
  opacity: 0.6;
}

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

.guardrail-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--accent-soft), var(--sage-soft));
  border: 1px solid rgba(31, 41, 36, 0.06);
  color: var(--accent);
}

.guardrail-icon svg {
  width: 22px;
  height: 22px;
}

.guardrail-card h3 {
  font-size: 1.2rem;
}

.guardrail-card p {
  color: var(--text-muted);
  font-size: 0.97rem;
}

@media (max-width: 900px) {
  .guardrail-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes kc-ambient-glow {
  0% {
    background-position: 0% 0%, 100% 0%, 0 0;
  }

  100% {
    background-position: 12% 8%, 88% 12%, 0 0;
  }
}

@keyframes kc-rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes kc-data-drift {
  from {
    background-position: 0 0, 26px 34px;
  }

  to {
    background-position: 86px 86px, 144px 152px;
  }
}

@keyframes kc-orbit-field {
  from {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(180deg) scale(1.04);
  }

  to {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes kc-panel-scan {
  0%,
  46% {
    background-position: -120% 0, 0 0, 0 0;
  }

  72%,
  100% {
    background-position: 120% 0, 0 0, 0 0;
  }
}

@keyframes kc-text-current {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes kc-brand-pulse {
  0%,
  100% {
    box-shadow: inset 0 0 0 1px rgba(31, 41, 36, 0.05), 0 0 0 rgba(182, 106, 72, 0);
  }

  50% {
    box-shadow: inset 0 0 0 1px rgba(31, 41, 36, 0.05), 0 0 28px rgba(182, 106, 72, 0.22);
  }
}

@keyframes kc-node-pulse {
  0%,
  100% {
    box-shadow: inset 0 0 0 4px rgba(255, 253, 249, 0.85), 0 0 0 rgba(111, 127, 104, 0);
  }

  50% {
    box-shadow: inset 0 0 0 4px rgba(255, 253, 249, 0.85), 0 0 26px rgba(111, 127, 104, 0.22);
  }
}

@keyframes kc-dot-blink {
  0%,
  100% {
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(182, 106, 72, 0.1);
    transform: scale(1);
  }

  50% {
    background: var(--sage);
    box-shadow: 0 0 0 7px rgba(111, 127, 104, 0.14);
    transform: scale(1.16);
  }
}

@keyframes kc-grid-shift {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 34px 34px, 34px 34px;
  }
}

@keyframes kc-metric-read {
  0%,
  100% {
    opacity: 0.38;
    transform: scaleY(0.28);
  }

  50% {
    opacity: 0.74;
    transform: scaleY(0.82);
  }
}

@keyframes kc-sheen {
  0%,
  58% {
    transform: translateX(-120%);
  }

  78%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes kc-flow-line {
  0%,
  100% {
    background-position: 0% 50%;
    opacity: 0.6;
  }

  50% {
    background-position: 100% 50%;
    opacity: 1;
  }
}

@keyframes kc-flow-line-vertical {
  0%,
  100% {
    background-position: 50% 0%;
    opacity: 0.6;
  }

  50% {
    background-position: 50% 100%;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
