/* Amity AI — Landing page
   Calm, warm, editorial. Mobile-first.
   Brand language consistent with the Claude-built beta app at claude.amityway.my. */

:root {
  --bg: #f6f1e7;
  --bg-soft: #faf6ec;
  --surface: #ffffff;
  --surface-muted: #f1ebde;

  --brand: #0e5346;
  --brand-strong: #093a31;
  --brand-soft: #2a7a68;
  --brand-tint: #d8e9e2;

  --card-cream: #fdf3d8;
  --card-mint: #dfede2;
  --card-lilac: #e3e6f3;
  --card-peach: #f8e3cb;
  --card-blush: #fadcd6;

  --text: #18302a;
  --text-soft: #4d5e58;
  --text-muted: #7a8a83;
  --border: #e6dfce;
  --border-strong: #d6cdb6;

  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 0 rgba(20, 30, 25, .04), 0 6px 18px rgba(20, 30, 25, .04);
  --shadow-md: 0 2px 0 rgba(20, 30, 25, .04), 0 14px 40px rgba(20, 30, 25, .07);
  --shadow-lg: 0 2px 0 rgba(20, 30, 25, .05), 0 30px 60px rgba(20, 30, 25, .10);

  --container: 1120px;
  --gutter: clamp(20px, 4vw, 40px);

  --font-sans: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--brand); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-strong); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--brand);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 1000;
}
.skip-link:focus { left: 16px; }

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

/* ------- Decorative animated background ------- */

.bg-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  will-change: transform;
}
.blob-1 {
  width: 520px; height: 520px;
  top: -180px; right: -120px;
  background: radial-gradient(circle, #d8e9e2 0%, transparent 70%);
  animation: float-a 22s ease-in-out infinite;
}
.blob-2 {
  width: 460px; height: 460px;
  top: 40%; left: -160px;
  background: radial-gradient(circle, #f8e3cb 0%, transparent 70%);
  animation: float-b 28s ease-in-out infinite;
}
.blob-3 {
  width: 380px; height: 380px;
  bottom: -120px; right: 10%;
  background: radial-gradient(circle, #e3e6f3 0%, transparent 70%);
  animation: float-c 25s ease-in-out infinite;
}
@keyframes float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-40px, 30px) scale(1.05); }
}
@keyframes float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(50px, -30px) scale(1.08); }
}
@keyframes float-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-30px, -40px) scale(1.06); }
}

/* ------- Reveal-on-scroll ------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger inside groups */
.value-grid > .reveal:nth-child(1) { transition-delay: 0ms; }
.value-grid > .reveal:nth-child(2) { transition-delay: 80ms; }
.value-grid > .reveal:nth-child(3) { transition-delay: 160ms; }
.value-grid > .reveal:nth-child(4) { transition-delay: 240ms; }
.audience-grid > .reveal:nth-child(1) { transition-delay: 0ms; }
.audience-grid > .reveal:nth-child(2) { transition-delay: 80ms; }
.audience-grid > .reveal:nth-child(3) { transition-delay: 160ms; }
.audience-grid > .reveal:nth-child(4) { transition-delay: 240ms; }
.steps > .reveal:nth-child(1) { transition-delay: 0ms; }
.steps > .reveal:nth-child(2) { transition-delay: 90ms; }
.steps > .reveal:nth-child(3) { transition-delay: 180ms; }
.steps > .reveal:nth-child(4) { transition-delay: 270ms; }
.hero-visual > .reveal:nth-child(2) { transition-delay: 200ms; }
.hero-visual > .reveal:nth-child(3) { transition-delay: 380ms; }
.hero-visual > .reveal:nth-child(4) { transition-delay: 540ms; }
.hero-visual > .reveal:nth-child(5) { transition-delay: 700ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .blob { display: none; }
}

/* ------- Layout primitives ------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  width: 100%;
  position: relative;
}

.section {
  padding: clamp(56px, 9vw, 110px) 0;
  position: relative;
}
.section-soft { background: var(--bg-soft); }

.section-divider {
  display: block;
  width: 100%;
  height: 60px;
  margin: 0;
  margin-top: -60px;
  position: relative;
  z-index: 1;
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(36px, 6vw, 64px);
  text-align: center;
}
.kicker {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-soft);
  margin: 0 0 14px;
  font-weight: 600;
}
.title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4.4vw, 44px);
  letter-spacing: -0.01em;
  line-height: 1.12;
  color: var(--text);
  margin: 0 0 16px;
}
.subtitle {
  color: var(--text-soft);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 60ch;
}
.footnote {
  color: var(--text-muted);
  text-align: center;
  margin-top: 36px;
  font-size: 14px;
}

/* ------- Header ------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 241, 231, 0.78);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(230, 223, 206, 0.6);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--brand-strong); }
.brand-mark-img {
  width: 36px; height: 36px;
  object-fit: contain;
  display: block;
  transition: transform .35s var(--ease);
}
.brand:hover .brand-mark-img { transform: rotate(-6deg) scale(1.04); }
.brand-word { font-size: 18px; }
.header-nav {
  display: none;
  gap: 26px;
  font-size: 14.5px;
}
.header-nav a {
  color: var(--text-soft);
  font-weight: 500;
  position: relative;
}
.header-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1.5px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .25s var(--ease);
}
.header-nav a:hover { color: var(--brand); }
.header-nav a:hover::after { transform: scaleX(1); }
.header-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}
@media (min-width: 860px) {
  .header-nav { display: inline-flex; }
}
@media (max-width: 520px) {
  .header-cta .btn-ghost { display: none; }
}

/* ------- Buttons ------- */

.btn {
  --btn-bg: var(--brand);
  --btn-color: #fff;
  --btn-border: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-color);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  line-height: 1;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary {
  --btn-bg: var(--brand);
  --btn-color: #fff;
  --btn-border: var(--brand);
  box-shadow: 0 6px 18px rgba(14, 83, 70, 0.18);
}
.btn-primary:hover { --btn-bg: var(--brand-strong); --btn-border: var(--brand-strong); color: #fff; box-shadow: 0 10px 22px rgba(14, 83, 70, 0.25); }
.btn-secondary {
  --btn-bg: transparent;
  --btn-color: var(--brand);
  --btn-border: rgba(14, 83, 70, 0.4);
}
.btn-secondary:hover {
  --btn-bg: var(--brand-tint);
  --btn-border: rgba(14, 83, 70, 0.6);
  color: var(--brand-strong);
}
.btn-ghost {
  --btn-bg: transparent;
  --btn-color: var(--text-soft);
  --btn-border: transparent;
}
.btn-ghost:hover { --btn-bg: var(--surface-muted); color: var(--text); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .65; cursor: progress; transform: none; }
.btn-ico { transition: transform .2s var(--ease); }
.btn:hover .btn-ico { transform: translateX(2px); }

/* ------- Hero ------- */

.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(72px, 10vw, 130px);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(48px, 7vw, 90px);
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; }
}
.eyebrow {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
  display: inline-block;
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.8); }
}
.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 22px;
}
.display-em {
  display: block;
  color: var(--brand);
  font-style: italic;
  font-weight: 400;
}
.lead {
  color: var(--text-soft);
  font-size: clamp(17px, 1.7vw, 19px);
  line-height: 1.55;
  margin: 0 0 30px;
  max-width: 56ch;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
.cta-row-stack { margin-bottom: 0; }
.trust-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13.5px;
  margin: 0;
}
.trust-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-soft);
  display: inline-block;
  animation: pulse-soft 3s ease-in-out infinite;
}
@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(42, 122, 104, .4); }
  50%      { box-shadow: 0 0 0 6px rgba(42, 122, 104, 0); }
}

/* Hero visual: stacked product mock cards with connectors */

.hero-visual {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 6px;
  isolation: isolate;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -10% -8% -10% -8%;
  z-index: -1;
  border-radius: 40px;
  background: radial-gradient(60% 60% at 50% 40%, rgba(14, 83, 70, 0.06), transparent 70%);
}
.hero-connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
.connector {
  stroke-dasharray: 4 6;
  stroke-dashoffset: 0;
  animation: dash-flow 7s linear infinite;
}
.connector-2 { animation-delay: -3.5s; }
@keyframes dash-flow {
  to { stroke-dashoffset: -100; }
}
.mock-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.mock-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.mock-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.mock-original {
  background: var(--card-blush);
  border-color: rgba(20, 30, 25, 0.05);
  margin-right: clamp(0px, 8vw, 64px);
}
.mock-reframed {
  background: var(--card-mint);
  border-color: rgba(20, 30, 25, 0.05);
  margin-left: clamp(0px, 8vw, 48px);
}
.mock-why {
  background: var(--card-lilac);
  border-color: rgba(20, 30, 25, 0.05);
  margin-right: clamp(0px, 12vw, 96px);
}
.mock-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
}
.mock-tag-blush { color: #8a3326; }
.mock-tag-mint  { color: #1f5a3a; }
.mock-tag-lilac { color: #4a4d75; }
.mock-text {
  font-family: var(--font-display);
  font-size: clamp(15.5px, 1.5vw, 17.5px);
  line-height: 1.45;
  color: var(--text);
  margin: 0 0 12px;
  font-weight: 500;
}
.mock-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--text-soft);
}
.mock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 11.5px;
}
.mock-pill-warn { color: #8a3326; }
.mock-pill-ok   { color: #1f5a3a; }
.mock-pulse circle, .mock-pulse {
  animation: ping 1.6s ease-in-out infinite;
  transform-origin: center;
}
@keyframes ping {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.25); opacity: 0.7; }
}
.mock-time { color: var(--text-muted); font-size: 11.5px; }
.mock-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.mock-btn {
  border: none;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(20, 30, 25, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform .15s var(--ease), background .15s ease, border-color .15s ease;
}
.mock-btn:hover { transform: translateY(-1px); }
.mock-btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.mock-btn-primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.mock-btn-ghost:hover { background: rgba(255, 255, 255, 0.7); }

.mock-tone-bar {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 22px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-pill);
  padding: 0 12px 0 6px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6a2a1f;
  min-width: 140px;
}
.mock-tone-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: var(--w, 70%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c, #c0432f) 28%, transparent));
  animation: fill-grow 1.8s var(--ease) .3s both;
  transform-origin: 0 50%;
}
@keyframes fill-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.mock-tone-label { position: relative; z-index: 1; }

.mock-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.mock-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.45;
}
.mock-bullet {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  margin-top: 8px;
  flex-shrink: 0;
}

/* Processing indicator between cards */
.mock-process {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: center;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  color: var(--text-soft);
  font-weight: 500;
  width: max-content;
  margin: 0 auto;
  backdrop-filter: blur(4px);
}
.dots {
  display: inline-flex;
  gap: 4px;
}
.dots i {
  width: 5px; height: 5px;
  background: var(--brand);
  border-radius: 50%;
  display: inline-block;
  animation: dot-bounce 1.2s ease-in-out infinite;
}
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40%           { transform: translateY(-3px); opacity: 1; }
}

/* ------- Icons (value cards) ------- */

.ico-wrap {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.75);
  margin-bottom: 14px;
  transition: transform .35s var(--ease), background .25s ease;
}
.ico-wrap-cream { background: rgba(255, 255, 255, 0.9); }
.ico-wrap-mint  { background: rgba(255, 255, 255, 0.9); }
.ico-wrap-lilac { background: rgba(255, 255, 255, 0.9); }
.ico-wrap-blush { background: rgba(255, 255, 255, 0.9); }
.value-card:hover .ico-wrap { transform: rotate(-4deg) scale(1.05); }

/* ------- Value cards ------- */

.value-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .value-grid { grid-template-columns: repeat(4, 1fr); } }

.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 22px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease);
}
.value-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.value-card-cream { background: var(--card-cream); border-color: rgba(20,30,25,.05); }
.value-card-mint  { background: var(--card-mint);  border-color: rgba(20,30,25,.05); }
.value-card-lilac { background: var(--card-lilac); border-color: rgba(20,30,25,.05); }
.value-card-blush { background: var(--card-blush); border-color: rgba(20,30,25,.05); }

.card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.25;
  margin: 0 0 6px;
  color: var(--text);
  letter-spacing: -0.005em;
}
.card-body {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.55;
}

/* ------- Audience cards (with SVG illustrations) ------- */

.audience-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .audience-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .audience-grid { grid-template-columns: repeat(4, 1fr); } }

.audience-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 22px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), border-color .2s ease;
}
.audience-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.audience-art {
  width: 100%;
  height: 96px;
  border-radius: var(--radius-sm);
  background: var(--card-mint);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.audience-art svg { width: 100%; height: 100%; }
.audience-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 20% 30%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(50% 60% at 90% 80%, rgba(0,0,0,.04), transparent 70%);
  pointer-events: none;
}
.swatch-blush { background: var(--card-blush); }
.swatch-mint  { background: var(--card-mint); }
.swatch-cream { background: var(--card-cream); }
.swatch-lilac { background: var(--card-lilac); }

/* Audience illustrations animations */
.aud-pulse {
  transform-origin: center;
  animation: aud-pulse 4s ease-in-out infinite;
}
.aud-pulse-2 { animation-delay: -2s; }
@keyframes aud-pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50%      { transform: scale(1.06); opacity: 0.5; }
}
.aud-line {
  stroke-dasharray: 2 4;
  animation: dash-flow-slow 8s linear infinite;
}
@keyframes dash-flow-slow {
  to { stroke-dashoffset: -60; }
}
.aud-orbit {
  transform-origin: center;
  animation: rotate-slow 20s linear infinite;
}
@keyframes rotate-slow {
  to { transform: rotate(360deg); }
}
.aud-link {
  stroke-dasharray: 2 3;
  animation: dash-flow-slow 6s linear infinite;
}
.aud-shape {
  transform-origin: center;
  animation: shape-breath 6s ease-in-out infinite;
}
@keyframes shape-breath {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}
.aud-center {
  transform-origin: center;
  animation: pulse-grow 3s ease-in-out infinite;
}
@keyframes pulse-grow {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50%      { transform: scale(1.12); opacity: 1; }
}

/* ------- Steps ------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  counter-reset: step;
  position: relative;
}
@media (min-width: 720px)  { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 22px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .25s var(--ease);
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  color: var(--brand-soft);
  margin-bottom: 0;
  display: inline-block;
  letter-spacing: -0.01em;
}
.step-ico {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-tint);
  margin-bottom: 6px;
  transition: transform .35s var(--ease);
}
.step:hover .step-ico { transform: rotate(-4deg) scale(1.05); }

.ico-pulse {
  transform-origin: center;
  animation: pulse-grow 2.4s ease-in-out infinite;
}

/* ------- Final CTA ------- */

.section-cta {
  background:
    radial-gradient(80% 60% at 0% 0%, #d8e9e2 0%, transparent 60%),
    radial-gradient(80% 80% at 100% 100%, #f8e3cb 0%, transparent 60%),
    var(--bg-soft);
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 5vw, 60px);
  align-items: start;
}
@media (min-width: 960px) {
  .cta-grid { grid-template-columns: 1fr 1fr; align-items: center; }
}
.cta-copy .title { text-align: left; max-width: 18ch; }
.cta-copy .subtitle { margin-left: 0; max-width: 52ch; }

/* ------- Forms ------- */

.forms-stack {
  display: grid;
  gap: 16px;
}
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow .25s var(--ease);
}
.form-card:focus-within { box-shadow: var(--shadow-lg); }
.form-card-soft {
  background: var(--bg-soft);
  border-color: rgba(20,30,25,.06);
  box-shadow: var(--shadow-sm);
}
.form-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.form-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--brand-tint);
}
.form-desc {
  margin: -4px 0 4px;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.55;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.field input[type="email"] {
  font: inherit;
  font-size: 16px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}
.form-card-soft .field input[type="email"] { background: #fff; }
.field input[type="email"]:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(14, 83, 70, 0.12);
}
.field input[type="email"]::placeholder { color: var(--text-muted); }

.form-inline {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}
@media (min-width: 540px) {
  .form-inline { grid-template-columns: 1fr auto; align-items: stretch; }
  .form-inline .btn { padding-top: 13px; padding-bottom: 13px; }
}
.field-grow { flex: 1; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.5;
  cursor: pointer;
}
.consent input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
  flex-shrink: 0;
}
.consent a { text-decoration: underline; text-underline-offset: 2px; }

.form-status {
  margin: 0;
  font-size: 14px;
  min-height: 1.2em;
}
.form-status.is-success { color: var(--brand); font-weight: 600; }
.form-status.is-error   { color: #8a3326; font-weight: 600; }

.form-or {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
  text-align: center;
}
.text-link {
  color: var(--brand);
  font-weight: 600;
  border-bottom: 1px solid rgba(14, 83, 70, 0.25);
  padding-bottom: 1px;
}
.text-link:hover { border-bottom-color: var(--brand); }

/* ------- Footer ------- */

.site-footer {
  background: var(--surface-muted);
  border-top: 1px solid var(--border);
  padding: 40px 0 36px;
}
.footer-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr auto;
    align-items: center;
  }
}
.footer-tag {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 14px;
  max-width: 40ch;
}
.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 14px;
}
.footer-links a { color: var(--text-soft); font-weight: 500; }
.footer-links a:hover { color: var(--brand); }
.footer-copy {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
}

/* ------- Cookie banner ------- */

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 18px 20px;
  animation: slide-up .35s var(--ease);
}
@media (min-width: 720px) {
  .cookie-banner { left: 24px; right: 24px; max-width: 720px; margin-left: auto; margin-right: auto; }
}
.cookie-inner {
  display: grid;
  gap: 14px;
}
@media (min-width: 720px) {
  .cookie-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 18px;
  }
}
.cookie-text {
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.5;
}
.cookie-text strong { color: var(--text); display: block; margin-bottom: 2px; }
.cookie-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@keyframes slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ------- Privacy modal ------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 25, 0.4);
  border: 0;
  cursor: pointer;
  padding: 0;
}
.modal-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  max-width: 520px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: pop-in .25s var(--ease);
}
.modal-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.005em;
}
.modal-close {
  background: transparent;
  border: 0;
  font-size: 26px;
  line-height: 1;
  color: var(--text-soft);
  padding: 4px 10px;
  border-radius: 999px;
}
.modal-close:hover { background: var(--surface-muted); color: var(--text); }
.modal-body {
  padding: 18px 20px 22px;
  overflow: auto;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.6;
}
.modal-body p { margin: 0 0 10px; }

@keyframes pop-in {
  from { transform: translateY(8px) scale(.98); opacity: 0; }
  to   { transform: translateY(0)    scale(1);   opacity: 1; }
}
