/* ============================================================
   Claylo — landing page template. Pure CSS, no JS, no build step.
   Visual style: Claymorphism — see DESIGN.md (mandatory).
   All key settings live in :root below.
   ============================================================ */

/* ---------- 0. Self-hosted fonts (no external requests) ----------
   Variable fonts, latin subset only — small files, font-display: swap
   keeps text visible during load (protects LCP / PageSpeed). */
@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/fredoka-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}

/* ---------- 1. Design tokens (see DESIGN.md) ---------- */
:root {
  /* Base colors — warm cream & brown */
  --c-bg: #FFF7ED;
  --c-bg-alt: #FDEEDC;
  --c-surface: #FFFDF7;   /* brighter than bg — surfaces read clearly even before shadows */
  --c-text: #7C2D12;
  --c-muted: #A16B47;
  --c-border: #F3DFC7;

  /* Accent — tangerine orange */
  --c-accent: #FB923C;
  --c-accent-deep: #EA7317;
  --c-accent-text: #ffffff;

  /* Pastel candy set (fixed rotation: mint → lavender → pink → yellow → blue) */
  --c-mint: #A7E3C5;      --c-mint-text: #1F7A54;
  --c-lavender: #C7BCF2;  --c-lavender-text: #5B4AA8;
  --c-pink: #F6A8C0;      --c-pink-text: #B0336A;
  --c-yellow: #F2D983;    --c-yellow-text: #8A6D1A;
  --c-blue: #A8C8F0;      --c-blue-text: #2F5EA8;

  /* Rating star gold — saturated on purpose (a tiny accent, not a surface);
     the empty/track state uses --c-border */
  --c-star: #F2B33D;

  /* Typography: self-hosted fonts (fonts/ dir), rounded system fallbacks.
     --font-display → ALL headings; --font-body → paragraphs & everything else */
  --font-display: "Fredoka", ui-rounded, "SF Pro Rounded",
                  "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system,
               "Segoe UI", Roboto, sans-serif;

  /* Heading line-height: tight (20% below the classic 1.15) —
     Fredoka's chunky glyphs stay readable and gain a compact clay look */
  --leading-heading: 0.92;

  /* Shape */
  --radius: 24px;
  --radius-lg: 32px;
  --radius-pill: 999px;
  --container: 1140px;

  /* ===== Shadow system (see DESIGN.md §3) =====
     One hue → four layer primitives per size → composed elevations.
     Components use ONLY the composed --clay-* tokens below.

     Layers per elevation:
       highlight — TWO inset top lights: crisp rim + deep soft glow
                   (the puffy "light falls from above" clay effect)
       shade     — TIGHT inset bottom rim (crisp, like plasticine self-shading;
                   a tight rim reads clean, a blurry wash reads muddy)
       contact   — small crisp shadow at the edge (clean separation)
       ambient   — soft distant shadow with NEGATIVE spread (no muddy halo) */
  --shadow-hue: 124 45 18; /* warm brown — the only place the shadow color lives */

  --highlight-sm: inset 0 2px 2px rgb(255 255 255 / .95),
                  inset 0 8px 10px -6px rgb(255 255 255 / .8);
  --shade-sm:     inset 0 -3px 3px -1px rgb(var(--shadow-hue) / .18);
  --contact-sm:   0 1px 2px rgb(var(--shadow-hue) / .14);
  --ambient-sm:   0 4px 10px -2px rgb(var(--shadow-hue) / .10);

  --highlight-md: inset 0 3px 3px rgb(255 255 255 / .95),
                  inset 0 12px 16px -8px rgb(255 255 255 / .85);
  --shade-md:     inset 0 -4px 4px -1px rgb(var(--shadow-hue) / .20);
  --contact-md:   0 2px 3px rgb(var(--shadow-hue) / .16);
  --ambient-md:   0 8px 18px -4px rgb(var(--shadow-hue) / .12);

  --highlight-lg: inset 0 4px 4px rgb(255 255 255 / 1),
                  inset 0 18px 24px -12px rgb(255 255 255 / .9);
  --shade-lg:     inset 0 -6px 6px -2px rgb(var(--shadow-hue) / .16);
  --contact-lg:   0 2px 4px rgb(var(--shadow-hue) / .12);
  --ambient-lg:   0 14px 30px -8px rgb(var(--shadow-hue) / .16);

  /* Composed elevations — the public API for components */
  --clay-sm: var(--highlight-sm), var(--shade-sm), var(--contact-sm), var(--ambient-sm);
  --clay-md: var(--highlight-md), var(--shade-md), var(--contact-md), var(--ambient-md);
  --clay-lg: var(--highlight-lg), var(--shade-lg), var(--contact-lg), var(--ambient-lg);

  /* Hover = same layers, ambient lifts further (kept tight via negative spread) */
  --clay-md-hover: var(--highlight-md), var(--shade-md), var(--contact-md),
                   0 12px 24px -6px rgb(var(--shadow-hue) / .20);
  --clay-lg-hover: var(--highlight-lg), var(--shade-lg), var(--contact-lg),
                   0 20px 38px -10px rgb(var(--shadow-hue) / .24);

  --clay-pressed: inset 0 2px 5px rgb(var(--shadow-hue) / .16),
                  inset 0 -1px 1px rgb(255 255 255 / .5),
                  0 1px 2px rgb(var(--shadow-hue) / .08);

  /* Orange clay gradient — lit from above */
  --gradient: linear-gradient(180deg, #FCA55C, #FB923C 55%, #F0821F);

  /* Motion easings (Disney-style):
     bounce — overshoot "squash & stretch" for clay elements
     out    — strong "slow out" deceleration for movement/height */
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

/* Safety net against horizontal overflow. `clip` (not `hidden`) does NOT
   create a scroll container and does NOT establish a containing block, so the
   fixed FAB menu is never trapped (see AGENTS.md). Decorations may still nudge
   past their box, but they can no longer produce a page-level horizontal
   scrollbar. */
html, body { overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: var(--leading-heading);
  margin: 0 0 .5em;
  letter-spacing: -.01em;
  font-weight: 600; /* Fredoka SemiBold reads as chunky-bold */
}
/* `overflow-wrap: anywhere` lets long words (e.g. "competitors") break instead
   of pushing a centered line past both viewport edges on narrow phones. The
   clamp minimum is tuned so the longest word still fits a ~320px content area. */
h1 {
  font-size: clamp(1.9rem, 5.5vw, 3.6rem);
  text-wrap: balance;
  overflow-wrap: anywhere;
  hyphens: auto;
}
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }

a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, label:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: var(--radius-pill);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 3. Utilities ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.container-narrow { max-width: 760px; }

.section { padding-block: clamp(64px, 10vw, 110px); }
.section-alt { background: var(--c-bg-alt); }

.section-header { text-align: center; max-width: 640px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-subtitle { color: var(--c-muted); font-size: 1.125rem; }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

.gradient-text { color: var(--c-accent-deep); }

/* Visually hidden but available to screen readers (e.g. Yes/No in the
   comparison table where the meaning is conveyed by an icon). */
.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;
}

/* Icons: Phosphor duotone sprite (inlined in index.html, MIT license).
   Icons inherit currentColor, so they always match the token-driven text color.
   display: inline-block overrides the global `img, svg { display: block }` reset
   so icons flow with the surrounding text instead of breaking the line. */
.icon {
  display: inline-block;
  width: 1em; height: 1em;
  fill: currentColor;
  vertical-align: -0.125em;
}
.logo .icon { color: var(--c-accent); }
.badge .icon { color: var(--c-accent-deep); margin-right: 4px; }
.nav-menu .icon { margin-right: 4px; }

.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--c-bg-alt);
  box-shadow: var(--clay-sm);
  color: var(--c-text);
  font-size: .85rem;
  font-weight: 700;
}

/* ---------- 4. Buttons (clay pills) ---------- */
.btn {
  /* inline-flex + centered content makes height depend on min-height/padding
     only — never on the font's line-height — so buttons and nav pills stay
     the same height (see §6.3: nav pills are 44 px tall). */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 28px;
  border-radius: var(--radius-pill);
  background: var(--gradient);
  box-shadow: var(--clay-md);
  color: var(--c-accent-text);
  font-weight: 700;
  text-decoration: none;
  text-shadow: 0 1px 1px rgba(124,45,18,.25);
  transition: transform .2s ease, box-shadow .2s ease;
  /* Reset native <button> chrome so <button class="btn"> matches <a class="btn">:
     no hard browser border, inherit the brand fonts, act clickable. */
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  line-height: 1.2;
  -webkit-appearance: none;
  appearance: none;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--clay-md-hover);
}
.btn:active { transform: translateY(1px) scale(.98); box-shadow: var(--clay-pressed); }

.btn-lg { padding: 17px 36px; font-size: 1.0625rem; }
.btn-sm { padding: 9px 20px; font-size: .95rem; }

/* Attention nudge: a short "shake-bottom" wobble pivoting on the bottom edge.
   The shake itself lasts 1s; padding the keyframes to 6s total (shake ends
   at ~16.7%, then rest) makes it repeat once every 6 seconds. Pauses on
   hover/focus so it never fights with user interaction. */
.attention-shake {
  animation: shake-bottom 6s cubic-bezier(.455, .03, .515, .955) 2s infinite both;
  transform-origin: 50% 100%;
}
.attention-shake:hover,
.attention-shake:focus-visible { animation-play-state: paused; }

@keyframes shake-bottom {
  0%, 16.7%, 100% { rotate: 0deg; }
  1.7%  { rotate: 2deg; }
  3.3%, 6.7%, 10% { rotate: -4deg; }
  5%, 8.3%, 11.7% { rotate: 4deg; }
  13.3% { rotate: -2deg; }
  15%   { rotate: 2deg; }
}

.btn-ghost {
  background: var(--c-surface);
  color: var(--c-text);
  box-shadow: var(--clay-sm);
  text-shadow: none;
}
.btn-ghost:hover { color: var(--c-accent-deep); }

.btn-invert {
  background: var(--c-surface);
  color: var(--c-accent-deep);
  text-shadow: none;
}
.btn-invert:hover { color: var(--c-accent-deep); }

/* ---------- 5. Header & nav (burger menu without JS) ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
}
/* IMPORTANT: backdrop-filter lives on a pseudo-element, NOT on .header.
   A backdrop-filter on .header would create a containing block and trap
   the fixed FAB button/menu inside the header instead of the viewport. */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--c-bg) 85%, transparent);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 8px rgb(var(--shadow-hue) / .05);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.logo { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; text-decoration: none; color: var(--c-text); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Nav links are pastel clay pills — fixed rotation: mint, lavender, pink, yellow */
.nav-menu a:not(.btn) {
  /* Match the button height model: fixed 44 px pill, content centered,
     so pills and the "Get Started" CTA line up regardless of line-height. */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  box-shadow: var(--clay-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  transition: transform .2s ease, box-shadow .2s ease, color .2s ease;
}
.nav-menu li:nth-child(1) a:not(.btn) { background: var(--c-mint);     color: var(--c-mint-text); }
.nav-menu li:nth-child(2) a:not(.btn) { background: var(--c-lavender); color: var(--c-lavender-text); }
.nav-menu li:nth-child(3) a:not(.btn) { background: var(--c-pink);     color: var(--c-pink-text); }
.nav-menu li:nth-child(4) a:not(.btn) { background: var(--c-yellow);   color: var(--c-yellow-text); }
.nav-menu a:not(.btn):hover { transform: translateY(-2px); }
/* On hover, darken the label color by 50% while keeping the token as the base */
.nav-menu li:nth-child(1) a:not(.btn):hover { color: color-mix(in srgb, var(--c-mint-text) 50%, black); }
.nav-menu li:nth-child(2) a:not(.btn):hover { color: color-mix(in srgb, var(--c-lavender-text) 50%, black); }
.nav-menu li:nth-child(3) a:not(.btn):hover { color: color-mix(in srgb, var(--c-pink-text) 50%, black); }
.nav-menu li:nth-child(4) a:not(.btn):hover { color: color-mix(in srgb, var(--c-yellow-text) 50%, black); }
.nav-menu a:not(.btn):active { transform: translateY(1px) scale(.98); box-shadow: var(--clay-pressed); }

.nav-toggle { display: none; }
.nav-burger { display: none; cursor: pointer; }
.nav-burger span {
  display: block;
  width: 22px; height: 3px;
  margin: 5px 0;
  background: #fff;
  border-radius: 3px;
  transition: transform .3s, translate .3s, opacity .3s;
}

/* Mobile: burger becomes a Floating Action Button (FAB)
   fixed in the bottom-right corner — easy thumb reach,
   menu opens as a panel right above it. Still zero JS. */
@media (max-width: 820px) {
  .nav-burger {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 200;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient);
    box-shadow: var(--clay-md), 0 10px 24px -6px rgb(var(--shadow-hue) / .35);
    transition: transform .2s ease, box-shadow .2s ease;
  }
  .nav-burger:active { transform: scale(.92); box-shadow: var(--clay-pressed); }

  /* Stack all three bars in the same grid cell so they rotate
     around a shared center — the X icon stays perfectly centered */
  .nav-burger span {
    grid-area: 1 / 1;
    margin: 0;
  }
  .nav-burger span:nth-child(1) { translate: 0 -7px; }
  .nav-burger span:nth-child(3) { translate: 0 7px; }

  .nav-menu {
    position: fixed;
    right: 20px;
    bottom: 92px;               /* sits right above the FAB */
    left: auto;
    z-index: 200;
    min-width: 230px;
    flex-direction: column;
    align-items: stretch;
    text-align: right;
    background: var(--c-surface);
    border-radius: var(--radius);
    box-shadow: var(--clay-lg);
    padding: 20px 22px;
    gap: 14px;
    /* Hidden state: slide down + fade, pure CSS */
    display: flex;
    visibility: hidden;
    opacity: 0;
    translate: 0 12px;
    transition: opacity .25s ease, translate .25s ease, visibility .25s;
    transform-origin: bottom right;
  }
  .nav-menu a:not(.btn) { text-align: center; }
  .nav-menu .btn { text-align: center; }

  .nav-toggle:checked ~ .nav-menu {
    visibility: visible;
    opacity: 1;
    translate: 0 0;
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { translate: 0 0; transform: rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { translate: 0 0; transform: rotate(-45deg); }
}

/* ---------- 5a. Mobile header CTA (scroll-driven, no JS) ----------
   On mobile the hero's main "Try It Free" button scrolls out of view,
   so a copy pops into the header — but only after roughly one viewport
   of scrolling (once the hero is gone). Pure CSS scroll-driven
   animation on the document timeline: scroll(root).
   Fallbacks: browsers without scroll() support and reduced-motion
   users simply see the button in the header at all times. */
.header-cta { display: none; }

@media (max-width: 820px) {
  /* inline-flex (not inline-block) so the .btn flex-centering model applies —
     inline-block would ignore align-items and let the label ride up from the
     vertical center of the 44px pill. */
  .header-cta { display: inline-flex; margin-left: auto; }

  @supports (animation-timeline: scroll()) {
    .header-cta {
      animation: header-cta-in .3s var(--ease-bounce) both;
      animation-timeline: scroll(root);
      /* hidden until ~one screen is scrolled, fully in shortly after */
      animation-range: 85vh 110vh;
    }
  }
}

@keyframes header-cta-in {
  /* visibility:hidden in the from-state (held by fill "both") keeps the
     invisible button untappable while the hero is still on screen */
  from { opacity: 0; translate: 0 -16px; scale: .5; visibility: hidden; }
  to   { opacity: 1; translate: 0 0;    scale: 1;  visibility: visible; }
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;           /* anchor for background decorations */
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 48px;
  padding-block: clamp(56px, 9vw, 110px);
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
}
.hero-content, .hero-visual { position: relative; z-index: 1; }

.hero-subtitle { font-size: 1.2rem; color: var(--c-muted); max-width: 480px; }
@media (max-width: 900px) { .hero-subtitle { margin-inline: auto; } }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-block: 8px 16px; }
.hero-note { font-size: .9rem; color: var(--c-muted); }

/* Hero entrance animation on page load */
.anim-fade {
  animation: fade-up .7s ease both;
}
.anim-fade:nth-child(2) { animation-delay: .1s; }
.anim-fade:nth-child(3) { animation-delay: .2s; }
.anim-fade:nth-child(4) { animation-delay: .3s; }
.anim-fade:nth-child(5) { animation-delay: .4s; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 6a. Hero visual: clay 3D dashboard scene ----------
   Pure CSS + inline SVG instead of an image = instant LCP.
   A tilted dashboard window with charts, orbited by floating clay
   widget cards (notification, avatar stack, donut chart).
   NOTE: transform/perspective is safe here — .hero-visual is NOT an
   ancestor of the fixed FAB (see AGENTS.md containing-block rule). */
.scene {
  position: relative;
  perspective: 1200px;
  /* air for the floating widgets that overflow the window */
  padding: 24px 8px;
}

/* --- The tilted dashboard window --- */
.dash {
  border-radius: var(--radius);
  background: var(--c-surface);
  box-shadow: var(--clay-lg);
  overflow: hidden;
  transform: rotateY(-9deg) rotateX(4deg);
  transform-origin: 60% 50%;
  transition: transform .6s var(--ease-out);
}
.scene:hover .dash { transform: rotateY(-4deg) rotateX(2deg); }

.dash-bar {
  display: flex; gap: 6px;
  padding: 12px 14px;
  background: var(--c-bg-alt);
}
.dash-bar i { width: 10px; height: 10px; border-radius: 50%; }
.dash-bar i:first-child { background: var(--c-pink); }
.dash-bar i:nth-child(2) { background: var(--c-yellow); }
.dash-bar i:nth-child(3) { background: var(--c-mint); }

.dash-body { padding: 20px 22px 22px; display: grid; gap: 16px; }

/* KPI stat pills */
.dash-stats { display: flex; gap: 10px; margin: 0; }
.dash-stat {
  flex: 1;
  display: grid; gap: 1px;
  margin: 0; padding: 8px 12px;
  border-radius: 16px;
  background: var(--c-bg-alt);
  box-shadow: var(--clay-pressed);
}
.dash-stat b {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.15;
  color: var(--c-text);
}
.dash-stat span { font-size: .62rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: .06em; }

/* Line chart: SVG area + self-drawing stroke.
   Uniform scaling (no preserveAspectRatio="none") keeps the dots round */
.dash-chart { width: 100%; height: auto; aspect-ratio: 320 / 96; display: block; }
.chart-area { fill: var(--c-bg-alt); }
.chart-line {
  fill: none;
  stroke: var(--c-accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: chart-draw 1.4s var(--ease-out) .3s both;
}
.chart-dot { fill: var(--c-surface); stroke: var(--c-accent); stroke-width: 3; }
.chart-dot-end { fill: var(--c-accent); animation: dot-pulse 3s ease-in-out 1.7s infinite; }

@keyframes chart-draw { to { stroke-dashoffset: 0; } }
@keyframes dot-pulse {
  0%, 100% { stroke-width: 3; }
  50%      { stroke-width: 7; }
}

/* Pastel column chart (rotation: mint → lavender → pink → yellow → blue) */
.dash-cols {
  display: flex; align-items: end; gap: 8px;
  height: 72px;
}
.dash-cols i {
  flex: 1;
  height: var(--h);
  border-radius: 8px 8px 0 0;
  background: var(--col, var(--gradient));
  box-shadow: inset 0 2px 2px rgb(255 255 255 / .45);
  animation: grow 1s var(--ease-bounce) both;
  transform-origin: bottom;
}
.dash-cols i:nth-child(2) { animation-delay: .1s; }
.dash-cols i:nth-child(3) { animation-delay: .2s; }
.dash-cols i:nth-child(4) { animation-delay: .3s; }
.dash-cols i:nth-child(5) { animation-delay: .4s; }
.dash-cols i:nth-child(6) { animation-delay: .5s; }

@keyframes grow { from { transform: scaleY(0); } }

/* --- Floating clay widget cards around the window --- */
.widget {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-radius: 20px;
  background: var(--c-surface);
  box-shadow: var(--clay-md);
  animation: widget-float 12s ease-in-out infinite;
}
.widget-notify  { top: 2px;  right: -14px; animation-delay: -2s; }
.widget-avatars { bottom: 34px; left: -20px; animation-duration: 15s; }
.widget-donut   { bottom: -18px; right: 6px; animation-delay: -7s; animation-duration: 18s; }

/* Gentle bob, desynced per widget via delay/duration */
@keyframes widget-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* Skeleton text lines inside widgets */
.widget-lines { display: grid; gap: 6px; }
.widget-lines b { width: 64px; height: 7px; border-radius: var(--radius-pill); background: var(--c-bg-alt); }
.widget-lines b:last-child { width: 42px; }

/* Notification widget: bell icon + pulsing unread dot */
.widget-icon {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: var(--clay-sm);
}
.widget-icon svg { width: 18px; height: 18px; fill: var(--c-accent-text); }
.widget-pulse {
  position: absolute;
  top: -3px; right: -3px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--c-pink);
  box-shadow: 0 0 0 3px var(--c-surface);
  animation: dot-blink 2.4s ease-in-out infinite;
}
@keyframes dot-blink {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.35); }
}

/* Avatar stack widget: overlapping pastel initial circles */
.avatars { display: flex; }
.avatars i {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--av);
  box-shadow: inset 0 2px 2px rgb(255 255 255 / .6), 0 0 0 3px var(--c-surface);
}
.avatars i + i { margin-left: -10px; }
/* tiny "face": two dots + smile drawn with gradients */
.avatars i {
  background:
    radial-gradient(circle 2px at 11px 13px, var(--av-ink) 98%, transparent),
    radial-gradient(circle 2px at 19px 13px, var(--av-ink) 98%, transparent),
    radial-gradient(circle 5px at 15px 15px, transparent 60%, var(--av-ink) 62%, var(--av-ink) 78%, transparent 80%) no-repeat 0 4px,
    var(--av);
}
.avatars-more {
  font-family: var(--font-display);
  font-size: .8rem;
  color: var(--c-muted);
}

/* Donut chart widget: stacked SVG ring segments */
.donut-wrap { position: relative; display: grid; place-items: center; }
.donut { width: 52px; height: 52px; transform: rotate(-90deg); }
.donut-track { fill: none; stroke: var(--c-bg-alt); stroke-width: 7; }
.donut-seg {
  fill: none;
  stroke: var(--seg-c);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: var(--seg) calc(100 - var(--seg));
  stroke-dashoffset: var(--off);
  animation: donut-fill 1s var(--ease-out) .5s both;
}
@keyframes donut-fill { from { stroke-dasharray: 0 100; } }
.donut-label {
  position: absolute;
  font-family: var(--font-display);
  font-size: .68rem;
  color: var(--c-text);
}

/* Keep the floating widgets inside the container across the whole mobile
   range. The reset must reach up to 900px — where the hero collapses to a
   single column and .hero-visual spans the full container width — otherwise
   the negative offsets (481–900px) push the cards past the screen edge. */
@media (max-width: 900px) {
  .widget-notify  { right: 0; }
  .widget-avatars { left: 0; }
  .widget-donut   { right: 0; }
}

/* ---------- 6b. Background decorations: clay clouds & sparkles ---------- */
.decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Cloud: rounded slab + two circle bumps via pseudo-elements */
.cloud {
  position: absolute;
  width: 90px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: var(--cloud-c, var(--c-blue));
  opacity: .45;
  box-shadow: var(--clay-sm);
  animation: float 18s ease-in-out infinite;
}
.cloud::before, .cloud::after {
  content: "";
  position: absolute;
  bottom: 12px;
  border-radius: 50%;
  background: inherit;
}
.cloud::before { left: 16px; width: 34px; height: 34px; }
.cloud::after  { left: 42px; width: 24px; height: 24px; }

/* Sparkle: 4-point star via clip-path */
.sparkle {
  position: absolute;
  width: 22px;
  height: 22px;
  background: var(--sparkle-c, var(--c-yellow));
  opacity: .5;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: float 14s ease-in-out infinite;
}

/* Desync decorations so they never move in unison */
.decor i:nth-child(2n) { animation-delay: -4s; animation-duration: 22s; }
.decor i:nth-child(3n) { animation-delay: -9s; animation-duration: 26s; }
.decor i:nth-child(4n) { animation-direction: reverse; }
@media (prefers-reduced-motion: reduce) {
  .decor i { animation: none; }
}

/* Barely perceptible drift: slow X sway + gentle Y bob */
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(14px, -6px); }
  50%      { transform: translate(24px, -10px); }
  75%      { transform: translate(10px, -4px); }
}

/* ---------- 7. Logos ---------- */
.logos { text-align: center; padding-block: 8px 56px; }
.logos-title { color: var(--c-muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.logos-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 20px 48px;
  list-style: none; margin: 16px 0 0; padding: 0;
  font-weight: 700; font-size: 1.15rem; color: var(--c-muted);
  opacity: .7;
}
/* Each brand = mark on top, name below, both centered */
.logos-row li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.logo-name { display: block; }

/* Geometric brand marks (main shape + smaller companion details).
   Height matches the hero "Try It Free" button (.btn-lg ≈ 54px).
   Each mark takes its tint from the pastel candy rotation
   (mint → lavender → pink → yellow → blue), same order as the header
   nav pills. Barely perceptible bob, desynced per mark. */
.logo-mark {
  flex-shrink: 0;
  width: 54px; height: 54px;
  animation: logo-mark-bob 5s ease-in-out infinite;
  /* Disney-style hover zoom: --ease-bounce overshoots past the target and
     settles back (squash & stretch + follow through). The standalone `scale`
     property composes with the transform-based bob, so both run together. */
  transform-origin: 50% 100%; /* grows "up" from its base, like squishy clay */
  transition: scale .45s var(--ease-bounce);
}
.logos-row li:hover .logo-mark { scale: 1.18; }
.logos-row li:nth-child(5n+1) .logo-mark { color: var(--c-mint-text);     animation-delay: 0s;    }
.logos-row li:nth-child(5n+2) .logo-mark { color: var(--c-lavender-text); animation-delay: -1s;   }
.logos-row li:nth-child(5n+3) .logo-mark { color: var(--c-pink-text);     animation-delay: -2.2s; }
.logos-row li:nth-child(5n+4) .logo-mark { color: var(--c-yellow-text);   animation-delay: -3.1s; }
.logos-row li:nth-child(5n+5) .logo-mark { color: var(--c-blue-text);     animation-delay: -4.3s; }

@keyframes logo-mark-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-mark { animation: none; }
}

/* ---------- 8. Cards (clay slabs, no borders — shadows define the edge) ---------- */
.card {
  background: var(--c-surface);
  border-radius: var(--radius);
  box-shadow: var(--clay-lg);
  padding: 30px 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--clay-lg-hover);
}

.card-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  font-size: 1.75rem;
  border-radius: 20px;
  box-shadow: var(--clay-sm);
  margin-bottom: 18px;
}
/* Pastel rotation for card icons: mint → lavender → pink → yellow → blue.
   Duotone icons inherit the matching --c-*-text tokens via currentColor. */
.card:nth-child(5n+1) .card-icon { background: var(--c-mint);     color: var(--c-mint-text); }
.card:nth-child(5n+2) .card-icon { background: var(--c-lavender); color: var(--c-lavender-text); }
.card:nth-child(5n+3) .card-icon { background: var(--c-pink);     color: var(--c-pink-text); }
.card:nth-child(5n+4) .card-icon { background: var(--c-yellow);   color: var(--c-yellow-text); }
.card:nth-child(5n+5) .card-icon { background: var(--c-blue);     color: var(--c-blue-text); }

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

/* ---------- 9. Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { position: relative; text-align: center; padding: 0 12px; }

/* Animated dashed connector between step circles (pure CSS, decorative).
   Spans from the previous circle's edge to the current one; dashes "march"
   forward via background-position. Hidden when the grid stacks on mobile. */
.step + .step::before {
  content: "";
  position: absolute;
  top: 29px; /* vertical center of the 60px circle minus half line height */
  left: calc(-50% + 22px);  /* previous circle center + radius + gap share */
  right: calc(50% + 46px);  /* current circle center - radius - breathing room */
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--c-muted) 0 10px,
    transparent 10px 20px
  );
  border-radius: var(--radius-pill);
  opacity: .35;
  animation: step-dash-march 1.2s linear infinite;
}
/* Shift by exactly one dash period (20px) for a seamless loop */
@keyframes step-dash-march {
  to { background-position: 20px 0; }
}
@media (max-width: 900px) {
  .step + .step::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .step + .step::before { animation: none; }
}
.step-num {
  display: grid; place-items: center;
  width: 60px; height: 60px;
  margin: 0 auto 18px;
  border-radius: 50%;
  box-shadow: var(--clay-md);
  font-size: 1.4rem; font-weight: 800;
}
/* Pastel rotation for step numbers */
.step:nth-child(3n+1) .step-num { background: var(--c-mint);     color: var(--c-mint-text); }
.step:nth-child(3n+2) .step-num { background: var(--c-lavender); color: var(--c-lavender-text); }
.step:nth-child(3n+3) .step-num { background: var(--c-pink);     color: var(--c-pink-text); }
.step p { color: var(--c-muted); }

/* ---------- 10. Pricing ---------- */
/* stretch (default) = all three cards share the tallest card's height */
.pricing-grid { align-items: stretch; }

/* Billing toggle — pure CSS checkbox hack. The hidden checkbox is a sibling
   of both the label and the grid, so ":checked ~" reaches the price rollers */
.billing-toggle {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}
.billing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 40px;
  width: fit-content;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
}
.billing-option { transition: color .3s var(--ease-out), opacity .3s var(--ease-out); }
.billing-yearly { opacity: .55; }
.billing-toggle:checked ~ .billing .billing-yearly { opacity: 1; }
.billing-toggle:checked ~ .billing .billing-monthly { opacity: .55; }
.billing-save {
  font-style: normal;
  font-size: .78rem;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: var(--c-mint);
  color: var(--c-mint-text);
  box-shadow: var(--clay-sm);
}
/* Clay switch: pressed-in track + orange gradient knob (mini FAB) */
.billing-track {
  display: inline-block;
  width: 58px; height: 32px;
  border-radius: var(--radius-pill);
  background: var(--c-bg-alt);
  box-shadow: var(--clay-pressed);
}
.billing-knob {
  display: block;
  width: 24px; height: 24px;
  margin: 4px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: var(--clay-sm);
  transition: translate .35s var(--ease-bounce);
}
.billing-toggle:checked ~ .billing .billing-knob { translate: 26px 0; }
.billing-toggle:focus-visible ~ .billing .billing-track {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
}

.price-card { display: flex; flex-direction: column; gap: 4px; position: relative; text-align: center; }
.price-card h3 { margin-bottom: 2px; }
.price-card .btn { margin: 0 0 22px; text-align: center; }

/* .price-card prefix beats the `.card p { margin: 0 }` reset —
   this is the air between "per user, per month" and the CTA button */
.price-card .price { display: grid; gap: 2px; margin: 0 0 32px; }
.price-value span { font-size: 1rem; font-weight: 600; color: var(--c-muted); }
.price-per { font-size: .9rem; color: var(--c-muted); }

/* Price roller: a 1-line window over a 2-row column (monthly / yearly).
   Toggling slides the column up with a soft overshoot — slot-machine roll */
.price-window {
  display: block;
  height: 1.1em;
  overflow: hidden;
  font-size: 2.6rem;
  font-weight: 800;
  font-family: var(--font-display);
  line-height: 1.1;
}
.price-roll {
  display: grid;
  transition: translate .45s var(--ease-bounce);
}
.price-value { display: block; height: 1.1em; }
.billing-toggle:checked ~ .pricing-grid .price-roll { translate: 0 -1.1em; }

.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  text-align: left;
}
.price-list li { padding-left: 26px; position: relative; color: var(--c-muted); }
.price-list li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--c-accent-deep);
  font-weight: 700;
}
/* Not-included features: muted cross, dimmed label (as in the reference) */
.price-list li.off { opacity: .55; }
.price-list li.off::before { content: "✕"; color: var(--c-muted); }

/* Side plans recede into a warmer, muted fill so they read as secondary… */
.price-card:not(.price-featured) {
  background: color-mix(in srgb, var(--c-bg-alt) 65%, var(--c-surface));
}
/* …while the middle plan stays the brightest surface, clearly popping off
   the cream section background (buttons untouched — hierarchy is background-only) */
.price-featured {
  background: var(--c-surface);
  box-shadow: var(--clay-lg-hover);
}
@media (min-width: 901px) { .price-featured { transform: scale(1.04); } }
/* The featured card already rests at --clay-lg-hover, so reusing .card:hover
   (also --clay-lg-hover) produced no change. Push it one elevation deeper on
   hover so its shadow visibly grows, matching the side cards' lift. */
.price-featured:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: var(--highlight-lg), var(--shade-lg), var(--contact-lg),
              0 28px 50px -12px rgb(var(--shadow-hue) / .28);
}

/* Mint pill — matches the "Features" nav pill (pastel candy set) */
.price-tag {
  position: absolute;
  top: -15px; left: 50%;
  translate: -50% 0;
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  background: var(--c-mint);
  box-shadow: var(--clay-sm);
  color: var(--c-mint-text);
  font-size: .8rem; font-weight: 700;
  margin: 0;
}

/* ---------- 11. Testimonials masonry (CSS columns, no JS) ----------
   Cards of uneven height pack into a Pinterest-style wall via CSS multi-columns:
   3 columns on desktop → 2 on tablet → 1 on phones. break-inside: avoid keeps
   every card whole inside its column. */
.masonry {
  columns: 3;
  column-gap: 24px;
  margin-top: 8px;
}
@media (max-width: 980px) { .masonry { columns: 2; } }
@media (max-width: 620px) { .masonry { columns: 1; } }

.t-card {
  break-inside: avoid;
  margin-bottom: 24px;
  padding: 24px;
}

/* Header row: SVG portrait + name/role, verified pill pushed to the right */
.t-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.t-person { display: grid; }
.t-person strong { font-size: 1.02rem; }
.t-person span { color: var(--c-muted); font-size: .85rem; }

/* Same flat-illustration portrait recipe as .team-avatar, sized down */
.t-avatar {
  flex: none;
  width: 56px; height: 56px;
  border-radius: 50%;
  box-shadow: var(--clay-sm);
}

/* Star rating row — gold clay candies; .star-off = empty star track.
   Prefixed with .t-card to beat `.card p { margin: 0 }` (higher specificity),
   otherwise the top margin below the avatar/head gets reset to zero. */
.t-card .stars {
  display: flex;
  gap: 3px;
  margin: 16px 0 0; /* even breathing room between the head row and the stars */
  color: var(--c-star);
}
.stars .icon {
  width: 19px; height: 19px;
  filter: drop-shadow(0 1px 1px rgb(var(--shadow-hue) / .25));
}
.stars .star-off { color: var(--c-border); }

/* Half star: two <use> of the same star symbol in one svg —
   the bottom one is the empty track, the top one is clipped to its
   left half and keeps the gold currentColor fill */
.stars .star-half use:first-child { fill: var(--c-border); }
.stars .star-half use:last-child { clip-path: inset(0 50% 0 0); }

.t-card blockquote { margin: 0; }
.t-card blockquote p {
  margin: 12px 0 0;
  font-size: 1rem;
  color: var(--c-text);
}

/* Featured testimonial — orange clay slab (CTA recipe), white text */
.t-featured {
  background: var(--gradient);
  color: var(--c-accent-text);
}
.t-featured .t-person strong,
.t-featured .t-person span,
.t-featured blockquote p { color: var(--c-accent-text); }
.t-featured .t-person span { opacity: .85; }
.t-featured .stars { color: var(--c-yellow); }

/* Verified pill on the featured card — small cream clay chip */
.t-verified {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--c-surface);
  box-shadow: var(--clay-sm);
  color: var(--c-accent-deep);
  font-size: .75rem;
  font-weight: 700;
}
.t-verified .icon { width: 14px; height: 14px; }

/* ---------- 12. FAQ (details/summary) ----------
   Disney-principled motion, pure CSS:
   - anticipation:       summary squishes down on press before opening
   - squash & stretch:   the card pops with a soft vertical bounce on open
   - slow in / slow out:  height eases with --ease-out (::details-content)
   - follow through:     the answer text arrives late, sliding & fading in
   - secondary action:   the "+" icon spins past 45° and settles back */
.faq { display: grid; gap: 14px; }

.faq details {
  border-radius: var(--radius);
  padding: 18px 24px;
  background: var(--c-surface);
  box-shadow: var(--clay-md);
  transition: box-shadow .3s var(--ease-out), background .3s var(--ease-out);
}
.faq details[open] {
  background: color-mix(in srgb, var(--c-accent) 6%, var(--c-surface));
  box-shadow: var(--clay-pressed);
  /* squash & stretch: clay card briefly bulges as it inflates */
  animation: faq-pop .45s var(--ease-bounce);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: transform .15s var(--ease-out);
}
/* anticipation: a tiny squish before the reveal */
.faq summary:active { transform: scale(.985) translateY(1px); }

.faq summary::-webkit-details-marker { display: none; }
/* Marker = mini clay FAB: round orange gradient button with white bars,
   matching the mobile burger/X toggle. Two white bars are drawn with
   background gradients and form a "+"; on open the vertical bar smoothly
   collapses into the horizontal one, morphing "+" into "-" (no rotation) */
.faq summary::after {
  content: "";
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    linear-gradient(#fff, #fff) center / 14px 3px no-repeat,
    linear-gradient(#fff, #fff) center / 3px 14px no-repeat,
    var(--gradient);
  box-shadow: var(--clay-sm);
  transition: background-size .35s var(--ease-out),
              scale .45s var(--ease-bounce),
              box-shadow .3s var(--ease-out);
}
.faq summary:active::after { scale: .92; box-shadow: var(--clay-pressed); }
.faq details[open] summary::after {
  background-size: 14px 3px, 3px 3px, auto; /* vertical bar shrinks away */
}

/* follow through / overlapping action: the answer trails the card,
   sliding up with a soft overshoot after the panel starts opening.
   NOTE: the gap above the answer must be PADDING, not margin — a top margin
   would collapse out of ::details-content (overflow: clip creates no BFC),
   escape its block-size and cause an end-of-close jump when
   content-visibility snaps to hidden */
.faq details p { margin: 0; padding-top: 12px; color: var(--c-muted); }
.faq details[open] p { animation: faq-reveal .5s var(--ease-bounce) .08s both; }

@keyframes faq-pop {
  0%   { transform: scaleY(.96); }
  55%  { transform: scaleY(1.02); }
  100% { transform: scaleY(1); }
}
@keyframes faq-reveal {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* slow in / slow out: animate the panel height itself, both opening AND
   closing, in browsers that can interpolate to intrinsic sizes */
@supports (interpolate-size: allow-keywords) {
  .faq details { interpolate-size: allow-keywords; }
  .faq details::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size .4s var(--ease-out),
                content-visibility .4s allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; }
}

/* ---------- 13. CTA (big orange clay slab) ---------- */
.cta {
  position: relative;           /* anchor for background decorations */
  text-align: center;
  padding: clamp(48px, 7vw, 80px) 32px;
  border-radius: var(--radius-lg);
  background: var(--gradient);
  box-shadow: var(--clay-lg), 0 20px 40px -10px rgb(var(--shadow-hue) / .28);
  color: var(--c-accent-text);
}
.cta h2 { color: var(--c-accent-text); text-shadow: 0 1px 2px rgba(124,45,18,.3); }
.cta p { opacity: .95; max-width: 480px; margin-inline: auto; }
/* Content sits above the decorations */
.cta > :not(.decor) { position: relative; z-index: 1; }
/* Clip floating clouds/sparkles to the rounded orange slab;
   lower opacity so they stay subtle on the saturated gradient */
.cta .decor { border-radius: inherit; }
.cta .cloud { opacity: .3; box-shadow: none; }
.cta .sparkle { opacity: .4; }

/* ---------- 14. Footer ---------- */
.footer {
  background: var(--c-bg-alt);
  padding-block: 56px 24px;
}

/* Top row: brand block on the left, newsletter form on the right */
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 32px 48px;
  align-items: start;
  padding-bottom: 40px;
}
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr; } }

/* Brand blurb: keep a comfortable measure so the longer copy stays readable */
.footer-brand .footer-note { max-width: 42ch; }
.footer-brand .footer-note a {
  color: var(--c-accent-deep);
  text-decoration: none;
  font-weight: 600;
}
.footer-brand .footer-note a:hover { text-decoration: underline; }

/* Social icon pills: small clay tiles in the fixed pastel rotation.
   High-specificity selector so it beats the `.footer ul { display: grid }`
   rule below and keeps the tiles in a horizontal row. */
.footer .footer-social {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: var(--c-surface);
  box-shadow: var(--clay-sm);
  transition: transform .2s var(--ease-bounce), box-shadow .2s ease;
}
.footer-social a:hover { transform: translateY(-2px); box-shadow: var(--clay-md-hover); }
.footer-social a:active { transform: translateY(1px) scale(.96); box-shadow: var(--clay-pressed); }
.footer-social .icon { width: 20px; height: 20px; fill: currentColor; }
.footer-social li:nth-child(5n+1) a { color: var(--c-mint-text); }
.footer-social li:nth-child(5n+2) a { color: var(--c-lavender-text); }
.footer-social li:nth-child(5n+3) a { color: var(--c-pink-text); }
.footer-social li:nth-child(5n+4) a { color: var(--c-yellow-text); }
.footer-social li:nth-child(5n+5) a { color: var(--c-blue-text); }

/* Newsletter: pressed clay input + orange clay button on one row, no JS.
   align-items: stretch keeps the button the exact same height as the input. */
.footer-subscribe h4 { font-size: 1.05rem; margin: 0 0 14px; }
.subscribe-form {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: nowrap;
}
.subscribe-form input {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  color: var(--c-text);
  padding: 13px 18px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-pill);
  background: var(--c-surface);
  box-shadow: inset 0 2px 4px rgb(var(--shadow-hue) / .09),
              inset 0 -1px 1px rgb(255 255 255 / .6);
  transition: border-color .2s ease, box-shadow .2s ease;
}
/* Button sits to the right of the input and matches its height */
.subscribe-form .btn { flex: none; white-space: nowrap; }
.subscribe-form input::placeholder { color: color-mix(in srgb, var(--c-muted) 70%, transparent); }
.subscribe-form input:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: inset 0 2px 4px rgb(var(--shadow-hue) / .09),
              0 0 0 3px color-mix(in srgb, var(--c-accent) 22%, transparent);
}
.subscribe-note { color: var(--c-muted); font-size: .85rem; margin: 10px 0 0; }

/* Link columns */
.footer-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  padding-block: 40px;
  border-top: 1.5px solid var(--c-border);
}
@media (max-width: 920px) { .footer-inner { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr 1fr; } }

.footer h4 { font-size: .95rem; margin-bottom: 14px; }
/* Link-column headers: uppercase caps with tracking (the newsletter heading
   above keeps its normal title case via the more specific rule) */
.footer-inner h4 {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--c-muted); text-decoration: none; }
.footer ul a:hover { color: var(--c-text); }
.footer-note { color: var(--c-muted); font-size: .95rem; margin-top: 12px; }

/* Bottom bar: copyright / live status / certifications */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1.5px solid var(--c-border);
}
.footer-copy,
.footer-status,
.footer-certs { color: var(--c-muted); font-size: .85rem; margin: 0; }
.footer-status { display: inline-flex; align-items: center; gap: 8px; }
.footer-certs a {
  color: var(--c-accent-deep);
  text-decoration: none;
  font-weight: 600;
}
.footer-certs a:hover { text-decoration: underline; }

/* Live status dot: mint clay pearl with a gentle breathing pulse */
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-mint-text);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-mint) 60%, transparent);
  animation: status-pulse 2.4s ease-in-out infinite;
}
@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-mint) 60%, transparent); }
  50%      { box-shadow: 0 0 0 6px color-mix(in srgb, var(--c-mint) 30%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .status-dot { animation: none; }
}
@media (max-width: 560px) {
  .footer-bottom { flex-direction: column; }
}

/* ---------- 15. Scroll-reveal animation (no JS!) ----------
   Modern CSS: animation-timeline: view().
   In older browsers blocks are simply visible right away — graceful degradation. */
@supports (animation-timeline: view()) {
  .reveal {
    animation: fade-up linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}

/* ---------- 16. Showcase (zig-zag product tour) ----------
   Alternating text/visual rows. Each visual is a small CSS-drawn clay
   scene (no images) with a floating pastel stat chip. */
.showcase { display: grid; gap: clamp(48px, 8vw, 88px); }

.show-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
/* Reversed rows put the visual on the left on wide screens */
.show-row-rev .show-copy { order: 2; }
.show-row-rev .show-visual { order: 1; }

.show-copy h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: .4em; }
.show-copy > p { color: var(--c-muted); }

.show-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.show-list li {
  position: relative;
  padding-left: 30px;
  font-weight: 600;
}
/* Clay check bullet, mint pastel */
.show-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--c-mint);
  box-shadow: var(--clay-sm);
}
.show-list li::after {
  content: "";
  position: absolute;
  left: 6px; top: 8px;
  width: 8px; height: 5px;
  border-left: 2px solid var(--c-mint-text);
  border-bottom: 2px solid var(--c-mint-text);
  rotate: -45deg;
}

/* --- Visual scene --- */
.show-scene {
  position: relative;
  padding: 20px;
}
.mini-panel {
  border-radius: var(--radius);
  background: var(--c-surface);
  box-shadow: var(--clay-lg);
  padding: 24px;
  min-height: 180px;
  display: grid;
}

/* Row 1: column chart */
.mini-cols {
  display: flex;
  align-items: end;
  gap: 12px;
  height: 140px;
}
.mini-cols i {
  flex: 1;
  height: var(--h);
  border-radius: 10px 10px 0 0;
  background: var(--col);
  box-shadow: inset 0 2px 2px rgb(255 255 255 / .45), var(--clay-sm);
  animation: grow 1s var(--ease-bounce) both;
  transform-origin: bottom;
}
.mini-cols i:nth-child(2) { animation-delay: .08s; }
.mini-cols i:nth-child(3) { animation-delay: .16s; }
.mini-cols i:nth-child(4) { animation-delay: .24s; }
.mini-cols i:nth-child(5) { animation-delay: .32s; }

/* Row 2: chat messages */
.mini-panel-chat { align-content: center; gap: 14px; }
.mini-msg {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}
.mini-msg-in { flex-direction: row-reverse; }
.mini-av {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--av);
  box-shadow: inset 0 2px 2px rgb(255 255 255 / .6), var(--clay-sm);
}
.mini-msg b {
  height: 34px;
  flex: 1;
  max-width: 68%;
  border-radius: 18px;
  background: var(--c-bg-alt);
  box-shadow: var(--clay-pressed);
}
.mini-msg-in b { background: var(--c-mint); max-width: 55%; }

/* Row 3: automation flow */
.mini-panel-flow {
  grid-auto-flow: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.flow-node {
  display: grid;
  place-items: center;
  width: 62px; height: 62px;
  border-radius: 20px;
  background: var(--col);
  box-shadow: var(--clay-md);
  font-size: 1.6rem;
  color: color-mix(in srgb, var(--col) 55%, black);
}
.flow-link {
  width: 34px; height: 4px;
  border-radius: var(--radius-pill);
  background: repeating-linear-gradient(90deg, var(--c-muted) 0 6px, transparent 6px 12px);
  opacity: .4;
}

/* Floating pastel stat chip on each scene */
.mini-chip {
  position: absolute;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  padding: 12px 18px;
  border-radius: 18px;
  background: var(--c-surface);
  box-shadow: var(--clay-md);
  animation: widget-float 12s ease-in-out infinite;
}
.mini-chip b { font-family: var(--font-display); font-size: 1.1rem; color: var(--c-accent-deep); }
.mini-chip span { font-size: .72rem; color: var(--c-muted); }
.mini-chip-a { top: 6px; right: -6px; }
.mini-chip-b { bottom: 6px; left: -6px; flex-direction: row; align-items: center; gap: 8px; }
.mini-chip-b span { color: var(--c-text); font-weight: 600; }
.mini-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--c-mint);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-mint) 40%, transparent);
  animation: dot-blink 2.4s ease-in-out infinite;
}

@media (max-width: 820px) {
  .show-row { grid-template-columns: 1fr; }
  .show-row-rev .show-copy { order: 1; }
  .show-row-rev .show-visual { order: 2; }
  /* Single-column showcase: the scene fills the container width, so pull the
     floating stat chips back inside instead of letting them poke past the
     screen edge (there is no overflow clip on .show-scene). */
  .mini-chip-a { right: 0; }
  .mini-chip-b { left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .mini-cols i, .mini-chip, .mini-dot { animation: none; }
}

/* ---------- 17. Stats band (social proof numbers) ---------- */
.stats { list-style: none; margin: 0; padding: 0; text-align: center; }
.stat {
  padding: 28px 20px;
  border-radius: var(--radius);
  background: var(--c-surface);
  box-shadow: var(--clay-md);
  transition: transform .25s ease, box-shadow .25s ease;
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--clay-md-hover); }
.stat-icon {
  display: block;
  margin-bottom: 12px;
}
.stat-icon .icon { width: 36px; height: 36px; }
.stat:nth-child(1) .stat-icon { color: var(--c-mint-text); }
.stat:nth-child(2) .stat-icon { color: var(--c-lavender-text); }
.stat:nth-child(3) .stat-icon { color: var(--c-pink-text); }
.stat:nth-child(4) .stat-icon { color: var(--c-yellow-text); }
.stat:nth-child(1) .stat-num { color: var(--c-mint-text); }
.stat:nth-child(2) .stat-num { color: var(--c-lavender-text); }
.stat:nth-child(3) .stat-num { color: var(--c-pink-text); }
.stat:nth-child(4) .stat-num { color: var(--c-yellow-text); }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  line-height: 1;
  color: var(--c-accent-deep);
}
.stat-label { display: block; margin-top: 8px; color: var(--c-muted); font-weight: 600; }

/* ---------- 18. Comparison table (Claylo vs others) ---------- */
/* Horizontal scroll on narrow screens — the 5 columns never squish.
   overflow-x:auto also clips BOTH axes, so we pad the wrapper (and pull it
   back with a matching negative margin) to give the clay shadow room on
   every side. --clay-lg's ambient layer (0 14px 30px -8px) reaches ~36px
   below and ~22px to the sides. The 24px side inset exactly matches the
   parent .container's padding-inline, so the negative margin lands the
   wrapper flush with the container edge — never past it — and can't cause
   page-level horizontal scroll. */
.compare-scroll {
  overflow-x: auto;
  padding: 18px 24px 48px;
  margin: -18px -24px -48px;
}

.compare {
  border-radius: var(--radius);
  background: var(--c-surface);
  box-shadow: var(--clay-lg);
  overflow: hidden;
  min-width: 720px; /* keep columns readable; wrapper scrolls if narrower */
}
.compare-row {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  /* stretch (not center) so every cell fills the full row height — otherwise a
     short icon cell is shorter than a 2-line feature cell and the tinted
     column background leaves a gap above/below. Content is re-centered inside
     each cell below. */
  align-items: stretch;
}
.compare-row + .compare-row { border-top: 2px solid var(--c-border); }
.compare-feature {
  display: flex;
  align-items: center;
  padding: 18px 24px;
  font-weight: 600;
}
.compare-col {
  display: grid;
  place-items: center;
  padding: 18px 12px;
  text-align: center;
  font-weight: 700;
}

/* Header row — light tint that matches the following "Testimonials"
   block background (--c-bg) so the two sections flow together */
.compare-head { background: var(--c-bg); }
.compare-head .compare-feature,
.compare-head .compare-col {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

/* Highlighted "Claylo" column with a soft mint tint */
.compare-us {
  background: color-mix(in srgb, var(--c-mint) 22%, transparent);
}
.compare-head .compare-us { color: var(--c-mint-text); }

/* Check / cross icons */
.compare .icon { font-size: 1.5rem; }
.compare .icon.ok { color: var(--c-mint-text); }
.compare .icon.no { color: var(--c-pink-text); opacity: .7; }

/* Mobile: the table is pinned to its 720px min-width and scrolls, so the first
   column is narrow. Drop the feature label one step (from the ~17px body size
   to 16px) on every data row (2nd row down — the header keeps its size) to cut
   the two-line wrapping that left the tinted column with an uneven edge. */
@media (max-width: 820px) {
  .compare-row:not(.compare-head) .compare-feature { font-size: 1rem; }
}

/* ---------- 19. Team ---------- */
.team-card { text-align: center; }
.team-card h3 { margin-bottom: 2px; }
.team-role { color: var(--c-muted); margin: 0 0 8px; font-size: .95rem; }

/* Self-contained flat-illustration SVG portrait, framed as a clay disc (no images) */
.team-avatar {
  display: block;
  width: 88px; height: 88px;
  margin: 0 auto 18px;
  border-radius: 50%;
  box-shadow: inset 0 3px 4px rgb(255 255 255 / .6), var(--clay-md);
}

/* Two small social links under the role, smaller than the role text */
.team-social {
  margin: 0;
  font-size: .8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.team-social a {
  color: var(--c-accent-deep);
  text-decoration: none;
  transition: color .2s ease;
}
.team-social a:hover { color: var(--c-accent); }
.team-social span { color: var(--c-border); }

/* ---------- 20. Contact form (pressed clay inputs, no JS) ---------- */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field { display: grid; gap: 8px; }
.field-full { grid-column: 1 / -1; }

.field label { font-weight: 700; font-size: .95rem; }
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--c-text);
  padding: 14px 18px;
  /* Crisp, defined rim so the field never blurs into the near-white card.
     A gentle recessed fill (bg-alt softly mixed into the surface) keeps the
     "pressed clay" feel without the muddy warm-on-warm edge. */
  border: 1.5px solid var(--c-border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--c-bg-alt) 45%, var(--c-surface));
  box-shadow: inset 0 2px 4px rgb(var(--shadow-hue) / .09),
              inset 0 -1px 1px rgb(255 255 255 / .6);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder,
.field textarea::placeholder { color: color-mix(in srgb, var(--c-muted) 70%, transparent); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  background: var(--c-surface);
  box-shadow: inset 0 2px 4px rgb(var(--shadow-hue) / .09),
              0 0 0 3px color-mix(in srgb, var(--c-accent) 22%, transparent);
}
/* Validation feedback uses :user-valid / :user-invalid instead of the raw
   :valid / :invalid: these only kick in AFTER the user leaves the field
   (blur) or tries to submit — never on every keystroke while typing. That
   fixes both premature email errors and lets empty required fields flag on
   submit. */
.field input:user-valid,
.field textarea:user-valid {
  border-color: var(--c-mint);
}
.field input:user-invalid,
.field textarea:user-invalid {
  border-color: var(--c-pink-text); /* saturated rose-red, reads as an error */
}

/* Nudge invalid fields with a quick horizontal shake so the error reads
   instantly, plus a matching red focus ring. Motion-reduced users get the
   color change only. */
@media (prefers-reduced-motion: no-preference) {
  .field input:user-invalid,
  .field textarea:user-invalid {
    animation: field-shake .4s cubic-bezier(.36, .07, .19, .97) both;
  }
}
.field input:user-invalid:focus,
.field textarea:user-invalid:focus {
  box-shadow: inset 0 2px 4px rgb(var(--shadow-hue) / .09),
              0 0 0 3px color-mix(in srgb, var(--c-pink-text) 30%, transparent);
}
@keyframes field-shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(3px); }
  30%, 50%, 70% { transform: translateX(-5px); }
  40%, 60% { transform: translateX(5px); }
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.contact-note { color: var(--c-muted); font-size: .9rem; margin: 0; }

@media (max-width: 560px) {
  .contact-form { grid-template-columns: 1fr; }
}
