/*
   Figlime — Components & layout.
   Loads after theme.css (which declares the cascade-layer order + tokens).
*/

/* ==========================================================================
   Reset
   ========================================================================== */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

  body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  img, picture, svg, video { display: block; max-width: 100%; height: auto; }
  input, button, select, textarea { font: inherit; }
  button { cursor: pointer; background: none; border: none; }
  a { color: inherit; text-decoration: none; }
  ul, ol { list-style: none; }
}

/* ==========================================================================
   Layout
   ========================================================================== */
@layer layout {
  .container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 1.5rem;
  }

  .section {
    padding-block: clamp(3.5rem, 2rem + 6vw, 7.5rem);
    position: relative;
    z-index: 2;
    scroll-margin-top: calc(var(--header-h) + 1rem);
  }
  .section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); }

  .text-center { text-align: center; }

  .section-header { max-width: 680px; margin-inline: auto; margin-bottom: 3.5rem; }
}

/* ==========================================================================
   Components
   ========================================================================== */
@layer components {

  /* ---- Header ---- */
  .header {
    height: var(--header-h);
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: hsla(280, 30%, 98%, 0.72);
    backdrop-filter: blur(14px) saturate(180%);
    border-bottom: 1px solid var(--line);
  }
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
  }

  .logo { display: flex; align-items: center; gap: 0.6rem; }
  .logo-mark {
    width: 56px; height: 56px;
    object-fit: contain;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .logo:hover .logo-mark { transform: rotate(-6deg) scale(1.06); }

  .logo-text {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.7rem;
    letter-spacing: -0.04em;
    color: var(--text);
  }
  .logo-text span { position: relative; display: inline-block; }
  .logo-text .dot-purple::after,
  .logo-text .dot-green::after {
    content: "";
    position: absolute;
    width: 0.16em; height: 0.16em;
    border-radius: 50%;
    left: 50%; bottom: 0.66em;
    transform: translateX(-50%);
  }
  .logo-text .dot-purple::after { background: var(--primary); }
  .logo-text .dot-green::after { background: var(--cta); }

  .nav-list { display: flex; gap: 2rem; }
  .nav-link {
    font-weight: 500;
    font-size: var(--fs-sm);
    color: var(--text-soft);
    transition: color 0.2s;
  }
  .nav-link:hover, .nav-link[aria-current="page"] { color: var(--plum); }

  .header-actions { display: flex; align-items: center; gap: 1.25rem; }

  /* ---- Buttons ---- */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: var(--fs-sm);
    border-radius: var(--r-full);
    white-space: nowrap;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s, box-shadow 0.25s, color 0.25s;
  }

  .btn-primary {
    background: var(--cta);
    color: var(--cta-foreground);
    padding: 0.85rem 1.6rem;
    box-shadow: 0 1px 2px hsla(290, 20%, 10%, 0.08);
  }
  .btn-primary:hover { background: var(--lime-bright); transform: translateY(-1px); }

  .btn-secondary {
    background: var(--plum);
    color: #fff;
    padding: 0.8rem 1.5rem;
  }
  .btn-secondary:hover { background: var(--plum-soft); transform: translateY(-2px); }

  .btn-ghost {
    background: transparent;
    color: var(--text);
    padding: 0.85rem 1.5rem;
    border: 1px solid var(--line-strong);
  }
  .btn-ghost:hover { border-color: var(--plum); color: var(--plum); transform: translateY(-2px); }
  .btn-ghost--invert { color: #fff; border-color: hsla(0,0%,100%,0.25); }
  .btn-ghost--invert:hover { background: hsla(0,0%,100%,0.1); color: #fff; border-color: hsla(0,0%,100%,0.5); }

  /* ---- Eyebrow ---- */
  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--r-full);
    background: var(--panel-solid);
    border: 1px solid var(--line-strong);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--plum);
    box-shadow: 0 2px 10px hsla(290, 40%, 20%, 0.04);
  }
  .eyebrow-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 3px var(--lime-soft);
    animation: pulse 1.8s infinite;
  }

  /* ---- Section backgrounds (rhythm) ---- */
  .section--muted { background: var(--muted); }
  .section--tint  { background: hsl(160 44% 97.5%); }

  /* ---- Hero ---- */
  .hero-section {
    padding-top: calc(var(--header-h) + 3.25rem);
    background: hsl(160 44% 98%);   /* faint emerald wash */
  }
  /* Crisp dot-grid texture (not a color gradient) so the space reads intentional. */
  .hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(hsl(162 24% 84%) 1px, transparent 1.4px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
    pointer-events: none;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 4vw, 4.5rem);
    align-items: center;
  }
  .hero-copy { max-width: 640px; min-width: 0; }
  .hero-visual { min-width: 0; }

  .hero-title {
    font-size: var(--fs-h1);
    font-weight: 800;
    letter-spacing: -0.035em;
    margin: 1.4rem 0;
    text-wrap: balance;
  }
  .gradient-text { color: var(--primary); }

  .hero-subtitle {
    font-size: var(--fs-lead);
    color: var(--text-soft);
    max-width: 560px;
    margin-bottom: 2.2rem;
    text-wrap: pretty;
  }

  .hero-cta-group { display: flex; gap: 0.85rem; flex-wrap: wrap; margin-bottom: 2.2rem; }

  .hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: var(--fs-sm);
    font-weight: 500;
  }
  .hero-meta li { display: flex; align-items: center; gap: 0.5rem; }
  .hero-meta li::before {
    content: "";
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--lime-soft);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2389C900' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
    background-size: 11px;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
  }

  /* ---- Hero product visual ---- */
  .hero-visual { perspective: 1600px; }
  .screen-card {
    background: var(--panel-solid);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow:
      0 1px 1px hsla(290,40%,20%,0.04),
      0 30px 60px -20px hsla(294, 60%, 25%, 0.22),
      0 12px 24px -16px hsla(294, 60%, 25%, 0.16);
    overflow: hidden;
    transform: rotateY(-7deg) rotateX(3deg);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
  }
  .hero-visual:hover .screen-card { transform: rotateY(0deg) rotateX(0deg); }

  .screen-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
    background: var(--primary);
    color: #fff;
  }
  .screen-card__id { display: flex; align-items: center; gap: 0.7rem; }
  .avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--lime);
    color: var(--plum-ink);
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 0.85rem;
  }
  .screen-card__who { display: flex; flex-direction: column; line-height: 1.25; }
  .screen-card__who strong { font-size: 0.92rem; font-weight: 600; }
  .screen-card__who span { font-size: 0.74rem; color: hsla(0,0%,100%,0.7); }

  .live-pill {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em;
    padding: 0.3rem 0.6rem;
    border-radius: var(--r-full);
    background: hsla(0,0%,100%,0.12);
  }
  .live-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime-bright); box-shadow: 0 0 8px var(--lime-bright); animation: pulse 1.4s infinite; }

  .screen-card__chat {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    background: var(--muted);
  }
  .msg {
    max-width: 85%;
    padding: 0.7rem 0.95rem;
    border-radius: 16px;
    font-size: 0.86rem;
    line-height: 1.5;
  }
  .msg__who {
    display: block;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--plum-soft);
    margin-bottom: 0.25rem;
  }
  .msg--agent {
    align-self: flex-start;
    background: var(--panel-solid);
    border: 1px solid var(--line);
    border-bottom-left-radius: 5px;
    color: var(--text);
  }
  .msg--user {
    align-self: flex-end;
    background: var(--plum);
    color: #fff;
    border-bottom-right-radius: 5px;
  }
  .msg--typing {
    align-self: flex-start;
    display: inline-flex;
    gap: 4px;
    padding: 0.85rem 1rem;
    background: var(--panel-solid);
    border: 1px solid var(--line);
    border-radius: 16px;
    border-bottom-left-radius: 5px;
  }
  .msg--typing i {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--plum-soft);
    opacity: 0.4;
    animation: typing 1.2s infinite;
  }
  .msg--typing i:nth-child(2) { animation-delay: 0.2s; }
  .msg--typing i:nth-child(3) { animation-delay: 0.4s; }

  .screen-card__foot {
    padding: 1.1rem 1.25rem;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    background: var(--panel-solid);
  }
  .score-row { display: flex; align-items: center; gap: 0.75rem; }
  .score-label { font-size: 0.74rem; font-weight: 600; color: var(--text-muted); width: 96px; flex-shrink: 0; }
  .score-bar { flex: 1; height: 7px; border-radius: var(--r-full); background: var(--bg-tint); overflow: hidden; }
  .score-bar i { display: block; height: 100%; border-radius: var(--r-full); background: var(--primary); }
  .sync-pill {
    margin-top: 0.3rem;
    display: inline-flex; align-items: center; gap: 0.4rem;
    align-self: flex-start;
    font-size: 0.74rem; font-weight: 600;
    color: var(--plum);
    background: var(--lime-soft);
    padding: 0.35rem 0.7rem;
    border-radius: var(--r-full);
  }
  .sync-pill svg { color: var(--lime); }

  /* ---- ATS strip ---- */
  .ats-strip {
    margin-top: clamp(3rem, 6vw, 5rem);
    padding-top: 2.5rem;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 2.75rem;
  }
  .ats-strip__label {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    color: var(--text-muted);
  }
  .ats-strip__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2.5rem; }
  .ats-logo {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--text-muted);
    opacity: 0.55;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.25s, color 0.25s;
  }
  .ats-logo.is-live { opacity: 1; color: var(--text); }
  .ats-logo:hover { opacity: 1; color: var(--plum); }
  .ats-logo em {
    font-family: var(--font-body);
    font-style: normal;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--plum-soft);
    background: var(--bg-tint);
    border: 1px solid var(--line-strong);
    padding: 0.12rem 0.4rem;
    border-radius: var(--r-full);
  }

  /* ---- Section headers ---- */
  .section-tagline {
    display: inline-block;
    color: var(--plum);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    margin-bottom: 0.85rem;
  }
  .section-title { font-size: var(--fs-h2); font-weight: 800; margin-bottom: 1rem; text-wrap: balance; }
  .section-desc { font-size: var(--fs-lead); color: var(--text-soft); text-wrap: pretty; }

  /* ---- Features ---- */
  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.5rem;
  }
  .feature-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 2rem;
    backdrop-filter: blur(8px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.3s;
  }
  .feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--line-strong);
    box-shadow: 0 20px 40px -18px hsla(294, 50%, 25%, 0.2);
  }
  .feature-icon {
    display: grid; place-items: center;
    width: 50px; height: 50px;
    border-radius: var(--r-md);
    background: var(--primary);
    color: var(--primary-foreground);
    margin-bottom: 1.4rem;
  }
  .feature-title { font-size: var(--fs-h3); margin-bottom: 0.6rem; }
  .feature-text { color: var(--text-soft); font-size: var(--fs-body); text-wrap: pretty; }
  .feature-card__more {
    display: inline-flex; align-items: center; gap: 0.35rem;
    margin-top: 1rem;
    font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm);
    color: var(--plum);
  }
  a.feature-card { color: inherit; }
  a.feature-card:hover .feature-card__more { gap: 0.6rem; }

  /* ---- Workflow ---- */
  .workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
  }
  .workflow-step { position: relative; padding-top: 0.5rem; }
  .workflow-step::before {
    content: "";
    position: absolute;
    top: 2.7rem; left: 3.2rem; right: -1.25rem;
    height: 1px;
    background: var(--line-strong);
  }
  .workflow-step:last-child::before { display: none; }
  .step-number {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.5rem;
    width: 3rem; height: 3rem;
    display: grid; place-items: center;
    border-radius: var(--r-md);
    color: var(--plum);
    background: var(--panel-solid);
    border: 1px solid var(--line-strong);
    box-shadow: 0 6px 16px -8px hsla(294,50%,25%,0.25);
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
  }
  .step-title { font-size: 1.2rem; margin-bottom: 0.55rem; }
  .step-desc { color: var(--text-soft); text-wrap: pretty; }

  /* ---- Integrations ---- */
  .integration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    max-width: 920px;
    margin-inline: auto;
  }
  .integration-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 2rem 1.5rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  }
  .integration-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px -18px hsla(294,50%,25%,0.2); }
  .integration-card.is-live { border-color: var(--border-glow, hsla(80,100%,38%,0.4)); box-shadow: 0 0 0 1px hsla(80,100%,38%,0.15); }
  .integration-name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
  }
  .integration-status {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: 0.25rem 0.6rem;
    border-radius: var(--r-full);
    background: var(--bg-tint);
  }
  .integration-status.status-live { color: var(--plum); background: var(--lime-soft); }

  /* ---- FAQ ---- */
  .faq-accordion {
    max-width: 760px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }
  .faq-item {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
  }
  .faq-item[open] { border-color: var(--line-strong); box-shadow: 0 12px 26px -18px hsla(294,50%,25%,0.18); }
  .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
  }
  .faq-question::-webkit-details-marker { display: none; }
  .faq-icon-wrapper { display: flex; color: var(--text-muted); transition: transform 0.3s, color 0.3s; flex-shrink: 0; }
  .faq-item[open] .faq-icon-wrapper { transform: rotate(180deg); color: var(--plum); }
  .faq-answer { padding: 0 1.4rem 1.4rem; color: var(--text-soft); }
  .faq-answer p { text-wrap: pretty; }

  /* ---- Closing CTA ---- */
  .cta-section { padding-bottom: clamp(4rem, 3rem + 5vw, 8rem); }
  .cta-band {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: clamp(2.75rem, 2rem + 4vw, 5rem) 1.5rem;
    border-radius: var(--r-xl);
    background-color: var(--primary);
    background-image: radial-gradient(hsla(0, 0%, 100%, 0.07) 1px, transparent 1.4px);
    background-size: 22px 22px;
    color: #fff;
    box-shadow: 0 20px 50px -28px hsla(165, 50%, 12%, 0.45);
  }
  .cta-title { font-size: var(--fs-h2); font-weight: 800; color: #fff; margin-bottom: 0.9rem; position: relative; }
  .cta-text { font-size: var(--fs-lead); color: hsla(0,0%,100%,0.82); max-width: 520px; margin: 0 auto 2rem; position: relative; }
  .cta-band__actions { justify-content: center; position: relative; margin-bottom: 0; }

  /* ---- Footer ---- */
  .footer {
    background: var(--plum-ink);
    color: #fff;
    padding-block: 4rem 2rem;
    position: relative;
    z-index: 2;
  }
  .footer .logo-text { color: #fff; }
  .footer .logo-mark { width: 44px; height: 44px; }
  .footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
  }
  .footer-brand { max-width: 320px; }
  .footer-tagline { margin-top: 1rem; color: hsla(0,0%,100%,0.62); font-size: var(--fs-sm); text-wrap: pretty; }
  .footer-links-group { display: flex; gap: 4rem; flex-wrap: wrap; }
  .footer-heading {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: hsla(0,0%,100%,0.45);
    margin-bottom: 1.1rem;
  }
  .footer-links { display: flex; flex-direction: column; gap: 0.7rem; }
  .footer-link-item { font-size: var(--fs-sm); color: hsla(0,0%,100%,0.78); transition: color 0.2s; }
  .footer-link-item:hover { color: var(--lime-bright); }
  .footer-bottom {
    border-top: 1px solid hsla(0,0%,100%,0.1);
    padding-top: 2rem;
    color: hsla(0,0%,100%,0.5);
    font-size: 0.8rem;
  }
  .link-glow { color: var(--lime); font-weight: 600; transition: text-shadow 0.3s; }
  .link-glow:hover { text-shadow: 0 0 10px hsla(80,100%,45%,0.6); }

  /* ---- Personas ---- */
  .persona-role {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--plum);
    background: var(--lime-soft);
    padding: 0.32rem 0.7rem;
    border-radius: var(--r-full);
    margin-bottom: 1.1rem;
  }

  /* ---- Defensible / trust band ---- */
  .trust-band {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: clamp(2rem, 1.4rem + 2.4vw, 3.5rem) clamp(1.5rem, 1rem + 2vw, 3rem);
    backdrop-filter: blur(8px);
    box-shadow: 0 24px 50px -28px hsla(294, 50%, 25%, 0.18);
  }
  .trust-band .section-header { margin-bottom: 2.5rem; }
  .trust-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.75rem 2.5rem;
  }
  .trust-point { display: flex; flex-direction: column; gap: 0.45rem; }
  .trust-point__title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
  }
  .trust-point__title svg { color: var(--lime); flex-shrink: 0; }
  .trust-point p { color: var(--text-soft); font-size: var(--fs-body); text-wrap: pretty; }

  /* ---- Agentic / ask-your-pipeline ---- */
  .agentic-title { margin-top: 1.3rem; }
  .agentic-section .hero-subtitle { margin-bottom: 2rem; }
  .agentic-visual .screen-card { transform: rotateY(7deg) rotateX(3deg); }
  .agentic-visual:hover .screen-card { transform: rotateY(0deg) rotateX(0deg); }

  /* ---- Inner page head ---- */
  .page-head { padding-top: calc(var(--header-h) + 3.5rem); padding-bottom: 0; }
  .page-head__inner { max-width: 760px; }
  .page-title { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.035em; margin: 1.2rem 0 1rem; text-wrap: balance; }
  .page-lede { font-size: var(--fs-lead); color: var(--text-soft); max-width: 620px; text-wrap: pretty; }

  /* ---- Social proof ---- */
  .proof-stat { margin-bottom: 2.5rem; }
  .proof-stat__value {
    display: block;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(2.6rem, 1.8rem + 3vw, 4rem);
    line-height: 1;
    color: var(--primary);
  }
  .proof-stat__label { display: block; margin-top: 0.5rem; color: var(--text-muted); font-weight: 500; }
  .proof-logos { text-align: center; }
  .proof-logos__row {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 1.5rem 2.75rem; margin-top: 1.25rem;
  }
  .proof-logo { opacity: 0.7; filter: grayscale(1); transition: opacity 0.25s, filter 0.25s; }
  .proof-logo:hover { opacity: 1; filter: none; }
  .proof-quote {
    max-width: 760px; margin: 2.5rem auto 0; text-align: center;
  }
  .proof-quote blockquote {
    font-family: var(--font-head); font-weight: 600;
    font-size: clamp(1.3rem, 1rem + 1.4vw, 1.9rem);
    line-height: 1.3; letter-spacing: -0.01em; color: var(--text); text-wrap: balance;
  }
  .proof-quote figcaption { margin-top: 1.1rem; color: var(--text-muted); font-weight: 500; font-size: var(--fs-sm); }

  /* ---- Prose / detail blocks ---- */
  .detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  .detail-block {
    padding: 1.9rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
  }
  .detail-block h3 { font-size: var(--fs-h3); margin-bottom: 0.6rem; }
  .detail-block p { color: var(--text-soft); text-wrap: pretty; }
  .detail-block p + p { margin-top: 0.7rem; }

  /* ---- Contact page ---- */
  .contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
  }
  .contact-h { font-size: var(--fs-h3); margin-bottom: 1.5rem; }
  .contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
  .form-field { display: flex; flex-direction: column; gap: 0.4rem; }
  .form-field label { font-size: var(--fs-sm); font-weight: 600; color: var(--text-soft); }
  .form-opt { font-weight: 400; color: var(--text-muted); }
  .form-field input,
  .form-field textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    background: var(--panel-solid);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    color: var(--text);
    font-size: var(--fs-body);
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  .form-field input:focus,
  .form-field textarea:focus {
    outline: none;
    border-color: var(--plum-soft);
    box-shadow: 0 0 0 3px var(--lime-soft);
  }
  .form-field textarea { resize: vertical; min-height: 120px; }
  .form-honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .contact-form .btn { align-self: flex-start; margin-top: 0.4rem; }
  .form-status { font-size: var(--fs-sm); color: var(--text-soft); min-height: 1.2em; }
  .contact-aside { display: flex; flex-direction: column; gap: 1rem; }
  .contact-aside .detail-block { padding: 1.4rem 1.5rem; }
  .contact-aside .detail-block h3 { font-size: 1.05rem; }
  .scheduler-embed { min-height: 580px; border-radius: var(--r-lg); overflow: hidden; }

  /* ---- Theme studio (/theme) ---- */
  .studio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
  .studio-presets { display: flex; flex-wrap: wrap; gap: 0.6rem; }
  .studio-pickers { display: flex; flex-wrap: wrap; gap: 1.25rem; }
  .studio-picker { display: flex; flex-direction: column; gap: 0.4rem; font-size: var(--fs-sm); font-weight: 600; color: var(--text-soft); }
  .studio-picker input[type="color"] { width: 64px; height: 40px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--card); padding: 4px; cursor: pointer; }
  .studio-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
  .studio-sample { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem; }
  .studio-sample-head { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em; margin-bottom: 1rem; }
  .studio-css { width: 100%; font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.5; padding: 0.9rem; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--muted); color: var(--text); resize: vertical; }
}

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

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

/* ==========================================================================
   Utilities
   ========================================================================== */
@layer utilities {
  .mobile-only { display: none !important; }

  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16,1,0.3,1); }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* ==========================================================================
   Animations
   ========================================================================== */
@layer animations {
  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
  }
  @keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
  }
}

/* ==========================================================================
   Mobile nav toggle
   ========================================================================== */
.mobile-nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 110;
}
.hamburger, .hamburger::before, .hamburger::after {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  transition: transform 0.3s, top 0.3s, background-color 0.3s;
}
.hamburger { position: relative; }
.hamburger::before, .hamburger::after { content: ""; position: absolute; left: 0; }
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }
.mobile-nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.mobile-nav-toggle[aria-expanded="true"] .hamburger::before { top: 0; transform: rotate(45deg); }
.mobile-nav-toggle[aria-expanded="true"] .hamburger::after { top: 0; transform: rotate(-45deg); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 640px; }
  .hero-visual { max-width: 460px; margin-inline: auto; width: 100%; }
  .hero-visual .screen-card { transform: none; }
  .workflow-step::before { display: none; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    inset: 0;
    background: hsla(280, 30%, 98%, 0.98);
    backdrop-filter: blur(20px);
    z-index: 105;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .nav.nav-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .nav-list { flex-direction: column; align-items: center; gap: 2.25rem; }
  .nav-link { font-size: 1.4rem; }
  .header-actions { display: none; }
  .mobile-only { display: block !important; }
  .mobile-nav-toggle { display: flex; }
  .footer-container { flex-direction: column; gap: 2.25rem; }
}

@media (max-width: 640px) {
  .hero-cta-group { width: 100%; }
  .hero-cta-group .btn { flex: 1; }
}

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

/* ==========================================================================
   Cookie consent banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translate(-50%, 40px);
  width: calc(100% - 48px);
  max-width: 620px;
  background: var(--panel-solid);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 1.2rem 1.6rem;
  box-shadow: 0 18px 48px hsla(294, 40%, 20%, 0.16);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s, visibility 0.4s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.cookie-banner.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.cookie-content { flex: 1; }
.cookie-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.2rem; }
.cookie-text { font-size: var(--fs-sm); color: var(--text-soft); line-height: 1.5; }
.cookie-actions { display: flex; gap: 0.65rem; flex-shrink: 0; }
.btn-cookie-accept {
  background: var(--plum); color: #fff;
  padding: 0.6rem 1.15rem;
  font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm);
  border-radius: var(--r-full);
  transition: background-color 0.2s, transform 0.2s;
}
.btn-cookie-accept:hover { background: var(--plum-soft); transform: translateY(-1px); }
.btn-cookie-decline {
  background: transparent; color: var(--text-soft);
  border: 1px solid var(--line-strong);
  padding: 0.6rem 1.15rem;
  font-family: var(--font-head); font-weight: 500; font-size: var(--fs-sm);
  border-radius: var(--r-full);
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.btn-cookie-decline:hover { background: var(--bg-tint); color: var(--text); transform: translateY(-1px); }

@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 1.1rem; bottom: 16px; width: calc(100% - 32px); }
  .cookie-actions { justify-content: flex-end; }
}
