/* =====================================================================
   Cover Letter Generator (/cover-letter-generator) — page stylesheet.

   Loaded AFTER css/about-us.css, which supplies the guest-mode base and the
   shared nav/footer rules used by partials.nav / partials.footer.

   Everything here is scoped under .clg, including the design tokens: the
   attached design uses token names that also exist in about-us.css (--ink,
   --line, --r, --sh-1 …), so they are declared on the page wrapper instead of
   :root. Custom properties inherit, so the page gets its own palette while the
   site header and footer — which live outside .clg — keep theirs untouched.
   ===================================================================== */

.clg {
    /* ink, from the homepage headline colour */
    --navy-950: #070c16;
    --navy-900: #0b1220;
    --navy-800: #1a2332;
    --navy-700: #283242;
    --navy-500: #46525f;
    --navy-400: #5a6676;
    --navy-300: #8b95a3;
    --navy-200: #c3cbd6;
    --navy-100: #e4e9f0;
    --navy-50: #eef2f7;
    --navy-25: #f4f7fb;
    /* the brand green, from the homepage buttons and logo */
    --teal-800: #0f5a2e;
    --teal-700: #15803d;
    --teal-600: #16a34a;
    --teal-500: #22c55e;
    --teal-300: #6ee7a0;
    --teal-100: #c8f0d7;
    --teal-50: #e9f9ef;
    --gold-700: #92610b;
    --gold-500: #eab308;
    --gold-100: #fde68a;
    --gold-50: #fefce8;
    --danger-600: #b23b24;
    --danger-100: #f2cfc7;
    --danger-50: #fdf0ed;

    --ink: var(--navy-900);
    --ink-2: var(--navy-700);
    --ink-3: var(--navy-400);
    --ink-4: var(--navy-300);
    --surface: #ffffff;
    --surface-2: var(--navy-25);
    --surface-3: var(--navy-50);
    --line: var(--navy-100);
    --line-2: var(--navy-50);
    --line-strong: var(--navy-200);
    --accent: var(--teal-600);
    --accent-hover: var(--teal-700);
    --accent-solid: var(--teal-700);
    --accent-solid-hover: var(--teal-800);
    --accent-tint: var(--teal-50);
    --accent-line: var(--teal-100);
    --focus: var(--teal-600);

    --s1: 4px;
    --s2: 8px;
    --s3: 12px;
    --s4: 16px;
    --s5: 24px;
    --s6: 32px;
    --s7: 48px;
    --s8: 64px;
    --s9: 96px;
    --r-xs: 4px;
    --r-sm: 8px;
    --r: 12px;
    --r-lg: 16px;
    --r-xl: 22px;
    --r-pill: 99px;
    --sh-1: 0 1px 2px rgba(11, 18, 32, .05);
    --sh-2: 0 1px 2px rgba(11, 18, 32, .04), 0 8px 24px -12px rgba(11, 18, 32, .16);
    --sh-paper: 0 1px 2px rgba(11, 18, 32, .05), 0 24px 56px -22px rgba(11, 18, 32, .24);
    --sh-green: 0 1px 2px rgba(15, 90, 46, .18), 0 10px 22px -8px rgba(22, 163, 74, .45);
    --wrap: 1180px;
    --ease: cubic-bezier(.2, .6, .2, 1);

    background: var(--surface);
    color: var(--ink);
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.clg * {
    box-sizing: border-box;
}

.clg a {
    color: inherit;
}

.clg img {
    max-width: 100%;
    display: block;
}

.clg h1,
.clg h2,
.clg h3 {
    margin: 0;
    letter-spacing: -.02em;
}

.clg :focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
    border-radius: var(--r-xs);
}

.clg .wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--s6);
}

/* ---------- buttons: three roles, states on every one ---------- */
.clg .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s2);
    height: 50px;
    padding: 0 var(--s6);
    border-radius: var(--r-pill);
    border: 1px solid transparent;
    font: 700 15px/1 "Plus Jakarta Sans", sans-serif;
    letter-spacing: -.01em;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: none;
    transition: background .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease), box-shadow .16s var(--ease), transform .1s var(--ease);
}

.clg .btn:active {
    transform: translateY(1px);
}

.clg .btn-main {
    background: var(--accent-solid);
    background-color: var(--accent-solid);
    color: #fff;
    box-shadow: var(--sh-green);
}

.clg .btn-main:hover {
    background-color: var(--accent-solid-hover);
    box-shadow: 0 1px 2px rgba(15, 90, 46, .2), 0 14px 28px -8px rgba(22, 163, 74, .5);
}

.clg .btn-line {
    background: var(--surface);
    border-color: var(--line-strong);
    color: var(--ink);
}

.clg .btn-line:hover {
    border-color: var(--ink-3);
    background: var(--surface-2);
}

/* outlined, so the upload stays the one obvious primary action */
.clg .btn-alt {
    background: var(--surface);
    border-color: var(--line-strong);
    color: var(--ink);
}

.clg .btn-alt:hover {
    border-color: var(--teal-600);
    color: var(--teal-700);
}

.clg .btn:disabled,
.clg .btn[aria-disabled="true"] {
    background: var(--navy-200);
    color: var(--navy-500);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.clg .btn-sm {
    height: 40px;
    padding: 0 var(--s5);
    font-size: 14px;
}

.clg .btn-lg {
    height: 48px;
    padding: 0 var(--s5);
    font-size: 15px;
}

.clg .cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s3);
}

.clg .cta-row.centre {
    justify-content: center;
    margin-top: var(--s6);
}

/* ---------- type scale ---------- */
.clg .eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin: 0 0 var(--s4);
    color: var(--teal-700);
    background: none;
    border: 0;
    padding: 0;
    border-radius: 0;
}

.clg .title {
    font-size: clamp(27px, 3.1vw, 40px);
    line-height: 1.1;
    letter-spacing: -.03em;
    font-weight: 800;
    margin: 0;
}

.clg .lead {
    font-size: clamp(16px, 1.25vw, 18.5px);
    line-height: 1.6;
    color: var(--ink-2);
    margin: var(--s4) 0 0;
    max-width: 56ch;
}

/* a document surface is set like a document, not like an interface */
.clg .doc {
    font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
}

/* ---------- section shells ---------- */
.clg .sec {
    padding: var(--s8) 0;
    position: relative;
    background: var(--surface);
}

.clg .sec-alt {
    background: var(--surface-2);
}

.clg .sec-head {
    max-width: 62ch;
    margin: 0 0 var(--s6);
}

.clg .sec-head .lead {
    margin-top: var(--s4);
}

.clg .sec-head.centred {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: 720px;
}

.clg .sec-head.centred .lead {
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   HERO
   ============================================================ */
.clg .hero {
    position: relative;
    overflow: hidden;
    padding: var(--s7) 0 var(--s8);
    background-color: var(--surface);
    background-image:
        radial-gradient(760px 420px at 92% -20%, rgba(34, 197, 94, .16), transparent 64%),
        radial-gradient(620px 360px at 2% -10%, rgba(99, 140, 255, .08), transparent 60%);
    border-bottom: 1px solid var(--line);
}

/* the faintest dot field, so white reads as a surface rather than a blank */
.clg .hero:before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .5;
    background-image: radial-gradient(rgba(11, 18, 32, .07) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(640px 320px at 50% 6%, #000, transparent 72%);
    mask-image: radial-gradient(640px 320px at 50% 6%, #000, transparent 72%);
}

.clg .hero .wrap {
    position: relative;
    z-index: 1;
}

.clg .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    gap: var(--s8);
    align-items: center;
    text-align: left;
}

.clg .breadcrumb {
    font-size: 13px;
    color: var(--ink-3);
    margin: 0 0 var(--s2);
}

.clg .breadcrumb a {
    color: var(--ink-2);
    text-decoration: none;
}

.clg .breadcrumb a:hover {
    color: var(--teal-700);
    text-decoration: underline;
}

.clg .breadcrumb span[aria-current] {
    color: var(--ink-3);
}

.clg .hero h1 {
    color: var(--ink);
    font-size: clamp(38px, 5.4vw, 72px);
    line-height: 1;
    letter-spacing: -.042em;
    font-weight: 800;
    margin: 0;
}

.clg .hero h1 em {
    font-style: normal;
    color: var(--teal-700);
    background: linear-gradient(transparent 68%, var(--teal-100) 68%);
}

.clg .hero-lede {
    margin: var(--s5) 0 0;
    font-size: clamp(16.5px, 1.35vw, 19px);
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--ink);
}

.clg .hero-sub {
    font-size: clamp(15px, 1.1vw, 16.5px);
    line-height: 1.6;
    color: var(--ink-2);
    margin: 10px 0 0;
    max-width: 52ch;
}

/* the console: the only thing on this screen you can act on */
.clg .console {
    margin: 0;
    text-align: left;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: var(--s4);
    box-shadow: var(--sh-paper);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s3);
}

.clg .drop,
.clg .altbox {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--r-lg);
    padding: var(--s3);
    text-align: center;
    background: var(--surface-2);
}

.clg .drop {
    transition: border-color .18s var(--ease), background .18s var(--ease);
}

.clg .drop.over {
    border-color: var(--teal-600);
    background: var(--accent-tint);
}

.clg .drop-t {
    margin: 0;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.01em;
}

.clg .drop-s {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--ink-3);
}

.clg .drop .btn,
.clg .altbox .btn {
    width: 100%;
    min-width: 0;
}

.clg .drop-privacy {
    grid-column: 1/-1;
    display: flex;
    gap: 7px;
    align-items: center;
    justify-content: center;
    margin: var(--s2) auto var(--s1);
    max-width: 62ch;
    font-size: 12px;
    line-height: 1.45;
    color: var(--ink-3);
    text-align: left;
}

.clg .drop-privacy svg {
    flex: 0 0 auto;
    color: var(--teal-600);
}

.clg .orline {
    display: flex;
    align-items: center;
    gap: var(--s3);
    margin: 0;
}

.clg .orline:before,
.clg .orline:after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.clg .orline span {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-3);
}

/* ---------- the fact strip ---------- */
.clg .facts {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.clg .facts-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.clg .facts-row>div {
    padding: var(--s6) var(--s5);
    text-align: center;
    border-left: 1px solid var(--line);
}

.clg .facts-row>div:first-child {
    border-left: 0;
}

.clg .facts-row b {
    display: block;
    font-size: clamp(19px, 1.9vw, 24px);
    font-weight: 800;
    letter-spacing: -.025em;
    color: var(--teal-700);
}

.clg .facts-row span {
    display: block;
    margin-top: 5px;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--ink-3);
}

/* ---- the three cards under the hero ---------------------------------- */
.clg .trio {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s5);
    margin-top: var(--s6);
}

.clg .tcard {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: var(--s5);
    box-shadow: var(--sh-1);
    display: flex;
    flex-direction: column;
    text-align: left;
}

.clg .tcard h3 {
    font-size: clamp(21px, 1.6vw, 25px);
    line-height: 1.2;
    letter-spacing: -.028em;
    font-weight: 800;
    min-height: 2.4em;
    margin: 0;
}

.clg .tshot {
    position: relative;
    height: 186px;
    margin: var(--s5) 0;
    border-radius: var(--r-lg);
    background: var(--surface-2);
    border: 1px solid var(--line-2);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--s4);
}

.clg .tcard p {
    margin: 0 0 var(--s3);
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--ink-2);
}

.clg .tcard p:last-child {
    margin-bottom: 0;
}

/* card one: the advert, matched */
.clg .advt {
    width: 100%;
    max-width: 272px;
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--sh-2);
    overflow: hidden;
}

.clg .advt-bar {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px var(--s3);
    background: var(--surface-2);
    border-bottom: 1px solid var(--line-2);
}

.clg .advt-bar i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--line-strong);
}

.clg .advt-bar span {
    margin-left: 6px;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--ink-3);
    letter-spacing: .06em;
    text-transform: uppercase;
}

.clg .advt-body {
    padding: 11px var(--s3) var(--s3);
}

.clg .advt-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 7px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-2);
    white-space: nowrap;
}

.clg .advt-row:last-child {
    margin-bottom: 0;
}

.clg .advt-row b {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 10px;
    line-height: 1;
}

.clg .advt-row.ok b {
    background: var(--teal-100);
    color: var(--teal-800);
}

.clg .advt-row.gap b {
    background: var(--gold-100);
    color: #7a5109;
}

.clg .advt-row.gap {
    color: var(--ink-3);
}

/* card two: a stack of finished letters */
.clg .stack {
    position: relative;
    width: 148px;
    height: 166px;
}

.clg .sheet {
    position: absolute;
    inset: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    box-shadow: var(--sh-2);
    padding: 14px 13px;
}

.clg .stack .sheet:nth-child(1) {
    transform: rotate(-7deg) translateX(-16px);
}

.clg .stack .sheet:nth-child(2) {
    transform: rotate(5deg) translateX(14px);
}

.clg .stack .sheet:nth-child(3) {
    transform: rotate(-1deg);
}

.clg .sheet i {
    display: block;
    height: 5px;
    border-radius: 3px;
    background: var(--navy-200);
    margin-bottom: 7px;
    opacity: .85;
}

.clg .sheet i:first-child {
    width: 52%;
    background: var(--navy-200);
    height: 7px;
    margin-bottom: 11px;
}

.clg .sheet i:nth-child(5) {
    width: 72%;
}

.clg .sheet i:last-child {
    width: 40%;
}

/* card three: the letter next to the CV it came from */
.clg .pairshot {
    position: relative;
    width: 100%;
    max-width: 276px;
    height: 166px;
}

.clg .pairshot .sheet {
    inset: auto;
    left: 0;
    top: 4px;
    width: 108px;
    height: 158px;
    transform: none;
}

.clg .pcard {
    position: absolute;
    right: 0;
    bottom: 12px;
    width: 148px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--sh-paper);
    padding: var(--s3);
}

.clg .pcard b {
    display: block;
    font-size: 12.5px;
    line-height: 1.3;
    letter-spacing: -.015em;
    color: var(--ink);
}

.clg .pcard span {
    display: block;
    font-size: 11px;
    color: var(--ink-3);
    margin-top: 2px;
}

.clg .pcard em {
    display: inline-block;
    margin-top: 9px;
    font-style: normal;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--teal-800);
    background: var(--teal-50);
    border: 1px solid var(--accent-line);
    border-radius: var(--r-pill);
    padding: 3px 9px;
}

/* ============================================================
   WORKFLOW — the product demonstrated, one stage at a time
   ============================================================ */
.clg .work {
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: var(--s8);
    align-items: start;
}

.clg .stages {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-left: 2px solid var(--line);
    margin: 0;
    padding: 0;
    list-style: none;
}

.clg .stage-btn {
    position: relative;
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    cursor: pointer;
    padding: var(--s5) var(--s5) var(--s5) var(--s6);
    font-family: inherit;
    color: var(--ink-3);
    transition: color .2s var(--ease);
}

.clg .stage-btn:before {
    content: "";
    position: absolute;
    left: -2px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .3s var(--ease);
}

.clg .stage-btn b {
    display: block;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-3);
    transition: color .2s var(--ease);
}

.clg .stage-btn span {
    display: block;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.025em;
    color: var(--ink-3);
    margin-top: 5px;
    transition: color .2s var(--ease);
}

.clg .stage-btn p {
    margin: 7px 0 0;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--ink-3);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .34s var(--ease), opacity .26s var(--ease), margin .34s var(--ease);
}

.clg .stage-btn[aria-selected="true"]:before {
    transform: scaleY(1);
}

.clg .stage-btn[aria-selected="true"] b {
    color: var(--teal-700);
}

.clg .stage-btn[aria-selected="true"] span {
    color: var(--ink);
}

.clg .stage-btn[aria-selected="true"] p {
    max-height: 260px;
    opacity: 1;
    color: var(--ink-2);
}

.clg .stage-btn:hover span {
    color: var(--ink);
}

.clg .panes {
    position: relative;
}

.clg .wpane {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--sh-2);
    overflow: hidden;
}

.clg .panes .wpane {
    display: none;
}

.clg .panes .wpane.on {
    display: block;
    animation: clg-fade .34s var(--ease);
}

@keyframes clg-fade {
    from {
        opacity: 0;
        transform: translateY(7px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.clg .wbar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 11px var(--s5);
    border-bottom: 1px solid var(--line-2);
    background: var(--surface-2);
}

.clg .wdot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--navy-200);
}

.clg .wbar p {
    margin: 0 0 0 var(--s3);
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-3);
    letter-spacing: .02em;
}

.clg .wbody {
    padding: var(--s6);
}

.clg .wlbl {
    margin: 0 0 var(--s3);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.clg .srcs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 var(--s5);
}

.clg .src {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink-3);
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    padding: 6px 11px;
}

.clg .src.on {
    background: var(--accent-tint);
    border-color: var(--accent-line);
    color: var(--teal-800);
}

.clg .updrop {
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--r);
    padding: var(--s6);
    text-align: center;
    font-size: 14px;
    color: var(--ink-3);
    font-weight: 600;
}

.clg .upfile {
    display: flex;
    align-items: center;
    gap: var(--s3);
    margin-top: var(--s4);
    background: var(--accent-tint);
    border: 1px solid var(--accent-line);
    border-radius: var(--r);
    padding: var(--s4);
}

.clg .upfile svg {
    color: var(--teal-700);
    flex: 0 0 auto;
}

.clg .upfile b {
    display: block;
    font-size: 14px;
    color: var(--ink);
}

.clg .upfile i {
    display: block;
    font-style: normal;
    font-size: 12.5px;
    color: var(--ink-2);
    margin-top: 1px;
}

.clg .fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s3);
    margin-top: var(--s4);
}

.clg .fcell {
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 9px var(--s3);
    background: var(--surface);
}

.clg .fcell b {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.clg .fcell span {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
    margin-top: 2px;
}

.clg .reqs {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.clg .reqs li {
    display: flex;
    align-items: center;
    gap: var(--s3);
    padding: 11px 0;
    border-bottom: 1px solid var(--line-2);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink);
}

.clg .reqs li:last-child {
    border-bottom: 0;
}

.clg .reqs .ic {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    font-style: normal;
}

.clg .reqs .yes .ic {
    background: var(--teal-700);
}

.clg .reqs .no .ic {
    background: var(--gold-50);
    color: var(--gold-700);
    box-shadow: inset 0 0 0 1px var(--gold-100);
}

.clg .reqs .no {
    color: var(--ink-3);
}

.clg .reqs .tagx {
    margin-left: auto;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--ink-3);
    letter-spacing: .02em;
}

.clg .reqs .no .tagx {
    color: var(--gold-700);
}

.clg .cvlist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.clg .cvlist li {
    display: flex;
    align-items: center;
    gap: var(--s3);
    padding: 12px var(--s4);
    border: 1px solid var(--line);
    border-radius: var(--r);
    margin-bottom: 8px;
    background: var(--surface);
}

.clg .cvlist li:last-child {
    margin-bottom: 0;
}

.clg .cvlist li i {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--line-strong);
    flex: 0 0 auto;
}

.clg .cvlist li.on {
    border-color: var(--accent-line);
    background: var(--accent-tint);
}

.clg .cvlist li.on i {
    border-color: var(--teal-600);
    background: var(--teal-600);
    box-shadow: inset 0 0 0 3px #fff;
}

.clg .cvlist b {
    font-size: 14.5px;
    color: var(--ink);
}

.clg .cvlist span {
    margin-left: auto;
    font-size: 12.5px;
    color: var(--ink-3);
}

.clg .mock-ta {
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: var(--s4);
    background: var(--surface);
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-2);
}

.clg .wfoot {
    display: flex;
    align-items: center;
    gap: var(--s3);
    padding: var(--s4) var(--s6);
    border-top: 1px solid var(--line-2);
    background: var(--surface-2);
    font-size: 12.5px;
    color: var(--ink-2);
    font-weight: 600;
}

.clg .wfoot .gold {
    color: var(--gold-700);
    font-weight: 800;
}

/* ============================================================
   SAMPLE — the finished letter, shown whole
   ============================================================ */
.clg .sample {
    display: grid;
    grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
    gap: var(--s8);
    align-items: center;
}

.clg .ticks {
    list-style: none;
    margin: var(--s5) 0 var(--s6);
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.clg .ticks li {
    position: relative;
    padding-left: 30px;
    font-size: 15.5px;
    line-height: 1.5;
    color: var(--ink-2);
}

.clg .ticks li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: var(--accent-tint);
    box-shadow: inset 0 0 0 1px var(--accent-line);
}

.clg .ticks li:after {
    content: "";
    position: absolute;
    left: 6px;
    top: 9px;
    width: 6px;
    height: 3px;
    border-left: 2px solid var(--teal-700);
    border-bottom: 2px solid var(--teal-700);
    transform: rotate(-45deg);
}

.clg .paper {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-paper);
    padding: var(--s8) var(--s7);
}

.clg .ph {
    display: flex;
    align-items: baseline;
    gap: var(--s4);
    border-bottom: 2px solid var(--accent);
    padding-bottom: var(--s3);
    margin-bottom: var(--s4);
}

.clg .pn {
    margin: 0;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.026em;
    color: var(--ink);
}

.clg .pr {
    margin: 0 0 0 auto;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--teal-700);
    white-space: nowrap;
}

.clg .pc {
    margin: 0 0 var(--s6);
    font-size: 12.5px;
    color: var(--ink-3);
}

.clg .pd {
    margin: 0 0 var(--s5);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink-2);
}

.clg .pb p {
    font-size: 15px;
    line-height: 1.85;
    color: var(--navy-800);
    margin: 0 0 var(--s4);
}

.clg .pb p:last-child {
    margin-bottom: 0;
}

.clg .paper mark {
    background: var(--teal-50);
    color: var(--teal-800);
    box-shadow: inset 0 -1px 0 var(--teal-100);
    padding: 0 3px;
    border-radius: 2px;
}

.clg .pf {
    margin: var(--s6) 0 0;
    padding-top: var(--s4);
    border-top: 1px solid var(--line-2);
    font-size: 13px;
    line-height: 1.6;
    color: var(--ink-2);
}

.clg .pf b {
    color: var(--gold-700);
}

/* ---- how it works, as one row ---------------------------------------- */
.clg .steps4 {
    list-style: none;
    margin: var(--s6) 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--s5);
}

.clg .steps4 li {
    position: relative;
    padding-top: var(--s5);
    border-top: 2px solid var(--accent-line);
}

.clg .steps4 .snum {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent-solid);
    color: #fff;
    font-size: 13.5px;
    font-weight: 800;
    margin-bottom: var(--s3);
}

.clg .steps4 h3 {
    font-size: 18.5px;
    line-height: 1.3;
    letter-spacing: -.02em;
    font-weight: 800;
    margin-bottom: var(--s2);
}

.clg .steps4 p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-2);
}

/* ============================================================
   FAQ — heading holds its place while the answers scroll
   ============================================================ */
.clg .faqgrid {
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    gap: var(--s8);
    align-items: start;
}

.clg .faqgrid .side {
    position: sticky;
    top: 104px;
}

.clg .faq details {
    border-bottom: 1px solid var(--line);
}

.clg .faq details:first-child {
    border-top: 1px solid var(--line);
}

.clg .faq summary {
    list-style: none;
    cursor: pointer;
    padding: var(--s5) var(--s6) var(--s5) 0;
    position: relative;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.018em;
    color: var(--ink);
    transition: color .18s var(--ease);
}

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

.clg .faq summary:hover {
    color: var(--teal-700);
}

.clg .faq summary:after {
    content: "";
    position: absolute;
    right: 4px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--ink-3);
    border-bottom: 2px solid var(--ink-3);
    transform: translateY(-70%) rotate(45deg);
    transition: transform .24s var(--ease);
}

.clg .faq details[open] summary:after {
    transform: translateY(-30%) rotate(-135deg);
}

.clg .faq p {
    margin: 0 0 var(--s5);
    padding-right: var(--s7);
    font-size: 15.5px;
    line-height: 1.72;
    color: var(--ink-2);
    max-width: 70ch;
}

/* ============================================================
   CLOSE
   ============================================================ */
.clg .close {
    position: relative;
    overflow: hidden;
    padding: var(--s9) 0;
    background-color: var(--surface);
    color: var(--ink);
    border-top: 1px solid var(--line);
}

.clg .close:before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(720px 400px at 22% 0%, rgba(34, 197, 94, .14), transparent 62%);
}

.clg .close .wrap {
    position: relative;
    z-index: 1;
}

.clg .close-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--s7);
    align-items: end;
}

.clg .close h2 {
    color: var(--ink);
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.06;
    letter-spacing: -.036em;
    font-weight: 800;
}

.clg .close p {
    margin: var(--s4) 0 0;
    font-size: 16.5px;
    color: var(--ink-2);
    max-width: 46ch;
}

/* ---------- scroll reveal, kept to one small move ----------
   Nothing is hidden unless the script has armed the reveal, so the page
   reads in full without JavaScript and nothing can be left invisible. */
.clg.clg-armed .rv {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.clg.clg-armed .rv.in {
    opacity: 1;
    transform: none;
}

/* an anchored jump should not land under the sticky bar */
.clg section[id] {
    scroll-margin-top: 90px;
}

@media (prefers-reduced-motion:reduce) {
    .clg.clg-armed .rv {
        opacity: 1;
        transform: none;
    }

    .clg *,
    .clg *:before,
    .clg *:after {
        animation: none !important;
        transition: none !important;
    }
}

@media print {
    .clg.clg-armed .rv {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ============================================================
   RESPONSIVE — recomposed, not shrunk
   ============================================================ */
@media (max-width:1040px) {

    /* the layered documents stop being readable here, so the hero becomes
       one column and the composition moves below the action */
    .clg .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--s6);
    }

    .clg .hero-tool {
        max-width: 620px;
    }

    .clg .hero h1 {
        max-width: none;
        font-size: clamp(31px, 4.4vw, 42px);
    }

    .clg .hero-sub {
        max-width: 54ch;
    }

    .clg .console {
        max-width: 620px;
    }

    .clg .work {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--s6);
    }

    .clg .work>* {
        min-width: 0;
    }

    .clg .faqgrid,
    .clg .sample {
        grid-template-columns: 1fr;
        gap: var(--s6);
    }

    .clg .facts-row {
        grid-template-columns: 1fr 1fr;
    }

    .clg .facts-row>div:nth-child(3) {
        border-left: 0;
    }

    .clg .facts-row>div:nth-child(n+3) {
        border-top: 1px solid var(--line);
    }

    .clg .faqgrid .side {
        position: static;
    }

    .clg .close-grid {
        grid-template-columns: 1fr;
        align-items: start;
    }
}

@media (max-width:980px) {
    .clg .trio {
        grid-template-columns: 1fr;
        gap: var(--s4);
        margin-top: var(--s6);
    }

    .clg .tcard h3 {
        min-height: 0;
    }

    .clg .tshot {
        height: 196px;
    }
}

@media (max-width:900px) {
    .clg .steps4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--s5);
        margin-top: var(--s6);
    }

    /* every tapped thing gets a 44px box, which is the size a thumb needs */
    .clg .breadcrumb a {
        padding: 8px 2px;
        margin: -8px -2px;
    }

    .clg .wfoot .btn,
    .clg .cta-row .btn {
        min-height: 46px;
    }

    .clg details summary {
        min-height: 46px;
        display: flex;
        align-items: center;
        gap: var(--s3);
    }

    /* nothing that carries meaning drops below 12.5px */
    .clg .drop-privacy {
        font-size: 13px;
        line-height: 1.5;
    }

    .clg .stage-btn b {
        font-size: 12.5px;
    }

    .clg .tagx {
        font-size: 12px;
    }

    .clg .wfoot {
        font-size: 13px;
    }

    .clg .eyebrow {
        font-size: 12.5px;
    }

    .clg .facts-row b {
        font-size: 17px;
    }
}

@media (max-width:720px) {
    .clg .wrap {
        padding: 0 var(--s5);
    }

    .clg .sec {
        padding: var(--s8) 0;
    }

    .clg .close {
        padding: var(--s8) 0 var(--s7);
    }

    .clg .hero {
        padding: var(--s6) 0 var(--s7);
    }

    .clg .hero h1 {
        letter-spacing: -.034em;
    }

    .clg .console {
        padding: var(--s3);
        border-radius: var(--r-lg);
        grid-template-columns: 1fr;
        gap: var(--s2);
    }

    .clg .drop,
    .clg .altbox {
        padding: var(--s4);
    }

    .clg .drop-t {
        font-size: 15px;
    }

    .clg .drop-s {
        display: none;
    }

    .clg .drop-privacy {
        margin-top: var(--s3);
        font-size: 12px;
    }

    .clg .drop .btn,
    .clg .altbox .btn {
        width: 100%;
        min-width: 0;
    }

    .clg .orline {
        flex-direction: row;
        margin: var(--s2) 0;
    }

    .clg .orline:before,
    .clg .orline:after {
        width: auto;
        height: 1px;
        min-height: 0;
    }

    .clg .stage-btn {
        padding: var(--s4) var(--s3) var(--s4) var(--s5);
    }

    .clg .stage-btn span {
        font-size: 17px;
    }

    .clg .wbody {
        padding: var(--s5);
    }

    .clg .paper {
        padding: var(--s6) var(--s5);
    }

    .clg .ph {
        flex-direction: column;
        gap: 4px;
    }

    .clg .pr {
        margin-left: 0;
    }

    .clg .fields {
        grid-template-columns: 1fr;
    }

    .clg .facts-row {
        grid-template-columns: 1fr;
    }

    .clg .facts-row>div {
        border-left: 0;
        border-top: 1px solid var(--line);
        padding: var(--s5);
    }

    .clg .facts-row>div:first-child {
        border-top: 0;
    }

    .clg .cta-row .btn {
        width: 100%;
    }
}

@media (max-width:620px) {
    .clg .steps4 {
        grid-template-columns: 1fr;
        gap: var(--s5);
    }

    .clg .steps4 li {
        padding-top: var(--s4);
    }

    .clg .sec {
        padding: var(--s7) 0;
    }

    .clg .sec-head {
        margin-bottom: 0;
    }

    .clg .trio {
        margin-top: var(--s5);
    }

    .clg .tcard {
        padding: var(--s5);
    }

    .clg .tcard h3 {
        font-size: 20px;
    }

    .clg .tcard p {
        font-size: 15px;
    }

    .clg .tshot {
        height: 172px;
        margin: var(--s4) 0;
    }

    .clg .title {
        font-size: clamp(26px, 7.4vw, 34px);
    }

    .clg .lead {
        font-size: 16px;
    }

    .clg .facts-row>div {
        padding: var(--s4);
    }

    .clg .wfoot {
        display: block;
        font-size: 12px;
        padding: var(--s4);
    }

    .clg .wfoot .btn {
        display: flex;
        justify-content: center;
        width: 100%;
        margin: var(--s3) 0 0;
    }

    .clg .faqgrid {
        gap: var(--s5);
    }

    .clg details summary {
        font-size: 16px;
    }

    .clg .close h2 {
        font-size: clamp(25px, 7vw, 32px);
    }
}

/* ---- the narrowest phones still in use ------------------------------- */
@media (max-width:360px) {
    .clg .wrap {
        padding: 0 var(--s4);
    }

    .clg .tcard,
    .clg .paper {
        padding: var(--s4);
    }

    .clg .hero h1 {
        font-size: 34px;
    }
}
