/*
 * Styles for landing.html only. The legal pages (index/privacy/terms) use
 * styles.css and are unaffected by anything in here.
 *
 * ┌─ WHY THIS FILE IS SEPARATE, AND WHY IT REDECLARES THE TOKENS ────────────┐
 * │ styles.css styles bare elements — `main` is capped at 44rem, `h1` is      │
 * │ 34px, `details` gets a border. That is right for a legal document and     │
 * │ wrong for a full-bleed marketing page, so landing.html loads THIS FILE    │
 * │ ONLY. Loading both would mean overriding styles.css on almost every rule. │
 * │                                                                          │
 * │ The cost is that the colour tokens below are a third copy of the same     │
 * │ values. The chain is:                                                     │
 * │     src/theme/colors.ts  →  docs/styles.css  →  docs/landing.css          │
 * │ Change a brand colour and you must change it in all three.                │
 * └──────────────────────────────────────────────────────────────────────────┘
 *
 * Deliberately dependency-free, matching the rest of docs/: no build step, no
 * CDN font, no icon webfont, no JavaScript. Every icon is an inline <svg>
 * sprite in the page, and the type is the system UI stack. The page must render
 * identically with the network switched off after first load.
 */

:root {
    /* Brand — mirrors styles.css / src/theme/colors.ts */

    /*
     * --primary and --primary-dark are FILL colours. Neither may be used as a
     * text colour: 2.14:1 and 2.74:1 on white fail the 4.5:1 AA floor for normal
     * text, the 3:1 floor for large text, AND the 3:1 floor for meaningful icons
     * and focus rings. Use --link for anything that has to be read or seen.
     */
    --primary: #57c0cb;
    --primary-dark: #45aab5;

    /*
     * The readable brand cyan: same hue (185.7deg) and saturation as --primary,
     * lightness walked down until it clears 4.5:1 on every background here.
     *   on #ffffff  5.42:1     on #f5f5f7  4.98:1
     *   on #d4f1f4  4.57:1  ←  binding case (hero + header gradient)
     * Do not lighten. #1f7d88 reads as close enough but fails on #f5f5f7 (4.44)
     * and #d4f1f4 (4.07) — the same trap that caught #6e6e73 for the greys.
     */
    --link: #26747c;
    --link-hover: #186c76;

    /*
     * Label colour for text/icons on a --primary or --gold fill.
     * 7.86:1 on --primary; white would be 2.14:1. Kept as its own token so that
     * darkening a brand fill later flips the label in one place.
     */
    --on-primary: #1d1d1f;

    --dark-text: #1d1d1f;
    /*
     * Only usable on the dark honesty band, where it measures 4.8:1 against
     * #1d1d1f. On any light background use --gray-strong instead — and note
     * that #636366 does NOT work on the dark band (2.7:1), so the two are not
     * interchangeable in either direction.
     */
    --gray-text: #86868b;
    --light-cyan: #d4f1f4;
    --gold: #f5a623;
    --surface: #f5f5f7;
    --hairline: rgba(210, 210, 215, 0.6);

    /*
     * #86868b is 3.6:1 on white — below the 4.5:1 AA floor for normal text.
     *
     * An earlier version of this file split the difference, using #86868b for
     * "large text (19px+)" on the grounds that the 3:1 large-text floor
     * applied. That was simply wrong: WCAG large text means 24px regular or
     * 18.66px **bold**, so the 19px hero lede and the 18px section subheads are
     * normal text and need the full 4.5:1. They now use --gray-strong.
     *
     * #636366 matches styles.css and is the lightest grey clearing 4.5:1 on
     * every background here — white 5.99:1, --surface 5.50:1, and --light-cyan
     * 5.04:1 for the hero and header, which is the binding case.
     */
    --gray-strong: #636366;

    /* Condition grades — mirrors CONDITION_GRADES in src/onboarding/content.ts */
    --cond-excellent-bg: #d7f5dd;
    --cond-excellent-fg: #207a37; /* 4.61:1 on its bg — the iOS green was 1.90:1 */
    --cond-good-bg: #d7e6ff;
    --cond-good-fg: #0062cc; /* 4.60:1 — was 3.19:1 */
    --cond-fair-bg: #fff4d7;
    --cond-fair-fg: #a35f00; /* 4.57:1 — was 2.01:1 */
    --cond-poor-bg: #ffd7d7;
    --cond-poor-fg: #c90b00; /* 4.52:1 — was 2.69:1 */

    /* Primary tints — mirrors marketing/appstore/src/tokens.css */
    --primary-08: rgba(87, 192, 203, 0.08);
    --primary-10: rgba(87, 192, 203, 0.1);

    /* Radii — mirrors the app's StyleSheets */
    --r-card: 28px;
    --r-tile: 20px;
    --r-cta: 16px;
    --r-thumb: 12px;
    --r-pill: 8px;

    /*
     * No webfont. On iOS/macOS this resolves to SF Pro — which is what the app
     * itself renders in, so the page is arguably closer to the product than
     * Inter was. Windows falls back to Segoe UI and Android to Roboto; both are
     * a little wider, which is why the hero headline is capped in `ch` below
     * rather than relying on a hard <br>.
     */
    --font:
        -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, Helvetica, Arial, sans-serif;

    --container: 1200px;
    --gutter: 40px;
    --nav-h: 72px;
}

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

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--dark-text);
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
}

/* Sticky nav means in-page anchors would land under the header. */
[id] {
    scroll-margin-top: calc(var(--nav-h) + 16px);
}

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

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Visible keyboard focus everywhere — the default is removed by nothing here,
   but the brand ring makes it legible on both light and dark sections. */
a:focus-visible,
summary:focus-visible {
    /* --link, not --primary: at 2.14:1 against white the old ring was only just
       perceptible, which is a real keyboard-navigation defect. 5.42:1 now. */
    outline: 2px solid var(--link);
    outline-offset: 3px;
    border-radius: 4px;
}

.jm-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    background: var(--dark-text);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 0 0 var(--r-thumb) 0;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.jm-skip:focus {
    left: 0;
}

/* Icon sprite host — never rendered, only referenced by <use>. */
.jm-sprite {
    display: none;
}

.jm-icon {
    width: 1em;
    height: 1em;
    display: block;
    flex-shrink: 0;
}

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

/* ========================================================================
   Header
   ======================================================================== */

.jm-header {
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    border-bottom: 1px solid var(--hairline);
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
}

.jm-header__inner {
    display: flex;
    height: var(--nav-h);
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.jm-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.4px;
    color: var(--dark-text);
    text-decoration: none;
    flex-shrink: 0;
}

.jm-brand__mark {
    display: flex;
    height: 38px;
    width: 38px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    background: var(--light-cyan);
    flex-shrink: 0;
}

.jm-brand__mark img {
    display: block;
    width: 34px;
    transform: translateY(3px);
}

.jm-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-strong);
}

.jm-nav a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.jm-nav a:hover {
    color: var(--dark-text);
}

/* ========================================================================
   Buttons / App Store badges
   ======================================================================== */

/*
 * The badges point at the permanent /app/id6775115560 App Store URL, so there
 * is no launch-day swap. Guard against a placeholder creeping back in:
 * grep -c 'REPLACE_ON_LAUNCH\|app-store-url-placeholder' landing.html  →  0
 */

.jm-badge-sm {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: var(--r-cta);
    background: var(--primary);
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    /* Dark ink on the cyan fill: 7.86:1. A white label here was 2.14:1. */
    color: var(--on-primary);
    text-decoration: none;
    transition:
        box-shadow 0.2s ease,
        background-color 0.2s ease;
    white-space: nowrap;
}

.jm-badge-sm:hover {
    background: var(--primary-dark);
    box-shadow: 0 8px 24px rgba(87, 192, 203, 0.45);
}

.jm-badge-sm svg {
    width: 14px;
    height: 17px;
    display: block;
}

.jm-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border-radius: 10px;
    background: var(--dark-text);
    padding: 13px 24px;
    text-decoration: none;
    /*
     * Required, not cosmetic. The Apple glyph is `fill="currentColor"`, and
     * without an explicit colour here it inherits the UA's default link colour
     * — which renders the Apple logo in #0000EE blue.
     */
    color: #ffffff;
    transition:
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.jm-badge:hover {
    box-shadow: 0 12px 32px rgba(29, 29, 31, 0.32);
    transform: translateY(-1px);
}

.jm-badge svg {
    width: 24px;
    height: 29px;
    display: block;
}

.jm-badge__text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    color: #ffffff;
}

.jm-badge__small {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.jm-badge__large {
    margin-top: 3px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.4px;
}

.jm-btn-ghost {
    display: inline-block;
    /* Border carries the button's boundary, so it needs 3:1 as non-text. */
    border: 1px solid var(--link);
    border-radius: var(--r-cta);
    padding: 15px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--link);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.jm-btn-ghost:hover {
    background: var(--primary-08);
}

/* ========================================================================
   Hero
   ======================================================================== */

.jm-hero {
    position: relative;
    width: 100%;
    overflow: hidden; /* contains the mascot's negative offset */
    background: linear-gradient(180deg, var(--light-cyan) 0%, #ffffff 78%);
}

.jm-hero__inner {
    display: flex;
    min-height: 680px;
    align-items: center;
    gap: 64px;
    padding-top: 56px;
    padding-bottom: 56px;
}

.jm-hero__copy {
    width: 560px;
    flex-shrink: 0;
}

.jm-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.4px;
    /* 12px/600 is normal text — bold only earns the 3:1 floor at 18.66px+. */
    color: var(--link);
}

.jm-hero h1 {
    margin: 24px 0 0;
    max-width: 19ch;
    font-size: 60px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -1.6px;
    color: var(--dark-text);
}

.jm-hero__lede {
    margin: 24px 0 0;
    max-width: 520px;
    font-size: 19px;
    line-height: 1.6;
    /* 19px regular is NOT WCAG "large text" — needs the full 4.5:1. */
    color: var(--gray-strong);
}

.jm-hero__ctas {
    margin-top: 36px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.jm-hero__note {
    margin: 16px 0 0;
    font-size: 15px;
    color: var(--gray-strong);
}

.jm-trust {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    border-top: 1px solid var(--hairline);
    padding-top: 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-strong);
    list-style: none;
    padding-left: 0;
}

.jm-trust li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.jm-trust .jm-icon {
    font-size: 16px;
    color: var(--link);
}

.jm-hero__visual {
    position: relative;
    flex: 1;
}

/* ---------- Phone mock-up ---------- */

.jm-phone {
    position: relative;
    margin: 0 auto;
    width: 320px;
}

.jm-phone__bezel {
    position: relative;
    border: 2px solid var(--hairline);
    border-radius: 44px;
    background: var(--surface);
    padding: 10px;
    box-shadow: 0 30px 70px -20px rgba(29, 29, 31, 0.3);
}

.jm-phone__screen {
    position: relative;
    /*
     * 700, not the 620 the canvas used. The canvas was measured with Inter; SF
     * Pro sets the same copy 86px taller, which clipped the "Similar Items Sold"
     * comp row clean off the bottom — the one element that previews the proof
     * section. 320x700 is also closer to a real iPhone's aspect (393x852) than
     * 320x620 was.
     */
    height: 720px;
    overflow: hidden;
    border-radius: 36px;
    background: #ffffff;
}

.jm-phone__notch {
    position: absolute;
    left: 50%;
    top: 10px;
    z-index: 10;
    height: 24px;
    width: 92px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: var(--dark-text);
}

.jm-phone__status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-text);
}

.jm-phone__status-icons {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}

.jm-phone__title {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
}

.jm-phone__title .jm-icon {
    font-size: 22px;
    color: var(--dark-text);
}

.jm-phone__title span:last-child {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.6px;
}

.jm-phone__photo {
    margin-top: 16px;
    padding: 0 20px;
}

.jm-phone__photo img {
    height: 168px;
    width: 100%;
    border-radius: var(--r-tile);
    object-fit: cover;
    display: block;
}

.jm-result {
    margin: 16px 20px 0;
    border-radius: var(--r-tile);
    background: var(--surface);
    padding: 18px;
}

.jm-result__name {
    margin: 0;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

.jm-result__detail {
    margin: 6px 0 0;
    font-size: 14px;
    color: var(--gray-strong);
}

.jm-result__meta {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.jm-conf {
    font-size: 13px;
    color: var(--gray-strong);
}

.jm-result__label {
    margin: 18px 0 0;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.6px;
    color: var(--gray-strong);
}

.jm-result__grid {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.jm-result__grid dt {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.4px;
    color: var(--gray-strong);
}

.jm-result__grid dd {
    margin: 2px 0 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--dark-text);
}

.jm-comps-title {
    margin: 20px 0 0;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
}

.jm-comps-sub {
    margin: 2px 0 0;
    text-align: center;
    font-size: 11px;
    font-style: italic;
    color: var(--gray-strong);
}

.jm-phone__comp {
    margin: 12px 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-radius: var(--r-thumb);
    background: var(--surface);
    padding: 11px 14px;
}

.jm-phone__comp span:first-child {
    font-size: 12px;
}

.jm-phone__comp span:last-child {
    font-size: 13px;
    font-weight: 600;
}

.jm-mascot-hero {
    position: absolute;
    left: -104px;
    bottom: -28px;
    z-index: 10;
    width: 152px;
    filter: drop-shadow(0 14px 22px rgba(29, 29, 31, 0.22));
}

/* ========================================================================
   Shared section furniture
   ======================================================================== */

.jm-section {
    width: 100%;
    padding: 96px 0;
}

.jm-section--surface {
    background: var(--surface);
}

.jm-eyebrow {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.6px;
    color: var(--link);
}

.jm-h2 {
    margin: 0;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--dark-text);
}

.jm-h2--center {
    text-align: center;
}

.jm-accent {
    /* Sits inside the 40px h2. Even at the relaxed 3:1 large-text floor,
       --primary failed at 2.14:1. */
    color: var(--link);
}

.jm-sub {
    margin: 12px 0 0;
    font-size: 18px;
    color: var(--gray-strong);
}

.jm-sub--center {
    text-align: center;
}

.jm-card-label {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: var(--gray-strong);
}

/* Condition pills — colours come from CONDITION_GRADES in content.ts */
.jm-pill {
    border-radius: var(--r-pill);
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
}

.jm-pill--sm {
    padding: 4px 10px;
    font-size: 13px;
}

.jm-pill--excellent {
    background: var(--cond-excellent-bg);
    color: var(--cond-excellent-fg);
}

.jm-pill--good {
    background: var(--cond-good-bg);
    color: var(--cond-good-fg);
}

.jm-pill--fair {
    background: var(--cond-fair-bg);
    color: var(--cond-fair-fg);
}

.jm-pill--poor {
    background: var(--cond-poor-bg);
    color: var(--cond-poor-fg);
}

/* ========================================================================
   How it works
   ======================================================================== */

.jm-steps {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    list-style: none;
    padding: 0;
}

.jm-step {
    border: 1px solid var(--hairline);
    border-radius: var(--r-tile);
    background: var(--surface);
    padding: 32px;
    transition: transform 0.2s ease;
}

.jm-step:hover {
    transform: translateY(-4px);
}

.jm-step__n {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--link);
}

.jm-step .jm-icon {
    margin-top: 20px;
    font-size: 28px;
    color: var(--link);
}

.jm-step h3 {
    margin: 16px 0 0;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.4px;
}

.jm-step p {
    margin: 8px 0 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-strong);
}

/* ========================================================================
   Transparent proof — the centrepiece
   ======================================================================== */

.jm-proof__body {
    margin-top: 56px;
    display: flex;
    align-items: flex-start;
    gap: 48px;
}

.jm-proof__left {
    width: 44%;
    flex-shrink: 0;
}

.jm-photo {
    position: relative;
}

.jm-mascot-peek {
    position: absolute;
    top: -54px;
    right: 26px;
    z-index: 10;
    width: 130px;
    filter: drop-shadow(0 10px 16px rgba(29, 29, 31, 0.18));
}

.jm-photo__frame {
    overflow: hidden;
    border: 1px solid var(--hairline);
    border-radius: var(--r-card);
    background: #ffffff;
    box-shadow: 0 20px 50px -24px rgba(29, 29, 31, 0.28);
}

.jm-photo__frame img {
    height: 430px;
    width: 100%;
    object-fit: cover;
    display: block;
}

.jm-photo__caption {
    margin: 16px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-strong);
}

.jm-grades {
    margin-top: 32px;
    border: 1px solid var(--hairline);
    border-radius: var(--r-tile);
    background: #ffffff;
    padding: 24px;
}

.jm-grades__row {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.jm-grades__note {
    margin: 20px 0 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-strong);
}

.jm-grades__note strong {
    font-weight: 500;
    color: var(--dark-text);
}

/* ---------- The pipeline ---------- */

.jm-pipeline {
    position: relative;
    flex: 1;
    padding-left: 46px;
    list-style: none;
    margin: 0;
}

/* the spine linking the three stages */
.jm-pipeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 18px;
    bottom: 18px;
    border-left: 1px dashed rgba(134, 134, 139, 0.45);
}

.jm-stage {
    position: relative;
}

.jm-stage + .jm-stage {
    margin-top: 20px;
}

.jm-stage__dot {
    position: absolute;
    left: -38px;
    top: 26px;
    height: 13px;
    width: 13px;
    border-radius: 999px;
    background: var(--primary);
    box-shadow: 0 0 0 4px var(--surface);
}

.jm-stage__card {
    border: 1px solid var(--hairline);
    border-radius: var(--r-tile);
    background: #ffffff;
    padding: 24px;
}

.jm-stage__title {
    margin: 12px 0 0;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.4px;
}

.jm-stage__detail {
    margin: 4px 0 0;
    font-size: 15px;
    color: var(--gray-strong);
}

.jm-stage__meta {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.jm-stage__desc {
    margin: 16px 0 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--gray-strong);
}

/* The estimate stage needs room underneath for the connector. */
.jm-stage--estimate {
    margin-bottom: 58px;
}

.jm-estimate {
    margin-top: 16px;
    display: flex;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 0;
}

.jm-estimate > div {
    padding-bottom: 6px;
}

.jm-estimate dt {
    margin: 0;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: var(--gray-strong);
}

.jm-estimate dd {
    margin: 4px 0 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.6px;
    color: var(--dark-text);
}

.jm-estimate__mid {
    border-radius: var(--r-cta);
    background: var(--primary-10);
    padding: 10px 24px;
}

.jm-estimate__mid dt {
    font-weight: 600;
    color: var(--link);
}

.jm-estimate__mid dd {
    margin-top: 2px;
    font-size: 38px;
    line-height: 1;
    letter-spacing: -1.2px;
}

/*
 * DESIGN SIGNATURE — the dashed line that ties the $110 mid estimate to the
 * three real sold listings below it. This is the whole argument of the page in
 * one graphic: the number is not asserted, it is derived. The relationship is
 * also stated in the card labels, so nothing depends on seeing the line.
 */
.jm-connector {
    position: absolute;
    bottom: -58px;
    left: 126px;
    height: 58px;
    border-left: 1px dashed rgba(210, 210, 215, 0.9);
}

.jm-connector__label {
    position: absolute;
    bottom: -40px;
    left: 136px;
    transform: rotate(-6deg);
    background: var(--surface);
    padding: 0 6px;
    font-size: 11px;
    letter-spacing: 0.3px;
    color: var(--gray-strong);
}

.jm-connector__arrow {
    position: absolute;
    bottom: -64px;
    left: 120px;
    font-size: 13px;
    color: #d2d2d7;
}

.jm-comps {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.jm-comps li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-radius: var(--r-thumb);
    background: var(--surface);
    padding: 13px 16px;
    transition: background-color 0.15s ease;
}

.jm-comps li:hover {
    background: var(--primary-08);
}

.jm-comps__name {
    font-size: 15px;
}

.jm-comps__price {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.jm-stage__foot {
    margin: 16px 0 0;
    font-size: 13px;
    color: var(--gray-strong);
}

/* ========================================================================
   Honesty band
   ======================================================================== */

.jm-honesty {
    min-height: 260px;
    border-radius: var(--r-card);
    background: var(--dark-text);
    padding: 48px 56px;
}

.jm-honesty h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.8px;
    color: #ffffff;
}

.jm-honesty__grid {
    margin: 40px 0 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    list-style: none;
    padding: 0;
}

.jm-honesty__grid .jm-icon {
    font-size: 24px;
    color: var(--gold);
}

.jm-honesty__grid p {
    margin: 16px 0 0;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.55;
    color: #ffffff;
}

.jm-honesty__foot {
    margin: 40px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 24px;
    font-size: 14px;
    /* 4.8:1 on #1d1d1f — passes AA, unlike the same colour on white */
    color: var(--gray-text);
}

/* ========================================================================
   Pricing
   ======================================================================== */

.jm-section--pricing {
    padding: 24px 0 96px;
}

.jm-plans {
    margin: 56px auto 0;
    display: grid;
    max-width: 940px;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.jm-plan {
    position: relative;
    border: 1px solid var(--hairline);
    border-radius: var(--r-card);
    background: var(--surface);
    padding: 36px;
    transition: transform 0.2s ease;
}

.jm-plan:hover {
    transform: translateY(-4px);
}

.jm-plan--featured {
    border: 2px solid var(--primary);
    background: #ffffff;
    box-shadow: 0 18px 44px -18px rgba(87, 192, 203, 0.55);
}

.jm-plan__flag {
    position: absolute;
    right: 28px;
    top: 28px;
    border-radius: 999px;
    background: var(--gold);
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    /* White on gold is 2.03:1 — the worst pair on the page. Dark ink is 8.30:1.
       --gold is a fill colour, exactly like --primary. */
    color: var(--on-primary);
}

.jm-plan h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.4px;
}

.jm-plan__price {
    margin: 16px 0 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.jm-plan__amount {
    font-size: 46px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1.4px;
}

.jm-plan__period {
    font-size: 16px;
    color: var(--gray-strong);
}

.jm-plan__features {
    margin: 32px 0 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 16px;
    list-style: none;
    padding: 0;
}

.jm-plan__features li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.jm-plan__features .jm-icon {
    /* Meaning-bearing: these ticks are the only thing marking a feature as
       included, so they are held to the 3:1 non-text floor. */
    font-size: 18px;
    color: var(--link);
}

.jm-plan__fine {
    margin: 28px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--gray-strong);
}

.jm-pricing__foot {
    margin: 32px 0 0;
    text-align: center;
    font-size: 14px;
    color: var(--gray-strong);
}

/* ========================================================================
   FAQ
   ======================================================================== */

.jm-faq-wrap {
    max-width: 44rem;
    margin: 0 auto;
    padding: 0 20px;
}

.jm-faq-list {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jm-faq {
    border: 1px solid var(--hairline);
    border-radius: var(--r-tile);
    background: var(--surface);
    padding: 20px 24px;
    transition: background-color 0.2s ease;
}

.jm-faq[open] {
    background: #ffffff;
}

.jm-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: var(--dark-text);
    list-style: none;
}

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

.jm-faq summary::marker {
    content: '';
}

.jm-faq__plus {
    font-size: 20px;
    color: var(--link);
    transition: transform 0.22s ease;
}

.jm-faq[open] .jm-faq__plus {
    transform: rotate(45deg);
}

.jm-faq p {
    margin: 16px 0 0;
    font-size: 16px;
    line-height: 1.65;
    color: var(--gray-strong);
}

.jm-faq strong {
    font-weight: 600;
    color: var(--dark-text);
}

.jm-faq__foot {
    margin: 32px 0 0;
    text-align: center;
    font-size: 16px;
    color: var(--gray-strong);
}

.jm-link {
    font-weight: 500;
    color: var(--link);
    text-decoration: underline;
    text-decoration-color: rgba(38, 116, 124, 0.45);
    text-underline-offset: 2px;
}

.jm-link:hover {
    /* Was --primary, which made the underline LIGHTER on hover (2.14:1) — the
       opposite of the intended affordance. */
    color: var(--link-hover);
    text-decoration-color: var(--link-hover);
}

/* ========================================================================
   Final CTA
   ======================================================================== */

.jm-final {
    width: 100%;
    padding: 96px 0;
    background: linear-gradient(180deg, #ffffff 0%, var(--light-cyan) 100%);
    text-align: center;
}

.jm-final h2 {
    margin: 0;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.2px;
}

.jm-final__lede {
    margin: 20px auto 0;
    max-width: 540px;
    font-size: 18px;
    line-height: 1.6;
    color: var(--gray-strong);
}

.jm-final__cta {
    margin-top: 36px;
}

.jm-final__note {
    margin: 16px 0 0;
    font-size: 15px;
    color: var(--gray-strong);
}

/* ========================================================================
   Footer
   ======================================================================== */

.jm-footer {
    width: 100%;
    border-top: 1px solid var(--hairline);
    background: #ffffff;
}

.jm-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 48px;
    padding-bottom: 48px;
}

.jm-footer__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.4px;
}

.jm-footer__links {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
    font-size: 14px;
    color: var(--gray-strong);
}

.jm-footer__links a {
    color: var(--gray-strong);
    text-decoration: none;
    transition: color 0.2s ease;
}

.jm-footer__links a:hover {
    color: var(--dark-text);
    text-decoration: underline;
}

.jm-footer__fine {
    margin: 0;
    max-width: 560px;
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
    color: var(--gray-strong);
}

/* ========================================================================
   Responsive
   ======================================================================== */

@media (max-width: 1080px) {
    :root {
        --gutter: 24px;
    }

    .jm-hero__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 56px;
        min-height: 0;
        padding-top: 40px;
        padding-bottom: 72px;
    }

    .jm-hero__copy {
        width: 100%;
    }

    .jm-hero__visual {
        width: 100%;
        align-self: center;
    }

    .jm-hero h1 {
        font-size: 52px;
        letter-spacing: -1.2px;
    }

    .jm-proof__body {
        flex-direction: column;
        gap: 56px;
    }

    .jm-proof__left {
        width: 100%;
    }

    .jm-pipeline {
        width: 100%;
    }

    /* The mascot's -104px offset has nowhere to go once the phone is centred. */
    .jm-mascot-hero {
        left: -72px;
        width: 128px;
    }
}

@media (max-width: 860px) {
    .jm-nav {
        display: none;
    }

    .jm-steps {
        grid-template-columns: 1fr;
    }

    .jm-honesty__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .jm-plans {
        grid-template-columns: 1fr;
    }

    .jm-h2,
    .jm-final h2 {
        font-size: 32px;
        letter-spacing: -0.6px;
    }

    .jm-honesty {
        padding: 36px 28px;
    }

    .jm-mascot-hero {
        display: none;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 16px;
    }

    .jm-hero h1 {
        font-size: 38px;
        letter-spacing: -0.8px;
    }

    .jm-hero__lede,
    .jm-sub,
    .jm-final__lede {
        font-size: 17px;
    }

    .jm-section {
        padding: 64px 0;
    }

    .jm-final {
        padding: 64px 0;
    }

    .jm-hero__ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .jm-badge {
        justify-content: center;
    }

    .jm-btn-ghost {
        text-align: center;
    }

    /* Phone bezel is 320px fixed; narrow it rather than let it clip.
       Height is left alone — shortening it would clip the comp row again. */
    .jm-phone {
        width: 280px;
    }

    .jm-estimate {
        flex-wrap: wrap;
        gap: 12px;
    }

    .jm-photo__frame img {
        height: 320px;
    }

    .jm-mascot-peek {
        width: 104px;
        top: -42px;
        right: 12px;
    }

    .jm-grades,
    .jm-stage__card,
    .jm-plan {
        padding: 20px;
    }

    .jm-honesty h2 {
        font-size: 26px;
    }

    /* The connector's absolute offsets assume a wide card; on a narrow one the
       three stages read as an obvious sequence without it. */
    .jm-connector,
    .jm-connector__label,
    .jm-connector__arrow {
        display: none;
    }

    .jm-stage--estimate {
        margin-bottom: 0;
    }
}
