/* Demo page: the home hero's gradient full-bleed, the home nav, one card. */
*, *::before, *::after { box-sizing: border-box; }
:root { color-scheme: light; --ink: #0a0a0a; --ink-70: rgba(0,0,0,.7); --ink-50: rgba(0,0,0,.5); --line: #e4e5e9; --purple: #5143dd; --brand-ink: #29221e; }
html { -webkit-text-size-adjust: 100%; }
body { min-width: 320px; margin: 0; color: var(--ink); background: #fff; font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }
.skip-link { position: absolute; z-index: 60; top: 12px; left: 16px; padding: 10px 16px; background: #fff; border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

/* Nav: the home page's pill, markup reduced to what this page needs. */
.nav-wrap { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding: 0; pointer-events: none; }
.nav { display: flex; align-items: center; width: 100%; max-width: 1056px; padding: 8px 20px; pointer-events: auto; background: rgba(255,250,245,.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 10px 30px -18px rgba(60,30,20,.35); }
.brand-lockup { --brand-type: 26px; --brand-icon: .77em; display: inline-flex; align-items: center; gap: .11em; flex-shrink: 0; width: fit-content; margin-right: 44px; color: var(--brand-ink); font-family: 'Manrope', sans-serif; font-size: var(--brand-type); font-weight: 600; line-height: 1; letter-spacing: -.065em; white-space: nowrap; }
.brand-mark { display: block; width: var(--brand-icon); height: var(--brand-icon); flex-shrink: 0; background: currentColor; -webkit-mask: url('/assets/casie-mark.webp') center / contain no-repeat; mask: url('/assets/casie-mark.webp') center / contain no-repeat; transform: translateY(.025em); }
.nav-links { display: none; align-items: center; gap: 28px; flex: 1; }
.nav-links a, .nav-login { font-size: 14px; font-weight: 500; letter-spacing: -.025em; color: rgba(0,0,0,.8); transition: color .15s; }
.nav-links a:hover, .nav-login:hover { color: #000; }
.nav-right { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.nav-login { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid #000; border-radius: 10px; padding: 6px 12px; background: #000; color: #fff; font: inherit; font-size: 14px; font-weight: 500; line-height: 20px; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { transform: scale(1.02); }
.btn:active { transform: scale(.98); }
.btn img { width: 23px; height: 23px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,.2); }

/* The stage: home hero gradient, noise, fading to white above the footer. */
.stage { position: relative; overflow: hidden; isolation: isolate; padding: 128px 0 72px; }
.stage::before { content: ''; position: absolute; inset: 0; z-index: -2; background:
    radial-gradient(60% 50% at 12% 8%, rgba(255,214,150,.55) 0%, rgba(255,214,150,0) 70%),
    radial-gradient(50% 60% at 100% 100%, rgba(120,90,255,.55) 0%, rgba(120,90,255,0) 70%),
    radial-gradient(45% 45% at 70% 45%, rgba(255,45,146,.28) 0%, rgba(255,45,146,0) 72%),
    linear-gradient(168deg, #F7A03A 0%, #F5850A 24%, #EE6A6E 54%, #A56CF2 86%, #7F63F0 100%); }
.stage::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .4; mix-blend-mode: multiply; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); background-size: 160px 160px; -webkit-mask-image: linear-gradient(180deg, black 0%, black 70%, transparent 100%); mask-image: linear-gradient(180deg, black 0%, black 70%, transparent 100%); }
.stage-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; width: calc(100vw - 40px); max-width: 1056px; margin: 0 auto; }

/* Left: the promise. */
.pitch { display: flex; flex-direction: column; min-width: 0; color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(0,0,0,.55); }
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #f5850a; }
.pitch h1 { margin: 0; font-size: 42px; line-height: 1.04; font-weight: 400; letter-spacing: -.025em; color: #fff; }
.pitch-sub { max-width: 560px; margin: 26px 0 0; font-size: 18px; line-height: 1.5; font-weight: 400; color: #fff; text-wrap: pretty; }
.pitch-list { display: grid; gap: 22px; margin: 44px 0 0; padding: 0; list-style: none; }
.pitch-list li { display: flex; align-items: flex-start; gap: 10px; max-width: 540px; font-size: 16.5px; line-height: 1.45; font-weight: 400; color: #fff; }
.pitch-check { display: grid; place-items: center; flex: 0 0 20px; width: 20px; height: 24px; color: #fff; }
.pitch-check svg { width: 20px; height: 20px; }
.pitch-proof { min-width: 0; }
.proof-label { margin: 0 0 16px; font-size: 14px; font-weight: 400; color: rgba(255,255,255,.9); }
.proof-logos { display: flex; align-items: center; gap: 32px; }
.proof-logos img { filter: brightness(0) invert(1); opacity: .92; }
.proof-probation { filter: invert(1) grayscale(1) brightness(1.7) !important; }
.proof-nhs { width: 68px; }
.proof-probation { width: 104px; }

/* Right: the card. */
.card { position: relative; min-width: 0; padding: 30px 24px 26px; border-radius: 22px; background: #fff; box-shadow: 0 50px 100px -40px rgba(60,20,60,.5), 0 20px 40px -24px rgba(60,20,60,.3); }
.card h2 { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -.03em; }
.card-sub { margin: 6px 0 20px; font-size: 14.5px; line-height: 1.5; color: var(--ink-50); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 14px; }
.field { min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; color: #1a1a1a; }
.field label small { margin-left: 4px; font-size: 12px; font-weight: 500; color: var(--ink-50); }
.field input, .field select { display: block; width: 100%; min-height: 44px; margin: 0; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); font: inherit; font-size: 15px; line-height: 1.3; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.field select { padding-right: 40px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23697586' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; }
.field select:invalid, .field select option[value=""] { color: #8a9099; }
.field input::placeholder { color: #a3a8b1; }
.field input:hover, .field select:hover { border-color: #c9ccd3; }
.field input:focus, .field select:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(81,67,221,.14); }
.field input:user-invalid { border-color: #d9534f; }
.submit { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 52px; margin: 18px 0 0; padding: 12px 20px; border: 1px solid #000; border-radius: 14px; background: #000; color: #fff; font: inherit; font-size: 16px; font-weight: 600; letter-spacing: -.01em; cursor: pointer; box-shadow: 0 12px 30px -14px rgba(0,0,0,.5); transition: transform .15s, box-shadow .15s, background .15s; }
.submit:hover { transform: scale(1.015); box-shadow: 0 16px 36px -14px rgba(0,0,0,.55); }
.submit:active { transform: scale(.985); }
.submit img { width: 27px; height: 27px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,.2); }
.fine { margin: 12px 0 0; font-size: 12.5px; line-height: 1.55; text-align: center; color: var(--ink-50); }
.fine a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0,0,0,.25); }
.fine a:hover { color: #000; }

/* Thanks. */
.stage--thanks { min-height: 100vh; display: flex; align-items: center; padding-top: 96px; }
.thanks { width: calc(100vw - 40px); max-width: 520px; margin: 0 auto; text-align: center; }
.thanks .card { padding: 40px 28px 32px; }
.thanks-tick { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%; background: #e3f8e8; color: #26753a; }
.thanks-tick svg { width: 26px; height: 26px; }
.thanks h1 { margin: 0; color: #000; font-size: 30px; line-height: 1.15; font-weight: 600; letter-spacing: -.03em; }
.thanks p { margin: 12px auto 0; max-width: 380px; font-size: 15.5px; line-height: 1.55; color: var(--ink-70); }
.thanks p a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0,0,0,.25); }
.thanks .btn { margin-top: 24px; padding: 10px 18px; border-radius: 12px; font-size: 15px; }

/* Footer. */
.foot { background: #fff; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; width: calc(100vw - 40px); max-width: 1056px; margin: 0 auto; padding: 22px 0 26px; font-size: 13px; color: var(--ink-70); }
.foot-inner p { margin: 0; }
.foot-inner p a { color: rgba(0,0,0,.75); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0,0,0,.2); }
.foot-inner nav { display: flex; align-items: center; gap: 20px; }
.foot-inner nav a:hover { color: #000; }

@media (min-width: 640px) {
    .card { padding: 36px 36px 30px; border-radius: 24px; }
    .pitch h1 { font-size: 44px; }
}
@media (min-width: 1024px) {
    .nav-wrap { top: 8px; padding: 0 24px; }
    .nav { border-radius: 16px; }
    .nav-links, .nav-login { display: flex; }
    .stage { display: flex; align-items: center; padding: 96px 0 56px; min-height: 100vh; }
    .stage-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); grid-template-rows: auto 1fr; gap: 0 72px; align-items: stretch; }
    .pitch { grid-column: 1; grid-row: 1; padding-top: 8px; }
    .pitch h1 { font-size: clamp(40px, 3.5vw, 50px); }
    .stage-inner > .card { grid-column: 2; grid-row: 1 / 3; }
    .pitch-proof { grid-column: 1; grid-row: 2; align-self: end; padding-top: 56px; }
    .card { padding: 32px 36px 28px; }
}
@media (max-width: 1023px) {
    .brand-lockup { margin-right: 16px; }
    .stage:not(.stage--thanks) { padding-top: 88px; }
    .stage-inner { gap: 24px; }
    .pitch-sub { margin-top: 18px; }
    .pitch-list { gap: 10px; margin-top: 22px; }
    /* The logos are a secondary signal: one compact row, kept above the form so it still lands before the ask. */
    .pitch-proof { order: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 14px; }
    .stage-inner > .card { order: 2; margin-top: 10px; }
    .proof-label { margin: 0; font-size: 12px; }
    .proof-logos { gap: 16px; }
    .proof-nhs { width: 44px; }
    .proof-probation { width: 70px; }
}
@media (max-width: 639px) {
    .nav { padding: 8px 16px; }
    .stage { padding-top: 104px; }
    .stage:not(.stage--thanks) { padding: 76px 0 40px; }
    .stage-inner { width: calc(100vw - 32px); gap: 22px; }
    .pitch h1 { font-size: 30px; line-height: 1.1; text-wrap: balance; }
    .pitch-sub { margin-top: 18px; font-size: 15px; line-height: 1.5; }
    .pitch-list { gap: 12px; margin-top: 26px; }
    .pitch-list li { gap: 8px; font-size: 14px; line-height: 1.4; }
    .pitch-check { flex-basis: 16px; width: 16px; height: 20px; }
    .pitch-check svg { width: 16px; height: 16px; }
    .card { padding: 24px 20px; }
    .card-sub { margin-bottom: 18px; }
    .fields { gap: 14px 10px; }
    .field--half-stack { grid-column: 1 / -1; }
    .field input, .field select { font-size: 16px; }
    .foot-inner { width: calc(100vw - 32px); }
}
@media (max-width: 359px) {
    .brand-lockup { --brand-type: 24px; margin-right: 8px; }
    .btn img { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
