/*
================================================================================
  Theme Name : Cursor Glow (key: cursorglow) — SaaS landing theme for the FrontendTheme customizer
  Tokens     : brand variables (--primary, --secondary, --text-*, --bg-*, --border-*,
               --btn-*, --font-body) come from saas_brand_settings; theme variables
               (--radius, --container-width, --font-heading) come from theme settings;
               section variables (--sec-bg, --sec-pad, --sec-align) come from each
               section's styles. This file only consumes them.
================================================================================
*/
/*
================================================================================
  Template Name : TrustedHRM - HR & Payroll SaaS Landing Page
  Description   : Responsive HTML5 / CSS3 landing page for HR software
  Version       : 1.0.0
  Author        : TrustedHRM
================================================================================

  TABLE OF CONTENTS
  ------------------------------------------------------------------------------
  01. Design Tokens (CSS Variables)
  02. Reset & Base
  03. Typography Helpers
  04. Layout Helpers
  05. Buttons
  06. Shared Components (avatars, chips, icon wells, progress, pills)
  07. Header / Navigation
  08. Hero
  09. Blush Background & Module Strip
  10. About
  11. About - Showcase Card Illustrations
  12. Features
  13. Highlight Band
  14. Pricing
  15. FAQ
  16. Newsletter
  17. Footer
  17b. AI Assistant (bottom dock + panel)
  18. Back To Top
  19. Utilities & Accessibility
  20. Reduced Motion

  Responsive rules live in: assets/css/responsive.css
================================================================================
*/


/* =============================================================================
   01. Design Tokens (CSS Variables)
============================================================================= */
:root {
    /* Surfaces */
    --surface-0: var(--bg-secondary, #ffffff);
    --surface-50: #fafafc;
    --surface-100: var(--bg-primary, #f4f3fa);
    --surface-200: #ebe9f5;
    --surface-tint: #f8f7fd;
    --surface-inverse: #0f0e17;

    /* Ink */
    --ink: var(--text-primary, #2a2839);
    --ink-strong: #0f0e17;
    --ink-soft: var(--text-secondary, #3d3b52);
    --ink-muted: var(--text-subtitle, #5b5970);
    --ink-subtle: #6b6884;
    --ink-faint: #7d7a96;
    --ink-inverse: #ffffff;

    /* Borders */
    --border: var(--border-primary, #e6e4f0);
    --border-card: #e9e7f2;
    --border-soft: #ebe9f5;
    --border-faint: #f0eef7;
    --border-strong: var(--border-secondary, #c9c6dc);

    /* Accent purple (theme "Accent color" setting) */
    --purple-50: color-mix(in srgb, var(--purple-500) 9%, #ffffff);
    --purple-100: color-mix(in srgb, var(--purple-500) 20%, #ffffff);
    --purple-200: color-mix(in srgb, var(--purple-500) 40%, #ffffff);
    --purple-300: color-mix(in srgb, var(--purple-500) 62%, #ffffff);
    --purple-500: var(--accent, #5641f3);
    --purple-600: color-mix(in srgb, var(--purple-500) 88%, #000000);
    --purple-700: color-mix(in srgb, var(--purple-500) 76%, #000000);
    --brand-shadow: color-mix(in srgb, var(--purple-500) 45%, #000000);

    /* Brand orange (brand primary colour) */
    --orange-50: color-mix(in srgb, var(--orange-500) 8%, #ffffff);
    --orange-100: color-mix(in srgb, var(--orange-500) 20%, #ffffff);
    --orange-300: color-mix(in srgb, var(--orange-500) 60%, #ffffff);
    --orange-500: var(--primary, #fe6903);
    --orange-600: color-mix(in srgb, var(--orange-500) 90%, #000000);
    --orange-700: color-mix(in srgb, var(--orange-500) 72%, #000000);

    /* Status */
    --success: #15803d;
    --success-bg: #e8f6ee;
    --danger: #c62828;

    /* Typography */
    --font-sans: var(--font-body, "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif);
    --font-serif: var(--font-heading, "Instrument Serif", "Playfair Display", Georgia, serif);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: var(--radius, 12px);
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-pill: 999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(15, 14, 23, 0.06), 0 1px 1px rgba(15, 14, 23, 0.04);
    --shadow-md: 0 8px 24px -8px rgba(15, 14, 23, 0.12), 0 2px 6px rgba(15, 14, 23, 0.04);
    --shadow-lg: 0 24px 48px -16px color-mix(in srgb, var(--brand-shadow) 22%, transparent), 0 4px 12px rgba(15, 14, 23, 0.06);
    --shadow-card: 0 1px 2px rgba(15, 14, 23, 0.04), 0 16px 40px -24px color-mix(in srgb, var(--brand-shadow) 25%, transparent);
    --shadow-button: 0 6px 16px -6px rgba(15, 14, 23, 0.45);

    /* Layout */
    --container: var(--container-width, 1200px);
    --container-md: 1120px;
    --gutter: 24px;
    --section-space: 112px;

    /* Motion */
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

    /* Glass (see section 17c) */
    --glass-blur: blur(18px) saturate(170%);
    --glass-light: linear-gradient(145deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.28) 100%);
    --glass-light-border: rgba(255, 255, 255, 0.85);
    --glass-dark: linear-gradient(145deg, rgba(30, 28, 46, 0.86), rgba(15, 14, 23, 0.8));
    --glass-dark-card: linear-gradient(145deg, rgba(26, 24, 42, 0.94), rgba(15, 14, 23, 0.9));
    --glass-dark-border: rgba(255, 255, 255, 0.12);
    --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}


/* =============================================================================
   02. Reset & Base
============================================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 26px;
    color: var(--ink);
    background-color: var(--surface-0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

img {
    height: auto;
}

h1, h2, h3, h4, h5, h6,
p {
    margin: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    color: var(--purple-700);
    text-decoration: none;
    transition: color 0.15s ease;
}

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

button,
input {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

strong,
b {
    font-weight: 700;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--purple-500);
    outline-offset: 2px;
}


/* =============================================================================
   03. Typography Helpers
============================================================================= */
.serif-accent {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 1.1em;
    letter-spacing: -0.01em;
    color: var(--purple-700);
}

.serif-accent--light {
    color: var(--purple-300);
}

.serif-accent--lilac {
    color: var(--purple-200);
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow--orange {
    color: var(--orange-700);
}

.eyebrow--peach {
    color: var(--orange-300);
}

.eyebrow--pill {
    padding: 6px 14px;
    color: var(--purple-700);
    background-color: var(--purple-50);
    border: 1px solid var(--purple-100);
    border-radius: var(--radius-pill);
}

.section-title {
    font-size: 48px;
    line-height: 54px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.section-title--heavy {
    font-size: 52px;
    line-height: 58px;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.section-title--xl {
    font-size: 56px;
    line-height: 60px;
}

.section-lead {
    font-size: 18px;
    line-height: 28px;
    color: var(--ink-muted);
}


/* =============================================================================
   04. Layout Helpers
============================================================================= */
.container {
    width: 100%;
    max-width: calc(var(--container) + (var(--gutter) * 2));
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.container--md {
    max-width: calc(var(--container-md) + (var(--gutter) * 2));
}

.section {
    position: relative;
    padding-top: var(--section-space);
    padding-bottom: var(--section-space);
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 680px;
    margin: 0 auto 56px;
    text-align: center;
}

.dots {
    background-image: radial-gradient(circle at center, var(--border) 1px, transparent 1.3px);
    background-size: 18px 18px;
}

.card-hover {
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

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


/* =============================================================================
   05. Buttons
============================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 20px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

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

.btn svg {
    flex: none;
}

/* Sizes */
.btn--sm {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
}

.btn--lg {
    padding: 14px 24px;
}

.btn--with-icon {
    padding-right: 16px;
    gap: 10px;
}

.btn--block {
    display: flex;
    width: 100%;
}

.btn--square {
    border-radius: 14px;
    padding: 14px 20px;
    font-weight: 700;
}

/* Variants */
.btn--dark {
    color: var(--ink-inverse);
    background-color: var(--surface-inverse);
    box-shadow: var(--shadow-button);
}

.btn--dark:hover {
    color: var(--ink-inverse);
}

.btn--light {
    color: var(--ink);
    background-color: var(--surface-0);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}

.btn--light:hover {
    color: var(--ink);
}

.btn--orange {
    color: var(--ink-inverse);
    background-color: var(--orange-500);
    box-shadow: none;
    font-weight: 700;
}

.btn--orange:hover {
    color: var(--ink-inverse);
    background-color: var(--orange-600);
    box-shadow: none;
}

.btn--brand {
    color: var(--ink-inverse);
    background-color: var(--purple-500);
    box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--purple-500) 90%, transparent);
}

.btn--brand:hover {
    color: var(--ink-inverse);
    background-color: var(--purple-600);
}

.btn--ghost-light {
    color: var(--ink-inverse);
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.24);
}

.btn--ghost-light:hover {
    color: var(--ink-inverse);
    background-color: rgba(255, 255, 255, 0.12);
}

.btn--outline {
    color: var(--ink);
    background-color: var(--surface-0);
    border-color: #d8d5e6;
}

.btn--outline:hover {
    color: var(--ink);
}

.btn__icon-circle {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: var(--radius-pill);
    background-color: rgba(255, 255, 255, 0.14);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

.link-arrow svg {
    transition: transform 0.15s ease;
}

.link-arrow:hover {
    color: var(--purple-700);
}

.link-arrow:hover svg {
    transform: translateX(3px);
}


/* =============================================================================
   06. Shared Components
============================================================================= */

/* ----- Avatars ----- */
.avatar {
    display: inline-grid;
    place-items: center;
    flex: none;
    border-radius: var(--radius-pill);
    font-weight: 800;
    color: var(--ink);
    line-height: 1;
    letter-spacing: 0;
}

.avatar--xxs { width: 26px; height: 26px; font-size: 10px; }
.avatar--xs  { width: 28px; height: 28px; font-size: 11px; border: 2px solid var(--surface-0); }
.avatar--md  { width: 34px; height: 34px; font-size: 12px; }
.avatar--lg  { width: 38px; height: 38px; font-size: 12px; }

.avatar--orange { color: var(--orange-700); background-color: var(--orange-100); }
.avatar--purple { color: var(--purple-700); background-color: var(--purple-100); }
.avatar--green  { color: #0f6b33; background-color: #d3f0de; }

.avatar-stack {
    display: flex;
}

.avatar-stack .avatar {
    border: 2px solid var(--surface-0);
}

.avatar-stack .avatar + .avatar {
    margin-left: -10px;
}

.avatar-stack--dark .avatar {
    border-color: var(--surface-inverse);
}

/* ----- Icon wells ----- */
.icon-well {
    display: grid;
    place-items: center;
    flex: none;
}

.icon-well--sm {
    width: 32px;
    height: 32px;
    border-radius: 10px;
}

.icon-well--lg {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
}

.icon-well--purple {
    color: var(--purple-500);
    background-color: var(--purple-50);
}

.icon-well--orange {
    color: var(--orange-700);
    background-color: var(--orange-50);
}

/* ----- Status pill ----- */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    border-radius: var(--radius-pill);
}

.status-pill--success {
    color: var(--success);
    background-color: var(--success-bg);
}

/* ----- Progress ----- */
.progress {
    height: 8px;
    overflow: hidden;
    border-radius: var(--radius-pill);
    background-color: var(--surface-200);
}

.progress--thin {
    height: 6px;
    background-color: var(--border-faint);
}

.progress__bar {
    height: 100%;
    border-radius: var(--radius-pill);
}

.progress__bar--orange { background-color: var(--orange-500); }
.progress__bar--gradient { background-image: linear-gradient(90deg, var(--purple-500), var(--orange-500)); }
.progress__bar--86 { width: 86%; }
.progress__bar--67 { width: 67%; }


/* =============================================================================
   07. Header / Navigation
============================================================================= */
.site-header {
    position: fixed;
    top: 16px;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 16px;
    pointer-events: none;
}

.navbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 900px;
    margin: 16px auto 0;
    padding: 8px 8px 8px 10px;
    border-radius: var(--radius-pill);
    background-color: var(--surface-inverse);
    box-shadow: 0 24px 48px -16px color-mix(in srgb, var(--brand-shadow) 35%, transparent), 0 4px 12px rgba(15, 14, 23, 0.1);
    pointer-events: auto;
    transition: margin 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled .navbar {
    margin-top: 0;
}

.navbar__brand {
    display: flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: var(--radius-pill);
}

.navbar__brand img {
    width: auto;
    height: 22px;
}

.navbar__menu {
    display: flex;
    align-items: center;
    gap: 2px;
}

.navbar__link {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.78);
    border-radius: var(--radius-pill);
    transition: color 0.15s ease, background-color 0.15s ease;
}

.navbar__link:hover,
.navbar__link.is-active {
    color: var(--ink-inverse);
    background-color: rgba(255, 255, 255, 0.08);
}

.navbar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar__toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-pill);
    background-color: rgba(255, 255, 255, 0.06);
}

.navbar__toggle-bar {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background-color: var(--ink-inverse);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

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

.navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}


/* =============================================================================
   08. Hero
============================================================================= */
.hero {
    padding: 16px;
}

.hero__panel {
    position: relative;
    overflow: hidden;
    padding: 128px 32px 0;
    border: 1px solid color-mix(in srgb, var(--purple-500) 6%, #ffffff);
    border-radius: var(--radius-2xl);
    background-color: var(--surface-0);
}

.hero__glow {
    position: absolute;
    pointer-events: none;
}

.hero__glow--purple {
    left: -12%;
    bottom: -10%;
    width: 62%;
    height: 75%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--purple-300) 75%, transparent), color-mix(in srgb, var(--purple-300) 0%, transparent));
}

.hero__glow--orange {
    right: -10%;
    bottom: -5%;
    width: 58%;
    height: 70%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--orange-300) 70%, transparent), color-mix(in srgb, var(--orange-300) 0%, transparent));
}

.hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    font-size: 13px;
    line-height: 18px;
    font-weight: 500;
    color: var(--ink-muted);
    background-color: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
}

.hero__badge-tag {
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--purple-700);
    background-color: var(--purple-50);
    border-radius: var(--radius-pill);
}

.hero__rank {
    color: var(--orange-500);
}

.hero__title {
    font-size: 76px;
    line-height: 80px;
    font-weight: 700;
    letter-spacing: -0.035em;
    color: var(--ink);
}

.hero__title .serif-accent {
    font-size: 84px;
}

.hero__text {
    max-width: 580px;
    font-size: 18px;
    line-height: 28px;
    color: var(--ink-muted);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* Floating glass cards */
.float-card {
    position: absolute;
    z-index: 2;
    width: 220px;
    padding: 16px;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.78);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 48px -16px color-mix(in srgb, var(--brand-shadow) 25%, transparent);
    animation: floatY 6s ease-in-out infinite;
}

.float-card--left {
    left: 6%;
    top: 330px;
    --rotate: -7deg;
    transform: rotate(var(--rotate));
}

.float-card--right {
    right: 6%;
    top: 300px;
    --rotate: 6deg;
    transform: rotate(var(--rotate));
    animation-delay: -3s;
}

@keyframes floatY {
    0%, 100% { transform: rotate(var(--rotate)) translateY(0); }
    50%      { transform: rotate(var(--rotate)) translateY(-8px); }
}

.float-card__person {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.float-card__name {
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
}

.float-card__meta {
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    color: var(--ink-subtle);
}

.float-card__title {
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.float-card__note {
    margin-top: 8px;
    font-size: 12px;
    line-height: 16px;
    color: var(--ink-muted);
}

/* Live collaborator cursors (motion in animations.css) */
.hero-cursors {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
    transition: transform 0.6s var(--ease);
}

.hero-cursor {
    position: absolute;
    display: flex;
    align-items: flex-start;
    --cursor-color: var(--purple-500);
    --cursor-text: var(--ink-inverse);
}

.hero-cursor__arrow {
    flex: none;
    fill: var(--cursor-color);
    stroke: var(--surface-0);
    stroke-width: 1.6;
    filter: drop-shadow(0 4px 6px rgba(15, 14, 23, 0.25));
}

.hero-cursor__label {
    margin: 16px 0 0 -4px;
    padding: 4px 10px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    white-space: nowrap;
    color: var(--cursor-text);
    background-color: var(--cursor-color);
    border-radius: 4px 999px 999px 999px;
    box-shadow: 0 6px 14px -6px rgba(15, 14, 23, 0.4);
}

/* Sarah approves the leave request on the left card */
.hero-cursor--hr {
    left: 17%;
    top: 400px;
}

/* James checks the payroll run on the right card */
.hero-cursor--payroll {
    right: 22%;
    top: 470px;
    --cursor-color: var(--orange-500);
    --cursor-text: var(--ink-inverse);
}

/* "You": the visitor's own cursor inside the hero (driven by main.js) */
.you-cursor {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 99;
    display: flex;
    align-items: flex-start;
    pointer-events: none;
    opacity: 0;
    --cursor-color: var(--surface-inverse);
    --cursor-text: var(--ink-inverse);
    transition: opacity 0.2s ease;
    will-change: transform;
}

.you-cursor.is-visible {
    opacity: 1;
}

.you-cursor .hero-cursor__arrow {
    transform-origin: 18% 12%;
    transition: scale 0.15s ease, fill 0.15s ease;
}

.you-cursor .hero-cursor__label {
    transition: background-color 0.15s ease;
}

/* Over a link or button the cursor turns brand purple */
.you-cursor.is-hover {
    --cursor-color: var(--purple-500);
}

/* Press feedback */
.you-cursor.is-press .hero-cursor__arrow {
    scale: 0.82;
}

/* Hide the system cursor only where the custom one is active */
.has-you-cursor,
.has-you-cursor * {
    cursor: none !important;
}

/* Dashboard preview */
.hero__preview {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 48px auto 0;
}

.hero__preview img {
    width: 100%;
}

.hero__fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    height: 120px;
    background: linear-gradient(rgba(255, 255, 255, 0), var(--surface-0));
    pointer-events: none;
}


/* =============================================================================
   09. Blush Background & Module Strip
============================================================================= */
.blush {
    position: relative;
    padding-bottom: 96px;
    background-color: color-mix(in srgb, var(--purple-500) 2%, #ffffff);
    background-image:
        radial-gradient(45% 900px at 0% 900px, color-mix(in srgb, var(--purple-300) 45%, transparent), color-mix(in srgb, var(--purple-300) 0%, transparent)),
        radial-gradient(45% 900px at 100% 1900px, color-mix(in srgb, var(--orange-300) 38%, transparent), color-mix(in srgb, var(--orange-300) 0%, transparent)),
        radial-gradient(50% 1000px at 0% 3000px, color-mix(in srgb, var(--orange-300) 34%, transparent), color-mix(in srgb, var(--orange-300) 0%, transparent)),
        radial-gradient(50% 1000px at 100% 3900px, color-mix(in srgb, var(--purple-300) 42%, transparent), color-mix(in srgb, var(--purple-300) 0%, transparent)),
        radial-gradient(55% 900px at 20% 5000px, color-mix(in srgb, var(--purple-300) 38%, transparent), color-mix(in srgb, var(--purple-300) 0%, transparent)),
        radial-gradient(45% 800px at 95% 5400px, color-mix(in srgb, var(--orange-300) 32%, transparent), color-mix(in srgb, var(--orange-300) 0%, transparent)),
        linear-gradient(180deg, #ffffff 0px, color-mix(in srgb, var(--purple-500) 2%, #ffffff) 240px, color-mix(in srgb, var(--purple-500) 4%, #ffffff) 50%, color-mix(in srgb, var(--orange-500) 4%, #ffffff) 100%);
}

.modules {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 36px;
    padding-top: 40px;
    padding-bottom: 40px;
}

.modules__label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--ink-subtle);
}

.modules__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-muted);
}

.modules__list li {
    display: inline-flex;
    align-items: center;
}

.modules__list li + li::before {
    content: "\00b7";
    margin: 0 16px;
    color: #a6a3bd;
}


/* =============================================================================
   10. About
============================================================================= */
.about .container {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.about__link-wrap {
    display: flex;
    justify-content: center;
}

.about__statement {
    max-width: 900px;
    margin: 0 auto;
    font-size: 34px;
    line-height: 52px;
    font-weight: 600;
    letter-spacing: -0.025em;
    text-align: center;
    color: var(--ink-faint);
}

.about__statement strong {
    font-weight: 600;
    color: var(--ink);
}

.about__statement .serif-accent {
    font-size: 1.12em;
}

/* Inline chips inside the statement */
.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    height: 40px;
    margin: 0 4px;
    line-height: 1;
    letter-spacing: 0;
    transform: translateY(-3px);
}

.chip--icon {
    width: 40px;
}

.chip--purple {
    color: var(--ink-inverse);
    background-color: var(--purple-500);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--purple-500) 70%, transparent);
}

.chip--round {
    border-radius: var(--radius-pill);
}

.chip--dark {
    color: var(--ink-inverse);
    background-color: var(--surface-inverse);
}

.chip--lilac {
    color: var(--purple-500);
    background-color: var(--purple-50);
    border: 1px solid var(--purple-100);
}

.chip--avatars {
    padding: 0 5px;
    background-color: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--brand-shadow) 25%, transparent);
}

.chip--avatars .avatar + .avatar {
    margin-left: -8px;
}

.chip--status {
    gap: 6px;
    height: 34px;
    padding: 0 12px 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--success);
    background-color: var(--success-bg);
    border-radius: var(--radius-pill);
}

.chip--payroll {
    gap: 8px;
    padding: 0 16px 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--orange-700);
    background-color: var(--orange-50);
    border: 1px solid color-mix(in srgb, var(--orange-500) 30%, #ffffff);
    border-radius: var(--radius-pill);
}

.chip__dot {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    color: var(--ink-inverse);
    background-color: var(--orange-600);
    border-radius: var(--radius-pill);
}

/* Showcase cards grid */
.about__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.showcase-card {
    padding: 8px;
    background-color: var(--surface-0);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.showcase-card__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    padding: 0 28px;
    overflow: hidden;
    border: 1px solid var(--border-faint);
    border-radius: 18px;
    background-color: var(--surface-tint);
    background-image: radial-gradient(circle at center, #e3e1ee 1px, transparent 1.3px);
    background-size: 16px 16px;
}

.showcase-card__visual--phone {
    display: block;
    padding: 0;
}

.showcase-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 20px 18px;
}

.showcase-card__head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.showcase-card__title {
    font-size: 18px;
    line-height: 26px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.showcase-card__text {
    font-size: 14px;
    line-height: 22px;
    color: var(--ink-muted);
}


/* =============================================================================
   11. About - Showcase Card Illustrations
============================================================================= */

/* Card 1 - connected modules */
.mini-list {
    display: flex;
    flex-direction: column;
    flex: none;
    gap: 10px;
}

.mini-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    background-color: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 2px 6px -2px rgba(15, 14, 23, 0.08);
}

.mini-connector {
    flex: none;
}

.mini-profile {
    flex: none;
    width: 190px;
    padding: 14px;
    background-color: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 36px -18px color-mix(in srgb, var(--brand-shadow) 35%, transparent);
}

.mini-profile__head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mini-profile__name {
    font-size: 13px;
    line-height: 18px;
    font-weight: 700;
}

.mini-profile__meta {
    font-size: 11px;
    line-height: 16px;
    color: var(--ink-subtle);
}

.mini-profile__stats {
    display: flex;
    gap: 6px;
    margin-top: 12px;
}

.mini-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 6px;
    font-size: 10px;
    line-height: 14px;
    color: var(--ink-muted);
    background-color: var(--surface-100);
    border-radius: var(--radius-sm);
}

.mini-stat b {
    font-size: 13px;
    line-height: 18px;
    color: var(--ink);
}

.mini-profile__sync {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 11px;
    line-height: 16px;
    font-weight: 700;
    color: var(--success);
}

/* Card 2 - permissions table */
.mini-table {
    width: 100%;
    max-width: 360px;
    overflow: hidden;
    background-color: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 18px 36px -18px color-mix(in srgb, var(--brand-shadow) 30%, transparent);
}

.mini-table__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-faint);
}

.mini-table__title {
    font-size: 12px;
    font-weight: 700;
}

.mini-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    font-size: 10px;
    line-height: 14px;
    font-weight: 700;
    border-radius: var(--radius-pill);
}

.mini-badge--purple {
    color: var(--purple-700);
    background-color: var(--purple-50);
}

.mini-table__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    align-items: center;
    padding: 6px 14px 10px;
    font-size: 11px;
    line-height: 16px;
}

.mini-table__th {
    padding: 6px 0;
    font-weight: 600;
    color: var(--ink-subtle);
}

.mini-table__th--center,
.mini-table__cell {
    text-align: center;
}

.mini-table__role,
.mini-table__cell {
    padding: 7px 0;
    border-top: 1px solid var(--surface-100);
}

.mini-table__role {
    font-weight: 700;
}

.mini-table__cell {
    display: flex;
    justify-content: center;
}

.switch {
    position: relative;
    display: inline-block;
    width: 26px;
    height: 15px;
    border-radius: var(--radius-pill);
    background-color: var(--border);
}

.switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 11px;
    height: 11px;
    border-radius: var(--radius-pill);
    background-color: var(--surface-0);
}

.switch.is-on {
    background-color: var(--purple-500);
}

.switch.is-on::after {
    left: auto;
    right: 2px;
}

.switch--orange.is-on {
    background-color: var(--orange-500);
}

/* Card 3 - setup checklist */
.mini-setup {
    width: 100%;
    max-width: 340px;
    padding: 14px;
    background-color: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 18px 36px -18px color-mix(in srgb, var(--brand-shadow) 30%, transparent);
}

.mini-setup__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.mini-setup__title {
    font-size: 12px;
    font-weight: 700;
}

.mini-setup__count {
    font-size: 11px;
    font-weight: 700;
    color: var(--purple-700);
}

.mini-setup__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    font-size: 12px;
    line-height: 18px;
}

.mini-setup__item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mini-setup__label {
    flex: 1;
}

.mini-setup__item.is-done .mini-setup__label {
    color: var(--ink-muted);
    text-decoration: line-through;
}

.mini-setup__item.is-active {
    margin: 0 -8px;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    background-color: var(--surface-tint);
}

.mini-setup__item.is-active .mini-setup__label {
    font-weight: 700;
}

.mini-setup__meta {
    font-size: 10px;
    color: var(--ink-subtle);
}

.mini-setup__action {
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 700;
    color: var(--ink-inverse);
    background-color: var(--surface-inverse);
    border-radius: 6px;
}

.mini-check {
    display: grid;
    place-items: center;
    flex: none;
    width: 18px;
    height: 18px;
    color: var(--ink-inverse);
    background-color: var(--success);
    border-radius: var(--radius-pill);
}

.mini-spinner {
    flex: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--purple-500);
    border-right-color: var(--purple-100);
    border-radius: var(--radius-pill);
    animation: spin 1.4s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Card 4 - phone + toasts */
.mini-phone {
    position: absolute;
    left: 50%;
    top: 26px;
    width: 176px;
    height: 230px;
    padding: 7px;
    background-color: var(--surface-inverse);
    border-radius: 30px;
    box-shadow: 0 24px 40px -18px color-mix(in srgb, var(--brand-shadow) 45%, transparent);
    transform: translateX(-60%);
}

.mini-phone__screen {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    height: 100%;
    padding: 14px 12px;
    background-color: var(--surface-0);
    border-radius: 24px;
}

.mini-phone__notch {
    width: 46px;
    height: 5px;
    margin: -6px auto 0;
    border-radius: var(--radius-pill);
    background-color: var(--surface-inverse);
}

.mini-phone__user {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
}

.mini-phone__balance {
    display: flex;
    flex-direction: column;
    padding: 10px;
    color: var(--ink-inverse);
    background-color: var(--purple-500);
    border-radius: var(--radius-md);
}

.mini-phone__balance span {
    font-size: 9px;
    line-height: 12px;
    opacity: 0.8;
}

.mini-phone__balance b {
    font-size: 18px;
    line-height: 24px;
    font-weight: 800;
}

.mini-phone__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.mini-phone__grid span {
    padding: 7px;
    font-size: 9px;
    line-height: 12px;
    font-weight: 700;
    text-align: center;
    background-color: var(--surface-100);
    border-radius: var(--radius-sm);
}

.mini-phone__cta {
    padding: 8px;
    font-size: 10px;
    line-height: 14px;
    font-weight: 800;
    text-align: center;
    color: var(--ink);
    background-color: var(--orange-500);
    border-radius: var(--radius-sm);
}

.mini-toast {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background-color: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 14px 28px -14px color-mix(in srgb, var(--brand-shadow) 35%, transparent);
}

.mini-toast--one {
    right: 8%;
    top: 46px;
    width: 170px;
}

.mini-toast--two {
    right: 12%;
    top: 118px;
    width: 150px;
}

.mini-toast__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: var(--radius-sm);
}

.mini-toast__icon--green {
    color: var(--success);
    background-color: var(--success-bg);
}

.mini-toast__icon--purple {
    color: var(--purple-700);
    background-color: var(--purple-50);
}

.mini-toast__title {
    font-size: 11px;
    line-height: 15px;
    font-weight: 700;
}

.mini-toast__meta {
    font-size: 10px;
    line-height: 14px;
    color: var(--ink-subtle);
}


/* =============================================================================
   12. Features
============================================================================= */
.section--features {
    padding-top: 96px;
    padding-bottom: 96px;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 56px;
}

.feature-card {
    padding: 28px;
    background-color: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.feature-card .icon-well {
    margin-bottom: 18px;
}

.feature-card__title {
    margin-bottom: 8px;
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.feature-card__text {
    font-size: 15px;
    line-height: 24px;
    color: var(--ink-muted);
}

/* ----- Collapsible module grid ("See all modules") -----
   The reveal edge, its soft fade and the blur all hang off three custom
   properties so they move together. main.js animates them (initFeatureToggle):
     --features-reveal  visible height, measured from the top of the box
     --features-edge    how far that edge sits above the box's bottom
     --features-fade    height of the soft fade just above the edge
   Layout (height) is never transitioned: the page below slides with transforms. */
@property --features-fade {
    syntax: "<length>";
    inherits: false;
    initial-value: 0px;
}

.features__collapse {
    --features-reveal: 100%;
    --features-edge: 0px;
    --features-fade: 0px;
    position: relative;
    /* generous room so card shadows and the hover lift are never clipped */
    margin: -16px -40px -48px;
    padding: 16px 40px 64px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - var(--features-fade)), transparent 100%);
    mask-image: linear-gradient(180deg, #000 calc(100% - var(--features-fade)), transparent 100%);
    -webkit-mask-size: 100% var(--features-reveal);
    mask-size: 100% var(--features-reveal);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.features__collapse .features__grid {
    margin-bottom: 0;
}

/* Blurred veil over the peeking row; it rides on the reveal edge */
.features__collapse::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    height: 170px;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 60%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 60%);
    pointer-events: none;
    opacity: 0;
    transform: translateY(calc(-1 * var(--features-edge)));
}

.features__collapse.is-veiled {
    --features-fade: 190px;
}

.features__collapse.is-veiled::after {
    opacity: 1;
}

/* Transitions exist only while main.js runs the toggle */
.features-animating .features__collapse {
    transition:
        --features-fade 0.65s cubic-bezier(0.4, 0, 0.2, 1),
        -webkit-mask-size 0.65s cubic-bezier(0.4, 0, 0.2, 1),
        mask-size 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.features-animating .features__collapse::after {
    transition:
        opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.features-no-anchor,
.features-no-anchor body {
    overflow-anchor: none;
}

/* While the toggle animates, pause the frosted-glass blur on the panels that
   slide: re-blurring them every frame is heavy on weaker GPUs. The blush
   background is soft enough that the swap is not noticeable. */
.features-animating .feature-card,
.features-animating .highlight-band,
.features-animating .price-card,
.features-animating .faq-item,
.features-animating .help-card,
.features-animating .stat-tile {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

.features__more {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: center;
    /* the grid's -48px bottom margin is part of this: the button overlaps the veil by 36px */
    margin: 12px 0 56px;
}

.features__collapse:not(.is-collapsed) + .features__more {
    margin-top: 24px;
}

.features__toggle {
    gap: 8px;
    padding: 12px 22px;
}

.features__toggle svg {
    transition: transform 0.3s var(--ease);
}

.features__toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}


/* =============================================================================
   13. Highlight Band
============================================================================= */
.highlight-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 32px;
    padding: 40px;
    color: var(--ink-inverse);
    background-color: var(--surface-inverse);
    border-radius: 28px;
}

.highlight-band__content {
    display: flex;
    flex: 1 1 360px;
    flex-direction: column;
    gap: 12px;
}

.highlight-band__title {
    font-size: 32px;
    line-height: 40px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.highlight-band__text {
    font-size: 16px;
    line-height: 26px;
    color: rgba(255, 255, 255, 0.75);
}

.highlight-band__stats {
    display: grid;
    flex: 1 1 320px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.stat-tile {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
}

.stat-tile__label {
    display: block;
    font-size: 12px;
    line-height: 18px;
    color: rgba(255, 255, 255, 0.65);
}

.stat-tile__value {
    display: block;
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
}

.stat-tile__value--sm {
    font-size: 18px;
    line-height: 26px;
}

.stat-tile--accent {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--ink);
    background-color: var(--orange-500);
    border-color: transparent;
}

.stat-tile--accent .stat-tile__label {
    font-weight: 600;
    color: var(--ink);
}


/* =============================================================================
   14. Pricing
============================================================================= */
.section--pricing {
    overflow: hidden;
}

.pricing__dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at center, var(--border) 1px, transparent 1.3px);
    background-size: 20px 20px;
    -webkit-mask-image: radial-gradient(60% 50% at 50% 30%, #000, transparent);
    mask-image: radial-gradient(60% 50% at 50% 30%, #000, transparent);
    pointer-events: none;
}

.pricing__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pricing__inner .section-header {
    gap: 16px;
    max-width: 800px;
    margin-bottom: 32px;
}

/* ----- Billing toggle ----- */
.billing-toggle {
    display: inline-flex;
    gap: 4px;
    margin-bottom: 48px;
    padding: 4px;
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
}

.billing-toggle__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: var(--ink-muted);
    background: transparent;
    border: 0;
    border-radius: var(--radius-pill);
    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.billing-toggle__btn:hover {
    color: var(--ink);
}

.billing-toggle__btn.is-active {
    color: var(--ink-inverse);
    background-color: var(--surface-inverse);
    box-shadow: var(--shadow-button);
}

.billing-toggle__save {
    padding: 2px 8px;
    font-size: 11px;
    line-height: 16px;
    font-weight: 700;
    color: var(--success);
    background-color: var(--success-bg);
    border-radius: var(--radius-pill);
}

/* ----- Plans grid: every card shares the same 4 rows so sections line up ----- */
.pricing__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto auto 1fr;
    column-gap: 24px;
    width: 100%;
    margin-bottom: 56px;
}

.price-card {
    position: relative;
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    row-gap: 0;
    padding: 32px;
    background-color: var(--surface-0);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    box-shadow: 0 1px 2px rgba(15, 14, 23, 0.04), 0 20px 48px -28px color-mix(in srgb, var(--brand-shadow) 22%, transparent);
}

/* Fallback when subgrid isn't supported */
@supports not (grid-template-rows: subgrid) {
    .pricing__grid {
        grid-template-rows: none;
        align-items: stretch;
    }

    .price-card {
        display: flex;
        flex-direction: column;
        grid-row: auto;
    }

    .plan__features {
        flex: 1;
    }
}

.price-card > :not(.price-card__glow) {
    position: relative;
    z-index: 1;
}

/* Head */
.plan__head {
    padding-bottom: 24px;
}

.plan__title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.plan__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    color: var(--purple-500);
    background-color: var(--purple-50);
    border-radius: var(--radius-md);
}

.plan__name {
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.plan__badge {
    margin-left: auto;
    padding: 4px 10px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    color: var(--ink);
    background-color: var(--orange-500);
    border-radius: var(--radius-pill);
}

.plan__desc {
    font-size: 14px;
    line-height: 22px;
    color: var(--ink-muted);
}

/* Price */
.plan__price {
    padding-bottom: 24px;
}

.price {
    display: flex;
    align-items: flex-start;
    gap: 2px;
    min-height: 56px;
}

.price__currency {
    font-size: 22px;
    line-height: 32px;
    font-weight: 700;
}

.price__amount {
    font-size: 52px;
    line-height: 56px;
    font-weight: 800;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    transition: opacity 0.2s ease;
}

.price__amount.is-switching {
    opacity: 0;
}

.price__period {
    align-self: flex-end;
    margin: 0 0 8px 6px;
    font-size: 15px;
    line-height: 20px;
    font-weight: 600;
    color: var(--ink-subtle);
}

.price--text {
    align-items: center;
    font-size: 44px;
    line-height: 56px;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.price__note {
    margin-top: 6px;
    font-size: 13px;
    line-height: 20px;
    color: var(--ink-subtle);
}

/* CTA */
.plan__cta {
    padding-bottom: 28px;
}

/* Features */
.plan__features {
    padding-top: 24px;
    border-top: 1px solid var(--border-soft);
}

.plan__features-title {
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 18px;
    font-weight: 700;
    color: var(--ink);
}

.plan-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-list li {
    position: relative;
    padding-left: 30px;
    font-size: 14px;
    line-height: 20px;
    color: var(--ink-muted);
}

.plan-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-pill);
    background-color: var(--purple-50);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%234a3bd4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.2l2.2 2.2L9.5 3.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px;
}

/* ----- Featured (dark) plan ----- */
.price-card--featured {
    overflow: hidden;
    color: var(--ink-inverse);
    background-color: var(--surface-inverse);
    border-color: var(--surface-inverse);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--purple-500) 14%, transparent), 0 40px 80px -32px color-mix(in srgb, var(--brand-shadow) 60%, transparent);
}

.price-card__glow {
    position: absolute;
    pointer-events: none;
}

.price-card__glow--purple {
    right: -30%;
    top: -30%;
    width: 90%;
    height: 70%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--purple-500) 55%, transparent), color-mix(in srgb, var(--purple-500) 0%, transparent));
}

.price-card__glow--orange {
    left: -30%;
    bottom: -30%;
    width: 80%;
    height: 60%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--orange-500) 25%, transparent), color-mix(in srgb, var(--orange-500) 0%, transparent));
}

.price-card--featured .plan__icon {
    color: var(--ink-inverse);
    background-color: rgba(255, 255, 255, 0.1);
}

.price-card--featured .plan__desc,
.price-card--featured .plan-list li {
    color: rgba(255, 255, 255, 0.74);
}

.price-card--featured .price__period,
.price-card--featured .price__note {
    color: rgba(255, 255, 255, 0.62);
}

.price-card--featured .plan__features {
    border-top-color: rgba(255, 255, 255, 0.12);
}

.price-card--featured .plan__features-title {
    color: var(--ink-inverse);
}

.price-card--featured .plan-list li::before {
    background-color: var(--orange-500);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%232a2839' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.2l2.2 2.2L9.5 3.6'/%3E%3C/svg%3E");
}

/* Trust bar */
.trust-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 36px;
    padding: 16px 28px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: var(--ink-soft);
    background-color: var(--surface-50);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-pill);
}

.trust-bar li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.trust-bar svg {
    color: var(--purple-500);
}


/* =============================================================================
   15. FAQ
============================================================================= */
.faq__inner {
    display: flex;
    align-items: flex-start;
    gap: 56px;
    max-width: calc(1160px + (var(--gutter) * 2));
}

.faq__side {
    position: sticky;
    top: 96px;
    display: flex;
    flex: 1 1 320px;
    flex-direction: column;
    gap: 28px;
}

.faq__header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.faq__header .section-title {
    font-size: 46px;
    line-height: 52px;
}

.faq__lead {
    font-size: 16px;
    line-height: 26px;
    color: var(--ink-muted);
}

.help-card {
    position: relative;
    overflow: hidden;
    padding: 24px;
    color: var(--ink-inverse);
    background-color: var(--surface-inverse);
    border-radius: 22px;
}

.help-card__glow {
    position: absolute;
    right: -30%;
    top: -50%;
    width: 90%;
    height: 120%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--purple-500) 45%, transparent), color-mix(in srgb, var(--purple-500) 0%, transparent));
    pointer-events: none;
}

.help-card__body {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.help-card__title {
    font-size: 18px;
    line-height: 26px;
    font-weight: 700;
}

.help-card__text {
    margin-top: 4px;
    font-size: 14px;
    line-height: 22px;
    color: rgba(255, 255, 255, 0.72);
}

.help-card__btn {
    align-self: flex-start;
}

.faq__list {
    display: flex;
    flex: 2 1 520px;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.faq-item {
    background-color: var(--surface-0);
    border: 1px solid var(--border-card);
    border-radius: 18px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-item:hover {
    border-color: color-mix(in srgb, var(--purple-500) 14%, #e5e5e5);
}

.faq-item[open]:not(.is-closing) {
    border-color: var(--purple-200);
    box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--brand-shadow) 30%, transparent);
}

.faq-item__question {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    color: var(--ink);
    list-style: none;
    cursor: pointer;
    border-radius: 18px;
}

.faq-item__question::-webkit-details-marker {
    display: none;
}

.faq-item__num {
    display: grid;
    place-items: center;
    flex: none;
    width: 34px;
    height: 34px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-muted);
    background-color: var(--surface-100);
    border-radius: 10px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.faq-item__text {
    flex: 1;
}

.faq-item__chev {
    display: grid;
    place-items: center;
    flex: none;
    width: 32px;
    height: 32px;
    color: var(--ink-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.faq-item[open]:not(.is-closing) .faq-item__num {
    color: var(--ink-inverse);
    background-color: var(--purple-500);
}

.faq-item[open]:not(.is-closing) .faq-item__chev {
    color: var(--purple-700);
    background-color: var(--purple-50);
    border-color: var(--purple-100);
    transform: rotate(180deg);
}

.faq-item__answer {
    max-width: 68ch;
    padding: 0 22px 22px 72px;
    font-size: 15px;
    line-height: 25px;
    color: var(--ink-muted);
}


/* =============================================================================
   16. Newsletter
============================================================================= */
.newsletter {
    padding: 24px 16px 0;
}

.newsletter__panel {
    position: relative;
    overflow: hidden;
    max-width: var(--container);
    margin: 0 auto;
    padding: 96px 24px;
    text-align: center;
    background-color: var(--surface-0);
    border: 1px solid color-mix(in srgb, var(--purple-500) 6%, #ffffff);
    border-radius: var(--radius-2xl);
}

.newsletter__glow {
    position: absolute;
    width: 60%;
    height: 110%;
    pointer-events: none;
}

.newsletter__glow--purple {
    left: -15%;
    top: 10%;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--purple-300) 60%, transparent), color-mix(in srgb, var(--purple-300) 0%, transparent));
}

.newsletter__glow--orange {
    right: -15%;
    top: 0;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--orange-300) 55%, transparent), color-mix(in srgb, var(--orange-300) 0%, transparent));
}

.newsletter__content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.newsletter__content .section-title {
    max-width: 760px;
}

.newsletter__text {
    max-width: 480px;
    font-size: 16px;
    line-height: 26px;
    color: var(--ink-muted);
}

.newsletter__form {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 500px;
    padding: 6px;
    background-color: var(--surface-0);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-md);
    transition: border-color 0.15s ease;
}

.newsletter__form:focus-within {
    border-color: var(--purple-500);
}

.newsletter__form.has-error {
    border-color: var(--danger);
}

.newsletter__input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px 18px;
    font-size: 15px;
    line-height: 22px;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-radius: var(--radius-pill);
}

.newsletter__input::placeholder {
    color: var(--ink-subtle);
}

.newsletter__input:focus-visible {
    outline: none;
}

.newsletter__submit {
    flex: none;
    border: 0;
}

.newsletter__error {
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
    color: var(--danger);
}

.newsletter__success {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    font-weight: 600;
    color: var(--success);
    background-color: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-md);
}

.newsletter__success[hidden],
.newsletter__error[hidden],
.newsletter__form[hidden] {
    display: none;
}

.newsletter__perks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    font-size: 13px;
    line-height: 20px;
    font-weight: 500;
    color: var(--ink-muted);
}

.newsletter__perks li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.newsletter__perks svg {
    color: var(--success);
}


/* =============================================================================
   17. Footer
============================================================================= */
.site-footer {
    color: rgba(255, 255, 255, 0.64);
    background-color: var(--surface-inverse);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Footer main */
.footer-main {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
    gap: 48px;
    padding: 72px 0 56px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    max-width: 340px;
}

.footer-brand__logo {
    display: inline-flex;
}

.footer-brand__logo img {
    width: auto;
    height: 22px;
}

.footer-brand__text {
    font-size: 14px;
    line-height: 22px;
    color: rgba(255, 255, 255, 0.6);
}

.social-links {
    display: flex;
    gap: 6px;
}

.social-links__item {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-pill);
    transition: color 0.15s ease, background-color 0.15s ease;
}

.social-links__item:hover {
    color: var(--ink-inverse);
    background-color: rgba(255, 255, 255, 0.08);
}

.footer-nav__title {
    margin-bottom: 16px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav__link {
    font-size: 14px;
    line-height: 22px;
    color: rgba(255, 255, 255, 0.72);
}

.footer-nav__link:hover {
    color: var(--ink-inverse);
}

/* Footer bottom */
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 24px 0;
    font-size: 13px;
    line-height: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom__copy {
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.footer-bottom__links a {
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom__links a:hover {
    color: var(--ink-inverse);
}


/* =============================================================================
   17b. AI Assistant (fixed bottom dock + centered panel)
============================================================================= */

/* ----- Slim dock bar ----- */
.ai-dock {
    position: fixed;
    left: 50%;
    bottom: 20px;
    z-index: 95;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 380px;
    max-width: calc(100% - 32px);
    height: 48px;
    padding: 0 8px 0 8px;
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    text-align: left;
    color: rgba(255, 255, 255, 0.82);
    background-color: rgba(15, 14, 23, 0.88);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-pill);
    box-shadow: 0 20px 40px -14px color-mix(in srgb, var(--brand-shadow) 55%, transparent), 0 0 0 4px color-mix(in srgb, var(--purple-500) 12%, transparent);
    transform: translateX(-50%);
    transition: transform 0.3s var(--ease), opacity 0.2s ease, box-shadow 0.2s ease, width 0.3s var(--ease);
}

.ai-dock:hover {
    width: 400px;
    color: var(--ink-inverse);
    box-shadow: 0 24px 48px -14px color-mix(in srgb, var(--brand-shadow) 60%, transparent), 0 0 0 5px color-mix(in srgb, var(--purple-500) 20%, transparent);
}

.ai-dock.is-hidden,
.ai-dock.is-away {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(16px);
}

.ai-dock__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 32px;
    height: 32px;
    color: var(--ink-inverse);
    background-image: linear-gradient(135deg, var(--purple-500), var(--orange-500));
    border-radius: var(--radius-pill);
}

/* Larger AI badge used in the panel header */
.ai-badge {
    position: relative;
    display: grid;
    place-items: center;
    flex: none;
    width: 46px;
    height: 46px;
    color: var(--ink-inverse);
    background-image: linear-gradient(135deg, var(--purple-500), var(--orange-500));
    border-radius: 14px;
    box-shadow: 0 10px 20px -8px color-mix(in srgb, var(--purple-500) 70%, transparent);
}

.ai-badge::after {
    content: "";
    position: absolute;
    inset: -4px;
    border: 2px solid var(--purple-300);
    border-radius: 18px;
    opacity: 0;
    animation: aiPulse 2.4s ease-out infinite;
}

@keyframes aiPulse {
    0%   { opacity: 0.55; transform: scale(0.92); }
    70%  { opacity: 0;    transform: scale(1.12); }
    100% { opacity: 0;    transform: scale(1.12); }
}

.ai-dock__text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ai-dock__key {
    flex: none;
    min-width: 26px;
    padding: 3px 8px;
    font-family: var(--font-sans);
    font-size: 11px;
    line-height: 14px;
    font-weight: 700;
    text-align: center;
    color: inherit;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
}

/* ----- Overlay ----- */
.ai-overlay {
    position: fixed;
    inset: 0;
    z-index: 150;
    background-color: rgba(15, 14, 23, 0.4);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ai-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* ----- Centered panel ----- */
.ai-panel {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 160;
    display: flex;
    flex-direction: column;
    width: 640px;
    max-width: calc(100% - 32px);
    max-height: min(620px, calc(100vh - 48px));
    overflow: hidden;
    background-color: var(--surface-0);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: 0 40px 80px -24px color-mix(in srgb, var(--brand-shadow) 45%, transparent);
    opacity: 0;
    visibility: hidden;
    /* starts low and small, where the dock sits */
    transform: translate(-50%, calc(50vh - 40px)) scale(0.6);
    transform-origin: 50% 100%;
    transition: transform 0.35s var(--ease), opacity 0.25s ease, visibility 0.35s ease;
}

.ai-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.ai-panel__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 18px 14px 20px;
}

.ai-panel__heading {
    flex: 1;
    min-width: 0;
}

.ai-panel__title {
    font-size: 17px;
    line-height: 24px;
    font-weight: 700;
}

.ai-panel__sub {
    font-size: 13px;
    line-height: 18px;
    color: var(--ink-subtle);
}

.ai-panel__close {
    display: grid;
    place-items: center;
    flex: none;
    width: 36px;
    height: 36px;
    padding: 0;
    color: var(--ink-muted);
    background-color: var(--surface-100);
    border: 0;
    border-radius: var(--radius-pill);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.ai-panel__close:hover {
    color: var(--ink);
    background-color: var(--surface-200);
}

.ai-panel__form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 20px;
    padding: 6px 6px 6px 14px;
    background-color: var(--surface-0);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ai-panel__form:focus-within {
    border-color: var(--purple-500);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--purple-500) 12%, transparent);
}

.ai-panel__search {
    flex: none;
    color: var(--ink-subtle);
}

.ai-panel__input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 9px 0;
    font-size: 15px;
    line-height: 22px;
    background: transparent;
    border: 0;
}

.ai-panel__input::placeholder {
    color: var(--ink-subtle);
}

.ai-panel__input:focus-visible {
    outline: none;
}

.ai-panel__send {
    display: grid;
    place-items: center;
    flex: none;
    width: 38px;
    height: 38px;
    padding: 0;
    color: var(--ink-inverse);
    background-color: var(--purple-500);
    border: 0;
    border-radius: var(--radius-pill);
    transition: background-color 0.15s ease;
}

.ai-panel__send:hover {
    background-color: var(--purple-600);
}

.ai-panel__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 120px;
    padding: 18px 20px 20px;
    overflow-y: auto;
}

.ai-panel__group[hidden],
.ai-panel__empty[hidden],
.ai-ask[hidden],
.ai-answer[hidden] {
    display: none;
}

.ai-panel__label {
    margin-bottom: 10px;
    font-size: 11px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-subtle);
}

.ai-panel__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ai-chip {
    padding: 8px 14px;
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
    color: var(--ink-soft);
    background-color: var(--surface-tint);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-pill);
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.ai-chip:hover {
    color: var(--purple-700);
    background-color: var(--purple-50);
    border-color: var(--purple-100);
}

/* Ask AI row */
.ai-ask {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 20px;
    text-align: left;
    color: var(--ink);
    background-color: var(--purple-50);
    border: 1px solid var(--purple-100);
    border-radius: 14px;
    transition: background-color 0.15s ease;
}

.ai-ask:hover {
    background-color: var(--purple-100);
}

.ai-ask__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 26px;
    height: 26px;
    color: var(--ink-inverse);
    background-color: var(--purple-500);
    border-radius: var(--radius-sm);
}

.ai-ask__text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ai-ask__text b {
    color: var(--purple-700);
}

.ai-ask .ai-dock__key {
    color: var(--purple-700);
    background-color: var(--surface-0);
    border-color: var(--purple-100);
}

/* AI answer */
.ai-answer {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 22px;
    color: var(--ink);
    background-color: var(--surface-tint);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
}

.ai-answer .ai-dock__icon {
    width: 26px;
    height: 26px;
}

.ai-answer b {
    color: var(--purple-700);
}

.ai-answer__text {
    white-space: pre-line;
}

/* "Still need help?" contact buttons under an unanswered question */
.ai-cta {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px 16px;
    background-color: var(--surface-0);
    border: 1px solid var(--border-card);
    border-radius: 14px;
}

.ai-cta[hidden] {
    display: none;
}

.ai-cta__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ai-cta__avatar {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--purple-700);
    background-color: var(--purple-100);
    border-radius: 50%;
}

.ai-cta__copy {
    flex: 1;
    min-width: 0;
}

.ai-cta__name,
.ai-cta__text {
    margin: 0;
    overflow-wrap: anywhere;
}

.ai-cta__name {
    font-size: 13px;
    line-height: 18px;
    font-weight: 700;
    color: var(--ink);
}

.ai-cta__text {
    margin-top: 2px;
    font-size: 14px;
    line-height: 22px;
    color: var(--ink-muted);
}

.ai-cta__actions {
    padding-inline-start: 46px;
}

@media (max-width: 575px) {
    .ai-cta__actions {
        padding-inline-start: 0;
    }
}

.ai-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ai-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    background-color: var(--surface-0);
    border: 1px solid var(--border-card);
    border-radius: 999px;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.ai-cta__btn:hover {
    border-color: var(--purple-200);
    color: var(--purple-700);
}

.ai-cta__btn--primary {
    color: #fff;
    background-color: var(--purple-700);
    border-color: var(--purple-700);
}

.ai-cta__btn--primary:hover {
    color: #fff;
    background-color: var(--purple-600, var(--purple-700));
}

.ai-cta__btn--whatsapp {
    color: #fff;
    background-color: #1fa855;
    border-color: #1fa855;
}

.ai-cta__btn--whatsapp:hover {
    color: #fff;
    background-color: #188f47;
    border-color: #188f47;
}

.ai-cta:not([hidden]) {
    animation: fadeDown 0.3s var(--ease);
}

.ai-typing {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 22px;
}

.ai-typing span {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-pill);
    background-color: var(--purple-300);
    animation: aiDot 1s ease-in-out infinite;
}

.ai-typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes aiDot {
    0%, 80%, 100% { opacity: 0.35; transform: translateY(0); }
    40%           { opacity: 1; transform: translateY(-3px); }
}

/* FAQ results */
.ai-faq {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ai-faq__q {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    text-align: left;
    color: var(--ink);
    background-color: var(--surface-0);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    transition: border-color 0.15s ease;
}

.ai-faq__q:hover {
    border-color: var(--purple-100);
}

.ai-faq__q span {
    flex: 1;
}

.ai-faq__q svg {
    flex: none;
    color: var(--ink-subtle);
    transition: transform 0.2s ease;
}

.ai-faq__q[aria-expanded="true"] {
    border-color: var(--purple-200);
    border-bottom-color: transparent;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.ai-faq__q[aria-expanded="true"] svg {
    transform: rotate(180deg);
    color: var(--purple-700);
}

.ai-faq__a {
    margin: 0;
    padding: 2px 14px 14px;
    overflow-wrap: anywhere;
    background-color: var(--surface-0);
    font-size: 14px;
    line-height: 22px;
    color: var(--ink-muted);
    border: 1px solid var(--purple-200);
    border-top: 0;
    border-radius: 0 0 14px 14px;
}

.ai-faq__a[hidden] {
    display: none;
}

.ai-faq mark {
    padding: 0 2px;
    color: inherit;
    background-color: var(--orange-100);
    border-radius: 3px;
}

.ai-panel__empty {
    font-size: 14px;
    line-height: 22px;
    color: var(--ink-subtle);
}

.ai-panel__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    font-size: 12px;
    line-height: 18px;
    color: var(--ink-subtle);
    background-color: var(--surface-50);
    border-top: 1px solid var(--border-soft);
}

.ai-panel__foot .ai-dock__key {
    color: var(--ink-muted);
    background-color: var(--surface-0);
    border-color: var(--border);
}

.ai-panel__link {
    font-weight: 600;
    color: var(--purple-700);
}


/* =============================================================================
   17c. Glass Surfaces
   Glass is used only where something sits ABOVE colour or content:
   - Dark glass : floating nav bar, AI dock, dark cards on the blush background
   - Light glass: cards that sit on the blush gradient glows
   Browsers without backdrop-filter keep the solid styles above.
============================================================================= */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {

    /* ----- Frosted glass: floating bars (nav + AI dock) ----- */
    .navbar,
    .ai-dock {
        background-color: rgba(255, 255, 255, 0.62);
        background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.2) 55%, color-mix(in srgb, var(--purple-50) 35%, transparent) 100%);
        -webkit-backdrop-filter: blur(22px) saturate(180%);
        backdrop-filter: blur(22px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.85);
    }

    .navbar {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.95),
            inset 0 -1px 0 color-mix(in srgb, var(--purple-500) 8%, transparent),
            0 0 0 1px color-mix(in srgb, var(--brand-shadow) 6%, transparent),
            0 24px 48px -18px color-mix(in srgb, var(--brand-shadow) 28%, transparent);
    }

    .navbar__link {
        color: var(--ink-muted);
    }

    .navbar__link:hover,
    .navbar__link.is-active {
        color: var(--ink);
        background-color: rgba(255, 255, 255, 0.75);
        box-shadow: 0 1px 2px rgba(15, 14, 23, 0.06), inset 0 0 0 1px color-mix(in srgb, var(--brand-shadow) 6%, transparent);
    }

    .navbar__toggle {
        background-color: rgba(255, 255, 255, 0.6);
        border-color: color-mix(in srgb, var(--brand-shadow) 12%, transparent);
    }

    .navbar__toggle-bar {
        background-color: var(--ink);
    }

    .ai-dock {
        color: var(--ink-muted);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.95),
            0 0 0 1px color-mix(in srgb, var(--brand-shadow) 8%, transparent),
            0 20px 40px -14px color-mix(in srgb, var(--brand-shadow) 40%, transparent),
            0 0 0 5px color-mix(in srgb, var(--purple-500) 10%, transparent);
    }

    .ai-dock:hover {
        color: var(--ink);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.95),
            0 0 0 1px color-mix(in srgb, var(--purple-500) 25%, transparent),
            0 24px 48px -14px color-mix(in srgb, var(--brand-shadow) 45%, transparent),
            0 0 0 6px color-mix(in srgb, var(--purple-500) 16%, transparent);
    }

    .ai-dock .ai-dock__key {
        color: var(--ink-muted);
        background-color: rgba(255, 255, 255, 0.7);
        border-color: color-mix(in srgb, var(--brand-shadow) 12%, transparent);
    }

    /* ----- Light glass: cards on the blush background ----- */
    .showcase-card,
    .feature-card,
    .price-card:not(.price-card--featured),
    .faq-item,
    .trust-bar,
    .mini-toast,
    .ai-panel {
        background-color: transparent;
        background-image: var(--glass-light);
        -webkit-backdrop-filter: var(--glass-blur);
        backdrop-filter: var(--glass-blur);
        border-color: var(--glass-light-border);
    }

    .ai-panel {
        background-image: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.8));
    }

    /* Inner preview panels go translucent so the card's glass reads through */
    .showcase-card__visual {
        background-color: rgba(248, 247, 253, 0.55);
        border-color: rgba(255, 255, 255, 0.7);
    }

    /* FAQ items need a soft edge now that the border is white */
    .faq-item {
        box-shadow: 0 1px 2px rgba(15, 14, 23, 0.04), 0 10px 28px -18px color-mix(in srgb, var(--brand-shadow) 25%, transparent);
    }

    .faq-item:hover {
        border-color: color-mix(in srgb, var(--purple-500) 14%, #e5e5e5);
    }

    .faq-item[open]:not(.is-closing) {
        border-color: var(--purple-200);
    }

    /* ----- Dark glass: dark cards on the blush background ----- */
    .price-card--featured,
    .highlight-band,
    .help-card {
        background-color: transparent;
        background-image: var(--glass-dark-card);
        -webkit-backdrop-filter: var(--glass-blur);
        backdrop-filter: var(--glass-blur);
        border: 1px solid var(--glass-dark-border);
    }

    .highlight-band,
    .help-card {
        box-shadow: var(--glass-highlight), 0 30px 60px -30px color-mix(in srgb, var(--brand-shadow) 45%, transparent);
    }

    .price-card--featured {
        box-shadow: var(--glass-highlight), 0 40px 80px -32px color-mix(in srgb, var(--brand-shadow) 60%, transparent);
    }

    .stat-tile:not(.stat-tile--accent) {
        background-color: rgba(255, 255, 255, 0.07);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
    }

    /* ----- Glass edge: a light-catching gradient rim on every glass card ----- */
    .showcase-card,
    .feature-card,
    .faq-item,
    .trust-bar {
        position: relative;
    }

    .showcase-card::before,
    .feature-card::before,
    .price-card::before,
    .faq-item::before,
    .trust-bar::before,
    .highlight-band::before,
    .help-card::before {
        content: "";
        position: absolute;
        inset: -1px;
        z-index: 2;
        padding: 1px;
        border-radius: inherit;
        background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.35) 35%, color-mix(in srgb, var(--purple-300) 35%, transparent) 70%, color-mix(in srgb, var(--orange-300) 45%, transparent) 100%);
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
    }

    .price-card--featured::before,
    .highlight-band::before,
    .help-card::before {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.06) 40%, color-mix(in srgb, var(--purple-500) 50%, transparent) 75%, color-mix(in srgb, var(--orange-500) 45%, transparent) 100%);
    }

    .highlight-band,
    .help-card {
        position: relative;
    }

    /* The featured card clips its glows, so keep its rim inside the edge */
    .price-card--featured::before {
        inset: 0;
    }
}


/* =============================================================================
   17d. Cookie Consent Banner (all pages)
============================================================================= */
.cookie-banner {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 120;
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 380px;
    max-width: calc(100% - 40px);
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-lg);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand-shadow) 8%, transparent), 0 24px 48px -16px color-mix(in srgb, var(--brand-shadow) 35%, transparent);
    animation: fadeDown 0.4s var(--ease);
}

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

.cookie-banner__head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-banner__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 34px;
    height: 34px;
    color: var(--orange-700);
    background-color: var(--orange-50);
    border-radius: var(--radius-pill);
}

.cookie-banner__title {
    font-size: 15px;
    line-height: 22px;
    font-weight: 700;
    color: var(--ink);
}

.cookie-banner__text {
    font-size: 13px;
    line-height: 20px;
    color: var(--ink-muted);
}

.cookie-banner__text a {
    font-weight: 600;
}

.cookie-banner__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-banner__actions .btn {
    flex: 1;
    padding: 10px 14px;
    font-size: 13px;
}

.cookie-banner__link {
    flex: none;
    padding: 10px 6px;
    font-size: 13px;
    font-weight: 600;
}


/* =============================================================================
   18. Back To Top
============================================================================= */
.back-to-top {
    position: fixed;
    right: 24px;
    /* same bottom + height as the AI dock so the two sit on one line */
    bottom: 20px;
    z-index: 90;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: var(--ink-inverse);
    background-color: var(--surface-inverse);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background-color 0.15s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    color: var(--ink-inverse);
    background-color: var(--purple-500);
}


/* =============================================================================
   19. Utilities & Accessibility
============================================================================= */
.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;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 200;
    padding: 10px 16px;
    font-weight: 700;
    color: var(--ink-inverse);
    background-color: var(--purple-500);
    border-radius: var(--radius-md);
}

.skip-link:focus {
    top: 16px;
    color: var(--ink-inverse);
}

body.nav-open,
body.ai-open {
    overflow: hidden;
}


/* =============================================================================
   20. Reduced Motion
============================================================================= */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/*
================================================================================
  TrustedHRM - Animations
  ------------------------------------------------------------------------------
  Every animation here explains something about the product:
    - the hero builds up in reading order, the dashboard "lands" last
    - leave / payroll cards pop in, the payroll bar fills like a real run
    - module tags flow into one profile (one source of truth)
    - permission switches turn on role by role (secure by design)
    - setup steps get checked off one by one (live in days)
    - phone notifications slide in (self-service)
    - prices count up, FAQ answers drop open

  Scroll-reveal states only apply when main.js adds "has-anim" to <html>,
  so all content stays visible if JavaScript is off.
  Everything is switched off for "prefers-reduced-motion" (see style.css #20).

  TABLE OF CONTENTS
    01. Keyframes
    02. Hero Entrance
    03. Scroll Reveal
    04. About Statement Chips
    05. Showcase Card Stories
    06. Micro Interactions
    07. AI Dock Entrance
================================================================================
*/


/* =============================================================================
   01. Keyframes
============================================================================= */
@keyframes riseIn {
    from { opacity: 0; translate: 0 24px; }
    to   { opacity: 1; translate: 0 0; }
}

@keyframes cardIn {
    from { opacity: 0; scale: 0.85; translate: 0 24px; }
    to   { opacity: 1; scale: 1; translate: 0 0; }
}

@keyframes previewIn {
    from { opacity: 0; transform: perspective(1400px) rotateX(16deg) translateY(70px) scale(0.96); }
    to   { opacity: 1; transform: perspective(1400px) rotateX(0) translateY(0) scale(1); }
}

@keyframes growX {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

@keyframes underlineIn {
    to { background-size: 100% 0.14em; }
}

@keyframes drift {
    from { translate: 0 0; }
    to   { translate: 4% -5%; }
}

@keyframes dashFlow {
    to { stroke-dashoffset: -14; }
}

@keyframes fadeDown {
    from { opacity: 0; translate: 0 -6px; }
    to   { opacity: 1; translate: 0 0; }
}

@keyframes popIn {
    0%   { opacity: 0; scale: 0.85; }
    60%  { opacity: 1; scale: 1.04; }
    100% { opacity: 1; scale: 1; }
}

@keyframes dockIn {
    from { opacity: 0; translate: 0 24px; }
    to   { opacity: 1; translate: 0 0; }
}


/* =============================================================================
   02. Hero Entrance (pure CSS, plays on load)
============================================================================= */
.hero__content > * {
    animation: riseIn 0.8s var(--ease) both;
}

.hero__content > :nth-child(1) { animation-delay: 0.05s; }
.hero__content > :nth-child(2) { animation-delay: 0.15s; }
.hero__content > :nth-child(3) { animation-delay: 0.3s; }
.hero__content > :nth-child(4) { animation-delay: 0.42s; }

/* Hand-drawn style underline under "People" */
.hero__title .serif-accent {
    padding-bottom: 0.04em;
    background-image: linear-gradient(90deg, color-mix(in srgb, var(--purple-300) 55%, transparent), color-mix(in srgb, var(--orange-300) 55%, transparent));
    background-repeat: no-repeat;
    background-position: 0 88%;
    background-size: 0 0.14em;
    animation: underlineIn 0.9s var(--ease) 1s forwards;
}

/* Dashboard lands last, tilting up into place */
.hero__preview {
    transform-origin: 50% 0;
    animation: previewIn 1.1s var(--ease) 0.5s both;
}

/* Leave & payroll cards pop in, then keep floating */
.float-card--left {
    animation: cardIn 0.7s var(--ease) 0.9s both, floatY 6s ease-in-out 1.6s infinite;
}

.float-card--right {
    animation: cardIn 0.7s var(--ease) 1.05s both, floatY 6s ease-in-out 2.4s infinite;
}

/* Payroll progress fills like a real run */
.float-card .progress__bar {
    transform-origin: 0 50%;
    animation: growX 1.3s var(--ease) 1.5s both;
}

/* Collaborator cursors: appear after the cards, then move with intent */
@keyframes cursorIn {
    from { opacity: 0; scale: 0.6; }
    to   { opacity: 1; scale: 1; }
}

/* Sarah drifts over the leave card and taps "Approved" */
@keyframes cursorHr {
    0%, 100% { translate: 0 0; }
    25%      { translate: -46px -20px; }
    40%      { translate: -78px 2px; }      /* over the Approved pill */
    44%      { translate: -78px 2px; }
    70%      { translate: -20px 34px; }
}

/* James checks the payroll card from just below it, sliding along its edge */
@keyframes cursorPayroll {
    0%, 100% { translate: 0 0; }
    30%      { translate: 40px -26px; }     /* points at the card's bottom edge */
    55%      { translate: 110px -18px; }
    60%      { translate: 110px -18px; }
    80%      { translate: 50px 12px; }
}

/* A small "click" press on the arrow */
@keyframes cursorClick {
    0%, 38%, 48%, 100% { scale: 1; }
    42%                { scale: 0.82; }
}

.hero-cursor {
    animation: cursorIn 0.5s var(--ease) both;
}

.hero-cursor--hr {
    animation: cursorIn 0.5s var(--ease) 1.9s both, cursorHr 9s ease-in-out 2.4s infinite;
}

.hero-cursor--payroll {
    animation: cursorIn 0.5s var(--ease) 2.1s both, cursorPayroll 10s ease-in-out 2.6s infinite;
}

.hero-cursor--hr .hero-cursor__arrow {
    transform-origin: 20% 15%;
    animation: cursorClick 9s ease-in-out 2.4s infinite;
}

/* Background glows breathe slowly */
.hero__glow--purple {
    animation: drift 14s ease-in-out infinite alternate;
}

.hero__glow--orange {
    animation: drift 16s ease-in-out -6s infinite alternate-reverse;
}


/* =============================================================================
   03. Scroll Reveal
   main.js adds data-reveal="up|fade|zoom" and the "is-inview" class.
   After the reveal ends, main.js removes data-reveal so hover effects work.
============================================================================= */
.has-anim [data-reveal] {
    opacity: 0;
    transition:
        opacity 0.8s var(--ease) var(--d, 0ms),
        transform 0.8s var(--ease) var(--d, 0ms);
}

.has-anim [data-reveal="up"]   { transform: translateY(32px); }
.has-anim [data-reveal="zoom"] { transform: scale(0.96); }

.has-anim [data-reveal].is-inview {
    opacity: 1;
}

/* "fade" leaves transform alone (e.g. the raised featured price card) */
.has-anim [data-reveal="up"].is-inview,
.has-anim [data-reveal="zoom"].is-inview {
    transform: none;
}


/* =============================================================================
   04. About Statement Chips (pop in one by one, in reading order)
============================================================================= */
.has-anim .about__statement .chip {
    opacity: 0;
    scale: 0.5;
    transition:
        opacity 0.4s ease calc(0.3s + var(--c, 0) * 0.12s),
        scale 0.55s cubic-bezier(0.3, 1.6, 0.5, 1) calc(0.3s + var(--c, 0) * 0.12s);
}

.has-anim .about__statement.is-inview .chip {
    opacity: 1;
    scale: 1;
}


/* =============================================================================
   05. Showcase Card Stories (start when the card scrolls into view)
============================================================================= */

/* ----- Card 1: modules flow into one profile ----- */
.mini-connector path {
    animation: dashFlow 1.1s linear infinite;
}

.has-anim .showcase-card .mini-tag {
    opacity: 0;
    translate: -18px 0;
    transition: opacity 0.5s ease, translate 0.6s var(--ease);
}

.has-anim .showcase-card .mini-tag:nth-child(1) { transition-delay: 0.35s; }
.has-anim .showcase-card .mini-tag:nth-child(2) { transition-delay: 0.5s; }
.has-anim .showcase-card .mini-tag:nth-child(3) { transition-delay: 0.65s; }

.has-anim .showcase-card .mini-profile {
    opacity: 0;
    scale: 0.9;
    transition: opacity 0.5s ease 0.9s, scale 0.6s cubic-bezier(0.3, 1.4, 0.5, 1) 0.9s;
}

.has-anim .showcase-card .mini-profile__sync {
    opacity: 0;
    transition: opacity 0.4s ease 1.4s;
}

.has-anim .showcase-card.is-inview .mini-tag,
.has-anim .showcase-card.is-inview .mini-profile,
.has-anim .showcase-card.is-inview .mini-profile__sync {
    opacity: 1;
    translate: 0 0;
    scale: 1;
}

/* ----- Card 2: permissions switch on, role by role ----- */
.switch {
    transition: background-color 0.3s ease calc(0.4s + var(--s, 0ms));
}

.switch::after,
.switch.is-on::after {
    left: 2px;
    right: auto;
    transition: transform 0.35s var(--ease) calc(0.4s + var(--s, 0ms));
}

.switch.is-on::after {
    transform: translateX(11px);
}

.has-anim .showcase-card:not(.is-inview) .switch.is-on {
    background-color: var(--border);
}

.has-anim .showcase-card:not(.is-inview) .switch.is-on::after {
    transform: none;
}

/* ----- Card 3: setup steps get checked off ----- */
.progress__bar--67 {
    transition: width 1.4s var(--ease) 0.4s;
}

.has-anim .showcase-card:not(.is-inview) .progress__bar--67 {
    width: 0;
}

.has-anim .showcase-card .mini-check {
    scale: 0;
    transition: scale 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.has-anim .showcase-card .mini-setup__item:nth-child(1) .mini-check { transition-delay: 0.6s; }
.has-anim .showcase-card .mini-setup__item:nth-child(2) .mini-check { transition-delay: 1.1s; }

.has-anim .showcase-card .mini-setup__item.is-done .mini-setup__label {
    text-decoration-color: transparent;
    transition: text-decoration-color 0.3s ease;
}

.has-anim .showcase-card .mini-setup__item:nth-child(1) .mini-setup__label { transition-delay: 0.75s; }
.has-anim .showcase-card .mini-setup__item:nth-child(2) .mini-setup__label { transition-delay: 1.25s; }

.has-anim .showcase-card.is-inview .mini-check {
    scale: 1;
}

.has-anim .showcase-card.is-inview .mini-setup__item.is-done .mini-setup__label {
    text-decoration-color: currentColor;
}

/* ----- Card 4: phone rises, notifications slide in ----- */
.has-anim .showcase-card .mini-phone {
    opacity: 0;
    translate: 0 40px;
    transition: opacity 0.6s ease 0.3s, translate 0.8s var(--ease) 0.3s;
}

.has-anim .showcase-card .mini-toast {
    opacity: 0;
    translate: 36px 0;
    transition: opacity 0.5s ease, translate 0.6s var(--ease);
}

.has-anim .showcase-card .mini-toast--one { transition-delay: 0.8s; }
.has-anim .showcase-card .mini-toast--two { transition-delay: 1.15s; }

.has-anim .showcase-card.is-inview .mini-phone,
.has-anim .showcase-card.is-inview .mini-toast {
    opacity: 1;
    translate: 0 0;
}


/* =============================================================================
   06. Micro Interactions
============================================================================= */

/* Arrows nudge forward on hover */
.btn > svg:last-child,
.btn__icon-circle svg {
    transition: translate 0.2s var(--ease);
}

.btn:hover > svg:last-child {
    translate: 3px 0;
}

.btn:hover .btn__icon-circle svg {
    translate: 1px -1px;
}

/* Feature icons tilt toward the cursor */
.feature-card .icon-well,
.showcase-card .icon-well {
    transition: transform 0.3s cubic-bezier(0.3, 1.5, 0.5, 1);
}

.feature-card:hover .icon-well,
.showcase-card:hover .icon-well {
    transform: rotate(-8deg) scale(1.08);
}

/* FAQ answers: height and fade are animated in main.js (initFaq) */

.ai-faq__a:not([hidden]),
.ai-answer:not([hidden]) {
    animation: fadeDown 0.3s var(--ease);
}

/* Newsletter success confirmation */
.newsletter__success:not([hidden]) {
    animation: popIn 0.45s var(--ease);
}


/* =============================================================================
   07. AI Dock Entrance (slides up once the hero has settled)
============================================================================= */
.ai-dock {
    animation: dockIn 0.6s var(--ease) 1.8s backwards;
}
/*
================================================================================
  TrustedHRM - Responsive Stylesheet
  ------------------------------------------------------------------------------
  Breakpoints (desktop-first):
    01. max-width: 1199px  - Small desktops / large tablets
    02. max-width: 991px   - Tablets
    03. max-width: 860px   - Mobile navigation
    04. max-width: 767px   - Large phones
    05. max-width: 575px   - Small phones
    06. Cookie banner placement (991px / 767px)

  Inner-page layouts have their own responsive rules at the end of pages.css.
================================================================================
*/


/* =============================================================================
   01. Small desktops (max-width: 1199px)
============================================================================= */
@media (max-width: 1199px) {
    :root {
        --section-space: 96px;
    }

    .hero__title {
        font-size: 64px;
        line-height: 70px;
    }

    .hero__title .serif-accent {
        font-size: 72px;
    }

    .float-card--left {
        left: 3%;
    }

    .float-card--right {
        right: 3%;
    }

    .footer-main {
        grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
        gap: 40px 32px;
    }
}


/* =============================================================================
   02. Tablets (max-width: 991px)
============================================================================= */
@media (max-width: 991px) {
    .float-card,
    .hero-cursors {
        display: none;
    }

    .section-title,
    .section-title--heavy,
    .faq__header .section-title {
        font-size: 40px;
        line-height: 46px;
    }

    .section-title--xl {
        font-size: 44px;
        line-height: 50px;
    }

    .about__statement {
        font-size: 30px;
        line-height: 48px;
    }

    .about__grid {
        grid-template-columns: minmax(0, 1fr);
    }

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

    /* Pricing */
    /* One column: stack the cards, rows no longer need to line up */
    .pricing__grid {
        display: flex;
        flex-direction: column;
        gap: 24px;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    .price-card {
        display: flex;
        flex-direction: column;
    }

    .trust-bar {
        border-radius: var(--radius-xl);
    }

    /* FAQ */
    .faq__inner {
        flex-direction: column;
        gap: 40px;
    }

    .faq__side {
        position: static;
        flex: none;
        width: 100%;
    }

    .faq__list {
        flex: none;
        width: 100%;
    }

    /* Footer */
    .footer-main {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 420px;
    }
}


/* =============================================================================
   03. Mobile navigation (max-width: 860px)
============================================================================= */
@media (max-width: 860px) {
    .navbar__toggle {
        display: flex;
    }

    .navbar__menu {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 10px;
        background-color: var(--surface-inverse);
        border-radius: var(--radius-xl);
        box-shadow: 0 24px 48px -16px color-mix(in srgb, var(--brand-shadow) 35%, transparent);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    }

    @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
        .navbar__menu {
            background-color: rgba(255, 255, 255, 0.72);
            background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.8), color-mix(in srgb, var(--purple-50) 50%, transparent));
            -webkit-backdrop-filter: blur(22px) saturate(180%);
            backdrop-filter: blur(22px) saturate(180%);
            border: 1px solid rgba(255, 255, 255, 0.85);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 0 0 1px color-mix(in srgb, var(--brand-shadow) 6%, transparent), 0 24px 48px -16px color-mix(in srgb, var(--brand-shadow) 30%, transparent);
        }
    }

    .navbar__menu.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .navbar__link {
        padding: 12px 16px;
        font-size: 15px;
        border-radius: var(--radius-md);
    }
}


/* =============================================================================
   04. Large phones (max-width: 767px)
============================================================================= */
@media (max-width: 767px) {
    :root {
        --section-space: 64px;
        --gutter: 20px;
    }

    .hero {
        padding: 12px;
    }

    .hero__panel {
        padding: 120px 20px 0;
        border-radius: var(--radius-xl);
    }

    .hero__title {
        font-size: 44px;
        line-height: 48px;
    }

    .hero__title .serif-accent {
        font-size: 48px;
    }

    .hero__text {
        font-size: 16px;
        line-height: 26px;
    }

    .hero__preview {
        margin-top: 32px;
    }

    /* AI assistant: dock spans the width, panel becomes a bottom sheet */
    /* Alone it spans the width evenly (centred); when the back-to-top button
       appears it shrinks from the right to sit beside it on the same line. */
    .ai-dock {
        left: 16px;
        right: 16px;
        width: auto;
        bottom: 16px;
        transform: none;
        transition: transform 0.3s var(--ease), opacity 0.2s ease, box-shadow 0.2s ease, right 0.3s var(--ease);
    }

    .has-back-to-top .ai-dock {
        right: 76px; /* 16px edge + 48px button + 12px gap */
    }

    .ai-dock:hover {
        width: auto;
    }

    .ai-dock.is-hidden,
    .ai-dock.is-away {
        transform: translateY(16px);
    }

    .ai-dock__key {
        display: none;
    }

    .ai-panel {
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: 85vh;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        transform: translateY(100%);
    }

    .ai-panel.is-open {
        transform: translateY(0);
    }

    .ai-panel__foot .ai-dock__key {
        display: inline-block;
    }

    .hero__fade {
        height: 64px;
    }

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

    .section-title,
    .section-title--heavy,
    .faq__header .section-title {
        font-size: 32px;
        line-height: 38px;
    }

    .section-title--xl {
        font-size: 36px;
        line-height: 42px;
    }

    .section-lead {
        font-size: 16px;
        line-height: 26px;
    }

    .modules {
        gap: 12px;
    }

    .modules__list {
        font-size: 14px;
    }

    .modules__list li + li::before {
        margin: 0 10px;
    }

    .about .container {
        gap: 40px;
    }

    .about__statement {
        font-size: 24px;
        line-height: 40px;
    }

    .chip {
        height: 34px;
        transform: translateY(-2px);
    }

    .chip--icon {
        width: 34px;
    }

    .chip--status {
        height: 30px;
    }

    .section--features {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .features__grid {
        grid-template-columns: minmax(0, 1fr);
        margin-bottom: 40px;
    }

    .feature-card {
        padding: 24px;
    }

    /* Shadow room for the module grid can't exceed the 20px page gutter here */
    .features__collapse {
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .highlight-band {
        padding: 28px 24px;
        border-radius: var(--radius-xl);
    }

    .highlight-band__title {
        font-size: 26px;
        line-height: 34px;
    }

    .pricing__inner .section-header {
        margin-bottom: 24px;
    }

    .billing-toggle {
        margin-bottom: 32px;
    }

    .pricing__grid {
        margin-bottom: 40px;
    }

    .price-card {
        padding: 24px;
        border-radius: var(--radius-xl);
    }

    .faq-item__question {
        gap: 12px;
        padding: 16px;
        font-size: 15px;
        line-height: 22px;
    }

    .faq-item__answer {
        padding: 0 16px 18px 62px;
    }

    .newsletter__panel {
        padding: 64px 20px;
        border-radius: var(--radius-xl);
    }

    .newsletter__form {
        flex-direction: column;
        border-radius: var(--radius-xl);
    }

    .newsletter__submit {
        width: 100%;
    }

    .footer-main {
        gap: 40px 24px;
        padding: 56px 0 40px;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px; /* matches the dock */
    }
}


/* =============================================================================
   05. Small phones (max-width: 575px)
============================================================================= */
@media (max-width: 575px) {
    .navbar__brand {
        padding: 7px 8px;
    }

    .navbar__brand img {
        height: 18px;
    }

    .navbar .btn--sm {
        padding: 9px 14px;
        font-size: 13px;
    }

    .hero__title {
        font-size: 36px;
        line-height: 42px;
    }

    .hero__title .serif-accent {
        font-size: 40px;
    }

    .hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .modules__label {
        width: 100%;
        text-align: center;
    }

    .about__statement {
        font-size: 21px;
        line-height: 36px;
    }

    /* Card illustrations scale down */
    .showcase-card__visual {
        padding: 0 14px;
    }

    .showcase-card__visual--row .mini-connector {
        width: 32px;
    }

    .mini-profile {
        width: 160px;
        padding: 12px;
    }

    .mini-toast--one,
    .mini-toast--two {
        right: 4%;
    }

    .mini-phone {
        transform: translateX(-85%);
    }

    .highlight-band__stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .stat-tile--accent {
        grid-column: auto;
    }

    .price__amount {
        font-size: 46px;
        line-height: 52px;
    }

    .price--text {
        font-size: 38px;
        line-height: 52px;
    }

    .trust-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 20px;
    }

    .faq-item__num {
        display: none;
    }

    .faq-item__answer {
        padding: 0 16px 18px;
    }

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

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* =============================================================================
   06. Cookie banner placement (keeps clear of the AI bar)
============================================================================= */
@media (max-width: 991px) {
    .cookie-banner {
        bottom: 84px;
    }
}

@media (max-width: 767px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
        bottom: 76px;
    }
}


/* ---- Inner pages (legal documents, book a demo) ---- */
/*
================================================================================
  TrustedHRM - Inner Pages Stylesheet
  ------------------------------------------------------------------------------
  Used by: privacy-policy.html, terms-of-service.html, cookie-policy.html,
           contact.html, book-a-demo.html
  Load order: style.css > animations.css > pages.css > responsive.css

  TABLE OF CONTENTS
    01. Page Hero
    02. Page Body
    03. Legal Layout & Table of Contents
    04. Prose (legal text)
    05. Data Table (cookies)
    06. Cookie Preferences
    07. Forms
    08. Contact Page
    09. Book a Demo Page
    10. Glass Surfaces (inner pages)
    11. Responsive
================================================================================
*/


/* =============================================================================
   01. Page Hero
============================================================================= */
.page-hero {
    padding: 16px;
}

.page-hero__panel {
    position: relative;
    overflow: hidden;
    padding: 168px 32px 88px;
    text-align: center;
    background-color: var(--surface-0);
    border: 1px solid color-mix(in srgb, var(--purple-500) 6%, #ffffff);
    border-radius: var(--radius-2xl);
}

.page-hero__panel .hero__glow--purple {
    left: -18%;
    bottom: -60%;
    width: 55%;
    height: 140%;
}

.page-hero__panel .hero__glow--orange {
    right: -16%;
    bottom: -55%;
    width: 50%;
    height: 130%;
}

.page-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    max-width: 760px;
    margin: 0 auto;
}

.page-hero__content > * {
    animation: riseIn 0.8s var(--ease) both;
}

.page-hero__content > :nth-child(2) { animation-delay: 0.1s; }
.page-hero__content > :nth-child(3) { animation-delay: 0.2s; }
.page-hero__content > :nth-child(4) { animation-delay: 0.3s; }

.page-hero__title {
    font-size: 60px;
    line-height: 64px;
    font-weight: 700;
    letter-spacing: -0.035em;
    color: var(--ink);
}

.page-hero__text {
    max-width: 600px;
    font-size: 18px;
    line-height: 28px;
    color: var(--ink-muted);
}

.page-hero__meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
    color: var(--ink-muted);
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
}


/* =============================================================================
   02. Page Body
============================================================================= */
.page-body {
    padding-top: 72px;
    padding-bottom: 112px;
}


/* =============================================================================
   03. Legal Layout & Table of Contents
============================================================================= */
.legal__inner {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
    gap: 64px;
}

.legal__aside {
    position: sticky;
    top: 112px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.legal__select-wrap {
    display: none;
}

.toc {
    padding: 20px;
    background-color: var(--surface-0);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
}

.toc__title {
    margin-bottom: 10px;
    padding: 0 10px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-subtle);
}

.toc__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toc__link {
    display: block;
    padding: 7px 10px;
    font-size: 14px;
    line-height: 20px;
    color: var(--ink-muted);
    border-radius: var(--radius-sm);
    transition: color 0.15s ease, background-color 0.15s ease;
}

.toc__link:hover {
    color: var(--ink);
    background-color: color-mix(in srgb, var(--purple-50) 70%, transparent);
}

.toc__link.is-active {
    font-weight: 600;
    color: var(--purple-700);
    background-color: var(--purple-50);
}

.aside-help {
    padding: 20px;
    font-size: 14px;
    line-height: 22px;
    color: var(--ink-muted);
    background-color: var(--surface-0);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
}

.aside-help__title {
    margin-bottom: 6px;
    font-size: 15px;
    line-height: 22px;
    font-weight: 700;
    color: var(--ink);
}

.aside-help .link-arrow {
    margin-top: 10px;
}


/* =============================================================================
   04. Prose (legal text)
============================================================================= */
.prose {
    max-width: 72ch;
    font-size: 16px;
    line-height: 28px;
    color: var(--ink-muted);
}

.prose__section {
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-soft);
    scroll-margin-top: 112px;
}

.prose__section:last-child {
    margin-bottom: 0;
    border-bottom: 0;
}

.prose h2 {
    margin-bottom: 14px;
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--ink);
}

.prose h3 {
    margin: 22px 0 8px;
    font-size: 17px;
    line-height: 26px;
    font-weight: 700;
    color: var(--ink);
}

.prose p + p,
.prose p + ul,
.prose ul + p {
    margin-top: 14px;
}

.prose ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.prose ul li {
    position: relative;
    padding-left: 22px;
}

.prose ul li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 11px;
    width: 6px;
    height: 6px;
    border-radius: var(--radius-pill);
    background-color: var(--purple-500);
}

.prose strong {
    font-weight: 600;
    color: var(--ink);
}

.prose a {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--purple-100);
}

.prose a:hover {
    color: var(--purple-700);
    text-decoration-color: currentColor;
}

.callout {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    padding: 16px 18px;
    font-size: 14px;
    line-height: 22px;
    color: var(--ink-soft);
    background-color: var(--purple-50);
    border: 1px solid var(--purple-100);
    border-radius: var(--radius-md);
}

.callout svg {
    flex: none;
    margin-top: 2px;
    color: var(--purple-700);
}


/* =============================================================================
   05. Data Table (cookies)
============================================================================= */
.table-wrap {
    margin-top: 18px;
    overflow-x: auto;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
}

.data-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 20px;
    background-color: var(--surface-0);
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border-soft);
}

.data-table th {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-subtle);
    background-color: var(--surface-50);
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.data-table code {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 13px;
    color: var(--ink);
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    line-height: 18px;
    font-weight: 700;
    border-radius: var(--radius-pill);
}

.tag--essential { color: var(--success); background-color: var(--success-bg); }
.tag--analytics { color: var(--purple-700); background-color: var(--purple-50); }
.tag--marketing { color: var(--orange-700); background-color: var(--orange-50); }


/* =============================================================================
   06. Cookie Preferences
============================================================================= */
.pref-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}

.pref {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    background-color: var(--surface-0);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
}

label.pref {
    cursor: pointer;
}

.pref__title,
.pref__text {
    display: block;
}

.pref__title {
    font-size: 15px;
    line-height: 22px;
    font-weight: 700;
    color: var(--ink);
}

.pref__text {
    margin-top: 2px;
    font-size: 14px;
    line-height: 22px;
}

.pref__always {
    flex: none;
    font-size: 13px;
    font-weight: 700;
    color: var(--success);
}

.pref__switch {
    position: relative;
    flex: none;
    width: 44px;
    height: 26px;
    margin: 0;
    cursor: pointer;
    background-color: var(--border-strong);
    border-radius: var(--radius-pill);
    -webkit-appearance: none;
    appearance: none;
    transition: background-color 0.2s ease;
}

.pref__switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-pill);
    background-color: var(--surface-0);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s var(--ease);
}

.pref__switch:checked {
    background-color: var(--purple-500);
}

.pref__switch:checked::after {
    transform: translateX(18px);
}

.pref__switch:focus-visible {
    outline: 2px solid var(--purple-500);
    outline-offset: 2px;
}

.pref__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-top: 20px;
}

.pref__saved {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--success);
}

.pref__saved[hidden] {
    display: none;
}


/* =============================================================================
   07. Forms
============================================================================= */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field--full {
    grid-column: 1 / -1;
}

.field__label {
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: var(--ink);
}

.field__label .req {
    color: var(--danger);
}

.field__input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 22px;
    color: var(--ink);
    background-color: var(--surface-0);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field__input::placeholder {
    color: var(--ink-subtle);
}

.field__input:focus,
.field__input:focus-visible {
    outline: none;
    border-color: var(--purple-500);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--purple-500) 14%, transparent);
}

select.field__input {
    padding-right: 40px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235b5970' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    -webkit-appearance: none;
    appearance: none;
}

textarea.field__input {
    min-height: 132px;
    resize: vertical;
}

.field.has-error .field__input {
    border-color: var(--danger);
}

.field.has-error .field__input:focus {
    box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.12);
}

.field__error {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
    color: var(--danger);
}

.field__error[hidden] {
    display: none;
}

.field__hint {
    font-size: 13px;
    line-height: 18px;
    color: var(--ink-subtle);
}

/* Checkbox */
.check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 22px;
    color: var(--ink-muted);
    cursor: pointer;
}

.check input {
    flex: none;
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    accent-color: var(--purple-500);
    cursor: pointer;
}

.check a {
    font-weight: 600;
}

/* Card that holds a form */
.form-card {
    padding: 36px;
    background-color: var(--surface-0);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.form-card__title {
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.form-card__text {
    margin: 6px 0 28px;
    font-size: 15px;
    line-height: 24px;
    color: var(--ink-muted);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
}

.form-actions .field__hint {
    max-width: 280px;
}

.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Success state */
.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 24px 8px;
    text-align: center;
    animation: popIn 0.45s var(--ease);
}

.form-success[hidden] {
    display: none;
}

.form-success__icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    color: var(--success);
    background-color: var(--success-bg);
    border-radius: var(--radius-pill);
}

.form-success__title {
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
}

.form-success__text {
    max-width: 420px;
    font-size: 15px;
    line-height: 24px;
    color: var(--ink-muted);
}


/* =============================================================================
   08. Contact Page
============================================================================= */
/* ----- Route cards: Sales / Support / Partnerships ----- */
.contact-routes {
    margin-bottom: 40px;
}

.route-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.route-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px;
    background-color: var(--surface-0);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.route-card .icon-well {
    margin-bottom: 20px;
}

.route-card__title {
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.route-card__text {
    margin-top: 6px;
    font-size: 15px;
    line-height: 24px;
    color: var(--ink-muted);
}

.route-card__sla {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 24px;
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
    color: var(--success);
}

.route-card__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.route-card__link {
    padding: 2px 4px;
    font-family: inherit;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: var(--purple-700);
    background: none;
    border: 0;
    cursor: pointer;
}

.route-card__link:hover {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ----- Contact details + form (kept deliberately plain) ----- */
.contact-main {
    scroll-margin-top: 96px;
}

.contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: 64px;
}

.contact-info {
    padding-top: 8px;
}

.contact-info__title {
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.contact-info__text {
    margin-top: 8px;
    font-size: 15px;
    line-height: 24px;
    color: var(--ink-muted);
}

.contact-info__list {
    margin: 28px 0 0;
}

.contact-info__row {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
}

.contact-info__row:last-child {
    border-bottom: 1px solid var(--border);
}

.contact-info__row dt {
    font-size: 14px;
    line-height: 24px;
    color: var(--ink-subtle);
}

.contact-info__row dd {
    margin: 0;
    font-size: 15px;
    line-height: 24px;
    font-weight: 500;
    color: var(--ink);
}

.contact-info__row dd a {
    color: var(--ink);
}

.contact-info__row dd a:hover {
    color: var(--purple-700);
}

.contact-info__note {
    margin-top: 24px;
    font-size: 14px;
    line-height: 22px;
    color: var(--ink-muted);
}

.text-link {
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
    color: var(--purple-700);
    background: none;
    border: 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--purple-100);
}

.text-link:hover {
    color: var(--ink);
    text-decoration-color: currentColor;
}

/* Plain form card: solid white, hairline border, soft shadow */
.contact-main .form-card {
    padding: 32px;
    background-color: var(--surface-0);
    background-image: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 2px rgba(15, 14, 23, 0.04), 0 12px 32px -20px color-mix(in srgb, var(--brand-shadow) 18%, transparent);
}

.contact-main .form-card::before {
    content: none;
}

.contact-main .form-card__title {
    font-size: 22px;
    line-height: 30px;
}

.contact-main .form-card__text {
    margin-bottom: 24px;
}

.contact-main .form-actions {
    justify-content: flex-end;
}

/* ----- Common questions ----- */
.mini-faq {
    padding-top: 88px;
}

.mini-faq__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.mini-faq__title {
    font-size: 32px;
    line-height: 40px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.mini-faq__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 48px;
    border-top: 1px solid var(--border-soft);
}

.mini-faq__item {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-soft);
}

.mini-faq__q {
    font-size: 17px;
    line-height: 26px;
    font-weight: 700;
    color: var(--ink);
}

.mini-faq__a {
    margin-top: 6px;
    font-size: 15px;
    line-height: 24px;
    color: var(--ink-muted);
}

.mini-faq__a a {
    font-weight: 600;
}


/* =============================================================================
   09. Book a Demo Page
============================================================================= */
.demo__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: start;
    gap: 48px;
}

.demo__info {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-top: 8px;
}

.demo__title {
    font-size: 28px;
    line-height: 36px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.agenda {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.agenda__item {
    display: flex;
    gap: 14px;
}

.agenda__time {
    flex: none;
    width: 62px;
    padding: 4px 0;
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    text-align: center;
    color: var(--purple-700);
    background-color: var(--purple-50);
    border-radius: var(--radius-sm);
    height: fit-content;
}

.agenda__title {
    font-size: 15px;
    line-height: 22px;
    font-weight: 700;
    color: var(--ink);
}

.agenda__text {
    font-size: 14px;
    line-height: 22px;
    color: var(--ink-muted);
}

.fit-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fit-list li {
    padding: 6px 12px;
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
    color: var(--ink-soft);
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
}

.demo__label {
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-subtle);
}

.trust-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trust-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: var(--ink-soft);
}

.trust-list svg {
    flex: none;
    color: var(--success);
}

/* Booking card */
.booking {
    padding: 32px;
    background-color: var(--surface-0);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.steps {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
}

.steps__item {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
    color: var(--ink-subtle);
}

.steps__item::before {
    content: "";
    height: 4px;
    border-radius: var(--radius-pill);
    background-color: var(--surface-200);
    transition: background-color 0.3s ease;
}

.steps__item.is-active,
.steps__item.is-done {
    color: var(--ink);
}

.steps__item.is-active::before {
    background-color: var(--purple-500);
}

.steps__item.is-done::before {
    background-color: var(--success);
}

.booking__panel {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    animation: fadeDown 0.35s var(--ease);
}

.booking__panel[hidden] {
    display: none;
}

.booking__legend {
    margin-bottom: 4px;
    padding: 0;
    font-size: 22px;
    line-height: 30px;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.booking__sub {
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 22px;
    color: var(--ink-muted);
}

.booking__group-label {
    margin: 4px 0 10px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    color: var(--ink);
}

.booking__group-label + .choice-grid {
    margin-bottom: 22px;
}

/* Date and time choices (radio inputs styled as chips) */
.choice-grid {
    display: grid;
    gap: 8px;
}

.choice-grid--dates {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.choice-grid--times {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.choice {
    position: relative;
}

.choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice__label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 4px;
    font-size: 14px;
    line-height: 18px;
    font-weight: 600;
    text-align: center;
    color: var(--ink);
    background-color: var(--surface-0);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.choice__label small {
    font-size: 11px;
    line-height: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-subtle);
}

.choice__label b {
    font-size: 18px;
    line-height: 24px;
}

.choice__label:hover {
    border-color: var(--purple-300);
    background-color: var(--purple-50);
}

.choice input:checked + .choice__label {
    color: var(--ink-inverse);
    background-color: var(--purple-500);
    border-color: var(--purple-500);
}

.choice input:checked + .choice__label small {
    color: rgba(255, 255, 255, 0.8);
}

.choice input:focus-visible + .choice__label {
    outline: 2px solid var(--purple-500);
    outline-offset: 2px;
}

.booking__tz {
    margin-top: 10px;
    font-size: 13px;
    line-height: 18px;
    color: var(--ink-subtle);
}

.booking__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border-soft);
}

.booking__nav .btn[hidden] {
    display: none;
}

.booking__nav .booking__next {
    margin-left: auto;
}

/* Confirmation */
.booking-summary {
    width: 100%;
    margin: 8px 0 4px;
    padding: 16px 18px;
    text-align: left;
    background-color: var(--surface-tint);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
}

.booking-summary li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    font-size: 14px;
    line-height: 20px;
    color: var(--ink-muted);
    border-bottom: 1px solid var(--border-soft);
}

.booking-summary li:last-child {
    border-bottom: 0;
}

.booking-summary b {
    font-weight: 600;
    text-align: right;
    color: var(--ink);
}

.form-success__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 6px;
}


/* =============================================================================
   10. Glass Surfaces (inner pages)
============================================================================= */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .toc,
    .aside-help,
    .form-card,
    .route-card,
    .booking,
    .pref {
        position: relative;
        background-color: transparent;
        background-image: var(--glass-light);
        -webkit-backdrop-filter: var(--glass-blur);
        backdrop-filter: var(--glass-blur);
        border-color: var(--glass-light-border);
    }

    .form-card::before,
    .route-card::before,
    .booking::before,
    .toc::before {
        content: "";
        position: absolute;
        inset: -1px;
        padding: 1px;
        border-radius: inherit;
        background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.35) 35%, color-mix(in srgb, var(--purple-300) 35%, transparent) 70%, color-mix(in srgb, var(--orange-300) 45%, transparent) 100%);
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
    }
}


/* =============================================================================
   11. Responsive
============================================================================= */
@media (max-width: 1199px) {
    .legal__inner {
        grid-template-columns: 230px minmax(0, 1fr);
        gap: 48px;
    }
}

@media (max-width: 991px) {
    .page-hero__title {
        font-size: 48px;
        line-height: 54px;
    }

    /* Legal: table of contents becomes a "Jump to section" dropdown */
    .legal__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .legal__aside {
        position: static;
    }

    .legal__aside .toc,
    .legal__aside .aside-help {
        display: none;
    }

    .legal__select-wrap {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .prose {
        max-width: none;
    }

    .contact__grid,
    .demo__grid,
    .route-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .route-grid {
        max-width: 560px;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .page-hero {
        padding: 12px;
    }

    .page-hero__panel {
        padding: 128px 20px 56px;
        border-radius: var(--radius-xl);
    }

    .page-hero__title {
        font-size: 38px;
        line-height: 44px;
    }

    .page-hero__text {
        font-size: 16px;
        line-height: 26px;
    }

    .page-body {
        padding-top: 48px;
        padding-bottom: 80px;
    }

    .prose h2 {
        font-size: 21px;
        line-height: 28px;
    }

    .prose__section {
        padding-bottom: 32px;
        margin-bottom: 32px;
    }

    .form-card,
    .booking {
        padding: 24px 20px;
    }

    .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .choice-grid--dates {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .route-card,
    .contact-main .form-card {
        padding: 24px 20px;
    }

    .mini-faq {
        padding-top: 64px;
    }

    .mini-faq__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .mini-faq__title {
        font-size: 26px;
        line-height: 34px;
    }

    .pref {
        padding: 16px;
    }
}

@media (max-width: 575px) {
    .form-actions .btn {
        width: 100%;
    }
}



/* =============================================================================
   FrontendTheme integration (section wrappers, settings classes, preview)
============================================================================= */
.th-section {
    position: relative;
    background: var(--sec-bg, transparent);
    --sec-pad-scale: 1;
}

.th-section > .th-block {
    padding-top: calc(var(--sec-pad, 96px) * var(--sec-pad-scale));
    padding-bottom: calc(var(--sec-pad, 96px) * var(--sec-pad-scale));
}

/* Alignment: justify-items / justify-content accept left | center | right,
   so the --sec-align value works directly and updates live in the preview. */
.th-section .section-header,
.th-section .hero__content,
.th-section .faq__header,
.th-section .newsletter__content {
    display: grid;
    justify-items: var(--sec-align, center);
    text-align: var(--sec-align, center);
}

.th-section .hero__actions,
.th-section .newsletter__perks {
    justify-content: var(--sec-align, center);
}


.btn--brand,
.btn--brand:hover {
    background-color: var(--btn-bg, var(--purple-500));
    color: var(--btn-text, #ffffff);
}

body.btn-pill .btn:not(.btn--square) { border-radius: var(--radius-pill); }
body.btn-rounded .btn { border-radius: var(--radius-md); }
body.btn-square .btn { border-radius: 4px; }

body:not(.header-sticky) .site-header { position: absolute; }

.is-hidden-preview { opacity: .35; }

.th-preview a,
.th-preview button,
.th-preview summary { cursor: pointer; }

@media (max-width: 991px) {
    .th-section { --sec-pad-scale: .8; }
}

@media (max-width: 575px) {
    .th-section { --sec-pad-scale: .65; }
}

.th-partial { display: contents; }

.highlight-band { background-color: var(--band-bg, var(--surface-inverse)); }

.th-stroke-purple { color: var(--purple-500); }
.th-stroke-orange { color: var(--orange-500); }

.th-illustration {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}


/* -------------------------------------------------------------------------
 * Signup & checkout (shared "signup" section, page /get-started)
 * ---------------------------------------------------------------------- */
.signup__lead {
    margin-top: 12px;
    font-size: 16px;
    line-height: 26px;
    color: var(--ink-muted);
}

.signup__signin {
    font-size: 15px;
    line-height: 24px;
    color: var(--ink-muted);
}

.signup__signin a {
    margin-left: 4px;
    font-weight: 700;
    color: var(--purple-500);
}

.signup__step {
    min-width: 0;
    margin: 0 0 28px;
    padding: 0 0 28px;
    border: 0;
    border-bottom: 1px solid var(--border-card);
}

.signup__step[hidden] {
    display: none;
}

.signup__step > .booking__group-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    margin-bottom: 16px;
}

.signup__num {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-inverse);
    background-color: var(--purple-500);
    border-radius: var(--radius-pill);
}

.signup-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.signup-plan {
    position: relative;
    cursor: pointer;
}

.signup-plan input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.signup-plan__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100%;
    padding: 14px 16px;
    background-color: var(--surface-0);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.signup-plan__name {
    font-size: 16px;
    line-height: 22px;
    color: var(--ink);
}

.signup-plan__price {
    font-size: 13px;
    line-height: 18px;
    color: var(--ink-subtle);
}

.signup-plan--popular .signup-plan__name::after {
    content: "★";
    margin-left: 6px;
    color: var(--purple-500);
}

.signup-plan:hover .signup-plan__body {
    border-color: var(--purple-300);
}

.signup-plan input:checked + .signup-plan__body {
    background-color: var(--purple-50);
    border-color: var(--purple-500);
    box-shadow: 0 0 0 1px var(--purple-500);
}

.signup-plan input:focus-visible + .signup-plan__body {
    outline: 2px solid var(--purple-500);
    outline-offset: 2px;
}

.signup__cycles {
    margin-top: 18px;
}

.signup__cycles[hidden],
.signup__offline[hidden] {
    display: none;
}

.signup__cycles .field__label {
    display: block;
    margin-bottom: 8px;
}

.signup__cycle-grid,
.signup__methods {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.choice input:disabled + .choice__label {
    opacity: 0.45;
    cursor: not-allowed;
}

.signup__offline {
    margin-top: 12px;
}

.signup__terms {
    margin-bottom: 8px;
}

.signup__terms .check a {
    color: var(--ink);
}

.signup__alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 20px;
    color: var(--danger, #b42318);
    background-color: color-mix(in srgb, var(--danger, #b42318) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--danger, #b42318) 30%, transparent);
    border-radius: var(--radius-md);
}

.signup__alert svg {
    flex: none;
    margin-top: 3px;
}

.signup__result .field__hint {
    margin-bottom: 16px;
}

.signup__result--pending .form-success__icon {
    color: var(--purple-500);
}

@media (max-width: 767px) {
    .signup__card {
        padding: 22px;
    }
}

/* -------------------------------------------------------------------------
 * Contact page (shared "contact_info" section, page /contact)
 * ---------------------------------------------------------------------- */
.contact-info__channels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.contact-channel {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 22px;
    background-color: var(--surface-0);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.contact-channel__icon,
.contact-card__icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--purple-500);
    background-color: var(--purple-50);
    border-radius: var(--radius-md);
}

.contact-channel__body {
    min-width: 0;
}

.contact-channel__title {
    font-size: 13px;
    line-height: 18px;
    font-weight: 600;
    color: var(--ink-subtle);
}

.contact-channel__value {
    display: block;
    margin-top: 2px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
    color: var(--ink);
    overflow-wrap: anywhere;
}

a.contact-channel__value:hover {
    color: var(--purple-500);
}

.contact-info__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
    background-color: var(--surface-0);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.contact-card__title {
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
    color: var(--ink);
}

.contact-card__text {
    flex: 1;
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 24px;
    color: var(--ink-muted);
}

/* Pricing: "start free trial" link under the buy button (package with a trial) */
.plan__cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plan__trial-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    font-size: 14px;
    font-weight: 600;
    color: var(--purple-500);
    border-radius: var(--radius-md);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.plan__trial-link:hover {
    background-color: color-mix(in srgb, var(--purple-500) 8%, transparent);
}

.price-card--featured .plan__trial-link {
    color: var(--ink-inverse);
}

.price-card--featured .plan__trial-link:hover {
    background-color: color-mix(in srgb, var(--ink-inverse) 10%, transparent);
}

/* Signup: trial or buy-now choice */
.signup__mode {
    margin-top: 18px;
}

.signup__mode[hidden] {
    display: none;
}

.signup__mode .field__label {
    display: block;
    margin-bottom: 8px;
}

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

.signup-plan__trial {
    display: block;
    margin-top: 4px;
    font-weight: 700;
    color: var(--purple-500);
}

/* Signup: package side + form side */
.signup__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
    align-items: start;
    gap: 32px;
}

.signup__side {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.signup__package .signup__step {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.signup__package .signup-plans {
    grid-template-columns: 1fr;
}

.signup__summary {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-strong);
}

.signup__summary-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 22px;
    color: var(--ink-muted);
}

.signup__summary-row b {
    color: var(--ink);
}

.signup__summary-total b {
    font-size: 24px;
    line-height: 30px;
}

.signup__card--narrow {
    max-width: 640px;
    margin: 0 auto;
}

.signup__side .trust-list {
    padding: 0 8px;
}

.signup__side .signup__signin {
    padding: 0 8px;
}

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

    .signup__side {
        position: static;
    }
}


/* ---------- Password field with show / hide button (signup) ---------- */
.field__password {
    position: relative;
}

.field__password .field__input {
    padding-right: 48px;
}

.field__password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: var(--ink-subtle);
    background: transparent;
    border: 0;
    border-radius: var(--radius-md);
    cursor: pointer;
    transform: translateY(-50%);
}

.field__password-toggle:hover,
.field__password-toggle:focus-visible {
    color: var(--ink);
    outline: none;
}

.field__password-icon--hide,
.field__password.is-visible .field__password-icon--show {
    display: none;
}

.field__password.is-visible .field__password-icon--hide {
    display: block;
}

[dir="rtl"] .field__password .field__input {
    padding-right: 14px;
    padding-left: 48px;
}

[dir="rtl"] .field__password-toggle {
    right: auto;
    left: 8px;
}
