/* The candidate homepage.
   Self-contained: it shares the fonts and colours of the rest of the site but none of
   its layout classes, so the discovery homepage can change without touching this. */

.ch-wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.5rem; }

/* ------------------------------------------------------------------ the details
   Icons, hover weight and a little movement. All CSS, no library, and every piece
   switched off for anyone who has asked for reduced motion. */

.ch-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.95rem;
    border-radius: 0.75rem;
    background: #eef7f2;
    color: #0f7a55;
}

.ch-icon svg { width: 1.3rem; height: 1.3rem; }

.ch-pill-dot {
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    margin-right: 0.45rem;
    border-radius: 999px;
    background: #10b981;
    vertical-align: 0.05em;
    animation: ch-pulse 2.6s ease-out infinite;
}

@keyframes ch-pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
    70%, 100% { box-shadow: 0 0 0 0.5rem rgba(16, 185, 129, 0); }
}

.ch-problem-item { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.ch-problem-item:hover {
    transform: translateY(-3px);
    border-color: #cfe3d9;
    box-shadow: 0 20px 36px -28px rgba(11, 31, 24, 0.5);
}

.ch-button { transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease; }
.ch-button:hover { transform: translateY(-1px); }
.ch-button:active { transform: translateY(0); }
.ch-button-arrow { transition: transform 0.18s ease; }
.ch-button:hover .ch-button-arrow { transform: translateX(3px); }

.ch-frame { transition: transform 0.22s ease, box-shadow 0.22s ease; }
.ch-frame:hover { transform: translateY(-4px); box-shadow: 0 28px 50px -34px rgba(11, 31, 24, 0.55); }

/* the ring behind the hero turns, very slowly, so the page is not completely still */
.ch-aura { animation: ch-spin 120s linear infinite; transform-origin: 50% 50%; }
@keyframes ch-spin { to { transform: rotate(360deg); } }

/* The hero arrives on load. Time-based, not scroll-driven: a scroll timeline that never
   advances leaves its elements at opacity 0, which hides whole sections when a reader
   jumps straight to an anchor. This always completes. */
@media (prefers-reduced-motion: no-preference) {
    .ch-pill, .ch-hero-copy h1, .ch-hero-copy .ch-lead, .ch-hero-copy .ch-actions, .ch-hero-copy .ch-trust {
        animation: ch-rise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
    }
    .ch-pill { animation-delay: 0.05s; }
    .ch-hero-copy h1 { animation-delay: 0.12s; }
    .ch-hero-copy .ch-lead { animation-delay: 0.2s; }
    .ch-hero-copy .ch-actions { animation-delay: 0.28s; }
    .ch-hero-copy .ch-trust { animation-delay: 0.34s; }
    .ch-laptop { animation: ch-rise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.3s both; }
}

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

@media (prefers-reduced-motion: reduce) {
    .ch-aura, .ch-pill-dot { animation: none; }
    .ch-problem-item, .ch-frame, .ch-button, .ch-button-arrow { transition: none; }
    .ch-problem-item:hover, .ch-frame:hover, .ch-button:hover { transform: none; }
}

/* A properly coloured stage. The device only reads as an object if the thing behind it
   is a different value from the screen. Near-black, so the white device bezel and the
   white copy are what carries the page. */
.ch-hero {
    position: relative;
    padding: 3.5rem 0 0;
    background: linear-gradient(165deg, #000000 0%, #000000 55%, #060606 100%);
    overflow: hidden;
}

/* ------------------------------------------------------------ transparent header
   On this one page the navigation sits on the hero instead of above it: the header
   keeps its normal markup, loses its background and border, and the hero takes over
   the space it would have occupied. Once the reader scrolls past the hero the header
   puts a dark pane behind itself again, because by then the page is white. */
body.has-dark-hero .site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    background: transparent;
    border-bottom-color: transparent;
    backdrop-filter: none;
    transition: background 0.2s ease, backdrop-filter 0.2s ease, border-color 0.2s ease;
}

body.has-dark-hero .site-header::before {
    opacity: 0;
}

body.has-dark-hero .header-grid {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

body.has-dark-hero .site-header.is-solid {
    background: rgba(6, 8, 10, 0.82);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

/* White ink, because the surface under it is black. */
body.has-dark-hero .main-nav a,
body.has-dark-hero .auth-links a {
    color: #f1f5f9;
}

body.has-dark-hero .main-nav a:hover,
body.has-dark-hero .auth-links a:hover,
body.has-dark-hero .main-nav a:focus-visible,
body.has-dark-hero .auth-links a:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.09);
}

body.has-dark-hero .auth-links .auth-cta,
body.has-dark-hero .auth-links .auth-cta:hover,
body.has-dark-hero .auth-links .auth-cta:focus-visible {
    background: #ffffff;
    color: #0b1f18;
}

body.has-dark-hero .nav-toggle {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.06);
}

body.has-dark-hero .nav-toggle-bar {
    background: #ffffff;
}

/* An open menu is a panel of links, so it needs an opaque surface of its own. */
body.has-dark-hero .site-header.is-menu-open {
    background: rgba(6, 8, 10, 0.96);
    backdrop-filter: blur(12px);
}

/* The hero starts under the fixed header, so it pays for its height. */
body.has-dark-hero .ch-hero {
    padding-top: 7.5rem;
}

/* the big soft ring behind the device, as in the reference */
.ch-aura {
    position: absolute;
    top: -20rem;
    right: -13rem;
    width: 54rem;
    height: 54rem;
    border-radius: 999px;
    border: 5rem solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

/* the copy outside the laptop has to work on green */
.ch-hero .ch-eyebrow { color: #5eead4; }
.ch-hero .ch-trust { color: #9aa4b2; }
.ch-hero-copy .ch-button-primary { background: #ffffff; color: #0b1f18; }
.ch-hero-copy .ch-button-primary:hover { background: #eafff5; }
.ch-hero-copy .ch-button-primary .ch-button-arrow { background: rgba(11, 31, 24, 0.1); }
.ch-hero-copy .ch-button-ghost { border-color: rgba(255, 255, 255, 0.4); background: transparent; color: #ffffff; }
.ch-hero-copy .ch-button-ghost:hover { border-color: #ffffff; background: rgba(255, 255, 255, 0.1); }

/* the copy inside the screen keeps its dark ink */
.ch-laptop-screen .ch-eyebrow { color: #b45309; }
.ch-laptop-screen .ch-trust { color: #6b7f76; }
.ch-laptop-screen .ch-button-ghost { border-color: #cfe0d8; background: #ffffff; color: #0b1f18; }
/* ---------------------------------------------------------- the laptop hero
   Adapted from a SaaSb hero reference: the pitch sits inside the laptop screen and the
   product rises out of the bottom of it, clipped by the screen edge. The reference
   stage is purple; ours is the campaign green. */

.ch-laptop { max-width: 58rem; margin: 0 auto; position: relative; z-index: 1; }

/* The lid is what makes it read as a device rather than a card: a dark bezel, a camera
   notch, and a screen sitting inside it. */
.ch-laptop-lid {
    position: relative;
    padding: 0.95rem 0.95rem 1.5rem;
    border-radius: 1.25rem 1.25rem 0.3rem 0.3rem;
    background: linear-gradient(180deg, #2a3a34 0%, #131e1a 100%);
    box-shadow: 0 44px 80px -50px rgba(11, 31, 24, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.ch-laptop-notch {
    position: absolute;
    top: 0;
    left: 50%;
    width: 9rem;
    height: 0.6rem;
    margin-left: -4.5rem;
    border-radius: 0 0 0.5rem 0.5rem;
    background: #131e1a;
    z-index: 2;
}

.ch-laptop-screen {
    position: relative;
    border-radius: 0.55rem 0.55rem 0 0;
    background: #ffffff;
    overflow: hidden;
}

/* The copy is the page's own hero, outside the device. */
.ch-hero-copy { text-align: center; padding-bottom: 3rem; }
/* specificity has to beat the layout's own heading rules */
.ch-hero .ch-hero-copy h1,
.ch-hero .ch-hero-copy h1 em { color: #ffffff; }
.ch-hero .ch-hero-copy h1 { max-width: 30rem; margin: 0 auto; }
.ch-hero-copy h1 em { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.ch-hero-copy .ch-lead { margin-left: auto; margin-right: auto; max-width: 34rem; color: #c7cdd6; }
.ch-hero-copy .ch-actions { justify-content: center; }
.ch-hero-copy .ch-eyebrow { text-align: center; }

.ch-pill {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 1.2rem;
    padding: 0.35rem 0.9rem;
    border: 1px solid #cfe3d9;
    border-radius: 999px;
    background: #ffffff;
    color: #0f7a55;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.5;
}

/* On a phone the same sentence would wrap and leave one word alone on a line. */
@media (max-width: 560px) {
    .ch-pill {
        font-size: 0.7rem;
        padding: 0.3rem 0.7rem;
        letter-spacing: 0;
    }
}

.ch-button-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    margin-left: 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.8rem;
}

.ch-trust { margin: 1.4rem 0 0; color: #6b7f76; font-size: 0.85rem; }

/* the product, cropped by the bottom of the screen */
.ch-screen-shot { background: #ffffff; }
.ch-screen-shot img { display: block; width: 100%; height: auto; }

/* the base of the laptop: wider than the screen, with a notch */
.ch-laptop-base {
    display: block;
    height: 1.3rem;
    margin: 0 -4.5%;
    border-radius: 0 0 1.2rem 1.2rem;
    background: linear-gradient(180deg, #e3ece8 0%, #b9cbc3 55%, #9db2a9 100%);
    box-shadow: 0 22px 34px -24px rgba(11, 31, 24, 0.65);
    position: relative;
}
/* the hinge notch in the middle of the base */
.ch-laptop-base::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 13%;
    height: 0.42rem;
    margin-left: -6.5%;
    border-radius: 0 0 999px 999px;
    background: #9db2a9;
}

/* A monitor drawn in CSS: bezel, chin, neck and base. Sits under the screenshot so the
   page reads as a product shot rather than a screenshot dropped on the page. */
.ch-device { display: flex; flex-direction: column; align-items: center; }
.ch-device-screen {
    align-self: stretch;
    padding: 0.7rem 0.7rem 1.5rem;
    border-radius: 1.1rem 1.1rem 0.4rem 0.4rem;
    background: linear-gradient(180deg, #1d2b26 0%, #0c1512 100%);
    box-shadow: 0 30px 60px -34px rgba(11, 31, 24, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
}
.ch-device-screen .ch-frame-bar { border-radius: 0.4rem 0.4rem 0 0; }
.ch-device-screen img { display: block; width: 100%; height: auto; }
/* the little camera dot in the chin */
.ch-device-screen::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0.55rem;
    width: 0.3rem;
    height: 0.3rem;
    margin-left: -0.15rem;
    border-radius: 999px;
    background: #37514a;
}
.ch-device-neck {
    width: 17%;
    height: 1.6rem;
    background: linear-gradient(90deg, #16231f 0%, #24352f 50%, #16231f 100%);
    clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%);
}
.ch-device-base {
    width: 42%;
    height: 0.5rem;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(180deg, #24352f 0%, #101a16 100%);
    box-shadow: 0 12px 22px -14px rgba(11, 31, 24, 0.7);
}
.ch-hero .ch-lead { margin-top: 1.1rem; }
.ch-hero .ch-eyebrow { text-align: center; }
.ch-eyebrow { margin: 0 0 0.8rem; color: #b45309; font-size: 0.74rem; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; }
.ch-hero h1 { margin: 0; color: #0b1f18; font-size: clamp(2.3rem, 5.2vw, 3.6rem); font-weight: 900; line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
.ch-lead { max-width: 40rem; margin: 1.2rem 0 0; color: #3f574c; font-size: 1.08rem; line-height: 1.65; }
.ch-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.9rem; }

.ch-button { display: inline-flex; align-items: center; padding: 0.85rem 1.4rem; border-radius: 999px; font-size: 0.95rem; font-weight: 800; text-decoration: none; }
.ch-button-primary { background: #0b1f18; color: #ffffff; }
.ch-button-primary:hover { background: #17402f; }
.ch-button-ghost { border: 1px solid #cfe0d8; background: #ffffff; color: #0b1f18; }
.ch-button-ghost:hover { border-color: #0b1f18; }

.ch-note { margin: 1.5rem 0 0; color: #6b7f76; font-size: 0.88rem; }

.ch-problem, .ch-steps, .ch-features, .ch-closing { padding: 4rem 0; }
.ch-problem { background: #ffffff; }
.ch-steps { background: #f7fbf9; }
.ch-features { background: #ffffff; }
.ch-closing { background: #0b1f18; text-align: center; }

.ch-hero h2, .ch-problem h2, .ch-steps h2, .ch-features h2, .ch-price h2, .ch-closing h2 {
    margin: 0;
    color: #0b1f18;
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.ch-problem-grid, .ch-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.2rem; }
.ch-feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.ch-problem-item, .ch-feature { padding: 1.4rem 1.5rem; border: 1px solid #e4ece8; border-radius: 1.15rem; background: #ffffff; }
.ch-problem-item h3, .ch-feature h3 { margin: 0; color: #0b1f18; font-size: 1.02rem; font-weight: 800; letter-spacing: -0.01em; }
.ch-problem-item p, .ch-feature p { margin: 0.55rem 0 0; color: #5b6f66; font-size: 0.92rem; line-height: 1.6; }

/* Three cards in a row, joined by a dashed line, with an oversized ghost numeral each. */
.ch-step-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
    margin: 2.4rem 0 0;
    padding: 0;
    list-style: none;
}

.ch-step-card {
    position: relative;
    padding: 1.6rem 1.5rem 1.5rem;
    border: 1px solid #e4ece8;
    border-radius: 1.15rem;
    background: #ffffff;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ch-step-card:hover {
    transform: translateY(-3px);
    border-color: #cfe3d9;
    box-shadow: 0 22px 40px -30px rgba(11, 31, 24, 0.5);
}

/* the connector, drawn into the gap between cards */
.ch-step-card:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 2.9rem;
    right: -1.6rem;
    width: 1.6rem;
    height: 1px;
    background: repeating-linear-gradient(90deg, #cfe3d9 0 5px, transparent 5px 10px);
}

.ch-step-ghost {
    position: absolute;
    top: 0.35rem;
    right: 0.9rem;
    color: #0f7a55;
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1;
    opacity: 0.1;
    pointer-events: none;
}

.ch-step-card h3 { margin: 0; color: #0b1f18; font-size: 1.1rem; font-weight: 800; letter-spacing: -0.02em; }
.ch-step-card p { margin: 0.5rem 0 0; color: #5b6f66; font-size: 0.92rem; line-height: 1.6; }
.ch-step-card .ch-icon { margin-bottom: 1.1rem; }

.ch-price { padding: 3.5rem 0; background: #f2faf6; border-top: 1px solid #dcefe6; border-bottom: 1px solid #dcefe6; }
.ch-price-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }

.ch-closing h2 { color: #ffffff; }
.ch-closing p { max-width: 34rem; margin: 1rem auto 0; color: #b9cec4; font-size: 1.02rem; line-height: 1.6; }
.ch-closing .ch-actions { justify-content: center; }
.ch-closing .ch-button-primary { background: #ffffff; color: #0b1f18; }
.ch-closing .ch-button-ghost { background: transparent; border-color: #345247; color: #ffffff; }
.ch-closing .ch-button-ghost:hover { border-color: #ffffff; }

/* ---------- the tour: real screenshots in browser frames ---------- */

.ch-showcase { padding: 4rem 0; background: #ffffff; }
.ch-showcase h2 { margin: 0; color: #0b1f18; font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.15; }
.ch-showcase .ch-lead { max-width: 44rem; }

.ch-frame {
    margin: 2.4rem 0 0;
    border: 1px solid #dfe8e4;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 18px 40px -28px rgba(11, 31, 24, 0.45);
    overflow: hidden;
}

.ch-frame-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 0.9rem;
    border-bottom: 1px solid #eef3f1;
    background: #f7faf9;
}

.ch-frame-bar i { width: 0.62rem; height: 0.62rem; border-radius: 999px; background: #d8e3df; }
.ch-frame-bar em {
    flex: 1 1 auto;
    margin-left: 0.5rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid #e6ecea;
    border-radius: 999px;
    background: #ffffff;
    color: #7c8f87;
    font-size: 0.72rem;
    font-style: normal;
    letter-spacing: 0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ch-frame img { display: block; width: 100%; height: auto; }

.ch-frame figcaption {
    padding: 1.1rem 1.3rem 1.3rem;
    color: #5b6f66;
    font-size: 0.9rem;
    line-height: 1.6;
}

.ch-frame figcaption strong { display: block; margin-bottom: 0.3rem; color: #0b1f18; font-size: 1rem; font-weight: 800; letter-spacing: -0.01em; }

.ch-frame-row { display: grid; gap: 1.4rem; }
.ch-frame-row.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ch-frame-row.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ch-frame-row .ch-frame { margin-top: 1.4rem; }
.ch-frame-row.is-three figcaption { font-size: 0.84rem; }

@media (max-width: 900px) {
    .ch-problem-grid, .ch-feature-grid, .ch-frame-row.is-two, .ch-frame-row.is-three,
    .ch-step-cards { grid-template-columns: minmax(0, 1fr); }
    .ch-step-card:not(:last-child)::after { display: none; }
    .ch-hero { padding: 3.5rem 0 3rem; }
    .ch-problem, .ch-steps, .ch-features, .ch-closing { padding: 3rem 0; }
}
