/*
 * Public marketing homepage — light, vivid design system.
 *
 * Self-contained on purpose: the page is served to visitors before any app
 * bundle is relevant, so it ships one stylesheet, system fonts and no external
 * requests. Every colour, size and motion value comes from the tokens in
 * :root — change them there, not at the call site.
 */

/* ─────────────────────────────────────────────────────────────
   TOKENS
   ───────────────────────────────────────────────────────────── */

:root {
    /* Surfaces */
    --ph-bg: #ffffff;
    --ph-bg-soft: #f7f8fc;
    --ph-bg-tint: #f1f3fb;
    --ph-surface: #ffffff;

    /* Lines */
    --ph-line: #e6e8f2;
    --ph-line-soft: #eef0f8;
    --ph-line-strong: #d6dae8;

    /* Text — checked against white: 16.9 / 8.6 / 5.5 */
    --ph-fg: #0f1222;
    --ph-fg-muted: #4a5069;
    --ph-fg-dim: #6b7288;

    /* Brand */
    --ph-primary: #6366f1;
    --ph-primary-strong: #4f46e5;
    --ph-primary-text: #4338ca; /* 6.5:1 on white — safe for body-size text */
    --ph-primary-soft: #eef0ff;
    --ph-cyan: #06b6d4;
    --ph-cyan-soft: #e0f7fb;
    --ph-violet: #8b5cf6;
    --ph-violet-soft: #f3edff;
    --ph-pink: #ec4899;
    --ph-pink-soft: #fdeaf4;
    --ph-amber: #d97706;
    --ph-amber-soft: #fef3e2;
    --ph-emerald: #059669;
    --ph-emerald-soft: #e3f7f0;

    /* Type */
    --ph-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --ph-font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

    --ph-text-xs: 0.75rem;
    --ph-text-sm: 0.875rem;
    --ph-text-base: 1rem;
    --ph-text-md: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
    --ph-text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
    --ph-text-xl: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
    --ph-text-2xl: clamp(1.625rem, 1.4rem + 1.1vw, 2.125rem);
    --ph-text-3xl: clamp(1.875rem, 1.5rem + 1.9vw, 2.75rem);
    --ph-text-4xl: clamp(2.25rem, 1.7rem + 2.7vw, 3.75rem);

    /* Spacing — 4px scale */
    --ph-1: 0.25rem;
    --ph-2: 0.5rem;
    --ph-3: 0.75rem;
    --ph-4: 1rem;
    --ph-5: 1.25rem;
    --ph-6: 1.5rem;
    --ph-8: 2rem;
    --ph-10: 2.5rem;
    --ph-12: 3rem;
    --ph-16: 4rem;

    --ph-section-y: clamp(4rem, 2.5rem + 6vw, 8rem);
    --ph-container: 1180px;
    --ph-gutter: clamp(1.25rem, 0.9rem + 1.4vw, 2rem);

    /* Shape */
    --ph-radius-sm: 10px;
    --ph-radius: 14px;
    --ph-radius-lg: 20px;
    --ph-radius-xl: 28px;

    /* Elevation — soft and faintly brand-tinted, never grey mud */
    --ph-shadow-xs: 0 1px 2px rgba(15, 18, 34, 0.05);
    --ph-shadow-sm: 0 1px 2px rgba(15, 18, 34, 0.04), 0 4px 12px rgba(79, 70, 229, 0.06);
    --ph-shadow: 0 2px 4px rgba(15, 18, 34, 0.04), 0 12px 28px rgba(79, 70, 229, 0.09);
    --ph-shadow-lg: 0 4px 8px rgba(15, 18, 34, 0.04), 0 28px 60px rgba(79, 70, 229, 0.14);

    /* Motion */
    --ph-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ph-fast: 180ms;
    --ph-slow: 420ms;
}

/* ─────────────────────────────────────────────────────────────
   BASE
   ───────────────────────────────────────────────────────────── */

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

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

body.ph {
    margin: 0;
    background-color: var(--ph-bg);
    color: var(--ph-fg);
    font-family: var(--ph-font-sans);
    font-size: var(--ph-text-md);
    line-height: 1.62;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.ph-menu-open {
    overflow: hidden;
}

.ph h1,
.ph h2,
.ph h3,
.ph h4 {
    margin: 0;
    line-height: 1.14;
    letter-spacing: -0.022em;
    font-weight: 660;
    text-wrap: balance;
}

.ph h1 { font-size: var(--ph-text-4xl); letter-spacing: -0.035em; }
.ph h2 { font-size: var(--ph-text-3xl); letter-spacing: -0.03em; }
.ph h3 { font-size: var(--ph-text-lg); }
.ph h4 { font-size: var(--ph-text-base); }

.ph p { margin: 0; }

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

.ph img {
    max-width: 100%;
    height: auto;
    display: block;
}

.ph a {
    color: inherit;
    text-decoration: none;
}

.ph a:focus-visible,
.ph button:focus-visible,
.ph summary:focus-visible {
    outline: 2px solid var(--ph-primary-strong);
    outline-offset: 3px;
    border-radius: var(--ph-radius-sm);
}

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

/* Coloured elements that are frequently anchors are prefixed with `.ph` so they
   outrank the `.ph a { color: inherit }` rule above. */
.ph .ph-skip {
    position: absolute;
    left: var(--ph-gutter);
    top: -100px;
    z-index: 100;
    padding: var(--ph-3) var(--ph-4);
    background: var(--ph-primary-strong);
    color: #ffffff;
    border-radius: var(--ph-radius-sm);
    font-weight: 600;
    transition: top var(--ph-fast) var(--ph-ease);
}

.ph .ph-skip:focus {
    top: var(--ph-3);
}

.ph-container {
    width: 100%;
    max-width: var(--ph-container);
    margin-inline: auto;
    padding-inline: var(--ph-gutter);
}

.ph-section {
    padding-block: var(--ph-section-y);
    position: relative;
}

.ph-section--soft {
    background: var(--ph-bg-soft);
}

/* ─────────────────────────────────────────────────────────────
   SHARED PRIMITIVES
   ───────────────────────────────────────────────────────────── */

.ph-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--ph-2);
    align-self: start;
    margin: 0;
    padding: 6px var(--ph-3) 6px var(--ph-2);
    border-radius: 999px;
    background: var(--ph-primary-soft);
    color: var(--ph-primary-text);
    font-size: var(--ph-text-xs);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.ph-eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ph-primary);
    margin-left: var(--ph-2);
}

.ph-label {
    margin: 0;
    font-family: var(--ph-font-mono);
    font-size: var(--ph-text-xs);
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--ph-fg-dim);
}

.ph-head {
    max-width: 44rem;
    display: grid;
    justify-items: start;
    gap: var(--ph-4);
    margin-bottom: var(--ph-12);
}

.ph-head--center {
    max-width: 46rem;
    margin-inline: auto;
    justify-items: center;
    text-align: center;
}

.ph-head__lead {
    color: var(--ph-fg-muted);
    font-size: var(--ph-text-lg);
    max-width: 40rem;
}

.ph-grid {
    display: grid;
    gap: var(--ph-4);
}

/* Buttons */
.ph-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--ph-2);
    min-height: 46px;
    padding: var(--ph-3) var(--ph-6);
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: var(--ph-text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--ph-fast) var(--ph-ease), box-shadow var(--ph-fast) var(--ph-ease),
        background-color var(--ph-fast) var(--ph-ease), border-color var(--ph-fast) var(--ph-ease);
}

.ph-btn--sm {
    min-height: 40px;
    padding: var(--ph-2) var(--ph-5);
}

.ph .ph-btn--primary {
    background-image: linear-gradient(135deg, var(--ph-primary) 0%, var(--ph-violet) 55%, var(--ph-cyan) 140%);
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 18, 34, 0.08), 0 10px 22px rgba(99, 102, 241, 0.32);
}

.ph .ph-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(15, 18, 34, 0.08), 0 16px 32px rgba(99, 102, 241, 0.4);
}

.ph .ph-btn--outline {
    border-color: var(--ph-line-strong);
    background: var(--ph-surface);
    color: var(--ph-fg);
    box-shadow: var(--ph-shadow-xs);
}

.ph .ph-btn--outline:hover {
    border-color: var(--ph-primary);
    color: var(--ph-primary-text);
    transform: translateY(-1px);
}

.ph .ph-btn--ghost {
    color: var(--ph-fg-muted);
    padding-inline: var(--ph-3);
}

.ph .ph-btn--ghost:hover {
    color: var(--ph-fg);
}

.ph .ph-btn--onColor {
    background: #ffffff;
    color: var(--ph-primary-text);
    box-shadow: 0 8px 20px rgba(15, 18, 34, 0.16);
}

.ph .ph-btn--onColor:hover {
    transform: translateY(-2px);
}

.ph .ph-btn--onColorGhost {
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.ph .ph-btn--onColorGhost:hover {
    background: rgba(255, 255, 255, 0.14);
}

.ph .ph-textlink {
    display: inline-flex;
    align-items: center;
    gap: var(--ph-2);
    min-height: 44px;
    color: var(--ph-primary-text);
    font-weight: 600;
    font-size: var(--ph-text-sm);
}

.ph .ph-textlink:hover {
    gap: var(--ph-3);
}

.ph-checklist {
    display: grid;
    gap: var(--ph-3);
}

.ph-checklist li {
    display: flex;
    align-items: flex-start;
    gap: var(--ph-3);
    color: var(--ph-fg-muted);
    font-size: var(--ph-text-base);
}

.ph-checklist li > span:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ph-emerald-soft);
    color: var(--ph-emerald);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Cards */
.ph-card {
    padding: var(--ph-6);
    background: var(--ph-surface);
    border: 1px solid var(--ph-line);
    border-radius: var(--ph-radius-lg);
    box-shadow: var(--ph-shadow-sm);
    display: grid;
    gap: var(--ph-3);
    align-content: start;
    transition: transform var(--ph-fast) var(--ph-ease), box-shadow var(--ph-fast) var(--ph-ease),
        border-color var(--ph-fast) var(--ph-ease);
}

.ph-card:hover {
    transform: translateY(-3px);
    border-color: var(--ph-line-strong);
    box-shadow: var(--ph-shadow);
}

.ph-card p {
    color: var(--ph-fg-muted);
    font-size: var(--ph-text-base);
}

.ph-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--ph-primary-soft);
    color: var(--ph-primary-strong);
    flex-shrink: 0;
}

.ph-icon--violet { background: var(--ph-violet-soft); color: var(--ph-violet); }
.ph-icon--cyan { background: var(--ph-cyan-soft); color: #0e7490; }
.ph-icon--pink { background: var(--ph-pink-soft); color: #be185d; }
.ph-icon--amber { background: var(--ph-amber-soft); color: var(--ph-amber); }
.ph-icon--emerald { background: var(--ph-emerald-soft); color: var(--ph-emerald); }

/* Scroll reveal — transform/opacity only */
[data-ph-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity var(--ph-slow) var(--ph-ease), transform var(--ph-slow) var(--ph-ease);
}

[data-ph-reveal][data-revealed="true"] {
    opacity: 1;
    transform: none;
}

/* ─────────────────────────────────────────────────────────────
   NAV
   ───────────────────────────────────────────────────────────── */

.ph-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0);
    border-bottom: 1px solid transparent;
    transition: background-color var(--ph-fast) var(--ph-ease), border-color var(--ph-fast) var(--ph-ease),
        box-shadow var(--ph-fast) var(--ph-ease);
}

.ph-nav[data-scrolled="true"],
.ph-nav[data-open="true"] {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom-color: var(--ph-line);
    box-shadow: 0 1px 20px rgba(15, 18, 34, 0.05);
}

.ph-nav__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ph-4);
    min-height: 72px;
}

.ph-brand {
    display: inline-flex;
    align-items: center;
    gap: var(--ph-3);
    font-weight: 680;
    letter-spacing: -0.02em;
}

.ph-brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background-image: linear-gradient(140deg, var(--ph-primary), var(--ph-violet) 60%, var(--ph-cyan));
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
    flex-shrink: 0;
}

.ph-brand__name {
    font-size: var(--ph-text-base);
}

.ph-nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--ph-surface);
    border: 1px solid var(--ph-line);
    border-radius: 12px;
    color: var(--ph-fg);
    cursor: pointer;
    box-shadow: var(--ph-shadow-xs);
}

.ph-nav__toggle-close { display: none; }
.ph-nav[data-open="true"] .ph-nav__toggle-open { display: none; }
.ph-nav[data-open="true"] .ph-nav__toggle-close { display: inline-flex; }

.ph-nav__menu { display: none; }

.ph-nav[data-open="true"] .ph-nav__menu {
    display: grid;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    gap: var(--ph-6);
    align-content: start;
    padding: var(--ph-6) var(--ph-gutter) var(--ph-8);
    background: var(--ph-bg);
    border-bottom: 1px solid var(--ph-line);
    height: calc(100vh - 72px);
    height: calc(100dvh - 72px);
    overflow-y: auto;
}

.ph-nav__links {
    display: grid;
    gap: var(--ph-1);
}

.ph-nav__links a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding-inline: var(--ph-2);
    border-radius: var(--ph-radius-sm);
    color: var(--ph-fg-muted);
    font-size: var(--ph-text-base);
    font-weight: 500;
    transition: color var(--ph-fast) var(--ph-ease), background-color var(--ph-fast) var(--ph-ease);
}

.ph-nav__links a:hover {
    color: var(--ph-primary-text);
    background: var(--ph-primary-soft);
}

.ph-nav__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ph-2);
}

.ph-lang {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: 999px;
    background: var(--ph-bg-tint);
    font-size: var(--ph-text-xs);
    font-weight: 600;
}

.ph-lang a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 34px;
    padding-inline: var(--ph-2);
    border-radius: 999px;
    color: var(--ph-fg-dim);
}

.ph-lang a:hover { color: var(--ph-fg); }

.ph-lang a[aria-current="true"] {
    background: var(--ph-surface);
    color: var(--ph-primary-text);
    box-shadow: 0 1px 2px rgba(15, 18, 34, 0.08), inset 0 0 0 1px var(--ph-primary-soft);
    font-weight: 700;
}

/* ─────────────────────────────────────────────────────────────
   HERO
   ───────────────────────────────────────────────────────────── */

.ph-hero {
    position: relative;
    isolation: isolate;
    padding-block: clamp(2.5rem, 1rem + 5vw, 5rem) var(--ph-section-y);
    overflow: hidden;
}

/* Soft mesh: three wide colour fields on near-white. No hard edges anywhere. */
.ph-hero__mesh {
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 150%;
    z-index: -1;
    background:
        radial-gradient(38% 46% at 18% 12%, rgba(99, 102, 241, 0.22), transparent 70%),
        radial-gradient(34% 42% at 82% 6%, rgba(6, 182, 212, 0.20), transparent 70%),
        radial-gradient(40% 44% at 62% 42%, rgba(139, 92, 246, 0.16), transparent 72%),
        linear-gradient(180deg, #ffffff 0%, var(--ph-bg-soft) 62%, #ffffff 100%);
    pointer-events: none;
}

.ph-hero__layout {
    display: grid;
    gap: var(--ph-10);
    align-items: center;
}

.ph-hero__copy {
    display: grid;
    justify-items: start;
    gap: var(--ph-5);
    max-width: 36rem;
}

.ph-hero__title {
    margin: 0;
}

/* Gradient stops are all dark enough to clear 3:1 against white on their own —
   a lighter cyan end would leave the last words under the large-text minimum. */
.ph-hero__title-accent {
    background-image: linear-gradient(100deg, var(--ph-primary-strong), var(--ph-violet) 45%, #0e7490);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ph-hero__lead {
    color: var(--ph-fg-muted);
    font-size: var(--ph-text-lg);
    max-width: 34rem;
}

.ph-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ph-3);
}

.ph-hero__note {
    display: inline-flex;
    align-items: center;
    gap: var(--ph-2);
    color: var(--ph-fg-dim);
    font-size: var(--ph-text-sm);
}

.ph-hero__note span {
    color: var(--ph-emerald);
    display: inline-flex;
}

.ph-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ph-2);
}

.ph-hero__badges li {
    display: inline-flex;
    align-items: center;
    gap: var(--ph-2);
    padding: 7px var(--ph-4);
    border-radius: 999px;
    background: var(--ph-surface);
    border: 1px solid var(--ph-line);
    box-shadow: var(--ph-shadow-xs);
    color: var(--ph-fg-muted);
    font-size: var(--ph-text-sm);
    font-weight: 500;
}

.ph-hero__badges li::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-image: linear-gradient(135deg, var(--ph-primary), var(--ph-cyan));
}

/* ─────────────────────────────────────────────────────────────
   APP MOCKUP — the designed product surface
   ───────────────────────────────────────────────────────────── */

.ph-app {
    margin: 0;
    display: grid;
    gap: var(--ph-3);
    position: relative;
}

.ph-app__frame {
    border: 1px solid var(--ph-line);
    border-radius: var(--ph-radius-xl);
    background: var(--ph-surface);
    box-shadow: var(--ph-shadow-lg);
    overflow: hidden;
}

.ph-app__bar {
    display: flex;
    align-items: center;
    gap: var(--ph-3);
    padding: var(--ph-3) var(--ph-4);
    border-bottom: 1px solid var(--ph-line-soft);
    background: linear-gradient(180deg, #ffffff, var(--ph-bg-soft));
}

.ph-app__dots {
    display: none;
    gap: 6px;
    flex-shrink: 0;
    padding-right: var(--ph-1);
}

.ph-app__dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--ph-line-strong);
}

.ph-app__dots span:nth-child(1) { background: #f8a5a5; }
.ph-app__dots span:nth-child(2) { background: #f8ddA5; }
.ph-app__dots span:nth-child(3) { background: #a8e6c5; }

.ph-app__tabs {
    position: relative;
    display: flex;
    gap: var(--ph-1);
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
}

.ph-app__tabs::-webkit-scrollbar { display: none; }

.ph .ph-app__tab {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    min-height: 38px;
    padding-inline: var(--ph-4);
    border-radius: 999px;
    font-size: var(--ph-text-sm);
    font-weight: 600;
    color: var(--ph-fg-dim);
    cursor: pointer;
    transition: color var(--ph-fast) var(--ph-ease), background-color var(--ph-fast) var(--ph-ease);
}

.ph .ph-app__tab:hover { color: var(--ph-fg); }

.ph .ph-app__tab[data-active="true"] {
    color: var(--ph-primary-text);
    background: var(--ph-primary-soft);
}

.ph-app__stage {
    display: grid;
    background: var(--ph-bg-soft);
    min-height: 340px;
}

.ph-app__panel {
    display: grid;
    gap: var(--ph-4);
    align-content: start;
    padding: var(--ph-5);
}

.ph-app[data-tabs-ready="true"] .ph-app__panel {
    grid-area: 1 / 1;
}

.ph-app__panel[hidden] { display: none; }

.ph-app__caption {
    display: flex;
    align-items: center;
    gap: var(--ph-2);
    color: var(--ph-fg-dim);
    font-size: var(--ph-text-xs);
}

.ph-app__caption::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ph-line-strong);
}

/* Shared mockup pieces */
.ph-mock {
    background: var(--ph-surface);
    border: 1px solid var(--ph-line-soft);
    border-radius: var(--ph-radius);
    padding: var(--ph-4);
    box-shadow: var(--ph-shadow-xs);
    display: grid;
    gap: var(--ph-3);
    align-content: start;
}

.ph-mock__label {
    font-size: var(--ph-text-xs);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ph-fg-dim);
}

.ph-mock__value {
    font-size: var(--ph-text-base);
    font-weight: 600;
    color: var(--ph-fg);
}

.ph-mock__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ph-3);
}

.ph-mock__field {
    display: grid;
    gap: 6px;
    padding: var(--ph-3);
    border: 1px solid var(--ph-line);
    border-radius: var(--ph-radius-sm);
    background: var(--ph-bg-soft);
}

.ph-mock__field--focus {
    border-color: var(--ph-primary);
    background: var(--ph-surface);
    box-shadow: 0 0 0 4px var(--ph-primary-soft);
}

.ph-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px var(--ph-3);
    border-radius: 999px;
    font-size: var(--ph-text-xs);
    font-weight: 600;
    background: var(--ph-bg-tint);
    color: var(--ph-fg-muted);
}

.ph-pill--primary { background: var(--ph-primary-soft); color: var(--ph-primary-text); }
.ph-pill--cyan { background: var(--ph-cyan-soft); color: #0e7490; }
.ph-pill--emerald { background: var(--ph-emerald-soft); color: var(--ph-emerald); }
.ph-pill--amber { background: var(--ph-amber-soft); color: var(--ph-amber); }
.ph-pill--violet { background: var(--ph-violet-soft); color: #6d28d9; }

.ph-pill__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.ph-mock__pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ph-2);
}

/* Non-interactive: this is the illustration of a button inside a mockup,
   not a control. Keeping it a span avoids a fake tab stop. */
.ph-mock__action {
    display: flex;
    justify-content: flex-end;
}

.ph-mock__button {
    display: inline-flex;
    align-items: center;
    gap: var(--ph-2);
    padding: var(--ph-3) var(--ph-5);
    border-radius: 999px;
    background-image: linear-gradient(135deg, var(--ph-primary), var(--ph-violet));
    color: #ffffff;
    font-size: var(--ph-text-sm);
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.3);
}

/* Stat tiles */
.ph-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--ph-3);
}

.ph-stat {
    padding: var(--ph-3);
    border-radius: var(--ph-radius-sm);
    background: var(--ph-surface);
    border: 1px solid var(--ph-line-soft);
    display: grid;
    gap: 2px;
}

.ph-stat__value {
    font-size: var(--ph-text-lg);
    font-weight: 680;
    letter-spacing: -0.02em;
    color: var(--ph-fg);
}

.ph-stat__label {
    font-size: var(--ph-text-xs);
    color: var(--ph-fg-dim);
}

.ph-stat--primary .ph-stat__value { color: var(--ph-primary-text); }
.ph-stat--cyan .ph-stat__value { color: #0e7490; }
.ph-stat--emerald .ph-stat__value { color: var(--ph-emerald); }

/* Bar chart */
.ph-chart {
    display: flex;
    align-items: flex-end;
    gap: var(--ph-2);
    height: 108px;
    padding-top: var(--ph-2);
}

.ph-chart span {
    flex: 1;
    height: var(--h);
    border-radius: 6px 6px 3px 3px;
    background-image: linear-gradient(180deg, var(--ph-primary), var(--ph-violet));
    opacity: 0.9;
}

.ph-chart span:nth-child(even) {
    background-image: linear-gradient(180deg, var(--ph-cyan), #38bdf8);
}

/* Progress meter */
.ph-meter {
    height: 8px;
    border-radius: 999px;
    background: var(--ph-bg-tint);
    overflow: hidden;
}

.ph-meter i {
    display: block;
    height: 100%;
    width: var(--w);
    border-radius: 999px;
    background-image: linear-gradient(90deg, var(--ph-primary), var(--ph-cyan));
}

/* Automation nodes */
.ph-flow {
    display: grid;
    gap: var(--ph-2);
    justify-items: start;
}

.ph-node {
    display: inline-flex;
    align-items: center;
    gap: var(--ph-2);
    padding: var(--ph-3) var(--ph-4);
    border-radius: var(--ph-radius-sm);
    border: 1px solid var(--ph-line);
    background: var(--ph-surface);
    box-shadow: var(--ph-shadow-xs);
    font-size: var(--ph-text-sm);
    font-weight: 600;
    color: var(--ph-fg);
}

.ph-node__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-image: linear-gradient(135deg, var(--ph-primary), var(--ph-cyan));
}

.ph-node--muted {
    color: var(--ph-fg-muted);
    font-weight: 500;
    border-style: dashed;
    box-shadow: none;
    background: transparent;
}

.ph-flow__link {
    width: 2px;
    height: 16px;
    margin-left: 22px;
    border-radius: 2px;
    background-image: linear-gradient(180deg, var(--ph-primary), var(--ph-cyan));
    opacity: 0.5;
}

.ph-flow__branch {
    display: grid;
    gap: var(--ph-2);
    width: 100%;
    padding-left: var(--ph-5);
    border-left: 2px dashed var(--ph-line-strong);
    margin-left: 22px;
}

.ph-flow__branch-row {
    display: flex;
    align-items: center;
    gap: var(--ph-3);
    flex-wrap: wrap;
}

/* Sending path */
.ph-pipe {
    display: grid;
    gap: var(--ph-2);
    align-items: center;
}

.ph-pipe__end {
    padding: var(--ph-3);
    border-radius: var(--ph-radius-sm);
    border: 1px solid var(--ph-line);
    background: var(--ph-surface);
    text-align: center;
    font-size: var(--ph-text-sm);
    font-weight: 600;
    color: var(--ph-fg-muted);
}

.ph-pipe__hub {
    display: grid;
    gap: 2px;
    padding: var(--ph-4);
    border-radius: var(--ph-radius);
    background-image: linear-gradient(135deg, var(--ph-primary), var(--ph-violet));
    color: #ffffff;
    text-align: center;
    font-weight: 660;
    font-size: var(--ph-text-sm);
    box-shadow: 0 10px 24px rgba(99, 102, 241, 0.34);
}

.ph-pipe__hub em {
    font-style: normal;
    font-size: var(--ph-text-xs);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
}

.ph-pipe__wire {
    position: relative;
    display: block;
    height: 24px;
    width: 2px;
    margin-inline: auto;
    border-radius: 2px;
    background: var(--ph-line-strong);
    overflow: hidden;
}

.ph-pipe__wire i {
    position: absolute;
    left: 0;
    width: 2px;
    height: 12px;
    border-radius: 2px;
    background-image: linear-gradient(180deg, var(--ph-primary), var(--ph-cyan));
    animation: ph-pulse-y 3s var(--ph-ease) infinite;
}

@keyframes ph-pulse-y {
    0% { transform: translateY(-16px); opacity: 0; }
    25% { opacity: 1; }
    75% { opacity: 1; }
    100% { transform: translateY(28px); opacity: 0; }
}

/* ─────────────────────────────────────────────────────────────
   LOGO / INTEGRATION MARQUEE
   ───────────────────────────────────────────────────────────── */

.ph-strip {
    padding-block: var(--ph-10);
    border-top: 1px solid var(--ph-line-soft);
    border-bottom: 1px solid var(--ph-line-soft);
    background: var(--ph-surface);
}

.ph-strip__head {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: var(--ph-2);
    margin-bottom: var(--ph-6);
}

.ph-strip__note {
    color: var(--ph-fg-dim);
    font-size: var(--ph-text-sm);
}

.ph-marquee {
    display: flex;
    width: 100%;
    overflow: hidden;
    gap: var(--ph-3);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.ph-marquee__track {
    display: flex;
    flex-shrink: 0;
    gap: var(--ph-3);
    padding-right: var(--ph-3);
    animation: ph-marquee 42s linear infinite;
}

.ph-marquee:hover .ph-marquee__track {
    animation-play-state: paused;
}

.ph-marquee__track li {
    display: inline-flex;
    align-items: center;
    font-size: var(--ph-text-sm);
    font-weight: 600;
    color: var(--ph-fg-muted);
    white-space: nowrap;
    padding: var(--ph-3) var(--ph-5);
    border: 1px solid var(--ph-line);
    border-radius: 999px;
    background: var(--ph-surface);
    box-shadow: var(--ph-shadow-xs);
}

@keyframes ph-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* ─────────────────────────────────────────────────────────────
   PROBLEM
   ───────────────────────────────────────────────────────────── */

.ph-problem__card {
    display: flex;
    flex-direction: column;
    gap: var(--ph-3);
    padding: var(--ph-6);
    border: 1px solid var(--ph-line);
    border-radius: var(--ph-radius-lg);
    background: var(--ph-surface);
    box-shadow: var(--ph-shadow-sm);
}

.ph-problem__card p {
    color: var(--ph-fg-muted);
    font-size: var(--ph-text-base);
}

.ph-problem__answer {
    display: flex;
    align-items: flex-start;
    gap: var(--ph-2);
    margin-top: auto;
    padding-top: var(--ph-4);
    border-top: 1px solid var(--ph-line-soft);
    color: var(--ph-fg) !important;
    font-weight: 600;
}

.ph-problem__answer-icon {
    color: var(--ph-emerald);
    flex-shrink: 0;
    margin-top: 2px;
    display: inline-flex;
}

/* ─────────────────────────────────────────────────────────────
   BENTO
   ───────────────────────────────────────────────────────────── */

.ph-bento {
    display: grid;
    gap: var(--ph-4);
}

/* ─────────────────────────────────────────────────────────────
   WORKFLOW
   ───────────────────────────────────────────────────────────── */

.ph-steps {
    display: grid;
    gap: var(--ph-4);
    position: relative;
}

.ph-steps__item {
    display: grid;
    gap: var(--ph-3);
    align-content: start;
    padding: var(--ph-6);
    border: 1px solid var(--ph-line);
    border-radius: var(--ph-radius-lg);
    background: var(--ph-surface);
    box-shadow: var(--ph-shadow-sm);
}

.ph-steps__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background-image: linear-gradient(135deg, var(--ph-primary), var(--ph-violet));
    color: #ffffff;
    font-family: var(--ph-font-mono);
    font-size: var(--ph-text-sm);
    font-weight: 600;
    box-shadow: 0 6px 14px rgba(99, 102, 241, 0.3);
}

.ph-steps__item:nth-child(2) .ph-steps__number {
    background-image: linear-gradient(135deg, var(--ph-violet), var(--ph-pink));
    box-shadow: 0 6px 14px rgba(139, 92, 246, 0.3);
}

.ph-steps__item:nth-child(3) .ph-steps__number {
    background-image: linear-gradient(135deg, var(--ph-cyan), var(--ph-primary));
    box-shadow: 0 6px 14px rgba(6, 182, 212, 0.3);
}

.ph-steps__item p {
    color: var(--ph-fg-muted);
    font-size: var(--ph-text-base);
}

/* ─────────────────────────────────────────────────────────────
   REPORTING
   ───────────────────────────────────────────────────────────── */

.ph-reporting__layout {
    display: grid;
    gap: var(--ph-10);
    align-items: center;
}

.ph-reporting__copy {
    display: grid;
    justify-items: start;
    gap: var(--ph-5);
}

/* ─────────────────────────────────────────────────────────────
   SENDING INFRASTRUCTURE — tinted feature block
   ───────────────────────────────────────────────────────────── */

.ph-sending {
    background:
        radial-gradient(60% 50% at 12% 0%, rgba(99, 102, 241, 0.10), transparent 70%),
        radial-gradient(50% 50% at 88% 100%, rgba(6, 182, 212, 0.10), transparent 70%),
        var(--ph-bg-soft);
}

.ph-panel {
    border: 1px solid var(--ph-line);
    border-radius: var(--ph-radius-xl);
    background: var(--ph-surface);
    box-shadow: var(--ph-shadow);
    overflow: hidden;
}

.ph-panel__grid { display: grid; }

.ph-panel__cell {
    display: grid;
    gap: var(--ph-3);
    align-content: start;
    padding: var(--ph-6);
    border-bottom: 1px solid var(--ph-line-soft);
}

.ph-panel__cell:last-child { border-bottom: 0; }

.ph-panel__cell p:last-child {
    color: var(--ph-fg-muted);
    font-size: var(--ph-text-base);
}

/* ─────────────────────────────────────────────────────────────
   ADS
   ───────────────────────────────────────────────────────────── */

.ph-ads__layout {
    display: grid;
    gap: var(--ph-6);
    align-items: center;
}

.ph-ads__copy {
    display: grid;
    justify-items: start;
    gap: var(--ph-4);
}

.ph-ads__platforms {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ph-2);
}

.ph-ads__platforms li {
    font-size: var(--ph-text-sm);
    font-weight: 600;
    color: var(--ph-fg-muted);
    padding: var(--ph-3) var(--ph-5);
    border: 1px solid var(--ph-line);
    border-radius: 999px;
    background: var(--ph-surface);
    box-shadow: var(--ph-shadow-xs);
}

/* ─────────────────────────────────────────────────────────────
   PRICING TEASER
   ───────────────────────────────────────────────────────────── */

.ph-pricing__card {
    display: grid;
    gap: var(--ph-2);
    align-content: start;
    padding: var(--ph-6);
    border: 1px solid var(--ph-line);
    border-radius: var(--ph-radius-lg);
    background: var(--ph-surface);
    box-shadow: var(--ph-shadow-sm);
}

.ph-pricing__card--accent {
    border-color: transparent;
    background-image: linear-gradient(160deg, var(--ph-primary), var(--ph-violet));
    color: #ffffff;
    box-shadow: 0 16px 36px rgba(99, 102, 241, 0.3);
}

.ph-pricing__card--accent .ph-label,
.ph-pricing__card--accent p:last-child {
    color: rgba(255, 255, 255, 0.86) !important;
}

.ph-pricing__card p:last-child {
    color: var(--ph-fg-muted);
    font-size: var(--ph-text-base);
}

.ph-pricing__cta {
    display: flex;
    justify-content: center;
    margin-top: var(--ph-8);
}

/* ─────────────────────────────────────────────────────────────
   FAQ
   ───────────────────────────────────────────────────────────── */

.ph-faq__layout {
    display: grid;
    gap: var(--ph-8);
}

.ph-faq__head {
    display: grid;
    justify-items: start;
    gap: var(--ph-4);
}

.ph-faq__list {
    display: grid;
    gap: var(--ph-3);
}

.ph-faq__item {
    border: 1px solid var(--ph-line);
    border-radius: var(--ph-radius);
    background: var(--ph-surface);
    box-shadow: var(--ph-shadow-xs);
    transition: box-shadow var(--ph-fast) var(--ph-ease), border-color var(--ph-fast) var(--ph-ease);
}

.ph-faq__item[open] {
    border-color: var(--ph-primary);
    box-shadow: var(--ph-shadow-sm);
}

.ph-faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ph-4);
    min-height: 44px;
    padding: var(--ph-4) var(--ph-5);
    cursor: pointer;
    font-weight: 600;
    list-style: none;
}

.ph-faq__item summary::-webkit-details-marker { display: none; }

.ph-faq__marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ph-bg-tint);
    color: var(--ph-fg-muted);
    flex-shrink: 0;
    transition: transform var(--ph-fast) var(--ph-ease), background-color var(--ph-fast) var(--ph-ease);
}

.ph-faq__item[open] .ph-faq__marker {
    transform: rotate(180deg);
    background: var(--ph-primary-soft);
    color: var(--ph-primary-text);
}

.ph-faq__answer {
    padding: 0 var(--ph-5) var(--ph-5);
    color: var(--ph-fg-muted);
    max-width: 62ch;
}

/* ─────────────────────────────────────────────────────────────
   CLOSING CTA — full-colour block
   ───────────────────────────────────────────────────────────── */

.ph-cta {
    padding-block: var(--ph-section-y);
}

.ph-cta__panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: var(--ph-radius-xl);
    padding: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) var(--ph-6);
    background-image: linear-gradient(135deg, var(--ph-primary-strong) 0%, var(--ph-violet) 48%, var(--ph-cyan) 120%);
    box-shadow: 0 24px 60px rgba(79, 70, 229, 0.32);
    color: #ffffff;
    text-align: center;
    display: grid;
    justify-items: center;
    gap: var(--ph-4);
}

.ph-cta__glow {
    position: absolute;
    inset: -40% -10% auto -10%;
    height: 140%;
    z-index: -1;
    background:
        radial-gradient(40% 40% at 20% 20%, rgba(255, 255, 255, 0.26), transparent 70%),
        radial-gradient(35% 40% at 82% 80%, rgba(255, 255, 255, 0.16), transparent 70%);
    pointer-events: none;
}

.ph-cta__panel .ph-eyebrow {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.ph-cta__panel .ph-eyebrow::before {
    background: #ffffff;
}

.ph-cta__lead {
    color: rgba(255, 255, 255, 0.9);
    max-width: 40rem;
}

.ph-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--ph-3);
    margin-top: var(--ph-2);
}

/* ─────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────── */

.ph-footer {
    border-top: 1px solid var(--ph-line);
    background: var(--ph-bg-soft);
    padding-top: var(--ph-16);
}

.ph-footer__layout {
    display: grid;
    gap: var(--ph-8);
}

.ph-footer__brand {
    display: grid;
    gap: var(--ph-4);
    justify-items: start;
    max-width: 26rem;
}

.ph-footer__brand p {
    color: var(--ph-fg-muted);
    font-size: var(--ph-text-sm);
}

.ph-lang--footer {
    background: var(--ph-surface);
    border: 1px solid var(--ph-line);
}

.ph-footer__nav {
    display: grid;
    gap: var(--ph-2);
    align-content: start;
}

.ph-footer__nav ul { display: grid; }

.ph-footer__nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: var(--ph-fg-muted);
    font-size: var(--ph-text-sm);
}

.ph-footer__nav a:hover { color: var(--ph-primary-text); }

.ph-footer__bottom {
    margin-top: var(--ph-12);
    padding-block: var(--ph-6);
    border-top: 1px solid var(--ph-line);
    color: var(--ph-fg-dim);
    font-size: var(--ph-text-sm);
}

/* ─────────────────────────────────────────────────────────────
   BREAKPOINTS — 768 / 1024
   ───────────────────────────────────────────────────────────── */

@media (min-width: 768px) {
    .ph-grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--ph-6);
    }

    .ph-bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--ph-5);
    }

    .ph-bento > :last-child {
        grid-column: 1 / -1;
    }

    .ph-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--ph-5);
    }

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

    .ph-panel__cell {
        border-right: 1px solid var(--ph-line-soft);
    }

    .ph-panel__cell:nth-child(2n) { border-right: 0; }
    .ph-panel__cell:nth-last-child(-n + 2) { border-bottom: 0; }

    .ph-ads__layout {
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
        gap: var(--ph-10);
    }

    .ph-footer__layout {
        grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
        gap: var(--ph-10);
    }

    .ph-app__dots { display: flex; }

    .ph-app__panel { padding: var(--ph-6); }

    .ph-pipe {
        grid-template-columns: auto minmax(20px, 1fr) auto minmax(20px, 1fr) auto;
        gap: var(--ph-3);
    }

    .ph-pipe__wire {
        width: 100%;
        height: 2px;
        margin: 0;
    }

    .ph-pipe__wire i {
        top: 0;
        width: 14px;
        height: 2px;
        animation-name: ph-pulse-x;
    }

    @keyframes ph-pulse-x {
        0% { transform: translateX(-18px); opacity: 0; }
        25% { opacity: 1; }
        75% { opacity: 1; }
        100% { transform: translateX(calc(100% + 18px)); opacity: 0; }
    }
}

@media (min-width: 1024px) {
    .ph-nav__toggle { display: none; }

    .ph-nav__menu,
    .ph-nav[data-open="true"] .ph-nav__menu {
        display: flex;
        position: static;
        align-items: center;
        justify-content: flex-end;
        gap: var(--ph-6);
        padding: 0;
        background: transparent;
        border: 0;
        height: auto;
        overflow: visible;
    }

    .ph-nav__links {
        display: flex;
        align-items: center;
        gap: var(--ph-1);
    }

    .ph-nav__links a {
        min-height: 40px;
        font-size: var(--ph-text-sm);
        padding-inline: var(--ph-3);
    }

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

    /* Bento rhythm: two anchors, three supports, one full-width closer. */
    .ph-bento {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .ph-bento > :nth-child(1),
    .ph-bento > :nth-child(2) { grid-column: span 3; }

    .ph-bento > :nth-child(3),
    .ph-bento > :nth-child(4),
    .ph-bento > :nth-child(5) { grid-column: span 2; }

    .ph-bento > :nth-child(6) {
        grid-column: span 6;
        grid-template-columns: 44px minmax(0, 20rem) minmax(0, 1fr);
        align-items: center;
        column-gap: var(--ph-6);
    }

    .ph-hero__layout {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: var(--ph-12);
    }

    .ph-reporting__layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
        gap: var(--ph-12);
    }

    .ph-panel__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ph-panel__cell:nth-child(2n) { border-right: 1px solid var(--ph-line-soft); }
    .ph-panel__cell:nth-child(3n) { border-right: 0; }
    .ph-panel__cell:nth-last-child(-n + 3) { border-bottom: 0; }

    .ph-faq__layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
        gap: var(--ph-12);
    }

    .ph-faq__head {
        position: sticky;
        top: 104px;
        align-self: start;
    }

    .ph-cta__panel {
        padding-inline: var(--ph-12);
    }
}

/* ─────────────────────────────────────────────────────────────
   MOTION PREFERENCES
   ───────────────────────────────────────────────────────────── */

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

    .ph *,
    .ph *::before,
    .ph *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    [data-ph-reveal] {
        opacity: 1;
        transform: none;
    }

    /* Looping motion is switched off entirely, not merely shortened. */
    .ph-marquee__track { animation: none; }

    .ph-pipe__wire i {
        animation: none;
        opacity: 0;
    }
}
