/* ==========================================================================
   ContactBharat — Site Styles
   Cream surfaces with a tomato-red brand colour and a marigold accent.
   To re-theme the site, change the values in :root.
   ========================================================================== */

:root {
    /* Surfaces (no pure white anywhere) */
    --bg: #FCEFD3;              /* cream page background */
    --bg-sand: #F6E1B9;         /* slightly deeper panels */
    --bg-paper: #FFF8E8;        /* cards */

    /* Ink & tomato reds */
    --ink: #2A1712;             /* espresso text */
    --ink-deep: #1C0E0A;        /* footer */
    --ink-soft: #6B4A3E;
    --muted: #8C6E61;
    --primary: #C63B21;         /* tomato red: hero, dark sections, dark buttons */
    --primary-2: #D8462A;
    --primary-3: #EE5A3A;       /* the bright logo red, used for glows */
    --line: rgba(42, 23, 18, 0.12);
    --line-light: rgb(from var(--cream) r g b / 0.18);
    --cream: #FDEFD3;           /* light text on red */
    --cream-soft: rgb(from var(--cream) r g b / 0.86);

    /* Marigold accent (pops on the red sections) */
    --accent: #FFB938;          /* buttons, highlights on red */
    --accent-hover: #F5A30F;
    --accent-ink: #B5321A;      /* red dark enough for text on the cream background */
    --accent-soft: #FFE4B0;
    --on-accent: #1A0E05;       /* text on marigold / cream fills, in both themes */

    /* Previous palette (royal blue & orange):
       --bg #EEF3FA, --primary #1D3B8B, --accent #F97316, --accent-ink #C2410C */

    /* Status colours */
    --indigo: #C63B21;          /* loader postmark ink */
    --olive: #1F9D55;           /* verified */
    --olive-soft: #D3F1DE;
    --amber: #B7791F;
    --amber-soft: #F6E3BE;
    --danger: #DC463C;
    --danger-soft: #FAD9D5;

    /* Theme-dependent surfaces (dark values live in the dark-theme block) */
    --header-bg: rgba(252, 239, 211, 0.88);
    --glass: rgba(255, 248, 232, 0.9);
    --cv-dot: 198, 59, 33;      /* "The Problem" canvas dots (r, g, b) */
    --cv-line: 42, 23, 18;      /* "The Problem" canvas links (r, g, b) */

    /* Logo theming (see logo_helper.php) */
    --logo-tile: #FDEBC9;       /* round cream badge */
    --logo-ink: #EE5A35;        /* the @ and the arc */
    --logo-dot: #FFB938;
    --logo-light-tile: #FDEBC9;
    --logo-light-ink: #EE5A35;

    /* Type */
    --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-hand: 'Caveat', 'Segoe Print', cursive;
    --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

    /* Layout & motion */
    --container: 1280px;
    --gutter: clamp(20px, 4vw, 48px);
    --radius: 22px;
    --radius-sm: 12px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
    --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

[hidden] {
    display: none !important;
}

html {
    -webkit-text-size-adjust: 100%;
    overflow-x: clip;
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    /* clip (not hidden): hidden would make <body> a scroll container and break position: sticky */
    overflow-x: clip;
}

/* Subtle grain */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 999;
    pointer-events: none;
    opacity: 0.3;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.14 0 0 0 0 0.12 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

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

::selection {
    background: var(--accent);
    color: var(--ink);
}

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

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

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.025em;
}

h3 {
    letter-spacing: -0.01em;
}

h1 em, h2 em, h3 em,
.brand-name em,
.statement-text em,
.footer-wordmark em {
    font-style: italic;
    font-weight: 300;
    color: var(--accent-ink);
}

.mono {
    font-family: var(--font-mono);
}

.env-k {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border: 0;
    border-radius: 100px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: color 0.4s var(--ease), transform 0.4s var(--ease);
    will-change: transform;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    transform: translateY(101%);
    transition: transform 0.5s var(--ease);
}

.btn:hover::before {
    transform: translateY(0);
}

.btn-arrow {
    display: inline-block;
    transition: transform 0.4s var(--ease);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-dark {
    background: var(--primary);
    color: var(--cream);
}

.btn-dark::before {
    background: var(--accent);
}

.btn-dark:hover {
    color: var(--on-accent);
}

.btn-accent {
    background: var(--accent);
    color: var(--on-accent);
}

.btn-accent::before {
    background: var(--cream);
}

.btn-sm {
    padding: 11px 20px;
    font-size: 14px;
}

.btn-lg {
    padding: 19px 34px;
    font-size: 16px;
}

.btn:disabled {
    cursor: default;
    opacity: 0.8;
}

.btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(42, 23, 18, 0.25);
    border-top-color: var(--ink);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.is-loading .btn-spinner { display: inline-block; }
.is-loading .btn-arrow { display: none; }

.link-underline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    padding-bottom: 3px;
    background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
    transition: background-size 0.5s var(--ease);
}

.link-underline:hover {
    background-size: 0 1.5px;
    background-position: 100% 100%;
}

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

/* --------------------------------------------------------------------------
   Custom cursor (fine pointers only, added by JS)
   -------------------------------------------------------------------------- */
.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    pointer-events: none;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    background: var(--accent);
}

.cursor-ring {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin: -19px 0 0 -19px;
    border: 1px solid rgba(127, 140, 130, 0.6);
    transition: opacity 0.3s ease, width 0.4s var(--ease), height 0.4s var(--ease), margin 0.4s var(--ease), background-color 0.3s ease, border-color 0.3s ease;
}

.cursor-ring span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.has-cursor .cursor-dot,
.has-cursor .cursor-ring {
    opacity: 1;
}

.cursor-ring.is-hover {
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    border-color: transparent;
    background: rgb(from var(--accent) r g b / 0.18);
}

.cursor-ring.has-label {
    width: 78px;
    height: 78px;
    margin: -39px 0 0 -39px;
    border-color: transparent;
    background: var(--accent);
}

.cursor-ring.has-label span {
    opacity: 1;
}

.cursor-hidden .cursor-dot,
.cursor-hidden .cursor-ring {
    opacity: 0;
}

/* --------------------------------------------------------------------------
   Loader — connecting people
   Timeline (s): 0.1 logo pops · 0.3 people appear · 0.6 links draw to the logo
   · 1.0 packets travel, people light up as connected · 2.0 network collapses
   into the logo · 2.35 screen closes in on it (main.js keeps the same clock)
   -------------------------------------------------------------------------- */
.loader {
    --ew: min(360px, 82vw);
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background:
        radial-gradient(circle at 50% 45%, rgb(from var(--accent) r g b / 0.2), transparent 55%),
        var(--primary);
    color: var(--cream);
    clip-path: circle(150% at 50% calc(50% - 36px));
    animation: loaderOut 0.7s var(--ease-in-out) 2.35s forwards;
}

.ld-stage {
    position: relative;
    width: var(--ew);
    aspect-ratio: 1;
}

.ld-net {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    transform-origin: 50% 50%;
    animation: ldConverge 0.45s cubic-bezier(0.55, 0, 0.75, 0.2) 2s forwards;
}

/* Faint mesh between neighbours: the wider network */
.ld-mesh line {
    stroke: rgb(from var(--cream) r g b / 0.16);
    stroke-width: 1.2;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: ldDraw 0.6s var(--ease) calc(0.2s + var(--i) * 0.06s) forwards;
}

/* Link from each person to the logo */
.ld-link {
    stroke: rgb(from var(--cream) r g b / 0.55);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: ldDraw 0.45s var(--ease-in-out) calc(0.6s + var(--i) * 0.1s) forwards;
}

/* A marigold packet travelling person -> logo */
.ld-packet {
    stroke: #FFB938;
    stroke-width: 7;
    stroke-linecap: round;
    stroke-dasharray: 0.1 200;
    stroke-dashoffset: 0;
    opacity: 0;
    animation: ldPacket 0.8s var(--ease-in-out) calc(1s + var(--i) * 0.1s) 2 forwards;
}

.ld-person {
    transform-box: fill-box;
    transform-origin: center;
    transform: scale(0);
    animation: ldPop 0.5s var(--ease-back) calc(0.3s + var(--i) * 0.09s) forwards;
}

.ld-face { fill: #FDEBC9; }
.ld-head,
.ld-body { fill: var(--primary); }

.ld-ring {
    fill: none;
    stroke: #FFB938;
    stroke-width: 3;
    transform-box: fill-box;
    transform-origin: center;
    opacity: 0;
    transform: scale(0.6);
    animation: ldRing 0.45s var(--ease-back) calc(1.35s + var(--i) * 0.1s) forwards;
}

/* Centre: the logo the whole network connects to */
.ld-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
}

.ld-core .logo-mark {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.5);
    transform: scale(0);
    animation:
        ldPop 0.6s var(--ease-back) 0.1s forwards,
        ldCore 0.5s var(--ease-in-out) 1.95s forwards;
}

.ld-ripple {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(253, 235, 201, 0.5);
    border-radius: 50%;
    opacity: 0;
    animation: ldRipple 1.4s ease-out 0.5s infinite;
}

.ld-ripple + .ld-ripple {
    animation-delay: 1.2s;
}

.ld-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    width: min(300px, 72vw);
    margin-bottom: -18px;
    animation: ldFade 0.3s ease 2s forwards;
}

.ld-status {
    white-space: nowrap;
    font-family: var(--font-hand);
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-soft);
}

.ld-count {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--cream-soft);
    visibility: hidden;
}

.js .ld-count {
    visibility: visible;
}

.ld-bar {
    width: min(300px, 72vw);
    height: 2px;
    background: var(--line-light);
    overflow: hidden;
    animation: ldFade 0.3s ease 2s forwards;
}

.ld-bar span {
    display: block;
    height: 100%;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    animation: ldBar 1.9s cubic-bezier(0.65, 0, 0.35, 1) 0.15s forwards;
}

.skip-loader .loader {
    display: none;
}

@keyframes ldPop { to { transform: scale(1); } }
@keyframes ldDraw { to { stroke-dashoffset: 0; } }

@keyframes ldPacket {
    0% { opacity: 1; stroke-dashoffset: 0; }
    85% { opacity: 1; }
    100% { opacity: 0; stroke-dashoffset: -88; }
}

@keyframes ldRing { to { opacity: 1; transform: scale(1); } }

@keyframes ldRipple {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 0; transform: scale(2.1); }
}

@keyframes ldConverge {
    to { opacity: 0; transform: scale(0.25) rotate(25deg); }
}

@keyframes ldCore {
    0% { transform: scale(1); }
    40% { transform: scale(0.9); }
    100% { transform: scale(1.18); }
}

@keyframes ldBar { to { transform: scaleX(1); } }
@keyframes ldFade { to { opacity: 0; } }

@keyframes loaderOut {
    to {
        clip-path: circle(0% at 50% calc(50% - 36px));
        visibility: hidden;
    }
}

/* --------------------------------------------------------------------------
   Scroll progress
   -------------------------------------------------------------------------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    height: 2px;
    pointer-events: none;
}

.scroll-progress span {
    display: block;
    height: 100%;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 22px 0;
    transition: transform 0.6s var(--ease), padding 0.4s var(--ease), background-color 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
}

.site-header.is-scrolled {
    padding: 12px 0;
    background: var(--header-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--line);
}

.site-header.is-hidden {
    transform: translateY(-110%);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 32px;
    letter-spacing: -0.02em;
    transition: color 0.4s ease;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    position: relative;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-soft);
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 1.5px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.45s var(--ease);
}

.nav-link:hover {
    color: var(--ink);
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Over the dark hero, before scrolling: light header */
.page-home .site-header:not(.is-scrolled) .brand-name {
    color: var(--cream);
}

.page-home .site-header:not(.is-scrolled) .brand-name em {
    color: var(--accent);
}

.page-home .site-header:not(.is-scrolled) .nav-link {
    color: var(--cream-soft);
}

.page-home .site-header:not(.is-scrolled) .nav-link:hover {
    color: var(--cream);
}

.page-home .site-header:not(.is-scrolled) .main-nav .btn-dark {
    background: var(--accent);
    color: var(--on-accent);
}

.page-home .site-header:not(.is-scrolled) .main-nav .btn-dark::before {
    background: var(--cream);
}

.menu-toggle {
    display: none;
    position: relative;
    z-index: 120;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--bg-paper);
    cursor: pointer;
}

.menu-toggle span {
    position: absolute;
    left: 14px;
    right: 14px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.45s var(--ease), top 0.45s var(--ease);
}

.menu-toggle span:first-child { top: 19px; }
.menu-toggle span:last-child { top: 26px; }

.nav-open .menu-toggle span:first-child {
    top: 22px;
    transform: rotate(45deg);
}

.nav-open .menu-toggle span:last-child {
    top: 22px;
    transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Logo mark (rendered by the logo_mark() helper)
   -------------------------------------------------------------------------- */
.logo-mark {
    flex-shrink: 0;
    width: 45px;
    overflow: visible;
}

.brand .logo-mark {
    transition: transform 0.5s var(--ease);
}

.logo-dot {
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 0.5s var(--ease-back);
}

.brand:hover .logo-mark {
    transform: rotate(-14deg) scale(1.05);
}

/* --------------------------------------------------------------------------
   Shared section styles
   -------------------------------------------------------------------------- */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.section-label b {
    font-weight: 600;
}

.section-label span {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 15px;
    letter-spacing: 0;
    color: var(--accent-ink);
}

.section-label::after {
    content: '';
    width: 44px;
    height: 1px;
    background: currentColor;
    opacity: 0.4;
}

.section-label-light {
    color: var(--cream-soft);
}

.section-label-light span {
    color: var(--accent);
}

.section-title {
    font-size: clamp(32px, 4.2vw, 58px);
}

.lead {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(19px, 1.8vw, 23px);
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    margin-bottom: 28px;
    border: 1px solid var(--line-light);
    border-radius: 100px;
    background: rgb(from var(--cream) r g b / 0.06);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cream-soft);
}

.eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgb(from var(--accent) r g b / 0.55); }
    70%, 100% { box-shadow: 0 0 0 10px rgb(from var(--accent) r g b / 0); }
}

/* LinkedIn badge used in search / finder */
.search-li {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
}

.search-li svg {
    width: 100%;
    height: 100%;
    fill: #0A66C2;
}

.search-li-sm {
    width: 18px;
    height: 18px;
}

/* --------------------------------------------------------------------------
   HERO — search
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 150px 0 120px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 60% at 50% 115%, rgb(from var(--accent) r g b / 0.22), transparent 70%),
        radial-gradient(ellipse 60% 50% at 10% 0%, rgb(from var(--primary-3) r g b / 0.9), transparent 70%),
        var(--primary);
    color: var(--cream);
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Grid background: a light grid that's always visible, a brighter patch that
   follows the cursor (--gx / --gy set in main.js), and a canvas on top that
   draws the "connections" (see HERO — grid connections in main.js).
   Grid points sit at multiples of --cell from the hero's top-left corner. */
.hero-grid-lines,
.hero-net {
    position: absolute;
    inset: 0;
    -webkit-mask-image: radial-gradient(ellipse 85% 80% at 50% 45%, #000 30%, transparent 82%);
    mask-image: radial-gradient(ellipse 85% 80% at 50% 45%, #000 30%, transparent 82%);
}

.hero-grid-lines {
    --cell: 56px;
    --gx: 50%;
    --gy: 42%;
}

.hero-net {
    width: 100%;
    height: 100%;
}

/* Faint people scattered in the hero background */
.hero-people {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hp {
    position: absolute;
    width: var(--s);
    height: var(--s);
    margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
    opacity: 0.16;
    animation: hpDrift 9s ease-in-out var(--d) infinite;
}

.hp svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--cream);
    stroke-width: 1.3;
    stroke-linecap: round;
}

/* a few in the accent colour */
.hp:nth-child(3n) svg {
    stroke: var(--accent);
}

@keyframes hpDrift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (max-width: 760px) {
    .hp {
        opacity: 0.11;
    }

    /* fewer on phones */
    .hp:nth-child(n+7) {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hp {
        animation: none;
    }
}

.hero-grid-lines::before,
.hero-grid-lines::after {
    content: '';
    position: absolute;
    inset: 0;
    background-size: var(--cell) var(--cell);
    background-position: calc(var(--cell) / -2) calc(var(--cell) / -2), 0 0, 0 0;
}

/* Always-on light grid */
.hero-grid-lines::before {
    background-image:
        radial-gradient(circle, rgb(from var(--cream) r g b / 0.34) 1.3px, transparent 1.9px),
        linear-gradient(rgb(from var(--cream) r g b / 0.085) 1px, transparent 1px),
        linear-gradient(90deg, rgb(from var(--cream) r g b / 0.085) 1px, transparent 1px);
}

/* Hover spotlight: the same grid, brighter, around the cursor */
.hero-grid-lines::after {
    background-image:
        radial-gradient(circle, rgb(from var(--accent) r g b / 0.95) 1.7px, transparent 2.3px),
        linear-gradient(rgb(from var(--cream) r g b / 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgb(from var(--cream) r g b / 0.3) 1px, transparent 1px);
    -webkit-mask-image: radial-gradient(circle 280px at var(--gx) var(--gy), #000 10%, transparent);
    mask-image: radial-gradient(circle 280px at var(--gx) var(--gy), #000 10%, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero.is-grid-on .hero-grid-lines::after {
    opacity: 1;
}
.hero-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 640px;
    height: 640px;
    margin: -320px 0 0 -320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgb(from var(--accent) r g b / 0.16), transparent 65%);
    transform: translate(50vw, 45vh);
    transition: opacity 0.6s ease;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-sub {
    max-width: 640px;
    margin: 0 auto 34px;
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.5;
    color: var(--cream-soft);
}

.hero-title {
    max-width: 15ch;
    margin-bottom: 24px;
    font-size: clamp(40px, 5.4vw, 78px);
    line-height: 1.02;
    color: var(--cream);
}

.hero-title em {
    color: var(--accent);
}

/* Hero promotional chip (20 Welcome Credits) */
.hero-offer-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px 7px 14px;
    margin: 0 auto 26px;
    background: rgb(from var(--accent) r g b / 0.12);
    border: 1px solid rgb(from var(--accent) r g b / 0.35);
    border-radius: 999px;
    font-size: 13.5px;
    color: var(--cream);
    box-shadow: 0 4px 20px rgb(from var(--accent) r g b / 0.12);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    text-align: center;
}

.hero-offer-chip:hover {
    transform: translateY(-1px);
    background: rgb(from var(--accent) r g b / 0.18);
    border-color: rgb(from var(--accent) r g b / 0.55);
}

.hero-offer-chip .chip-sparkle {
    font-size: 14px;
    line-height: 1;
}

.hero-offer-chip .chip-text {
    font-weight: 500;
}

.hero-offer-chip .chip-cta {
    background: none;
    border: none;
    padding: 0;
    margin-left: 2px;
    color: var(--accent);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-family: inherit;
}

.hero-offer-chip .chip-cta:hover {
    color: #fff;
}

.hero-offer-chip[hidden],
.sr-bonus-callout[hidden] {
    display: none !important;
}

@media (max-width: 540px) {
    .hero-offer-chip {
        font-size: 12.5px;
        padding: 6px 12px;
        gap: 6px;
        margin-bottom: 20px;
    }
}

/* Search bar */
.search {
    width: 100%;
    max-width: 780px;
}

.search-bar {
    position: relative;
    padding: 8px;
    border-radius: 100px;
    background: var(--bg-paper);
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgb(from var(--cream) r g b / 0.1);
    color: var(--ink);
    transition: box-shadow 0.4s ease, transform 0.4s var(--ease);
}

.search-bar:focus-within {
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6), 0 0 0 4px rgb(from var(--accent) r g b / 0.45);
}

.search-bar.is-shake {
    animation: shake 0.45s ease;
}

@keyframes shake {
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

.search-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 14px;
}

.search-step input {
    flex: 1;
    min-width: 0;
    height: 56px;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 17px;
    color: var(--ink);
}

.search-step input::placeholder {
    color: var(--muted);
}

/* Clear button inside search inputs */
.search-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    padding: 0;
    margin: 0 4px;
    border: 0;
    border-radius: 50%;
    background: rgb(from var(--primary) r g b / 0.08);
    color: var(--primary);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.search-clear[hidden] {
    display: none !important;
}

.search-clear:hover,
.search-clear:focus-visible {
    background: rgb(from var(--primary) r g b / 0.16);
    color: var(--primary-2);
    transform: scale(1.08);
    outline: none;
}

.search-clear svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    pointer-events: none;
}

[data-theme="dark"] .search-clear {
    background: rgb(from var(--primary-3) r g b / 0.15);
    color: var(--primary-3);
}

[data-theme="dark"] .search-clear:hover,
[data-theme="dark"] .search-clear:focus-visible {
    background: rgb(from var(--primary-3) r g b / 0.26);
    color: var(--accent);
}

.search-btn {
    flex-shrink: 0;
    height: 56px;
    padding: 0 28px;
}

.search-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
}

.search-btn.is-loading svg {
    display: none;
}

.search-step-2 {
    display: none;
}

.search.is-step-2 .search-step-1 {
    display: none;
}

.search.is-step-2 .search-step-2 {
    display: flex;
    animation: stepIn 0.5s var(--ease);
}

@keyframes stepIn {
    from { opacity: 0; transform: translateX(18px); }
    to { opacity: 1; transform: none; }
}

.search-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 44%;
    padding: 8px 8px 8px 12px;
    border-radius: 100px;
    background: var(--bg-sand);
    font-size: 13px;
}

/* Detected search type: icon at the start of the bar, tag before the button */
.search-type {
    position: relative;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
}

.search-type .st-icon {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.6) rotate(-12deg);
    transition: opacity 0.3s ease, transform 0.4s var(--ease-back);
}

.search-type svg.st-icon,
.search-chip-icon svg.st-icon {
    padding: 2px;
    fill: none;
    stroke: var(--accent-ink);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.search-type[data-type="any"] .st-icon[data-t="any"],
.search-type[data-type="profile"] .st-icon[data-t="profile"],
.search-type[data-type="company"] .st-icon[data-t="company"],
.search-type[data-type="domain"] .st-icon[data-t="domain"],
.search-type[data-type="page"] .st-icon[data-t="page"],
.search-type[data-type="job"] .st-icon[data-t="job"] {
    opacity: 1;
    transform: none;
}

.search-type .st-icon[data-t="any"] {
    stroke: var(--muted);
}

.search-chip-icon {
    display: grid;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.search-chip-icon .st-icon {
    width: 100%;
    height: 100%;
}

.search-chip-icon svg.st-icon {
    padding: 0;
    stroke-width: 2.2;
}

.search-tag {
    flex-shrink: 0;
    max-width: 0;
    overflow: hidden;
    padding: 6px 0;
    border-radius: 100px;
    background: var(--accent-soft);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    color: var(--accent-ink);
    opacity: 0;
    transition: max-width 0.45s var(--ease), padding 0.45s var(--ease), opacity 0.3s ease;
}

.search-tag.is-on {
    max-width: 200px;
    padding: 6px 12px;
    opacity: 1;
}

.search-chip b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--font-mono);
    font-weight: 500;
}

.search-edit {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 50%;
    background: rgba(42, 23, 18, 0.1);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}

.search-edit:hover {
    background: var(--accent);
}

.search-message {
    display: none;
    margin-top: 18px;
    font-size: 15px;
    font-weight: 500;
}

.search-message.is-error {
    display: block;
    color: #FFE4B0;
}

.search-message.is-success {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 100px;
    background: rgba(34, 163, 90, 0.25);
    color: #CFE8D5;
}

.search.is-done .search-bar,
.search.is-done .search-examples {
    display: none;
}

/* --------------------------------------------------------------------------
   AUTH POPUP — sign in / sign up (email + OTP, or Google)
   -------------------------------------------------------------------------- */
.auth {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 16px;
}

.auth[hidden] {
    display: none;
}

.auth-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(28, 14, 10, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: authFade 0.35s ease both;
}

.auth.is-closing .auth-backdrop {
    animation: authFade 0.25s ease reverse both;
}

.auth-card {
    position: relative;
    width: min(440px, 100%);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 34px clamp(22px, 5vw, 38px) 28px;
    border-radius: 28px;
    background: var(--bg-paper);
    color: var(--ink);
    text-align: center;
    box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.6);
    animation: authIn 0.5s var(--ease) both;
}

.auth.is-closing .auth-card {
    animation: authOut 0.25s ease both;
}

@keyframes authFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes authIn { from { opacity: 0; transform: translateY(24px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes authOut { to { opacity: 0; transform: translateY(12px) scale(0.97); } }

.auth-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: var(--bg-sand);
    color: var(--ink);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s var(--ease);
}

.auth-close:hover,
.auth-close:focus-visible {
    background: var(--accent);
    transform: rotate(90deg);
}

.auth-close svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
}

.auth-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.auth-brand .logo-mark {
    width: 54px;
}

.auth-step {
    animation: stepIn 0.45s var(--ease);
}

.auth-step[hidden] {
    display: none;
}

/* Sign in / Sign up tabs */
.auth-tabs {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0 auto 22px;
    padding: 4px;
    max-width: 260px;
    border-radius: 100px;
    background: var(--bg-sand);
}

.auth-tab {
    position: relative;
    z-index: 1;
    padding: 9px 0;
    border: 0;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-soft);
    cursor: pointer;
    transition: color 0.3s ease;
}

.auth-tab.is-active {
    color: var(--on-accent);
}

.auth-tab-ink {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc(50% - 4px);
    border-radius: 100px;
    background: var(--accent);
    transition: transform 0.4s var(--ease);
}

.auth[data-mode="signup"] .auth-tab-ink {
    transform: translateX(100%);
}

.auth-title {
    margin-bottom: 8px;
    font-size: clamp(24px, 3vw, 30px);
    line-height: 1.15;
}

.auth-sub {
    margin-bottom: 22px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink-soft);
}

.auth-sub b {
    color: var(--ink);
    word-break: break-word;
}

/* Email field with the Go button inside */
.auth-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 6px 6px 16px;
    border: 1.5px solid var(--line);
    border-radius: 16px;
    background: var(--bg);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.auth-field:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgb(from var(--accent) r g b / 0.25);
}

.auth-field.is-error {
    border-color: var(--danger);
}

.auth-field > svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--muted);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-field input {
    flex: 1;
    min-width: 0;
    height: 44px;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 16px;   /* 16px stops iOS zooming into the field */
    color: var(--ink);
}

.auth-field input::placeholder {
    color: var(--muted);
}

.auth-go {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 64px;
    height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    background: var(--primary);
    font-size: 15px;
    font-weight: 700;
    color: var(--cream);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.auth-go:hover,
.auth-go:focus-visible {
    background: var(--accent);
    color: var(--on-accent);
}

.auth-go:active {
    transform: scale(0.96);
}

.auth-go.is-loading .auth-go-label {
    display: none;
}

.auth-error {
    min-height: 20px;
    margin-top: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--danger);
    text-align: left;
}

.auth-or {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 6px 0 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.auth-or::before,
.auth-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

.auth-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 52px;
    border: 1.5px solid var(--line);
    border-radius: 16px;
    background: var(--bg-paper);
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.2s ease;
}

.auth-google:hover,
.auth-google:focus-visible {
    border-color: var(--ink-soft);
    background: var(--bg);
}

.auth-google:active {
    transform: scale(0.98);
}

.auth-google svg {
    width: 20px;
    height: 20px;
}

.auth-legal {
    margin-top: 18px;
    font-size: 12.5px;
    color: var(--muted);
}

.auth-legal a {
    color: var(--ink-soft);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* OTP step */
.auth-step[data-step="otp"] .auth-sub {
    margin-bottom: 6px;
}

.auth-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 auto 20px;
    border: 0;
    background: none;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-soft);
    cursor: pointer;
    transition: color 0.2s ease;
}

.auth-back:hover,
.auth-back:focus-visible {
    color: var(--accent-ink);
}

[data-theme="dark"] .auth-back {
    color: var(--muted);
}

[data-theme="dark"] .auth-back:hover,
[data-theme="dark"] .auth-back:focus-visible {
    color: var(--accent);
}

.auth-back svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-otp {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: clamp(6px, 2vw, 10px);
    border: 0;
}

.auth-otp input {
    width: 100%;
    min-width: 0;
    height: clamp(50px, 14vw, 58px);
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: var(--bg);
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
    text-align: center;
    outline: 0;
    caret-color: var(--accent-ink);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--ease-back);
}

.auth-otp input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgb(from var(--accent) r g b / 0.25);
}

.auth-otp input.is-filled {
    border-color: var(--ink-soft);
    transform: translateY(-2px);
}

.auth-otp.is-error input {
    border-color: var(--danger);
    animation: shake 0.45s ease;
}

.auth-verify {
    width: 100%;
    height: 52px;
    margin-top: 6px;
    justify-content: center;
    font-size: 15px;
}

.auth-verify:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auth-verify.is-loading .btn-label {
    display: none;
}

.auth-resend {
    margin-top: 16px;
    font-size: 14px;
    color: var(--ink-soft);
}

.auth-resend button {
    border: 0;
    background: none;
    font-weight: 700;
    color: var(--accent-ink);
    cursor: pointer;
}

.auth-resend button:disabled {
    color: var(--muted);
    cursor: default;
}

/* Done */
.auth-check {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--olive);
    animation: popIn 0.5s var(--ease-back);
}

.auth-check svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: #FFF8E8;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Keep the page still behind the popup */
html.auth-open {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .auth-backdrop,
    .auth-card,
    .auth-step {
        animation: none !important;
    }
}

/* Redirect progress on the success step */
.auth-redirect {
    display: block;
    height: 4px;
    margin: 4px auto 0;
    max-width: 220px;
    border-radius: 4px;
    background: var(--bg-sand);
    overflow: hidden;
}

.auth-redirect i {
    display: block;
    height: 100%;
    background: var(--olive);
    transform-origin: left;
    animation: ldBar 1.4s ease-in-out forwards;
    transform: scaleX(0);
}

/* --------------------------------------------------------------------------
   PROFILE SEARCH page
   -------------------------------------------------------------------------- */
.ps-top {
    padding: clamp(118px, 14vw, 150px) 0 clamp(70px, 8vw, 96px);
    background:
        radial-gradient(ellipse 60% 80% at 85% 0%, rgb(from var(--primary-3) r g b / 0.9), transparent 70%),
        var(--primary);
    color: var(--cream);
}

.ps-top-inner {
    max-width: 1040px;
}

.ps-top-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin-bottom: 18px;
}

.ps-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--cream-soft);
    transition: color 0.3s ease;
}

.ps-back:hover,
.ps-back:focus-visible {
    color: var(--accent);
}

.ps-back svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ps-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 10px;
    border: 1px solid var(--line-light);
    border-radius: 100px;
    background: rgb(from var(--cream) r g b / 0.08);
    font-size: 13px;
    color: var(--cream-soft);
}

.ps-user[hidden] {
    display: none;
}

.ps-user i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22C06A;
    box-shadow: 0 0 0 4px rgba(34, 192, 106, 0.25);
}

.ps-user b {
    color: var(--cream);
    word-break: break-all;
}

.ps-search {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 7px 7px 20px;
    border-radius: 100px;
    background: var(--bg-paper);
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6);
}

.ps-search:focus-within {
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6), 0 0 0 4px rgb(from var(--accent) r g b / 0.45);
}

.ps-search > svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--muted);
    stroke-width: 2;
    stroke-linecap: round;
}

.ps-search input {
    flex: 1;
    min-width: 0;
    height: 50px;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 16px;
    color: var(--ink);
}

.ps-search input::placeholder {
    color: var(--muted);
}

.ps-search-btn {
    flex-shrink: 0;
    height: 50px;
    padding: 0 28px;
}

.ps-search-error {
    min-height: 22px;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #FFE4B0;
}

.ps-body {
    position: relative;
    padding-bottom: clamp(70px, 9vw, 120px);
    background: var(--bg);
}

.ps-body > .container {
    max-width: 1040px;
}

/* Summary card overlaps the red band */
.ps-summary {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.5vw, 24px);
    margin-top: -48px;
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid var(--line);
    border-radius: 26px;
    background: var(--bg-paper);
    box-shadow: 0 30px 70px -40px rgba(42, 23, 18, 0.45);
    animation: resultIn 0.6s var(--ease) both;
}

.ps-summary[hidden],
.ps-toolbar[hidden],
.ps-empty[hidden] {
    display: none;
}

.ps-logo {
    width: clamp(56px, 7vw, 72px);
    height: clamp(56px, 7vw, 72px);
    border-radius: 20px;
    font-size: clamp(20px, 2.4vw, 26px);
}

.ps-summary-text {
    flex: 1;
    min-width: 0;
}

.ps-summary-text .sr-type {
    display: inline-block;
    margin-bottom: 8px;
}

.ps-name {
    font-size: clamp(26px, 3.4vw, 40px);
    line-height: 1.1;
    word-break: break-word;
}

.ps-desc {
    margin-top: 4px;
    font-size: 15px;
    color: var(--ink-soft);
}

.ps-positions-wrap {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-subtle, rgba(0,0,0,0.08));
}
.ps-positions-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ink-muted, #71717A);
    margin-bottom: 6px;
}
.ps-positions-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}
.ps-pos-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: 13px;
    background: var(--bg-surface, rgba(0,0,0,0.04));
    border: 1px solid var(--border-subtle, rgba(0,0,0,0.1));
    border-radius: 12px;
    color: var(--ink, #18181B);
}
.ps-pos-chip small {
    color: var(--ink-soft, #71717A);
    font-size: 11px;
}
.ps-positions-note {
    display: block;
    font-size: 11px;
    color: var(--ink-soft, #A1A1AA);
    font-style: italic;
}

.ps-total {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    align-items: flex-end;
    padding-left: clamp(14px, 2.5vw, 26px);
    border-left: 1px solid var(--line);
    text-align: right;
}

.ps-total[hidden] {
    display: none !important;
}

.ps-total b {
    font-family: var(--font-display);
    font-size: clamp(32px, 4.4vw, 52px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

[data-theme="dark"] .ps-total b {
    color: var(--accent);
}

.ps-total span {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-soft);
}

/* Employee Search Filter Bar (Pre-flight discovery controls) */
.ps-filter-card {
    margin-top: 24px;
    padding: clamp(20px, 2.5vw, 28px);
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--bg-paper);
    box-shadow: 0 16px 40px -24px rgba(42, 23, 18, 0.2);
    animation: fadeIn 0.4s var(--ease) both;
}

.ps-filter-card[hidden] {
    display: none !important;
}

.ps-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.ps-filter-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ps-filter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(220, 76, 42, 0.1);
    color: var(--primary);
    flex-shrink: 0;
}

.ps-filter-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ps-filter-title {
    font-size: clamp(17px, 2vw, 20px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
    margin: 0;
}

.ps-filter-sub {
    font-size: 13.5px;
    color: var(--ink-soft);
    margin: 3px 0 0;
}

.badge-role-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(220, 76, 42, 0.12);
    border: 1px solid rgba(220, 76, 42, 0.25);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
}

.ps-filter-inline-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.ps-filter-field-grow {
    flex: 1;
    min-width: 0;
}

@media (max-width: 640px) {
    .ps-filter-inline-row {
        flex-wrap: wrap;
        gap: 10px;
    }
    .ps-filter-field-grow {
        flex: 1 1 100%;
    }
    .ps-find-btn {
        flex: 1;
    }
    .ps-filter-reset-btn {
        flex: 0 0 auto;
    }
}

.ps-filter-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

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

.ps-filter-field label {
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--ink-soft);
}

.ps-field-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.ps-field-icon {
    position: absolute;
    left: 12px;
    width: 16px;
    height: 16px;
    color: var(--ink-soft);
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.ps-field-input-wrap input,
.ps-field-input-wrap select {
    width: 100%;
    height: 44px;
    padding: 0 12px 0 36px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    color: var(--ink);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ps-field-input-wrap input:focus,
.ps-field-input-wrap select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(220, 76, 42, 0.15);
}

.ps-filter-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}

.ps-find-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid transparent;
    background: var(--accent);
    color: var(--on-accent);
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.16);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}

.ps-find-btn::before {
    display: none;
}

.ps-find-btn:not(:disabled):hover {
    background: var(--accent-hover, var(--accent));
    box-shadow: 0 4px 14px -2px rgba(0, 0, 0, 0.24);
    transform: translateY(-1px);
}

.ps-find-btn:not(:disabled):active {
    transform: translateY(0);
    box-shadow: 0 2px 6px -2px rgba(0, 0, 0, 0.16);
}

.ps-find-btn:disabled {
    background: rgb(from var(--ink) r g b / 0.06);
    border-color: var(--line);
    color: var(--muted);
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    pointer-events: none;
}

[data-theme=dark] .ps-find-btn:disabled {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--muted);
}

[data-theme="dark"] .ps-find-btn:disabled {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--muted);
}

.ps-find-btn svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.ps-find-btn .ps-spinner {
    border-color: rgba(0, 0, 0, 0.18);
    border-top-color: currentColor;
}

.ps-filter-reset-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 44px;
    padding: 0 16px;
    font-size: 13.5px;
    font-weight: 500;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--ink-soft);
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.ps-filter-reset-btn::before {
    display: none;
}

.ps-filter-reset-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ps-filter-reset-btn:hover {
    background: var(--bg-sand);
    color: var(--ink);
    border-color: var(--line-light, var(--line));
}

.ps-filter-reset-btn:hover svg {
    transform: rotate(-45deg);
}

.ps-filter-reset-btn:active {
    transform: scale(0.98);
}

[data-theme=dark] .ps-filter-reset-btn {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--ink-soft);
}

[data-theme=dark] .ps-filter-reset-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--ink);
}

.ps-filter-reset-btn::before {
    display: none;
}

.ps-filter-reset-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ps-filter-reset-btn:hover {
    background: var(--bg-sand);
    color: var(--ink);
    border-color: var(--line-light, var(--line));
}

.ps-filter-reset-btn:hover svg {
    transform: rotate(-45deg);
}

.ps-filter-reset-btn:active {
    transform: scale(0.98);
}

[data-theme="dark"] .ps-filter-reset-btn {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--ink-soft);
}

[data-theme="dark"] .ps-filter-reset-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--ink);
}

.ps-filter-note {
    font-size: 13px;
    color: var(--ink-soft);
    margin-left: auto;
}

/* Filters + count */
.ps-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin: 34px 0 16px;
}

.ps-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ps-filter {
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 100px;
    background: var(--bg-paper);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-soft);
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.ps-filter:hover,
.ps-filter:focus-visible {
    border-color: var(--accent-ink);
    color: var(--ink);
}

.ps-filter.is-on {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--cream);
}

.ps-showing {
    font-size: 13.5px;
    color: var(--muted);
}

/* Loading Card & Spinner */
.ps-loading-card[hidden],
.ps-alert-card[hidden] {
    display: none !important;
}

.ps-loading-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 32px 28px;
    margin: 20px 0;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--bg-paper);
    box-shadow: 0 16px 36px -20px rgba(42, 23, 18, 0.18);
    animation: fadeIn 0.3s ease both;
}

.ps-spinner {
    width: 36px;
    height: 36px;
    border: 3.5px solid rgb(from var(--primary) r g b / 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

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

.ps-loading-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ps-loading-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}

.ps-loading-sub {
    font-size: 13.5px;
    color: var(--muted);
    margin: 0;
}

/* Alert / Guidance Banner */
.ps-alert-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    margin: 16px 0;
    border: 1px solid rgba(220, 76, 42, 0.25);
    border-radius: 14px;
    background: rgba(255, 91, 38, 0.08);
    color: var(--ink);
    animation: fadeIn 0.3s ease both;
}

.ps-alert-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.ps-alert-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ps-alert-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ps-alert-heading {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.ps-alert-text {
    font-size: 13.5px;
    color: var(--ink-soft);
    line-height: 1.5;
    margin: 0;
}

/* No Results Card */
.ps-no-results {
    padding: 40px 32px;
    margin: 24px 0;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--bg-paper);
    animation: fadeIn 0.4s ease both;
}

.ps-no-head {
    margin-bottom: 20px;
}

.ps-no-tips {
    background: var(--bg-sand);
    border-radius: 12px;
    padding: 18px 22px;
    font-size: 13.5px;
}

.ps-no-tips p {
    margin: 0 0 8px;
    color: var(--ink);
}

.ps-no-tips ul {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 6px;
    color: var(--ink-soft);
}

.ps-no-tips code {
    font-family: var(--font-mono);
    font-size: 12.5px;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--bg-paper);
    border: 1px solid var(--line);
}

/* Contact rows */
.ps-list {
    list-style: none;
    display: grid;
    gap: 10px;
}

.ps-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1.2fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--bg-paper);
    animation: rowIn 0.5s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 40ms);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease);
}

.ps-row:hover {
    border-color: rgb(from var(--primary) r g b / 0.35);
    box-shadow: 0 18px 40px -26px rgba(42, 23, 18, 0.45);
    transform: translateY(-2px);
}

@keyframes rowIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

/* Skeleton Contact Cards Loading State */
.ps-skeletons[hidden] {
    display: none !important;
}

.ps-skeletons {
    margin-bottom: 12px;
}

.ps-row.is-skeleton {
    cursor: default;
    pointer-events: none;
    border-color: var(--line);
    background: var(--bg-paper);
}

.ps-row.is-skeleton:hover {
    box-shadow: none;
    transform: none;
    border-color: var(--line);
}

.ps-sk-shimmer {
    background: linear-gradient(
        90deg,
        rgb(from var(--ink) r g b / 0.04) 25%,
        rgb(from var(--ink) r g b / 0.09) 50%,
        rgb(from var(--ink) r g b / 0.04) 75%
    );
    background-size: 200% 100%;
    animation: cbShimmer 1.6s ease-in-out infinite;
    border-radius: 6px;
}

@keyframes cbShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.ps-row.is-skeleton .ps-avatar.ps-sk-shimmer {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: block;
}

.ps-row.is-skeleton .ps-sk-name {
    width: 140px;
    height: 16px;
    margin-bottom: 6px;
}

.ps-row.is-skeleton .ps-sk-sub {
    width: 220px;
    height: 12px;
}

.ps-row.is-skeleton .ps-sk-tag {
    width: 130px;
    height: 22px;
    border-radius: 12px;
}

.ps-row.is-skeleton .ps-sk-btn {
    width: 110px;
    height: 38px;
    border-radius: 999px;
}

.ps-avatar {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: #FFF4E8;
}

.ps-person {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ps-person b {
    font-size: 16px;
    font-weight: 700;
}

.ps-role {
    font-size: 14px;
    color: var(--ink-soft);
}

.ps-loc {
    font-size: 12.5px;
    color: var(--muted);
}

.ps-person > *,
.ps-email code {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ps-email {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.ps-email code {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--ink);
}

.ps-email code.is-locked-mask {
    letter-spacing: 2px;
    opacity: 0.55;
    user-select: none;
}

.ps-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--olive);
}

.ps-verified svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ps-verified.badge-verified {
    color: var(--olive);
}
.ps-verified.badge-available {
    color: #0284c7;
}
.ps-verified.badge-catchall {
    color: #d97706;
}
.ps-verified.badge-invalid {
    color: #dc2626;
}
.ps-verified.badge-unknown {
    color: #64748b;
}
.ps-verified.badge-notfound {
    color: #94a3b8;
}

/* Email Reveal 4-State Indicators */
.ps-email-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    padding: 4px 10px;
    border-radius: 6px;
    max-width: 100%;
    transition: all 0.25s ease;
}

.ps-email-status .ps-status-icon {
    font-size: 13px;
    line-height: 1;
}

.ps-email-status.is-locked {
    background: rgba(2, 132, 199, 0.08);
    border: 1px solid rgba(2, 132, 199, 0.22);
    color: #0369a1;
}

.ps-email-status.is-pending {
    background: rgba(217, 119, 6, 0.08);
    border: 1px solid rgba(217, 119, 6, 0.25);
    color: #b45309;
}

.ps-email-status.is-not-found {
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.22);
    color: #b91c1c;
}

.ps-email-status.is-background {
    background: rgba(100, 116, 139, 0.08);
    border: 1px solid rgba(100, 116, 139, 0.22);
    color: #475569;
}

/* Shimmering Verification Progress Bar */
.ps-enriching-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.ps-shimmer-bar {
    height: 6px;
    width: 100%;
    max-width: 220px;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(217, 119, 6, 0.15) 0%, rgba(217, 119, 6, 0.45) 50%, rgba(217, 119, 6, 0.15) 100%);
    background-size: 200% 100%;
    animation: psShimmer 1.8s infinite linear;
}

@keyframes psShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.ps-spinner-sm {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(217, 119, 6, 0.3);
    border-top-color: #b45309;
    border-radius: 50%;
    animation: psSpin 0.75s linear infinite;
    vertical-align: middle;
}

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

/* Row in enriching state */
.ps-row.is-enriching {
    border-color: rgba(217, 119, 6, 0.45);
    background: rgba(254, 243, 199, 0.12);
}

.ps-reveal.is-loading {
    background: rgba(217, 119, 6, 0.9);
    cursor: wait;
    opacity: 0.9;
    pointer-events: none;
}

.ps-reveal.ps-no-result {
    background: var(--bg-sand);
    color: var(--muted);
    border: 1px solid var(--line);
    cursor: not-allowed;
    opacity: 0.8;
}

.ps-reveal.ps-no-result:hover {
    background: var(--bg-sand);
    color: var(--muted);
    transform: none;
}

.ps-reveal.is-background {
    background: #64748b;
    color: #ffffff;
    cursor: default;
    opacity: 0.85;
}

.ps-ambient-reveal-status[hidden] {
    display: none !important;
}

.ps-ambient-reveal-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: #b45309;
    background: rgba(217, 119, 6, 0.1);
    border: 1px solid rgba(217, 119, 6, 0.25);
    padding: 3px 10px;
    border-radius: 100px;
}

.ps-reveal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 100px;
    background: var(--accent);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--on-accent);
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.ps-reveal:hover,
.ps-reveal:focus-visible {
    background: var(--accent-hover);
}

.ps-reveal:active {
    transform: scale(0.96);
}

.ps-reveal svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ps-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

.ps-more {
    border: 1.5px solid var(--ink);
    color: var(--ink);
}

.ps-more:hover {
    color: var(--cream);
}

.ps-more[hidden] {
    display: none;
}

.ps-empty {
    margin-top: -40px;
    padding: 56px 24px;
    border-radius: 26px;
    background: var(--bg-paper);
    text-align: center;
    color: var(--ink-soft);
    box-shadow: 0 30px 70px -40px rgba(42, 23, 18, 0.45);
}

.ps-empty-icon {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--accent-soft);
}

.ps-empty-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: var(--accent-ink);
    stroke-width: 2;
    stroke-linecap: round;
}

.ps-empty-title {
    margin-bottom: 8px;
    font-size: clamp(24px, 3vw, 32px);
    color: var(--ink);
}

.ps-note {
    margin-top: 28px;
    font-size: 12.5px;
    color: var(--muted);
    text-align: center;
}

.ps-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 900;
    max-width: min(520px, calc(100vw - 32px));
    padding: 14px 20px;
    border-radius: 16px;
    background: var(--ink);
    color: var(--bg);
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 20px);
    transition: opacity 0.35s ease, transform 0.35s var(--ease);
}

.ps-toast.is-on {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 760px) {
    .ps-summary {
        flex-wrap: wrap;
    }

    .ps-summary-text {
        flex-basis: calc(100% - 90px);
    }

    .ps-total {
        flex-direction: row;
        align-items: baseline;
        gap: 10px;
        width: 100%;
        padding: 14px 0 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .ps-row {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 10px 14px;
    }

    .ps-email {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        padding: 10px 12px;
        border-radius: 12px;
        background: var(--bg);
    }

    .ps-reveal {
        grid-column: 1 / -1;
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .ps-search {
        flex-wrap: wrap;
        padding: 6px 6px 6px 16px;
        border-radius: 22px;
    }

    .ps-search input {
        flex: 1 1 0;
        min-width: 0;
    }

    .ps-search-btn {
        width: 100%;
        margin: 0 0 0 -10px;
        width: calc(100% + 10px);
        border-radius: 16px;
    }
}

/* --- Search page: start screen + richer search bar --- */
.ps-top {
    position: relative;
    overflow: hidden;
}

.ps-top-grid {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgb(from var(--cream) r g b / 0.3) 1.2px, transparent 1.8px),
        linear-gradient(rgb(from var(--cream) r g b / 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgb(from var(--cream) r g b / 0.07) 1px, transparent 1px);
    background-size: 56px 56px;
    background-position: -28px -28px, 0 0, 0 0;
    -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 30%, #000 30%, transparent 80%);
    mask-image: radial-gradient(ellipse 80% 90% at 50% 30%, #000 30%, transparent 80%);
    pointer-events: none;
}

/* every account page: same 1040px content width, content above the grid layer */
.ps-top > .container,
.ps-body > .container {
    position: relative;
    max-width: 1040px;
}

.ps-top-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.ps-unlocked-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 8px 0 14px;
    border-radius: 100px;
    background: var(--accent);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--on-accent);
    transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.ps-unlocked-btn[hidden] {
    display: none;
}

.ps-unlocked-btn:hover,
.ps-unlocked-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.45);
}

.ps-unlocked-btn svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ps-unlocked-btn b {
    display: grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 100px;
    background: var(--on-accent);
    font-size: 12px;
    color: var(--accent);
}

.ps.is-start .ps-top {
    padding-bottom: clamp(90px, 10vw, 120px);
}

.ps-hero-title {
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
    color: var(--cream);
}

.ps-hero-title em {
    color: var(--accent);
}

.ps-hero-sub {
    max-width: 560px;
    margin: 12px 0 26px;
    font-size: clamp(15px, 1.4vw, 17px);
    line-height: 1.55;
    color: var(--cream-soft);
}

/* type icon inside the bar (same behaviour as the hero search) */
.ps-type {
    position: relative;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
}

.ps-type .st-icon {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    transform: scale(0.6) rotate(-12deg);
    transition: opacity 0.3s ease, transform 0.4s var(--ease-back);
}

.ps-type svg,
.ps-type .st-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--accent-ink);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ps-type .st-icon[data-t="any"] {
    stroke: var(--muted);
}

.ps-type .search-li,
.ps-type .search-li svg {
    width: 24px;
    height: 24px;
}

.ps-type .search-li svg {
    fill: #0A66C2;
    stroke: none;
}

.ps-type[data-type="any"] [data-t="any"],
.ps-type[data-type="profile"] [data-t="profile"],
.ps-type[data-type="company"] [data-t="company"],
.ps-type[data-type="domain"] [data-t="domain"],
.ps-type[data-type="page"] [data-t="page"],
.ps-type[data-type="job"] [data-t="job"] {
    opacity: 1;
    transform: none;
}

.ps-search .search-tag {
    margin-right: 2px;
}

.ps-search-btn {
    gap: 8px;
}

.ps-search-btn svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
}

.ps-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 13px;
    color: var(--cream-soft);
}

.ps-chip {
    padding: 6px 13px;
    border: 1px solid var(--line-light);
    border-radius: 100px;
    background: rgb(from var(--cream) r g b / 0.06);
    font-size: 13px;
    font-weight: 500;
    color: var(--cream);
    cursor: default;
    user-select: none;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.ps-chip.is-on {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--on-accent);
}

/* Start screen */
.ps-start {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    max-width: 1040px;
    margin: -56px auto 0;
}

.ps-start[hidden] {
    display: none;
}

.ps-start-card {
    min-width: 0;
    padding: clamp(22px, 2.8vw, 32px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--bg-paper);
    box-shadow: 0 30px 70px -44px rgba(42, 23, 18, 0.45);
    animation: resultIn 0.6s var(--ease) both;
}

.ps-start-card[hidden] {
    display: none;
}

.ps-start-head {
    margin-bottom: 16px;
}

.ps-types {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ps-type-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
    padding: 16px;
    border: 1.5px solid var(--line);
    border-radius: 18px;
    background: var(--bg);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.25s ease, transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.ps-type-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.ps-type-card:hover,
.ps-type-card:focus-visible {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px -28px rgba(42, 23, 18, 0.5);
    outline: none;
}

.ps-type-card .jump-icon {
    margin-bottom: 4px;
}

.ps-type-card .jump-icon > svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--accent-ink);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ps-type-card .jump-icon .search-li {
    width: 24px;
    height: 24px;
}

.ps-type-card b {
    font-size: 15px;
}

.ps-type-card small {
    max-width: 100%;
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Recent searches */
.ps-recent-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.ps-recent-head h2 {
    margin: 0;
}

.ps-recent-sub {
    margin: 3px 0 0 0;
    font-size: 13px;
    color: var(--muted);
}

.ps-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ps-clear-btn svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ps-clear-btn:hover {
    border-color: var(--danger);
    background: rgba(198, 59, 33, 0.08);
    color: var(--danger);
    transform: translateY(-1px);
}

.ps-recent {
    min-width: 0;
    width: 100%;
}

.ps-recent-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
    min-width: 0;
    width: 100%;
    overflow: hidden;
}

.ps-recent-item {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--bg);
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.ps-recent-item:hover,
.ps-recent-item:focus-within {
    border-color: var(--accent);
    background: var(--bg-paper);
    box-shadow: 0 12px 28px -12px rgba(42, 23, 18, 0.35);
    transform: translateY(-1.5px);
}

.ps-recent-link {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 0;
    min-width: 0;
    padding: 11px 13px;
    color: var(--ink);
    text-decoration: none;
    border-radius: 16px;
    overflow: hidden;
}

.ps-recent-link:focus-visible {
    outline: none;
}

.ps-recent-item .jump-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--bg-paper);
    border: 1px solid var(--line);
    transition: transform 0.2s ease;
}

.ps-recent-item:hover .jump-icon {
    transform: scale(1.05);
}

.ps-recent-item .jump-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: var(--accent-ink);
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ps-recent-item .jump-icon .search-li,
.ps-recent-item .jump-icon .search-li svg {
    width: 21px;
    height: 21px;
    fill: #0A66C2;
    stroke: none;
}

.ps-recent-text {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    overflow: hidden;
}

.ps-recent-text b {
    display: block;
    overflow: hidden;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ink);
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.ps-recent-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.ps-recent-type {
    display: inline-block;
    overflow: hidden;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ps-recent-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    margin-left: 4px;
    border-radius: 50%;
    color: var(--muted);
    transition: all 0.2s ease;
}

.ps-recent-arrow svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    stroke-width: 2.2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ps-recent-item:hover .ps-recent-arrow {
    color: var(--primary);
    transform: translateX(3px);
}

.ps-recent-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    margin-right: 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.2s ease;
}

.ps-recent-remove:hover,
.ps-recent-remove:focus-visible {
    opacity: 1;
    background: rgba(198, 59, 33, 0.12);
    color: var(--danger);
    outline: none;
}

.ps-recent-remove svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    stroke-width: 2.4;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* How it works */
.ps-steps {
    min-width: 0;
    width: 100%;
}

.ps-steps ol {
    list-style: none;
    display: grid;
    gap: 16px;
    margin: 18px 0 20px;
}

.ps-steps li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.ps-steps li > span {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    font-size: 14px;
    font-weight: 800;
    color: var(--cream);
}

.ps-steps li div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ps-steps li b {
    font-size: 15px;
    color: var(--ink);
}

.ps-steps li small {
    font-size: 13.5px;
    color: var(--ink-soft);
    line-height: 1.45;
}

/* When psRecent is hidden (no recent searches), center and display steps horizontally */
.ps-recent[hidden] + .ps-steps {
    grid-column: 1 / -1;
    max-width: 860px;
    margin: 0 auto;
}

.ps-recent[hidden] + .ps-steps ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.ps-recent[hidden] + .ps-steps li {
    flex-direction: column;
    gap: 12px;
}

.ps-steps-link {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--bg-sand);
    font-size: 14px;
    color: var(--ink-soft);
}

.ps-steps-link b {
    color: var(--ink);
}

.ps-steps-link u {
    font-weight: 700;
    color: var(--accent-ink);
    text-underline-offset: 3px;
}

@media (max-width: 860px) {
    .ps-start {
        grid-template-columns: minmax(0, 1fr);
        max-width: 100%;
        margin-top: -36px;
    }

    .ps-recent[hidden] + .ps-steps ol {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .ps-recent[hidden] + .ps-steps li {
        flex-direction: row;
        gap: 12px;
    }
}

@media (max-width: 520px) {
    .ps-types {
        grid-template-columns: minmax(0, 1fr);
    }

    .ps-search .search-tag {
        display: none;
    }

    .ps-chips > span {
        flex-basis: 100%;
    }
}
/* --------------------------------------------------------------------------
   CREDITS — header pill, unlock popup, unlocked rows
   -------------------------------------------------------------------------- */
.credit-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 46px;
    padding: 0 16px 0 8px;
    border: 1px solid var(--line);
    border-radius: 100px;
    background: var(--bg-paper);
    font-size: 14px;
    color: var(--ink);
    white-space: nowrap;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.credit-pill[hidden] {
    display: none;
}

.credit-pill:hover,
.credit-pill:focus-visible {
    border-color: var(--accent);
}

.credit-pill b {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.credit-coin {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    font-size: 14px;
    font-weight: 800;
    color: var(--on-accent);
}

.credit-pill.is-low .credit-coin {
    background: var(--danger);
    color: #FFF8E8;
}

.credit-pill.is-bump {
    animation: pillBump 0.6s var(--ease-back);
}

@keyframes pillBump {
    40% { transform: scale(1.12); }
}

.page-home .site-header:not(.is-scrolled) .credit-pill {
    border-color: var(--line-light);
    background: rgb(from var(--cream) r g b / 0.1);
    color: #FDEFD3;
}

/* Unlock popup (reuses .auth styles) */
.cw-coin {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    margin-bottom: 14px;
    border: 4px solid var(--accent-soft);
    border-radius: 50%;
    background: var(--accent);
    color: var(--on-accent);
    line-height: 1;
    animation: popIn 0.5s var(--ease-back);
}

.cw-coin b {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
}

.cw-coin small {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cw-modal.is-warn .cw-coin {
    background: var(--danger);
    color: #FFF8E8;
    border-color: var(--danger-soft);
}

.cw-bal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: -6px 0 18px;
    padding: 12px 16px;
    border-radius: 14px;
    background: var(--bg-sand);
    font-size: 14px;
    color: var(--ink-soft);
}

.cw-bal[hidden] {
    display: none;
}

.cw-bal b {
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.cw-bal b i {
    font-style: normal;
    color: var(--accent-ink);
}

.cw-bal b.is-short {
    color: var(--danger);
}

.cw-cancel {
    margin-top: 12px;
    border: 0;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-soft);
    cursor: pointer;
}

.cw-cancel:hover,
.cw-cancel:focus-visible {
    color: var(--accent-ink);
}

/* Unlocked contact row */
.ps-row.is-unlocked {
    border-color: rgba(31, 157, 85, 0.35);
}

.ps-row.is-unlocked .ps-email code {
    font-weight: 500;
    color: var(--olive);
}

.ps-row.is-just-unlocked .ps-email code {
    animation: unlockIn 0.7s var(--ease);
}

@keyframes unlockIn {
    from { opacity: 0; filter: blur(6px); letter-spacing: 0.2em; }
    to { opacity: 1; filter: none; letter-spacing: 0; }
}

.ps-copy {
    background: var(--bg-sand);
    color: var(--ink);
}

.ps-copy:hover,
.ps-copy:focus-visible {
    background: var(--olive);
    color: #FFF8E8;
}

.ps-copy.is-copied {
    background: #15803d !important;
    color: #ffffff !important;
    border-color: #15803d !important;
}

.ps-copy.is-copied svg {
    stroke: #ffffff !important;
    stroke-width: 2.5;
    fill: none;
}

.ps-note a {
    color: var(--accent-ink);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Header avatar (signed in) */
.profile-link {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    background: var(--primary);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 800;
    color: var(--cream);
    transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.profile-link {
    padding: 0;
    cursor: pointer;
}

.profile-link:hover,
.profile-link:focus-visible,
.user-menu.is-open .profile-link {
    transform: scale(1.06);
    box-shadow: 0 0 0 4px rgb(from var(--accent) r g b / 0.3);
}

/* Account dropdown */
.user-menu {
    position: relative;
    z-index: 130;
}

.user-menu[hidden],
.um-panel[hidden] {
    display: none;
}

.um-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 280px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--bg-paper);
    color: var(--ink);
    box-shadow: 0 30px 70px -20px rgba(42, 23, 18, 0.45);
    transform-origin: top right;
    animation: umIn 0.25s var(--ease);
}

/* little pointer under the avatar */
.um-panel::before {
    content: '';
    position: absolute;
    top: -7px;
    right: 17px;
    width: 12px;
    height: 12px;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    background: var(--bg-paper);
    transform: rotate(45deg);
}

@keyframes umIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.97); }
    to { opacity: 1; transform: none; }
}

.um-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 12px;
}

.um-av {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 800;
    color: var(--cream);
}

.um-who {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.um-who b,
.um-who small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.um-who b {
    font-size: 15px;
}

.um-who small {
    font-size: 12.5px;
    color: var(--muted);
}

.um-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 2px 6px;
    padding: 10px 12px;
    border-radius: 14px;
    background: var(--bg-sand);
    font-size: 14px;
}

.um-balance > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.um-balance .credit-coin {
    width: 24px;
    height: 24px;
    font-size: 12px;
}

.um-buy {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
    border-radius: 6px;
}

.um-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 12px;
    border: 0;
    border-radius: 12px;
    background: none;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.um-item svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--ink-soft);
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.um-item:hover,
.um-item:focus-visible,
.um-buy:focus-visible {
    background: var(--bg);
    outline: none;
}

.um-item:focus-visible,
.um-buy:focus-visible {
    box-shadow: inset 0 0 0 2px var(--accent);
}

.um-logout {
    margin-top: 4px;
    border-top: 1px solid var(--line);
    border-radius: 0 0 12px 12px;
    color: var(--danger);
}

.um-logout svg {
    stroke: var(--danger);
}

.um-logout:hover,
.um-logout:focus-visible {
    background: rgba(220, 70, 60, 0.08);
}

#history,
#session,
#details {
    scroll-margin-top: 110px;
}

/* --------------------------------------------------------------------------
   PROFILE page
   -------------------------------------------------------------------------- */
.pf-inner {
    max-width: 1040px;
}

.pf-id {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 24px;
}

.pf-id[hidden] {
    display: none;
}

.pf-avatar {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: clamp(72px, 9vw, 96px);
    height: clamp(72px, 9vw, 96px);
    border: 4px solid rgb(from var(--cream) r g b / 0.3);
    border-radius: 50%;
    background: var(--accent);
    font-family: var(--font-display);
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 800;
    color: var(--on-accent);
}

.pf-id-text {
    flex: 1;
    min-width: 200px;
}

.pf-name {
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.05;
    color: var(--cream);
    word-break: break-word;
}

.pf-email {
    margin-top: 6px;
    font-size: 16px;
    font-weight: 600;
    color: var(--cream);
    word-break: break-all;
}

.pf-since {
    margin-top: 2px;
    font-size: 13.5px;
    color: var(--cream-soft);
}

.pf-find svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
}

.pf-body {
    padding-top: 1px;
}

.pf-out {
    margin-top: -40px;
}

.pf-out[hidden],
#pfSignedIn[hidden] {
    display: none;
}

.pf-out-btn {
    margin-top: 18px;
}

/* Stats */
.pf-stats {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 16px;
    margin-top: -48px;
}

.pf-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--bg-paper);
    box-shadow: 0 30px 70px -44px rgba(42, 23, 18, 0.45);
}

.pf-stat > b {
    font-family: var(--font-display);
    font-size: clamp(32px, 3.6vw, 44px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
}

.pf-stat-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.pf-stat-sub {
    font-size: 13.5px;
    color: var(--ink-soft);
}

.pf-stat-main {
    border: 2px solid var(--accent);
    transition: transform 0.3s var(--ease);
}

.pf-stat-main:hover {
    transform: translateY(-3px);
}

.pf-stat-main > b {
    color: var(--primary);
}

[data-theme="dark"] .pf-stat-main > b {
    color: var(--accent);
}

.pf-stat-main u {
    font-weight: 700;
    color: var(--accent-ink);
    text-underline-offset: 3px;
}

/* Tabs */
.pf-tabs {
    display: flex;
    gap: 4px;
    margin: 40px 0 0;
    padding: 4px;
    width: max-content;
    max-width: 100%;
    overflow-x: auto;
    border-radius: 100px;
    background: var(--bg-sand);
    scrollbar-width: none;
}

.pf-tab {
    flex-shrink: 0;
    padding: 10px 20px;
    border: 0;
    border-radius: 100px;
    background: none;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ink-soft);
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pf-tab:hover {
    color: var(--ink);
}

.pf-tab.is-active {
    background: var(--primary);
    color: var(--cream);
}

.pf-pane {
    margin-top: 20px;
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--bg-paper);
    animation: stepIn 0.4s var(--ease);
}

.pf-pane[hidden] {
    display: none;
}

.pf-pane-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px 24px;
    margin-bottom: 18px;
}

.pf-h2 {
    font-size: clamp(20px, 2.2vw, 24px);
}

.pf-h2-gap {
    margin-top: 32px;
}

.pf-muted {
    margin-top: 4px;
    font-size: 14px;
    color: var(--muted);
}

.pf-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(320px, 100%);
    height: 44px;
    padding: 0 14px;
    border: 1.5px solid var(--line);
    border-radius: 100px;
    background: var(--bg);
}

.pf-filter[hidden] {
    display: none;
}

.pf-filter:focus-within {
    border-color: var(--accent);
}

.pf-filter svg {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: var(--muted);
    stroke-width: 2;
    stroke-linecap: round;
}

.pf-filter input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14.5px;
    color: var(--ink);
}

/* Unlocked list */
.pf-list {
    list-style: none;
    display: grid;
    gap: 10px;
}

.pf-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--bg);
}

.pf-item-av {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--olive);
    font-size: 14px;
    font-weight: 700;
    color: #FFF8E8;
}

.pf-item-who,
.pf-item-mail {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pf-item-who b {
    font-size: 15.5px;
}

.pf-item-who span,
.pf-item-mail small {
    font-size: 13px;
    color: var(--muted);
}

.pf-item-who > *,
.pf-item-mail code {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pf-item-mail code {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--olive);
}

.pf-copy {
    height: 38px;
}

.pf-empty {
    padding: 28px 16px;
    text-align: center;
    font-size: 14.5px;
    color: var(--ink-soft);
}

.pf-empty[hidden] {
    display: none;
}

.pf-empty .btn {
    margin-top: 14px;
}

/* Details form */
.pf-form {
    margin-top: 20px;
}

.co-field select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    font-size: 16px;
    color: var(--ink);
    outline: 0;
}

.co-field select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgb(from var(--accent) r g b / 0.25);
}

.co-field input[readonly] {
    color: var(--muted);
    cursor: not-allowed;
}

.pf-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pf-session {
    margin-top: 32px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.pf-details {
    margin-top: 40px;
}

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

.pf-saved {
    font-size: 14px;
    font-weight: 700;
    color: var(--olive);
}

/* Settings */
.pf-prefs {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.pf-pref,
.pf-row-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--bg);
}

.pf-pref {
    cursor: pointer;
}

.pf-pref span {
    display: flex;
    flex-direction: column;
}

.pf-pref b,
.pf-row-card b {
    font-size: 15px;
}

.pf-pref small {
    font-size: 13px;
    color: var(--muted);
}

/* Toggle switch */
.pf-switch {
    position: relative;
    flex-shrink: 0;
    width: 48px;
    height: 28px;
    border-radius: 100px;
    background: var(--line);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pf-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg-paper);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s var(--ease);
}

.pf-switch:checked {
    background: var(--olive);
}

.pf-switch:checked::after {
    transform: translateX(20px);
}

.pf-switch:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.pf-row-card {
    margin-top: 12px;
}

.pf-row-card .btn {
    flex-shrink: 0;
}

.pf-danger {
    border-color: rgba(220, 70, 60, 0.35);
}

.pf-delete {
    flex-shrink: 0;
    padding: 10px 18px;
    border: 1.5px solid var(--danger);
    border-radius: 100px;
    background: none;
    font-size: 14px;
    font-weight: 700;
    color: var(--danger);
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.pf-delete:hover,
.pf-delete:focus-visible {
    background: var(--danger);
    color: #FFF8E8;
}

@media (max-width: 860px) {
    .pf-stats {
        grid-template-columns: 1fr 1fr;
    }

    .pf-stat-main {
        grid-column: 1 / -1;
    }

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

    .pf-item-mail {
        grid-column: 2 / 3;
        grid-row: 2;
    }

    .pf-copy {
        grid-row: 1 / 3;
        grid-column: 3;
    }
}

@media (max-width: 640px) {
    .profile-link {
        width: 42px;
        height: 42px;
        font-size: 14px;
    }

    .pf-find {
        width: 100%;
        justify-content: center;
    }

    .pf-tabs {
        width: 100%;
    }

    .pf-tab {
        flex: 1;
        padding: 10px 8px;
        font-size: 13px;
    }

    .pf-stat {
        padding: 16px 18px;
    }

    .pf-copy span {
        display: none;
    }

    .pf-copy {
        width: 40px;
        padding: 0;
        justify-content: center;
    }

    .pf-row-card {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* Unlocked emails page */
.ul-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
}

.ul-count[hidden],
#ulSignedIn[hidden],
#ulSignedOut[hidden] {
    display: none;
}

.ul-pane {
    margin-top: -48px;
    box-shadow: 0 30px 70px -44px rgba(42, 23, 18, 0.45);
}

.ul-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ul-actions .btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ul-actions [hidden] {
    display: none;
}

.pf-stat-link {
    transition: transform 0.3s var(--ease), border-color 0.3s ease;
}

.pf-stat-link:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
}

.pf-stat-link u {
    font-weight: 700;
    color: var(--accent-ink);
    text-underline-offset: 3px;
}

@media (max-width: 640px) {
    .ul-actions,
    .ul-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
/* --------------------------------------------------------------------------
   Account navigation (search / unlocked emails / credits pages):
   a row of tabs at the top of the red band
   -------------------------------------------------------------------------- */
.appnav {
    display: flex;
    gap: 4px;
    width: max-content;
    max-width: 100%;
    margin-bottom: 26px;
    padding: 5px;
    border: 1px solid var(--line-light);
    border-radius: 100px;
    background: rgb(from var(--cream) r g b / 0.08);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    overflow-x: auto;
    scrollbar-width: none;
}

.appnav::-webkit-scrollbar {
    display: none;
}

.appnav-item {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--cream-soft);
    white-space: nowrap;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.appnav-item svg {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.appnav-item:hover,
.appnav-item:focus-visible {
    background: rgb(from var(--cream) r g b / 0.12);
    color: var(--cream);
    outline: none;
}

.appnav-item.is-active {
    background: var(--bg-paper);
    color: var(--primary);
    box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .appnav-item.is-active {
    background: var(--accent);
    color: var(--on-accent);
}

.appnav-short {
    display: none;
}

/* Phones: four equal tabs, icon over a short label */
@media (max-width: 600px) {
    .appnav {
        width: 100%;
        border-radius: 18px;
    }

    .appnav-item {
        flex: 1 1 0;
        flex-direction: column;
        gap: 3px;
        min-width: 0;
        padding: 8px 4px;
        border-radius: 13px;
        font-size: 11.5px;
    }

    .appnav-label {
        display: none;
    }

    .appnav-short {
        display: inline;
    }
}
/* --------------------------------------------------------------------------
   CREDITS page
   -------------------------------------------------------------------------- */
.cr-top-inner,
.co-top-inner {
    max-width: 1040px;
}

.cr-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
}

.cr-eyebrow {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.cr-title {
    max-width: 14ch;
    font-size: clamp(34px, 4.6vw, 56px);
    line-height: 1.05;
    color: var(--cream);
}

.cr-lead {
    max-width: 460px;
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.55;
    color: var(--cream-soft);
}

.cr-lead b {
    color: var(--cream);
}

.cr-balance {
    display: flex;
    flex-direction: column;
    min-width: 250px;
    padding: 22px 26px;
    border: 1px solid var(--line-light);
    border-radius: 24px;
    background: rgb(from var(--cream) r g b / 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cr-balance-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--cream-soft);
}

.cr-balance-num {
    margin: 4px 0 2px;
    font-family: var(--font-display);
    font-size: clamp(44px, 6vw, 64px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.cr-balance-sub {
    font-size: 14px;
    color: var(--cream-soft);
}

.cr-balance-sub b {
    color: var(--cream);
}

.cr-balance-user {
    margin-top: 10px;
    font-size: 12.5px;
    color: var(--cream-soft);
    word-break: break-all;
}

.cr-balance-user:empty {
    display: none;
}

.cr-body {
    padding-top: 1px;
}

.cr-signin {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 20px;
    margin-top: -40px;
    padding: 20px 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--bg-paper);
    box-shadow: 0 30px 70px -40px rgba(42, 23, 18, 0.45);
    font-size: 15px;
    color: var(--ink-soft);
}

.cr-signin[hidden] {
    display: none;
}

.cr-signin p {
    flex: 1;
    min-width: 240px;
}

.cr-signin b {
    color: var(--ink);
}

.cr-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 20px;
    margin: 56px 0 20px;
}

.cr-head p {
    font-size: 14px;
    color: var(--muted);
}

.cr-h2 {
    font-size: clamp(24px, 2.8vw, 32px);
}

/* Buy credits: rate banner + picker */
.cr-buy {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    overflow: hidden;
    border: 2px solid var(--accent);
    border-radius: 26px;
    background: var(--bg-paper);
    box-shadow: 0 30px 60px -36px rgb(from var(--primary) r g b / 0.5);
}

.cr-rate {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    padding: clamp(26px, 4vw, 44px);
    background:
        radial-gradient(ellipse 80% 70% at 100% 0%, rgb(from var(--primary-3) r g b / 0.9), transparent 70%),
        var(--primary);
    color: var(--cream);
}

.cr-rate-big {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 600;
    line-height: 1.1;
}

.cr-rate-big b {
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--accent);
}

.cr-rate-eq {
    font-size: 26px;
    font-weight: 700;
    color: var(--cream-soft);
}

.cr-rate-sub {
    margin-top: 10px;
    padding: 6px 14px;
    border: 1px solid var(--line-light);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--cream-soft);
}

.cr-buy-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: clamp(22px, 3.5vw, 36px);
}

.cr-buy-btn {
    justify-content: center;
    height: 56px;
    font-size: 16px;
}

/* Picker (shared with checkout) */
.cp-label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-soft);
}

.cp-stepper {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.cp-btn {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 54px;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: var(--bg);
    color: var(--ink);
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}

.cp-btn:hover:not(:disabled),
.cp-btn:focus-visible {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--on-accent);
}

.cp-btn:active:not(:disabled) {
    transform: scale(0.94);
}

.cp-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.cp-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
}

.cp-field {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    height: 60px;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: var(--bg);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.cp-field:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgb(from var(--accent) r g b / 0.25);
}

.cp-field input {
    width: 5.5ch;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    text-align: right;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    -moz-appearance: textfield;
    appearance: textfield;
}

.cp-field input::-webkit-outer-spin-button,
.cp-field input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cp-field .cp-rupee {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    color: var(--muted);
}

.cp-field input {
    text-align: left;
}

.cp-price .cp-unit {
    margin-left: 2px;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    color: var(--ink-soft);
}

.cp-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.cp-chip {
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: 100px;
    background: var(--bg-paper);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink-soft);
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.cp-chip:hover,
.cp-chip:focus-visible {
    border-color: var(--accent-ink);
    color: var(--ink);
}

.cp-chip.is-on {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--cream);
}

.cp-hint {
    margin-top: 10px;
    font-size: 12.5px;
    color: var(--muted);
}

.cp-result {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    padding: 16px 18px;
    border-radius: 16px;
    background: var(--bg-sand);
}

.cp-result-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
}

.cp-price {
    font-family: var(--font-display);
    font-size: clamp(30px, 3.4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.cp-result small {
    white-space: nowrap;
    margin-left: 6px;
    font-size: 13px;
    color: var(--muted);
}

.cp-emails {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.cp-emails b {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    color: var(--accent-ink);
}

.cp-emails span {
    white-space: nowrap;
    font-size: 12.5px;
    color: var(--ink-soft);
}

/* Checkout summary: picker sits in the narrow column */
.co-summary .cp-result {
    display: none;
}

.co-summary .cp-btn {
    width: 46px;
}

.co-summary .cp-field {
    height: 52px;
}

.co-summary .cp-field input {
    font-size: 24px;
}

.cr-how {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 26px;
}

.cr-how li {
    display: flex;
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
    background: var(--bg-sand);
}

.cr-how-icon {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--bg-paper);
}

.cr-how-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--accent-ink);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cr-how b {
    font-size: 15px;
}

.cr-how p {
    margin-top: 2px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--ink-soft);
}

.cr-history {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--bg-paper);
}

.cr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.cr-table[hidden] {
    display: none;
}

.cr-table th {
    padding: 14px 18px;
    background: var(--bg-sand);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-align: left;
    text-transform: uppercase;
    color: var(--muted);
}

.cr-table td {
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    vertical-align: middle;
}

.cr-table td small {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--muted);
}

.cr-table .num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.cr-table .is-plus {
    font-weight: 700;
    color: var(--olive);
}

.cr-table .is-minus {
    font-weight: 700;
    color: var(--danger);
}

.cr-act {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--muted);
    vertical-align: middle;
}

.cr-act-purchase { background: var(--olive); }
.cr-act-bonus { background: var(--accent); }
.cr-act-reveal { background: var(--danger); }

.cr-empty {
    padding: 30px;
    font-size: 14px;
    text-align: center;
    color: var(--muted);
}

.cr-empty[hidden] {
    display: none;
}

/* --------------------------------------------------------------------------
   CHECKOUT page
   -------------------------------------------------------------------------- */
.co-secure {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--cream-soft);
}

.co-secure svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.co-top .cr-title {
    max-width: none;
}

.co-body {
    padding-top: 1px;
}

.co-demo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -34px 0 22px;
    padding: 14px 18px;
    border: 1px dashed rgba(183, 121, 31, 0.6);
    border-radius: 16px;
    background: var(--amber-soft);
    font-size: 14px;
    font-weight: 600;
    color: #7A4F0C;
}

.co-demo svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.co-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
    gap: 24px;
    align-items: start;
}

.co-card {
    margin-bottom: 18px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--bg-paper);
}

.co-legend {
    display: flex;
    align-items: center;
    gap: 10px;
    float: left;
    width: 100%;
    margin-bottom: 18px;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
}

.co-legend + * {
    clear: both;
}

.co-legend span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    font-size: 14px;
    color: var(--cream);
}

.co-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
}

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

.co-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.co-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
}

.co-field label small {
    font-weight: 500;
    color: var(--muted);
}

.co-field input,
.co-prefix {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    font-size: 16px;
    color: var(--ink);
    outline: 0;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.co-field input:focus,
.co-prefix:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgb(from var(--accent) r g b / 0.25);
}

.co-field input::placeholder {
    color: var(--muted);
}

.co-field.is-error input,
.co-field.is-error .co-prefix {
    border-color: var(--danger);
}

.co-prefix {
    display: flex;
    align-items: center;
    gap: 10px;
}

.co-prefix span {
    padding-right: 10px;
    border-right: 1px solid var(--line);
    font-weight: 600;
    color: var(--ink-soft);
}

.co-prefix input {
    height: 100%;
    padding: 0;
    border: 0;
    box-shadow: none !important;
    background: transparent;
}

.co-hint {
    font-size: 12.5px;
    color: var(--muted);
}

.co-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.co-method {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: var(--bg);
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ink-soft);
    cursor: pointer;
    transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.co-method svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.co-method:hover {
    color: var(--ink);
}

.co-method.is-active {
    border-color: var(--primary);
    background: var(--bg-paper);
    color: var(--primary);
    box-shadow: inset 0 0 0 1px var(--primary);
}

[data-theme="dark"] .co-method.is-active {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--accent);
}

.co-pane[hidden] {
    display: none;
}

.co-pane {
    animation: stepIn 0.4s var(--ease);
}

.co-upi {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: start;
}

.co-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--muted);
}

/* Decorative QR placeholder */
.co-qr-box {
    width: 96px;
    height: 96px;
    border: 6px solid var(--bg-paper);
    border-radius: 12px;
    outline: 1px solid var(--line);
    background:
        linear-gradient(90deg, var(--bg-paper) 50%, transparent 0) 0 0 / 12px 12px,
        linear-gradient(var(--bg-paper) 50%, transparent 0) 0 0 / 12px 12px,
        var(--ink);
    opacity: 0.85;
}

.co-apps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.co-apps span {
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 100px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-soft);
}

.co-cardno {
    position: relative;
}

.co-cardno input {
    padding-right: 100px;
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
}

.co-brand {
    position: absolute;
    top: 50%;
    right: 10px;
    padding: 4px 9px;
    border-radius: 6px;
    background: var(--primary);
    font-size: 11.5px;
    font-weight: 800;
    color: var(--cream);
    transform: translateY(-50%);
}

.co-brand[hidden],
.co-brand:empty {
    display: none;
}

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

.co-bank {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 8px;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: var(--bg);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

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

.co-bank-logo {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-sand);
    font-size: 12px;
    font-weight: 800;
    color: var(--ink);
}

.co-bank-name {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink-soft);
}

.co-bank:has(input:checked) {
    border-color: var(--primary);
    background: var(--bg-paper);
    box-shadow: inset 0 0 0 1px var(--primary);
}

.co-bank:has(input:checked) .co-bank-logo {
    background: var(--primary);
    color: var(--cream);
}

.co-bank:has(input:focus-visible) {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.co-error {
    min-height: 20px;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--danger);
}

.co-pay {
    justify-content: center;
    width: 100%;
    height: 58px;
    font-size: 16px;
}

.co-pay > svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
}

.co-pay.is-loading .btn-label,
.co-pay.is-loading > svg {
    display: none;
}

.co-terms {
    margin-top: 12px;
    font-size: 12.5px;
    text-align: center;
    color: var(--muted);
}

.co-terms a {
    color: var(--ink-soft);
    text-decoration: underline;
}

/* Summary */
.co-summary {
    position: sticky;
    top: 100px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--bg-paper);
    box-shadow: 0 30px 70px -40px rgba(42, 23, 18, 0.45);
}

.co-sum-title {
    margin-bottom: 16px;
    font-size: 19px;
}

.co-lines {
    display: grid;
    gap: 10px;
    margin: 20px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 14.5px;
}

.co-lines div {
    display: flex;
    justify-content: space-between;
    color: var(--ink-soft);
}

.co-lines dd {
    font-variant-numeric: tabular-nums;
}

.co-total {
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
    font-size: 18px;
    font-weight: 800;
    color: var(--ink) !important;
}

.co-after {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--olive-soft);
    font-size: 13.5px;
    color: var(--ink-soft);
}

.co-after b {
    color: var(--olive);
}

/* Processing / success overlay */
.co-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(28, 14, 10, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: authFade 0.3s ease;
}

.co-overlay[hidden],
.co-processing[hidden],
.co-success[hidden] {
    display: none;
}

.co-overlay-card {
    width: min(420px, 100%);
    padding: 34px 30px 28px;
    border-radius: 26px;
    background: var(--bg-paper);
    text-align: center;
    box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.6);
    animation: authIn 0.45s var(--ease);
}

.co-ring {
    display: block;
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border: 5px solid var(--bg-sand);
    border-top-color: var(--accent-ink);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

.co-receipt {
    display: grid;
    gap: 8px;
    margin: 4px 0 22px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--bg-sand);
    font-size: 13.5px;
    text-align: left;
}

.co-receipt div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.co-receipt dt {
    color: var(--muted);
}

.co-receipt dd {
    font-weight: 700;
    text-align: right;
    word-break: break-all;
}

.co-success-actions {
    display: grid;
    gap: 10px;
}

.co-success-actions .btn {
    justify-content: center;
}

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

/* Credits + checkout: responsive */
@media (max-width: 900px) {
    .cr-how,
    .cr-buy {
        grid-template-columns: 1fr;
    }

    .co-grid {
        grid-template-columns: 1fr;
    }

    .co-summary {
        position: static;
        order: -1;
    }
}

@media (max-width: 640px) {
    .credit-pill {
        height: 42px;
        padding-right: 12px;
    }

    .credit-pill-label {
        display: none;
    }

    .cr-balance {
        width: 100%;
    }

    .co-fields,
    .co-upi {
        grid-template-columns: 1fr;
    }

    .co-qr {
        display: none;
    }

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

    .co-card {
        padding: 18px;
    }

    .co-method {
        flex-direction: column;
        gap: 2px;
        height: 60px;
        font-size: 13px;
    }

    /* History table becomes stacked cards */
    .cr-table thead {
        display: none;
    }

    .cr-table tr {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 2px 12px;
        padding: 14px 16px;
        border-top: 1px solid var(--line);
    }

    .cr-table tr:first-child {
        border-top: 0;
    }

    .cr-table td {
        padding: 0;
        border: 0;
    }

    .cr-table td[data-label="Date"] {
        grid-column: 1 / -1;
        font-size: 12px;
        color: var(--muted);
    }

    .cr-table td[data-label="Amount"] {
        grid-column: 2;
        font-size: 12.5px;
        color: var(--muted);
    }
}

/* --- Search result card (after "Find Email"; the bar hides) --- */
.search-result {
    display: none;
    padding: clamp(20px, 3vw, 30px);
    border-radius: 26px;
    background: var(--bg-paper);
    color: var(--ink);
    text-align: left;
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgb(from var(--cream) r g b / 0.1);
    outline: none;
}

/* Result shows under the search bar (the bar stays so you can search again) */
.search.is-result .search-examples {
    display: none;
}

.search.is-result .search-result {
    display: block;
    margin-top: 18px;
    animation: resultIn 0.6s var(--ease);
}

@keyframes resultIn {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to { opacity: 1; transform: none; }
}

.sr-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.sr-logo {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: var(--primary);
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    color: var(--cream);
}

.sr-title {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sr-title b {
    overflow: hidden;
    font-family: var(--font-display);
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sr-title span {
    font-size: 14px;
    color: var(--ink-soft);
}

.sr-type {
    flex-shrink: 0;
    align-self: flex-start;
    padding: 5px 11px;
    border-radius: 100px;
    background: var(--accent-soft);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--accent-ink);
}

.sr-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 22px 0 16px;
    padding: 18px 20px;
    border-radius: 18px;
    background: var(--bg-sand);
}

.sr-count {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 10px;
}

.sr-count b {
    font-family: var(--font-display);
    font-size: clamp(34px, 4vw, 46px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

.sr-count span {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-soft);
}

/* Avatar stack */
.sr-people {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.sr-people i {
    width: 38px;
    height: 38px;
    margin-left: -10px;
    border: 3px solid var(--bg-sand);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 38%, var(--bg-paper) 0 22%, transparent 23%),
        radial-gradient(ellipse 60% 45% at 50% 100%, var(--bg-paper) 0 98%, transparent 100%),
        var(--primary);
}

.sr-people i:first-child { margin-left: 0; }
.sr-people i:nth-child(2) { background-color: var(--accent-ink); }
.sr-people i:nth-child(3) { background-color: #B7791F; }
.sr-people i:nth-child(4) { background-color: var(--olive); }

.search-result[data-people="1"] .sr-people i:nth-child(n+2) { display: none; }
.search-result[data-people="2"] .sr-people i:nth-child(n+3) { display: none; }
.search-result[data-people="3"] .sr-people i:nth-child(n+4) { display: none; }

.search-result[data-has-count="false"] .sr-count b {
    font-size: clamp(28px, 3.8vw, 40px);
    letter-spacing: -0.02em;
}

.search-result[data-has-count="false"] .sr-people em {
    font-weight: 600;
    color: var(--accent-ink);
}

.sr-people em {
    margin-left: 8px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    color: var(--ink-soft);
}

.sr-meta {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin-bottom: 22px;
    font-size: 14px;
    color: var(--ink-soft);
}

.sr-meta li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.sr-meta svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--olive);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sr-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
}

.sr-get {
    height: 54px;
    padding: 0 28px;
    font-size: 15px;
}

.sr-get svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s var(--ease);
}

.sr-get:hover svg {
    transform: translateX(4px);
}

.sr-new {
    border: 0;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-soft);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sr-new:hover,
.sr-new:focus-visible {
    color: var(--accent-ink);
}

/* Screen 2 preview bonus callout */
.sr-bonus-callout {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
    background: rgb(from var(--accent) r g b / 0.08);
    border: 1px solid rgb(from var(--accent) r g b / 0.22);
    border-radius: 10px;
    font-size: 13px;
    color: var(--ink);
    font-weight: 500;
    line-height: 1.4;
}

.sr-bonus-callout .sr-bonus-icon {
    font-size: 15px;
    line-height: 1;
    flex-shrink: 0;
}

[data-theme="dark"] .sr-bonus-callout {
    color: var(--cream);
    background: rgb(from var(--accent) r g b / 0.14);
    border-color: rgb(from var(--accent) r g b / 0.35);
}

.sr-note {
    margin-top: 14px;
    font-size: 12px;
    color: var(--muted);
}

@media (max-width: 640px) {
    .search-result {
        border-radius: 22px;
    }

    .sr-head {
        flex-wrap: wrap;
    }

    /* type badge on its own row above the name */
    .sr-type {
        order: -1;
        margin-right: 100%;   /* forces the logo + name onto the next row */
        margin-bottom: -2px;
    }

    .sr-logo {
        width: 46px;
        height: 46px;
        font-size: 17px;
    }

    .sr-stats {
        padding: 14px 16px;
    }

    .sr-people i {
        width: 32px;
        height: 32px;
    }

    .sr-people em {
        display: none;
    }

    .sr-get {
        width: 100%;
        justify-content: center;
    }

    .sr-actions {
        justify-content: center;
    }
}

.search-examples {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    font-size: 13px;
    color: var(--cream-soft);
}

.search-examples em {
    padding: 6px 12px;
    border: 1px solid rgb(from var(--accent) r g b / 0.55);
    border-radius: 100px;
    background: rgb(from var(--accent) r g b / 0.16);
    font-family: var(--font-sans);
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    color: var(--accent);
    cursor: default;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}

/* Tablet and phone: label on its own line so the chips wrap evenly */
@media (max-width: 900px) {
    .search-examples > span {
        flex-basis: 100%;
    }
}

/* Lights up when the typed search matches that type */
.search-examples em.is-on {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--on-accent);
}

[data-theme="dark"] .search-tag {
    background: rgb(from var(--accent) r g b / 0.16);
    color: var(--accent);
}

.search-note {
    margin-top: 14px;
    font-size: 13px;
    color: rgb(from var(--cream) r g b / 0.6);
}

.hero-trust {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 28px;
    margin-top: 42px;
    font-size: 14px;
    color: var(--cream-soft);
}

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

.hero-trust svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 26px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgb(from var(--cream) r g b / 0.5);
    transform: translateX(-50%);
}

.hero-scroll i {
    position: relative;
    width: 1px;
    height: 46px;
    background: var(--line-light);
    overflow: hidden;
}

.hero-scroll i::after {
    content: '';
    position: absolute;
    left: 0;
    top: -50%;
    width: 100%;
    height: 50%;
    background: var(--accent);
    animation: scrollLine 1.8s var(--ease-in-out) infinite;
}

@keyframes scrollLine {
    to { top: 100%; }
}

/* Word split mask */
.w {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding: 0.04em 0.02em 0.1em;
    margin: -0.04em -0.02em -0.1em;
}

.w > span {
    display: inline-block;
}

/* --------------------------------------------------------------------------
   HOW IT WORKS — previous hero, redesigned as an app preview
   -------------------------------------------------------------------------- */
.how {
    position: relative;
    padding: clamp(100px, 13vw, 170px) 0;
    background: var(--bg);   /* opaque so its curved edge shows over the hero */
}

.how-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(48px, 7vw, 110px);
    align-items: center;
}

.how-copy .section-title {
    margin-bottom: 26px;
}

.how-text {
    max-width: 560px;
    margin-bottom: 26px;
    color: var(--ink-soft);
}

.how-audience {
    max-width: 540px;
    margin-bottom: 36px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
}

.rotator {
    position: relative;
    display: inline-block;
    height: 1.4em;
    vertical-align: bottom;
    overflow: hidden;
    color: var(--accent-ink);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.2em;
    transition: width 0.5s var(--ease);
}

.rotator span {
    position: absolute;
    left: 0;
    top: 0;
    white-space: nowrap;
    transform: translateY(110%);
    transition: transform 0.6s var(--ease);
}

.rotator span.is-active {
    position: relative;
    transform: none;
}

.rotator span.is-leaving {
    transform: translateY(-110%);
}

.how-visual {
    position: relative;
    min-width: 0;   /* let the long typed URL truncate instead of widening the column */
}

.finder {
    position: relative;
    padding: 24px;
    border-radius: 26px;
    background: var(--bg-paper);
    border: 1px solid var(--line);
    box-shadow: 0 50px 90px -45px rgba(42, 23, 18, 0.45);
}

.finder-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.finder-dots {
    display: flex;
    gap: 6px;
}

.finder-dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-sand);
}

.finder-dots i:first-child { background: var(--accent); }

.finder-title {
    font-weight: 600;
    font-size: 14px;
}

.finder-tag {
    margin-left: auto;
    padding: 4px 10px;
    border-radius: 100px;
    background: var(--bg-sand);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.finder-input {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 58px;
    padding: 0 8px 0 14px;
    border-radius: 16px;
    background: var(--bg);
    border: 1px solid var(--line);
    font-size: 14.5px;
    white-space: nowrap;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.finder-input .search-li {
    width: 22px;
    height: 22px;
}

.finder[data-state="typing"] .finder-input {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgb(from var(--accent) r g b / 0.18);
}

.finder-input .mono {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.caret {
    flex-shrink: 0;
    width: 1.5px;
    height: 18px;
    background: var(--ink);
    animation: blink 1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.finder-go {
    margin-left: auto;
    flex-shrink: 0;
    padding: 10px 16px;
    border-radius: 12px;
    background: var(--primary);
    color: var(--cream);
    font-size: 13px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s var(--ease);
}

.finder[data-state="searching"] .finder-go {
    background: var(--accent);
    color: var(--ink);
    transform: scale(0.96);
}

.finder-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 18px 0;
}

.finder-steps li {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
    background: var(--bg);
    font-size: 12.5px;
    line-height: 1.3;
    color: var(--muted);
    transition: color 0.3s ease, background-color 0.3s ease;
}

.finder-steps i {
    position: relative;
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--line);
    border-radius: 50%;
}

.finder-steps li.is-active i {
    border-color: var(--bg-sand);
    border-top-color: var(--accent);
    animation: spin 0.7s linear infinite;
}

.finder-steps li.is-done {
    background: var(--olive-soft);
    color: var(--ink);
}

.finder-steps li.is-done i {
    border-color: var(--olive);
    background: var(--olive);
}

.finder-steps li.is-done i::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid var(--cream);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.finder-result {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: center;
    padding: 18px;
    border-radius: 18px;
    background: var(--primary);
    color: var(--cream);
    opacity: 0.35;
    filter: blur(3px);
    transform: translateY(8px);
    transition: opacity 0.6s var(--ease), filter 0.6s var(--ease), transform 0.6s var(--ease);
}

.finder[data-state="found"] .finder-result {
    opacity: 1;
    filter: none;
    transform: none;
}

.finder-avatar {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 18px;
}

.finder-person {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.finder-person strong { font-size: 16px; }

.finder-person span {
    font-size: 13px;
    color: var(--cream-soft);
}

.finder-person .finder-company {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    color: var(--cream);
}

.finder-company b {
    font-weight: 700;
}

.finder-company svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.finder-email {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgb(from var(--cream) r g b / 0.08);
    font-size: 14px;
    word-break: break-all;
}

.verified-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 100px;
    background: var(--olive);
    color: var(--cream);
    font-size: 12px;
    font-weight: 700;
    transform: scale(0.6);
    opacity: 0;
    transition: transform 0.5s var(--ease-back) 0.25s, opacity 0.3s ease 0.25s;
}

.verified-chip svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.finder[data-state="found"] .verified-chip {
    transform: scale(1);
    opacity: 1;
}

.how-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 16px;
    font-size: 14px;
    box-shadow: 0 20px 40px -20px rgba(42, 23, 18, 0.5);
}

.how-badge-1 {
    top: -30px;
    right: -18px;
    background: var(--accent);
    color: var(--ink);
    transform: rotate(3deg);
}

.how-badge-1 b {
    font-family: var(--font-display);
    font-size: 17px;
}

.how-badge-2 {
    bottom: -24px;
    left: -18px;
    background: var(--primary);
    color: var(--cream);
    transform: rotate(-3deg);
}

.how-badge-2 svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */
.marquee {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg-paper);
    transition: transform 0.6s var(--ease);
}

.marquee-row {
    padding: 22px 0;
}

.marquee-row-alt {
    padding: 14px 0;
    background: var(--primary);
    color: var(--cream);
}

.marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.marquee-reverse {
    animation-direction: reverse;
    animation-duration: 30s;
}

.marquee span {
    padding: 0 30px;
    font-family: var(--font-display);
    font-size: clamp(24px, 2.8vw, 38px);
    font-style: italic;
    font-weight: 700;
    white-space: nowrap;
}

.marquee i {
    font-style: normal;
    font-size: 20px;
    color: var(--accent-ink);
}

.marquee b {
    padding: 0 26px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.marquee em {
    font-style: normal;
    color: var(--accent);
}

@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   THE PROBLEM — native sticky scroll story (no pinning library)
   -------------------------------------------------------------------------- */
.void {
    position: relative;
    background: var(--bg);
}

.js .void {
    height: 300vh;
}

.void-sticky {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.js .void-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
}

.void-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.void-ui {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
    min-height: 100vh;
    padding-top: 110px;
    padding-bottom: 48px;
    pointer-events: none;
}

.void-title {
    max-width: 780px;
    font-size: clamp(32px, 4.2vw, 58px);
}

.vt {
    display: block;
}

.js .void .vt-2 {
    clip-path: inset(0 100% -0.2em 0);
    transition: clip-path 0.9s var(--ease);
}

.js .void.is-step-1 .vt-2,
.js .void.is-step-2 .vt-2 {
    clip-path: inset(0 0 -0.2em 0);
}

.void-steps {
    list-style: none;
    align-self: end;
    display: grid;
    gap: 10px;
    max-width: 540px;
    pointer-events: auto;
}

.void-step {
    border-radius: 18px;
    background: var(--glass);
    border: 1px solid var(--line);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0.5;
    transition: opacity 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.void-step.is-active {
    opacity: 1;
    border-color: rgb(from var(--accent) r g b / 0.6);
    box-shadow: 0 24px 50px -30px rgba(42, 23, 18, 0.4);
}

.void-step-head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    width: 100%;
    padding: 16px 20px;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.void-num {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent-ink);
}

.void-lead {
    font-family: var(--font-display);
    font-size: clamp(18px, 1.7vw, 22px);
    line-height: 1.3;
}

/* Collapsible body (grid-rows trick, no height measuring) */
.void-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s var(--ease);
}

.void-body > div {
    min-height: 0;
    overflow: hidden;
    padding: 0 20px 0 47px;
}

.void-step.is-active .void-body {
    grid-template-rows: 1fr;
}

.void-step.is-active .void-body > div {
    padding-bottom: 18px;
}

.void-body p {
    font-size: 15px;
    color: var(--ink-soft);
}

.void-clock {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 8px 14px;
    border-radius: 100px;
    background: var(--primary);
    color: var(--cream);
    font-size: 14px;
}

.void-clock svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    stroke-linecap: round;
}

.void-clock b {
    font-family: var(--font-mono);
    font-weight: 500;
}

.void-bridge {
    font-family: var(--font-hand);
    font-size: 28px !important;
    line-height: 1.1;
    color: var(--accent-ink) !important;
}

.void-pair {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.void-pair span {
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--primary);
    color: var(--cream);
    font-size: 14px;
    font-weight: 600;
}

.void-pair span:last-child {
    background: var(--olive);
}

.void-rail {
    position: absolute;
    right: var(--gutter);
    top: 50%;
    width: 3px;
    height: 160px;
    border-radius: 3px;
    background: var(--line);
    transform: translateY(-50%);
    overflow: hidden;
}

.void-rail span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: top;
}

/* No JS / reduced motion: plain stacked layout, everything open */
html:not(.js) .void-step,
.no-scroll-story .void-step {
    opacity: 1;
}

html:not(.js) .void-body,
.no-scroll-story .void-body {
    grid-template-rows: 1fr;
}

/* --------------------------------------------------------------------------
   Statement (scroll scrub)
   -------------------------------------------------------------------------- */
.statement {
    padding: clamp(90px, 12vw, 160px) 0;
}

.statement-text {
    max-width: 1120px;
    font-family: var(--font-display);
    font-size: clamp(28px, 3.8vw, 52px);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.sw {
    opacity: 0.14;
    transition: opacity 0.25s linear;
}

/* --------------------------------------------------------------------------
   STOP GUESSING — outbox simulation
   -------------------------------------------------------------------------- */
.guess {
    position: relative;
    padding: clamp(100px, 13vw, 170px) 0;
    background:
        radial-gradient(ellipse 60% 50% at 100% 0%, rgb(from var(--primary-3) r g b / 0.9), transparent 70%),
        var(--primary);
    color: var(--cream);
    overflow: hidden;
}

.guess-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(48px, 6vw, 90px);
    align-items: center;
}

.guess .section-title {
    margin-bottom: 30px;
}

.guess .section-title em {
    color: var(--accent);
}

.maybe-list {
    list-style: none;
    display: grid;
    gap: 12px;
    margin: 24px 0 36px;
}

.maybe-list li {
    display: flex;
    align-items: baseline;
    gap: 14px;
    font-family: var(--font-display);
    font-size: clamp(18px, 1.7vw, 21px);
    line-height: 1.3;
    color: var(--cream-soft);
    transition: color 0.4s ease;
}

.maybe-list i {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid rgb(from var(--cream) r g b / 0.4);
    transform: translateY(-2px);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.maybe-list span {
    background: linear-gradient(var(--danger), var(--danger)) 0 58% / 0 2px no-repeat;
    transition: background-size 0.6s var(--ease), color 0.4s ease;
}

.maybe-list li.is-active { color: var(--cream); }

.maybe-list li.is-active i {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 0 6px rgb(from var(--accent) r g b / 0.22);
}

.maybe-list li.is-unknown i { border-color: var(--amber); background: var(--amber); }

.maybe-list li.is-failed { color: rgb(from var(--cream) r g b / 0.45); }

.maybe-list li.is-failed i {
    border-color: var(--danger);
    background: var(--danger);
    box-shadow: none;
}

.maybe-list li.is-failed span { background-size: 100% 2px; }

.verify-note {
    display: flex;
    gap: 16px;
    padding: 22px 24px;
    border: 1px solid var(--line-light);
    border-radius: 20px;
    background: rgb(from var(--cream) r g b / 0.05);
}

.verify-note svg {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.verify-note p { color: var(--cream-soft); }
.verify-note strong { color: var(--cream); }

/* Outbox card */
.outbox {
    border-radius: 26px;
    background: var(--bg-paper);
    color: var(--ink);
    overflow: hidden;
    box-shadow: 0 60px 100px -50px rgba(0, 0, 0, 0.6);
}

.outbox-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}

.outbox-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
}

.outbox-title svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--accent-ink);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.outbox-to {
    font-size: 13px;
    color: var(--muted);
}

.outbox-to b {
    color: var(--ink);
    font-weight: 600;
}

.outbox-replay {
    margin-left: auto;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 100px;
    background: var(--bg-paper);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.outbox-replay:hover,
.outbox-replay:focus-visible {
    background: var(--accent);
    border-color: var(--accent);
    color: #1A0E05;
}

.ob-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4px 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    transition: opacity 0.4s ease, background-color 0.5s ease;
}

.ob-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ob-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.ob-main code {
    font-family: var(--font-mono);
    font-size: clamp(13px, 1.25vw, 15px);
    color: var(--ink);
    word-break: break-all;
}

.ob-status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 30px;
}

.ob-bar {
    position: relative;
    width: 72px;
    height: 4px;
    border-radius: 4px;
    background: var(--bg-sand);
    overflow: hidden;
}

.ob-bar i {
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
}

.ob-text {
    display: none;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
}

.ob-text::before {
    margin-right: 6px;
}

.ob-detail {
    grid-column: 1 / -1;
    max-height: 0;
    overflow: hidden;
    font-size: 13px;
    color: var(--ink-soft);
    opacity: 0;
    transition: max-height 0.5s var(--ease), opacity 0.4s ease, margin 0.4s ease;
}

/* Row states (set by JS): idle → sending → done */
.js .ob-row[data-state="idle"] {
    opacity: 0.35;
}

.ob-row[data-state="sending"] .ob-bar i {
    animation: send 0.9s var(--ease-in-out) forwards;
}

@keyframes send { to { transform: scaleX(1); } }

.ob-row[data-state="done"] .ob-bar,
html:not(.js) .ob-bar {
    display: none;
}

.ob-row[data-state="done"] .ob-text,
html:not(.js) .ob-text {
    display: inline-flex;
    animation: popIn 0.45s var(--ease-back);
}

.ob-row[data-state="done"] .ob-detail,
html:not(.js) .ob-detail {
    max-height: 60px;
    margin-top: 6px;
    opacity: 1;
}

@keyframes popIn {
    from { transform: scale(0.6); opacity: 0; }
    to { transform: none; opacity: 1; }
}

.ob-row[data-result="pending"] .ob-text { background: var(--amber-soft); color: #7A4F0C; }
.ob-row[data-result="pending"] .ob-text::before { content: '?'; }
.ob-row[data-result="bounced"] .ob-text,
.ob-row[data-result="wrong"] .ob-text { background: var(--danger-soft); color: #9A3420; }
.ob-row[data-result="bounced"] .ob-text::before { content: '\21A9'; }
.ob-row[data-result="wrong"] .ob-text::before { content: '\2715'; }
.ob-row[data-result="ok"] .ob-text { background: var(--olive); color: #FFF8E8; }
.ob-row[data-result="ok"] .ob-text::before { content: '\2713'; }

.ob-row[data-result="bounced"][data-state="done"],
.ob-row[data-result="wrong"][data-state="done"] {
    background: rgba(220, 70, 60, 0.06);
}

.ob-row[data-result="bounced"][data-state="done"] code,
.ob-row[data-result="wrong"][data-state="done"] code {
    text-decoration: line-through;
    text-decoration-color: var(--danger);
    color: var(--muted);
}

.ob-row-verified[data-state="done"] {
    background: rgba(31, 157, 85, 0.1);
}

.ob-row-verified .ob-label {
    color: var(--olive);
}

.ob-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-ink);
    transition: opacity 0.4s ease;
}

.ob-divider::before,
.ob-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

.js .ob-divider:not(.is-on) {
    opacity: 0.3;
}

.outbox-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    padding: 14px 20px;
    background: var(--bg-sand);
    font-size: 13px;
    color: var(--ink-soft);
}

.outbox-foot b {
    font-family: var(--font-mono);
    font-weight: 500;
    color: var(--ink);
}

.outbox-foot .ob-good {
    margin-left: auto;
    color: var(--olive);
}

.outbox-foot .ob-good b {
    color: var(--olive);
}

/* --------------------------------------------------------------------------
   Use cases — stacking cards (inspired by beetogreen.com): each card sticks
   near the top and the next one slides up over it; main.js tilts/shrinks the
   covered card. No overflow:hidden here — it would break position: sticky.
   -------------------------------------------------------------------------- */
.cases {
    position: relative;
    padding: clamp(90px, 12vw, 150px) 0 calc(var(--curve-h) + clamp(60px, 8vw, 110px));
    /* deep espresso: stands apart from the red sections above and below */
    background:
        radial-gradient(ellipse 55% 35% at 88% 0%, rgb(from var(--accent) r g b / 0.14), transparent 70%),
        radial-gradient(ellipse 50% 40% at 0% 60%, rgb(from var(--primary-3) r g b / 0.16), transparent 70%),
        color-mix(in srgb, var(--ink-deep) 72%, var(--primary));   /* warm brown, lighter than near-black */
    color: var(--cream);
}

/* Grid on the dark espresso: cream lines, marigold crossing dots.
   Stays fixed in view while the cards stack over it (background-attachment). */
.cases-grid {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgb(from var(--accent) r g b / 0.45) 1.3px, transparent 1.9px),
        linear-gradient(rgb(from var(--cream) r g b / 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgb(from var(--cream) r g b / 0.06) 1px, transparent 1px);
    background-size: 56px 56px;
    background-position: -28px -28px, 0 0, 0 0;
    background-attachment: fixed;
    /* soft at the edges and fading out where the next section curves in */
    -webkit-mask-image: linear-gradient(180deg, #000 0, #000 85%, transparent 100%), radial-gradient(ellipse 90% 60% at 50% 40%, #000 40%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(180deg, #000 0, #000 85%, transparent 100%), radial-gradient(ellipse 90% 60% at 50% 40%, #000 40%, transparent 100%);
    mask-composite: intersect;
    pointer-events: none;
}

.cases > .container {
    position: relative;
}

.cases-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: clamp(40px, 5vw, 64px);
}

.cases .section-title {
    color: var(--cream);
}

.cases .section-title em {
    color: var(--accent);
}

.cases-side {
    max-width: 380px;
}

.cases-side p {
    font-size: 18px;
    color: var(--cream-soft);
}

.cases-count {
    display: inline-block;
    margin-top: 18px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--cream-soft);
}

.cases-count b {
    font-weight: 500;
    color: var(--accent);
}

/* The stack */
.stack {
    --stack-top: clamp(84px, 11vh, 120px);
}

.stack-card {
    position: sticky;
    top: calc(var(--stack-top) + var(--i) * 10px);
    display: grid;
    place-items: center;
    height: min(560px, calc(100vh - var(--stack-top) - 40px));
    min-height: 380px;
    margin-bottom: 22vh;
    overflow: hidden;
    border-radius: clamp(20px, 2.4vw, 32px);
    background: var(--c-bg);
    color: var(--c-ink);
    text-align: center;
    box-shadow: 0 -20px 60px -30px rgba(0, 0, 0, 0.45), 0 40px 80px -40px rgba(0, 0, 0, 0.5);
    transform-origin: 50% 0;
    will-change: transform;
}

.stack-card:last-child {
    margin-bottom: 0;
}

/* Big soft squiggle behind the text */
.stack-squiggle {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.stack-squiggle path {
    fill: none;
    stroke: var(--c-soft);
    stroke-width: 120;
    stroke-linecap: round;
}

.stack-squiggle.is-flip {
    transform: scaleX(-1);
}

.stack-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 760px;
    padding: 32px clamp(20px, 4vw, 48px);
}

.stack-top {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: clamp(14px, 2vw, 24px);
}

.stack-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--c-ink);
}

.stack-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--c-bg);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stack-num {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    opacity: 0.75;
}

.stack-title {
    font-size: clamp(48px, 8vw, 112px);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.04em;
    color: var(--c-ink);
}

.stack-sub {
    margin-top: clamp(12px, 1.6vw, 20px);
    font-family: var(--font-display);
    font-size: clamp(22px, 2.8vw, 36px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.stack-desc {
    max-width: 440px;
    margin-top: 12px;
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.5;
    opacity: 0.85;
}

@media (max-width: 640px) {
    .stack-card {
        min-height: 340px;
        margin-bottom: 16vh;
    }

    .stack-squiggle path {
        stroke-width: 90;
    }
}

/* --------------------------------------------------------------------------
   CTA — Find an Email form
   -------------------------------------------------------------------------- */
.cta {
    position: relative;
    padding: clamp(100px, 13vw, 170px) 0;
    background: var(--primary);
    color: var(--cream);
    overflow: hidden;
}

.cta-shape {
    position: absolute;
    top: -30%;
    right: -15%;
    width: clamp(420px, 55vw, 820px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgb(from var(--accent) r g b / 0.28), transparent 65%);
    pointer-events: none;
}

.cta-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 90px);
    align-items: center;
}

.cta-title {
    font-size: clamp(32px, 4.2vw, 58px);
    margin-bottom: 28px;
}

.cta-title em {
    color: var(--accent);
}

.cta-text {
    max-width: 520px;
    font-size: 18px;
    color: var(--cream-soft);
}

.letter-wrap {
    position: relative;
}

/* "Start with what you have" — tiles that jump back to the hero search */
.cta-grid > * {
    min-width: 0;
}

.jump {
    padding: clamp(22px, 3vw, 32px);
    border: 2px solid rgb(from var(--accent) r g b / 0.6);
    border-radius: 26px;
    background: var(--bg-paper);
    color: var(--ink);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.55);
}

.jump-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.jump-title {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.2vw, 26px);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.jump-head .logo-mark {
    width: 44px;
}

.jump-grid {
    display: grid;
    gap: 8px;
}

.jump-tile {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 12px 16px 12px 12px;
    border: 1.5px solid var(--line);
    border-radius: 16px;
    background: var(--bg);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.25s ease, transform 0.3s var(--ease), background-color 0.25s ease;
}

.jump-tile:hover,
.jump-tile:focus-visible {
    border-color: var(--accent);
    background: var(--bg-paper);
    transform: translateX(4px);
    outline: none;
}

.jump-icon {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--accent-soft);
}

.jump-icon > svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--accent-ink);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.jump-icon .search-li {
    width: 24px;
    height: 24px;
}

.jump-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.jump-text b {
    font-size: 15px;
}

.jump-text small {
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jump-arrow {
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-ink);
    opacity: 0.5;
    transition: opacity 0.25s ease, transform 0.3s var(--ease);
}

.jump-tile:hover .jump-arrow,
.jump-tile:focus-visible .jump-arrow {
    opacity: 1;
    transform: translateY(-3px);
}

.jump-go {
    justify-content: center;
    width: 100%;
    margin-top: 18px;
}

.jump-note {
    margin-top: 14px;
    font-size: 13px;
    text-align: center;
    color: var(--ink-soft);
}

.jump-note a {
    font-weight: 700;
    color: var(--accent-ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.letter-form {
    padding: 2px;
    border-radius: 26px;
    background: linear-gradient(135deg, var(--accent), rgb(from var(--cream) r g b / 0.25) 45%, var(--primary-3));
    transform-origin: 50% 0;
    transition: transform 0.9s var(--ease-in-out), opacity 0.6s ease 0.4s;
}

.lf-paper {
    padding: 30px 32px 26px;
    border-radius: 24px;
    background: var(--bg-paper);
    color: var(--ink);
}

.lf-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.lf-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.lf-field {
    display: grid;
    grid-template-columns: 64px 1fr;
    align-items: baseline;
    gap: 4px 14px;
    padding: 18px 0 10px;
    border-bottom: 1.5px solid var(--line);
    transition: border-color 0.3s ease;
}

.lf-field input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--ink);
}

.lf-field input::placeholder {
    color: var(--muted);
    opacity: 0.75;
}

.lf-field small {
    grid-column: 2;
    font-size: 12px;
    color: var(--muted);
}

.lf-field:focus-within {
    border-bottom-color: var(--accent);
}

.lf-send {
    width: 100%;
    margin-top: 26px;
}

.lf-send .btn-spinner {
    border-color: rgb(from var(--cream) r g b / 0.3);
    border-top-color: var(--cream);
}

.find-note {
    margin-top: 16px;
    font-size: 12.5px;
    color: var(--muted);
}

.find-note a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Sent: the card folds away */
.letter-form.is-sent {
    transform: perspective(900px) rotateX(70deg) translateY(-120px) scale(0.6);
    opacity: 0;
    pointer-events: none;
}

.find-message {
    display: none;
    margin-top: 18px;
    padding: 16px 20px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
}

.find-message.is-success {
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 28px;
    text-align: center;
    transform: translateY(-50%);
    font-family: var(--font-display);
    font-size: 30px;
    line-height: 1.25;
    color: var(--cream);
    animation: fadeIn 0.8s ease 0.8s both;
}

.find-message.is-error {
    display: block;
    background: rgba(220, 70, 60, 0.22);
    color: #FFE4B0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    position: relative;
    padding: clamp(70px, 9vw, 110px) 0 32px;
    background: var(--ink-deep);
    color: var(--cream);
    overflow: hidden;
}

.airmail-stripe {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-3), var(--accent) 50%, var(--primary-3));
}

.footer-top {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 60px;
}

.footer-brand p {
    max-width: 340px;
    margin-top: 20px;
    font-size: 15px;
    color: rgb(from var(--cream) r g b / 0.6);
}

.footer-brand .brand-name em {
    color: var(--accent);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 15px;
}

.footer-col h4 {
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgb(from var(--cream) r g b / 0.45);
}

.footer-col a,
.footer-col span,
.footer-col button {
    color: rgb(from var(--cream) r g b / 0.82);
    width: fit-content;
    word-break: break-word;
}

.footer-col a,
.footer-col button {
    display: inline-block;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    text-align: left;
    cursor: pointer;
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: background-size 0.4s var(--ease), color 0.3s ease;
}

.footer-col a:hover,
.footer-col button:hover {
    color: var(--cream);
    background-size: 100% 1px;
}

/* Font size is fitted to the container width by main.js (fitWordmark);
   this is a safe fallback that fits without JS */
.footer-wordmark {
    font-family: var(--font-display);
    font-size: clamp(36px, 9.6vw, 140px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    padding-right: 0.06em;   /* room for the italic overhang */
    white-space: nowrap;
    color: transparent;
    -webkit-text-stroke: 1px rgb(from var(--cream) r g b / 0.3);
    user-select: none;
}

.footer-wordmark em {
    color: transparent;
    -webkit-text-stroke: 1px rgb(from var(--accent) r g b / 0.65);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-top: 26px;
    margin-top: 30px;
    border-top: 1px solid var(--line-light);
    font-size: 13px;
    color: rgb(from var(--cream) r g b / 0.5);
}

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */
.legal-hero {
    padding: 170px 0 60px;
    border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
    font-size: clamp(38px, 5.4vw, 72px);
    margin-bottom: 18px;
}

.legal-hero p {
    color: var(--ink-soft);
}

.legal-body {
    max-width: 800px;
    padding: 70px 0 130px;
}

.legal-body h2 {
    margin: 52px 0 16px;
    font-size: clamp(26px, 3vw, 34px);
}

.legal-body h2:first-child {
    margin-top: 0;
}

.legal-body h3 {
    margin: 26px 0 10px;
    font-size: 21px;
}

.legal-body p,
.legal-body li {
    color: var(--ink-soft);
}

.legal-body p + p {
    margin-top: 14px;
}

.legal-body ul {
    display: grid;
    gap: 8px;
    margin: 14px 0;
    padding-left: 22px;
}

.legal-body li::marker {
    color: var(--accent-ink);
}

.legal-body strong {
    color: var(--ink);
}

.legal-body a {
    color: var(--accent-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-callout {
    margin: 22px 0;
    padding: 22px 26px;
    border-radius: 16px;
    background: var(--bg-paper);
    border: 1px solid var(--line);
}

.legal-callout p {
    color: var(--ink);
}

mark.todo {
    padding: 1px 6px;
    border-radius: 6px;
    background: var(--accent-soft);
    color: #7A4F0C;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Section motion (only when JS is running)
   - [data-reveal]          : fade + rise + soft blur
   - [data-reveal="mask"]   : headings split into lines; each line slides up
                              out of its own mask (inspired by laboiteaslides.fr)
   - [data-reveal="wipe"]   : cards/visuals open with a clip-path wipe
   All share one easing and a small stagger (--d / --li) so motion feels uniform.
   -------------------------------------------------------------------------- */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(32px);
    filter: blur(6px);
    transition:
        opacity 0.9s var(--ease),
        transform 1.1s var(--ease),
        filter 0.9s var(--ease);
    transition-delay: var(--d, 0s);
}

.js [data-reveal].is-in {
    opacity: 1;
    transform: none;
    filter: none;
}

/* Line masks */
[data-reveal="mask"] {
    padding-bottom: 0.06em;
}

.js [data-reveal="mask"] {
    opacity: 1;
    transform: none;
    filter: none;
}

.js [data-reveal="mask"]:not(.is-split) {
    visibility: hidden;
}

.ln {
    display: block;
    overflow: hidden;
    padding-bottom: 0.12em;
    margin-bottom: -0.12em;
}

/* Footer wordmark: let the italic "Bharat" overhang the mask instead of being cut */
.footer-wordmark .ln {
    padding-right: 0.1em;
    margin-right: -0.1em;
}

.ln-in {
    display: block;
    transform: translateY(108%) rotate(1.5deg);
    transform-origin: 0 100%;
    transition: transform 1.15s var(--ease);
    transition-delay: calc(var(--d, 0s) + var(--li, 0) * 0.09s);
}

.is-in > .ln > .ln-in,
.is-in .ln-in {
    transform: none;
}

/* Wipes */
.js [data-reveal="wipe"] {
    opacity: 1;
    filter: none;
    transform: translateY(40px) scale(0.97);
    clip-path: inset(22% 6% 22% 6% round 28px);
    transition:
        clip-path 1.25s var(--ease),
        transform 1.3s var(--ease);
    transition-delay: var(--d, 0s);
}

.js [data-reveal="wipe"].is-in {
    transform: none;
    clip-path: inset(0 0 0 0 round 26px);
}

/* Section-label rule draws in after the label appears */
.js .section-label[data-reveal]::after {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s var(--ease) calc(var(--d, 0s) + 0.35s);
}

.js .section-label[data-reveal].is-in::after {
    transform: none;
}

/* Hero entrance waits for the loader */
.js .hero-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
    transition-delay: var(--d, 0s);
}

.js [data-split]:not(.is-split) {
    visibility: hidden;
}

.js [data-split] .w > span {
    transform: translateY(110%);
    transition: transform 1.1s var(--ease);
    transition-delay: calc(var(--wi, 0) * 0.06s + 0.15s);
}

.is-ready .hero-in {
    opacity: 1;
    transform: none;
}

.is-ready [data-split] .w > span {
    transform: none;
}

/* --------------------------------------------------------------------------
   Section flow — each marked section rises over the previous one with a
   curved top edge that flattens as it arrives (--arc is set by JS, 1 → 0).
   -------------------------------------------------------------------------- */
:root {
    --curve-h: clamp(56px, 9vw, 140px);
}

.curve-top {
    position: relative;
    z-index: 2;
    margin-top: calc(var(--curve-h) * -1);
    border-top-left-radius: 50% calc(var(--arc, 1) * var(--curve-h));
    border-top-right-radius: 50% calc(var(--arc, 1) * var(--curve-h));
}

/* The next section's rising curve replaces the hero's scroll cue; keep content clear of it */
.hero {
    padding-bottom: calc(var(--curve-h) + 64px);
}

.hero-scroll {
    display: none;
}

/* Receding content as the next section covers it */
[data-exit] {
    will-change: transform, opacity;
}

/* --------------------------------------------------------------------------
   Page transition curtain (between pages; inspired by beetogreen.com)
   -------------------------------------------------------------------------- */
.pt {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 45%, rgb(from var(--accent) r g b / 0.18), transparent 55%),
        var(--primary);
    clip-path: inset(100% 0 0 0);
    pointer-events: none;
}

.pt .logo-mark {
    width: 64px;
    height: 64px;
    opacity: 0;
}

/* Leaving: curtain rises from the bottom with a curved leading edge */
.pt-out .pt {
    pointer-events: auto;
    animation: ptCover 0.6s var(--ease-in-out) forwards;
}

.pt-out .pt .logo-mark {
    animation: ptLogo 0.45s var(--ease) 0.25s forwards;
}

/* Arriving: page starts covered, then the curtain lifts away */
.pt-in .pt {
    clip-path: inset(0 0 0 0);
    animation: ptReveal 0.75s var(--ease-in-out) 0.12s forwards;
}

.pt-in .pt .logo-mark {
    opacity: 1;
    animation: ptLogoOut 0.3s ease forwards;
}

@keyframes ptCover {
    from { clip-path: inset(100% 0 0 0 round 50% 50% 0 0 / 120px 120px 0 0); }
    to { clip-path: inset(0 0 0 0 round 0); }
}

@keyframes ptReveal {
    from { clip-path: inset(0 0 0 0 round 0); }
    to { clip-path: inset(0 0 100% 0 round 0 0 50% 50% / 0 0 120px 120px); }
}

@keyframes ptLogo {
    from { opacity: 0; transform: translateY(16px) scale(0.9); }
    to { opacity: 1; transform: none; }
}

@keyframes ptLogoOut {
    to { opacity: 0; transform: translateY(-12px); }
}

/* --------------------------------------------------------------------------
   Theme toggle
   -------------------------------------------------------------------------- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle {
    position: relative;
    z-index: 120;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--bg-paper);
    color: var(--ink);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.4s var(--ease);
}

.theme-toggle:hover {
    transform: rotate(-12deg);
}

.theme-toggle:focus-visible,
.menu-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.theme-toggle svg {
    position: absolute;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.5s var(--ease), opacity 0.3s ease;
}

/* Light mode shows the moon (switch to dark); dark mode shows the sun */
.theme-toggle .ic-sun { opacity: 0; transform: rotate(90deg) scale(0.5); }
[data-theme="dark"] .theme-toggle .ic-sun { opacity: 1; transform: none; }
[data-theme="dark"] .theme-toggle .ic-moon { opacity: 0; transform: rotate(-90deg) scale(0.5); }

.page-home .site-header:not(.is-scrolled) .theme-toggle {
    background: rgb(from var(--cream) r g b / 0.1);
    border-color: var(--line-light);
    color: #FDEFD3;
}

/* Short colour cross-fade while switching themes */
.theme-anim,
.theme-anim *,
.theme-anim *::before,
.theme-anim *::after {
    transition: background-color 0.45s ease, color 0.45s ease, border-color 0.45s ease, fill 0.45s ease, stroke 0.45s ease !important;
}

/* --------------------------------------------------------------------------
   Dark theme — same structure, re-mapped tokens
   -------------------------------------------------------------------------- */
:root[data-theme="dark"] {
    color-scheme: dark;

    --bg: #1A0F0B;
    --bg-sand: #24150F;
    --bg-paper: #2E1A13;

    --ink: #FBEBD0;
    --ink-deep: #0F0806;
    --ink-soft: #CDB3A1;
    --muted: #A08576;
    --primary: #8E2A17;
    --primary-2: #A23220;
    --primary-3: #C2412A;
    --line: rgba(251, 235, 208, 0.12);
    --line-light: rgba(251, 235, 208, 0.14);

    --accent-ink: #FFB938;
    --olive: #22C06A;
    --olive-soft: #0F3324;

    --header-bg: rgba(26, 15, 11, 0.86);
    --glass: rgba(46, 26, 19, 0.9);
    --cv-dot: 255, 150, 120;
    --cv-line: 250, 220, 200;

}

[data-theme="dark"] body::before {
    opacity: 0.12;
}

[data-theme="dark"] .search-bar {
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(231, 238, 249, 0.18);
}

[data-theme="dark"] .outbox {
    box-shadow:
        0 0 0 1px rgba(231, 238, 249, 0.12),
        0 60px 100px -50px rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .finder,
[data-theme="dark"] .lf-paper {
    box-shadow: 0 0 0 1px rgba(231, 238, 249, 0.06), 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .marquee-row-alt {
    background: var(--bg-sand);
}

[data-theme="dark"] .ob-row-verified .ob-label,
[data-theme="dark"] .outbox-foot .ob-good,
[data-theme="dark"] .outbox-foot .ob-good b {
    color: #7DECAA;
}

[data-theme="dark"] .finder-steps li.is-done {
    color: #CFF5DD;
}

[data-theme="dark"] mark.todo {
    background: rgb(from var(--accent) r g b / 0.18);
    color: #FDBA74;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

/* Signed out: Sign in button */
.header-signin {
    gap: 8px;
    height: 46px;
    padding: 0 20px;
    white-space: nowrap;
}

.header-signin svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-signin[hidden],
.nav-signin[hidden],
.header-find-email[hidden],
.main-nav .btn[hidden],
[data-auth-only][hidden],
[data-guest-only][hidden] {
    display: none !important;
}

.nav-signin {
    display: none;
}

.pf-out-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

/* Signed-in header: room for the credits pill + avatar */
.main-nav .nav-link,
.main-nav .btn {
    white-space: nowrap;
}

.nav-account {
    display: none;
}

@media (max-width: 1440px) and (min-width: 821px) {
    .is-signed-in .main-nav {
        gap: 24px;
    }

    .is-signed-in .credit-pill-label {
        display: none;
    }
}

@media (max-width: 1280px) and (min-width: 821px) {
    .is-signed-in .main-nav .nav-link:nth-of-type(2),
    .is-signed-in .main-nav .nav-link:nth-of-type(4) {
        display: none;
    }

    .is-signed-in .brand-name {
        font-size: 30px;
    }
}

@media (max-width: 1060px) and (min-width: 821px) {
    .is-signed-in .main-nav .nav-link {
        display: none;
    }

    /* Signed out: tighten the row so Sign in and the theme toggle stay on screen */
    .main-nav {
        gap: 22px;
    }

    .brand-name {
        font-size: 28px;
    }

    .main-nav .nav-link:nth-of-type(2),
    .main-nav .nav-link:nth-of-type(4) {
        display: none;
    }
}

@media (max-width: 900px) and (min-width: 821px) {
    .main-nav .nav-link:nth-of-type(3) {
        display: none;
    }
}

@media (max-width: 820px) {
    /* The account row lives inside the menu on small screens */
    .credit-pill,
    .user-menu {
        display: none !important;
    }

    .nav-signin {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        width: min(340px, 100%);
        margin-top: 10px;
        padding: 16px 20px;
        border: 0;
        border-radius: 22px;
        background: var(--primary);
        color: var(--cream);
        text-align: left;
        cursor: pointer;
    }

    .nav-signin span {
        font-family: var(--font-display);
        font-size: 22px;
        font-weight: 700;
    }

    .nav-signin small {
        font-size: 13.5px;
        font-weight: 600;
        color: var(--accent);
    }

    .nav-account:not([hidden]) {
        display: block;
        width: min(340px, 100%);
        margin-top: 10px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: var(--bg-paper);
        overflow: hidden;
    }

    .nav-account-main {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 12px 18px 12px 12px;
        color: var(--ink);
    }

    .nav-account-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        border-top: 1px solid var(--line);
    }

    .nav-account-links > :nth-child(n+3) {
        border-top: 1px solid var(--line);
    }

    .nav-account-links > :nth-child(3) {
        border-left: 0;
    }

    .nav-account-links a,
    .nav-account-links button {
        padding: 13px 6px;
        border: 0;
        background: none;
        font-size: 13.5px;
        font-weight: 700;
        color: var(--ink-soft);
        text-align: center;
        cursor: pointer;
    }

    .nav-account-links > * + * {
        border-left: 1px solid var(--line);
    }

    .nav-account-links button {
        color: var(--danger);
    }

    .nav-account-av {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: var(--primary);
        font-weight: 800;
        color: var(--cream);
    }

    .nav-account-text {
        display: flex;
        flex-direction: column;
        line-height: 1.25;
    }

    .nav-account-text b {
        font-size: 16px;
    }

    .nav-account-text small {
        font-size: 13.5px;
        font-weight: 600;
        color: var(--accent-ink);
    }
}

@media (max-width: 1080px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 960px) {
    .how-grid,
    .guess-grid,
    .cta-grid {
        grid-template-columns: 1fr;
    }

    .how-visual {
        max-width: 560px;
        width: 100%;
        margin: 10px auto 20px;
    }

    .cases-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 820px) {
    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        inset: 0;
        z-index: 110;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 26px;
        padding: 0 var(--gutter);
        background: var(--bg);
        clip-path: inset(0 0 100% 0);
        transition: clip-path 0.8s var(--ease-in-out);
    }

    .nav-open .main-nav {
        clip-path: inset(0 0 0 0);
    }

    .main-nav .nav-link,
    .page-home .site-header:not(.is-scrolled) .main-nav .nav-link {
        font-family: var(--font-display);
        font-size: 30px;
        font-weight: 700;
        color: var(--ink);
    }

    .main-nav .btn {
        margin-top: 12px;
    }

    .nav-open {
        overflow: hidden;
    }

    .nav-open .site-header {
        transform: none;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    .nav-open .site-header .brand-name {
        color: var(--ink) !important;
    }

    .void-ui {
        padding-top: 96px;
        padding-bottom: 28px;
    }

    .void-title {
        font-size: 34px;
    }

    /* Mobile: only the active step is shown, so the network stays visible */
    .js .void-step:not(.is-active) {
        display: none;
    }

    .void-rail {
        display: none;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 16px;
    }

    /* Keep the brand clear of the theme + menu buttons on phones */
    .brand-name {
        font-size: 24px;
    }

    /* Sign in moves into the menu on phones */
    .header-signin {
        display: none !important;
    }

    .logo-mark {
        width: 42px;
    }

    .hero {
        padding: 130px 0 110px;
    }

    .search-bar {
        border-radius: 22px;
    }

    .search-step {
        flex-wrap: wrap;
        padding: 6px 6px 0 12px;
    }

    .search-step input {
        flex: 1 1 0;
        min-width: 0;
        height: 50px;
    }

    .search-btn {
        width: 100%;
        height: 52px;
        margin: 4px -6px 0 -12px;
        width: calc(100% + 18px);
        border-radius: 16px;
    }

    .search-chip {
        max-width: 100%;
        margin-top: 4px;
    }

    .search-tag {
        display: none;
    }

    .search-examples > span {
        flex-basis: 100%;
    }

    .search-step-2 input {
        flex-basis: 100%;
    }

    .hero-trust {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .finder {
        padding: 18px;
    }

    .finder-steps {
        grid-template-columns: 1fr;
    }

    .finder-steps li {
        flex-direction: row;
        align-items: center;
    }

    .how-badge-1 {
        top: -44px;
        right: 10px;
    }

    .how-badge-2 {
        left: 0;
    }

    .header-actions {
        gap: 8px;
    }

    .theme-toggle,
    .menu-toggle {
        width: 42px;
        height: 42px;
    }

    .menu-toggle span { left: 12px; right: 12px; }
    .menu-toggle span:first-child { top: 17px; }
    .menu-toggle span:last-child { top: 24px; }
    .nav-open .menu-toggle span:first-child,
    .nav-open .menu-toggle span:last-child { top: 20px; }

    .lf-paper {
        padding: 24px 20px;
    }

    .lf-field {
        grid-template-columns: 1fr;
    }

    .lf-field small {
        grid-column: 1;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }

    .loader {
        display: none;
    }

    .sw {
        opacity: 1 !important;
    }

    .js .void {
        height: auto;
    }

    .js .void-sticky {
        position: relative;
        height: auto;
    }

    .pt {
        display: none;
    }

    .curve-top {
        --arc: 0.35;
    }
}


/* --------------------------------------------------------------------------
   "Stop guessing" outbox — small screens
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
    .ob-row {
        grid-template-columns: 1fr;
    }

    .ob-status {
        justify-content: flex-start;
    }

    .outbox-foot .ob-good {
        margin-left: 0;
    }
}

/* ==========================================================================
   COLOUR STYLE SWITCHER — TEMPORARY (for choosing the final palette)
   Main Style = the default tokens at the top of this file. Each extra style
   overrides the same tokens for light and dark. To remove: delete this block,
   assets/js/style-switcher.js, its <script> tag in the footer and the
   "cb-style" lines in the header's inline script.
   ========================================================================== */

/* --- Royal Saffron: royal blue + saffron orange --- */
:root[data-style="royal"] {
    --bg: #EEF3FA; --bg-sand: #E0E9F6; --bg-paper: #F7FAFE;
    --ink: #0F1E3D; --ink-deep: #0A1530; --ink-soft: #44546F; --muted: #6E7B93;
    --primary: #1D3B8B; --primary-2: #24479F; --primary-3: #2D56B8; --indigo: #1D3B8B;
    --line: rgba(15, 30, 61, 0.12); --cream: #EEF3FA;
    --accent: #F97316; --accent-hover: #EA580C; --accent-ink: #C2410C; --accent-soft: #FFE1CC;
    --header-bg: rgba(238, 243, 250, 0.88); --glass: rgba(247, 250, 254, 0.9);
    --cv-dot: 29, 59, 139; --cv-line: 15, 30, 61;
}
:root[data-style="royal"][data-theme="dark"] {
    --bg: #0A1224; --bg-sand: #111C33; --bg-paper: #142140;
    --ink: #E7EEF9; --ink-deep: #050A16; --ink-soft: #A7B4CC; --muted: #7F8DA8;
    --primary: #142A63; --primary-2: #1A3477; --primary-3: #22418F;
    --line: rgba(231, 238, 249, 0.12); --line-light: rgba(231, 238, 249, 0.14); --accent-ink: #FB923C;
    --header-bg: rgba(10, 18, 36, 0.86); --glass: rgba(20, 33, 64, 0.9);
    --cv-dot: 150, 175, 225; --cv-line: 190, 205, 235;
}

/* --- Emerald Gold: deep green + marigold --- */
:root[data-style="emerald"] {
    --bg: #EEF5EF; --bg-sand: #DDEBE0; --bg-paper: #F7FBF7;
    --ink: #10241A; --ink-deep: #0A1A12; --ink-soft: #3F5A4B; --muted: #6B8275;
    --primary: #0F5A3F; --primary-2: #136B4B; --primary-3: #1C8A5F; --indigo: #0F5A3F;
    --line: rgba(16, 36, 26, 0.12); --cream: #EEF5EF;
    --accent: #F2C14E; --accent-hover: #E3AC2A; --accent-ink: #8A5A00; --accent-soft: #FBEBC2;
    --header-bg: rgba(238, 245, 239, 0.88); --glass: rgba(247, 251, 247, 0.9);
    --cv-dot: 15, 90, 63; --cv-line: 16, 36, 26;
}
:root[data-style="emerald"][data-theme="dark"] {
    --bg: #08140F; --bg-sand: #0E1F17; --bg-paper: #13281E;
    --ink: #E6F2EA; --ink-deep: #040B08; --ink-soft: #A6C2B2; --muted: #7C9888;
    --primary: #0B3D2B; --primary-2: #0F4C36; --primary-3: #166B4A;
    --line: rgba(230, 242, 234, 0.12); --line-light: rgba(230, 242, 234, 0.14); --accent-ink: #F2C14E;
    --header-bg: rgba(8, 20, 15, 0.86); --glass: rgba(19, 40, 30, 0.9);
    --cv-dot: 140, 215, 175; --cv-line: 200, 235, 215;
}

/* --- Indigo Bloom: indigo + pink --- */
:root[data-style="indigo"] {
    --bg: #F3F1FA; --bg-sand: #E6E1F5; --bg-paper: #FAF9FE;
    --ink: #1C1638; --ink-deep: #120E26; --ink-soft: #4D4670; --muted: #7A7398;
    --primary: #3B2A8C; --primary-2: #4A37A3; --primary-3: #6249C7; --indigo: #3B2A8C;
    --line: rgba(28, 22, 56, 0.12); --cream: #F3F1FA;
    --accent: #F472B6; --accent-hover: #EC4899; --accent-ink: #BE185D; --accent-soft: #FCE0EF;
    --header-bg: rgba(243, 241, 250, 0.88); --glass: rgba(250, 249, 254, 0.9);
    --cv-dot: 59, 42, 140; --cv-line: 28, 22, 56;
}
:root[data-style="indigo"][data-theme="dark"] {
    --bg: #0E0B1F; --bg-sand: #16122E; --bg-paper: #1D183B;
    --ink: #ECE9FA; --ink-deep: #07051A; --ink-soft: #B4ADD6; --muted: #8A83AE;
    --primary: #2A1E66; --primary-2: #33267A; --primary-3: #4632A0;
    --line: rgba(236, 233, 250, 0.12); --line-light: rgba(236, 233, 250, 0.14); --accent-ink: #F9A8D4;
    --header-bg: rgba(14, 11, 31, 0.86); --glass: rgba(29, 24, 59, 0.9);
    --cv-dot: 180, 165, 240; --cv-line: 215, 205, 245;
}

/* --- Ocean Coral: teal + coral --- */
:root[data-style="ocean"] {
    --bg: #EAF4F4; --bg-sand: #D6EAEA; --bg-paper: #F5FAFA;
    --ink: #0E2A30; --ink-deep: #081C20; --ink-soft: #3E5E64; --muted: #6A878C;
    --primary: #0E5E6F; --primary-2: #127185; --primary-3: #1A8CA3; --indigo: #0E5E6F;
    --line: rgba(14, 42, 48, 0.12); --cream: #EAF4F4;
    --accent: #FF7A59; --accent-hover: #F2603D; --accent-ink: #C2410C; --accent-soft: #FFE0D6;
    --header-bg: rgba(234, 244, 244, 0.88); --glass: rgba(245, 250, 250, 0.9);
    --cv-dot: 14, 94, 111; --cv-line: 14, 42, 48;
}
:root[data-style="ocean"][data-theme="dark"] {
    --bg: #071619; --bg-sand: #0C2126; --bg-paper: #112A30;
    --ink: #E3F1F2; --ink-deep: #030B0D; --ink-soft: #A3C3C7; --muted: #7A9BA0;
    --primary: #0A4250; --primary-2: #0D5263; --primary-3: #127185;
    --line: rgba(227, 241, 242, 0.12); --line-light: rgba(227, 241, 242, 0.14); --accent-ink: #FF9B80;
    --header-bg: rgba(7, 22, 25, 0.86); --glass: rgba(17, 42, 48, 0.9);
    --cv-dot: 130, 205, 215; --cv-line: 195, 230, 235;
}

/* --- Charcoal Lime: graphite + electric lime --- */
:root[data-style="charcoal"] {
    --bg: #F2F3EE; --bg-sand: #E3E5DC; --bg-paper: #FAFAF7;
    --ink: #17191C; --ink-deep: #0D0E10; --ink-soft: #4A4F55; --muted: #7A7F84;
    --primary: #1F2328; --primary-2: #2A2F35; --primary-3: #3A4148; --indigo: #1F2328;
    --line: rgba(23, 25, 28, 0.12); --cream: #F2F3EE;
    --accent: #C6F432; --accent-hover: #B3E01F; --accent-ink: #4D6B00; --accent-soft: #EDFBC4;
    --header-bg: rgba(242, 243, 238, 0.88); --glass: rgba(250, 250, 247, 0.9);
    --cv-dot: 31, 35, 40; --cv-line: 23, 25, 28;
}
:root[data-style="charcoal"][data-theme="dark"] {
    --bg: #0D0E10; --bg-sand: #15171A; --bg-paper: #1C1F23;
    --ink: #EDEFE8; --ink-deep: #060708; --ink-soft: #AEB3AA; --muted: #858A82;
    --primary: #22262B; --primary-2: #2A2F35; --primary-3: #3A4148;
    --line: rgba(237, 239, 232, 0.12); --line-light: rgba(237, 239, 232, 0.14); --accent-ink: #C6F432;
    --header-bg: rgba(13, 14, 16, 0.86); --glass: rgba(28, 31, 35, 0.9);
    --cv-dot: 198, 244, 50; --cv-line: 220, 225, 215;
}

/* --- Switcher panel: fixed to the right edge, vertically centred --- */
.ss {
    position: fixed;
    top: 50%;
    right: 0;
    z-index: 1050;
    width: min(300px, calc(100vw - 52px));
    transform: translate(100%, -50%);
    transition: transform 0.45s var(--ease);
}

.ss.is-open {
    transform: translate(0, -50%);
}

.ss-tab {
    position: absolute;
    top: 50%;
    left: -48px;
    display: grid;
    place-items: center;
    width: 48px;
    height: 52px;
    border: 1px solid var(--line);
    border-right: 0;
    border-radius: 14px 0 0 14px;
    background: var(--bg-paper);
    color: var(--ink);
    box-shadow: -10px 10px 30px -14px rgba(0, 0, 0, 0.35);
    transform: translateY(-50%);
    cursor: pointer;
}

.ss-tab svg {
    width: 24px;
    height: 24px;
}

.ss-tab:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.ss:not(.is-open) .ss-tab svg {
    animation: ssSpin 6s linear infinite;
}

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

.ss-panel {
    max-height: min(680px, calc(100vh - 24px));
    max-height: min(680px, calc(100dvh - 24px));
    overflow-y: auto;
    padding: 18px;
    border: 1px solid var(--line);
    border-right: 0;
    border-radius: 20px 0 0 20px;
    background: var(--bg-paper);
    color: var(--ink);
    box-shadow: -20px 20px 60px -20px rgba(0, 0, 0, 0.45);
}

.ss:not(.is-open) .ss-panel {
    visibility: hidden;
    transition: visibility 0s 0.45s;
}

.ss-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.ss-head b {
    display: block;
    font-family: var(--font-display);
    font-size: 17px;
}

.ss-head small {
    font-size: 12px;
    color: var(--muted);
}

.ss-close {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: var(--bg-sand);
    color: var(--ink);
    cursor: pointer;
}

.ss-close svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
}

.ss-label {
    margin: 4px 0 8px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.ss-mode {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 16px;
    padding: 4px;
    border-radius: 100px;
    background: var(--bg-sand);
}

.ss-mode button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 0;
    border: 0;
    border-radius: 100px;
    background: none;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink-soft);
    cursor: pointer;
}

.ss-mode button svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.ss-mode button[aria-pressed="true"] {
    background: var(--primary);
    color: var(--cream);
}

.ss-list {
    display: grid;
    gap: 8px;
}

.ss-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: var(--bg);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.ss-item:hover {
    transform: translateX(-2px);
}

.ss-item:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.ss-item[aria-checked="true"] {
    border-color: var(--primary);
    box-shadow: inset 0 0 0 1px var(--primary);
}

[data-theme="dark"] .ss-item[aria-checked="true"] {
    border-color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--accent);
}

.ss-sw {
    display: flex;
    flex-shrink: 0;
}

.ss-sw i {
    width: 22px;
    height: 22px;
    margin-left: -6px;
    border: 2px solid var(--bg-paper);
    border-radius: 50%;
}

.ss-sw i:first-child {
    margin-left: 0;
}

.ss-name {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.ss-name b {
    font-size: 14px;
}

.ss-name small {
    font-size: 12px;
    color: var(--muted);
}

.ss-check {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--olive);
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
}

.ss-item[aria-checked="true"] .ss-check {
    opacity: 1;
}

.ss-note {
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
    .ss,
    .ss-tab svg {
        transition: none;
        animation: none !important;
    }
}