/* ==========================================================================
   System Design LLM stylesheet
   Plain CSS, no build step.

   Sections 1-4 and 6 are the shared Interview LLM base (tokens, reset, layout,
   components, motion), copied unchanged from interview-llm/styles.css so the
   two sites read as one product family. Section 5 keeps only the shared
   section styles this page uses. Section 7 is System Design LLM's own: the
   accent override and the pieces only this page has.
   Re-sync with: python3 tools/build_styles.py ../interview-llm/styles.css > styles.css
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
    /* Typography */
    --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
        "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono",
        monospace;

    --text-xs: 0.75rem;     /* 12 */
    --text-sm: 0.875rem;    /* 14 */
    --text-base: 1rem;      /* 16 */
    --text-lg: 1.125rem;    /* 18 */
    --text-xl: 1.25rem;     /* 20 */
    --text-2xl: 1.5rem;     /* 24 */
    --text-3xl: 1.875rem;   /* 30 */
    --text-4xl: 2.25rem;    /* 36 */
    --text-display: clamp(2.5rem, 1.6rem + 4.5vw, 4.5rem); /* 40 -> 72 */
    --text-h2: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);     /* 28 -> 40 */

    --leading-tight: 1.1;
    --leading-snug: 1.3;
    --leading-normal: 1.6;
    --tracking-tight: -0.02em;
    --tracking-tighter: -0.035em;

    /* Neutral palette (zinc) */
    --gray-0: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f4f4f5;
    --gray-200: #e4e4e7;
    --gray-300: #d4d4d8;
    --gray-400: #a1a1aa;
    --gray-500: #71717a;
    --gray-600: #52525b;
    --gray-700: #3f3f46;
    --gray-800: #27272a;
    --gray-900: #18181b;
    --gray-950: #09090b;

    /* The single accent colour */
    --accent: #4f46e5;          /* 6.3:1 on white */
    --accent-hover: #4338ca;
    --accent-subtle: #eef2ff;
    --accent-muted: #e0e7ff;
    --accent-border: #c7d2fe;
    --accent-on-dark: #a5b4fc;  /* 9.6:1 on gray-950 */
    --accent-rgb: 79, 70, 229;

    /* Semantic roles */
    --bg: var(--gray-0);
    --bg-muted: var(--gray-50);
    --surface: var(--gray-0);
    --surface-muted: var(--gray-50);
    --border: var(--gray-200);
    --border-strong: var(--gray-300);
    --text: var(--gray-900);
    --text-muted: var(--gray-600);   /* 7.7:1 on white */
    --text-subtle: var(--gray-500);  /* 4.8:1 on white, 4.6:1 on gray-50 */
    --media-bg: #0c0c10;

    /* Spacing: 4px base */
    --space-1: 0.25rem;  /* 4 */
    --space-2: 0.5rem;   /* 8 */
    --space-3: 0.75rem;  /* 12 */
    --space-4: 1rem;     /* 16 */
    --space-5: 1.25rem;  /* 20 */
    --space-6: 1.5rem;   /* 24 */
    --space-8: 2rem;     /* 32 */
    --space-10: 2.5rem;  /* 40 */
    --space-12: 3rem;    /* 48 */
    --space-16: 4rem;    /* 64 */
    --space-20: 5rem;    /* 80 */
    --space-24: 6rem;    /* 96 */

    /* Shape & depth */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 999px;
    --shadow-xs: 0 1px 2px rgba(9, 9, 11, 0.05);
    --shadow-sm: 0 1px 2px rgba(9, 9, 11, 0.04), 0 1px 3px rgba(9, 9, 11, 0.06);
    --shadow-md: 0 2px 4px rgba(9, 9, 11, 0.04), 0 8px 24px -6px rgba(9, 9, 11, 0.1);
    --shadow-accent: 0 1px 2px rgba(var(--accent-rgb), 0.08),
        0 24px 64px -16px rgba(var(--accent-rgb), 0.35);

    /* Layout */
    --container: 1120px;
    --container-narrow: 768px;
    --gutter: var(--space-4);
    --section-space: var(--space-16);

    /* Interaction */
    --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
    --ease: cubic-bezier(0.2, 0, 0, 1);
    --duration: 160ms;
}

@media (min-width: 768px) {
    :root {
        --gutter: var(--space-6);
        --section-space: var(--space-20);
    }
}

@media (min-width: 1280px) {
    :root {
        --gutter: var(--space-8);
        --section-space: var(--space-24);
    }
}

/* 2. Base / reset ---------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

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

ul,
ol {
    list-style: none;
}

a {
    color: var(--accent);
    text-underline-offset: 0.2em;
    text-decoration-thickness: 1px;
}

a:hover {
    color: var(--accent-hover);
}

b,
strong {
    font-weight: 600;
    color: var(--text);
}

u {
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2em;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

h1,
h2,
h3 {
    color: var(--text);
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

::selection {
    background: var(--accent-muted);
    color: var(--gray-950);
}

/* 3. Layout primitives ----------------------------------------------------- */
.container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    padding-block: var(--section-space);
}

.section--muted {
    background: var(--bg-muted);
    border-block: 1px solid var(--border);
}

/* 4. Components ------------------------------------------------------------ */

/* Section header: h2 + supporting line */
.section-header {
    max-width: 640px;
    margin: 0 auto var(--space-12);
    text-align: center;
}

.section-header h2 {
    font-size: var(--text-h2);
    font-weight: 700;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
}

.section-header p {
    margin-top: var(--space-4);
    font-size: var(--text-lg);
    color: var(--text-muted);
}

/* Card */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}

/* Button */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 44px;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius);
    font-size: var(--text-base);
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color var(--duration) var(--ease), transform var(--duration) var(--ease),
        box-shadow var(--duration) var(--ease);
}

.button--primary {
    background: var(--gray-950);
    color: var(--gray-0);
    box-shadow: var(--shadow-sm);
}

.button--primary:hover {
    background: var(--gray-800);
    color: var(--gray-0);
    transform: translateY(-1px);
}

/* Check-mark bullet (the ✓ glyph is part of the copy, so it stays in the DOM) */
.check {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    border-radius: var(--radius-full);
    background: var(--accent-subtle);
    color: var(--accent);
    font-size: var(--text-xs);
    font-weight: 700;
    line-height: 1;
}

/* Media frame for screenshots and demo videos */
.media-frame {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--media-bg);
    border-bottom: 1px solid var(--border);
}

.media-frame img,
.media-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
}

/* 5. Page sections --------------------------------------------------------- */

/* Header / announcement bar */
.site-header {
    background: var(--gray-950);
    color: var(--gray-200);
}

/* Hero */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: var(--space-20) var(--space-16);
    text-align: center;
}

/* faint grid + accent glow, purely decorative */
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.hero::before {
    background-image: linear-gradient(to right, var(--gray-200) 1px, transparent 1px),
        linear-gradient(to bottom, var(--gray-200) 1px, transparent 1px);
    background-size: 48px 48px;
    background-position: center top;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
    opacity: 0.7;
}

.hero::after {
    background: radial-gradient(40rem 22rem at 50% -4rem, rgba(var(--accent-rgb), 0.16), transparent 70%);
}

.hero__title {
    font-size: var(--text-display);
    font-weight: 700;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tighter);
}

.hero__lead {
    max-width: 680px;
    margin: var(--space-6) auto 0;
    font-size: clamp(var(--text-lg), 1rem + 0.6vw, var(--text-xl));
    line-height: 1.55;
    color: var(--text-muted);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
}

.benefit {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-height: 56px;
    padding: var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    font-size: var(--text-sm);
    font-weight: 500;
    line-height: var(--leading-snug);
    color: var(--gray-800);
}

.benefit-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-sm);
    background: var(--gray-100);
    font-size: var(--text-base);
    line-height: 1;
}

@media (min-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: var(--space-4);
    }

    .benefit {
        padding: var(--space-4);
        font-size: var(--text-base);
    }
}

/* Features ("Guaranteed Success") */
.features-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.feature-card {
    overflow: hidden;
    transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.feature-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}

.feature-card__body {
    padding: var(--space-6);
}

.feature-card h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    line-height: var(--leading-snug);
    letter-spacing: -0.01em;
}

.feature-card p {
    margin-top: var(--space-2);
    color: var(--text-muted);
}

/* Pricing */
.pricing {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.pricing::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(48rem 28rem at 50% 55%, rgba(var(--accent-rgb), 0.12), transparent 70%);
    pointer-events: none;
}

.plan {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    /* buy button sits directly under the price on narrow screens (DOM order unchanged) */
    grid-template-areas:
        "head"
        "buy"
        "list";
    max-width: 960px;
    margin-inline: auto;
    background: var(--surface);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-xl);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.06), var(--shadow-accent);
    overflow: hidden;
}

/* accent hairline across the top of the card */
.plan::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent) 20%, var(--accent) 80%, transparent);
}

.plan__head {
    grid-area: head;
    padding: var(--space-8) var(--space-6) var(--space-6);
    background: linear-gradient(180deg, var(--accent-subtle), var(--surface));
}

.plan__name {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    background: var(--accent);
    color: var(--gray-0);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-5);
    line-height: 1;
}

.price__original {
    font-size: var(--text-2xl);
    font-weight: 500;
    color: var(--text-subtle);
    text-decoration: line-through;
    text-decoration-color: var(--gray-400);
}

.price__amount {
    font-size: clamp(3.5rem, 3rem + 2vw, 4.5rem);
    font-weight: 700;
    letter-spacing: var(--tracking-tighter);
    color: var(--gray-950);
}

.price__period {
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--text-muted);
}

.plan__list {
    grid-area: list;
    display: grid;
    gap: var(--space-4);
    padding: var(--space-6);
    border-top: 1px solid var(--border);
}

.plan__item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: var(--space-3);
    align-items: start;
    color: var(--gray-800);
}

.plan__item > :not(.check) {
    grid-column: 2;
}

.plan__item--lead {
    font-weight: 600;
    color: var(--text);
}

.plan__buy {
    grid-area: buy;
    display: grid;
    gap: var(--space-4);
    align-content: start;
    padding: var(--space-2) var(--space-4) var(--space-6);
}

/* Stripe renders a fixed 288px x 44px iframe; centre it and reserve its height */
stripe-buy-button {
    display: flex;
    justify-content: center;
    min-height: 44px;
}

.stripe-powered-by {
    display: flex;
    justify-content: center;
}

.stripe-powered-by img {
    width: auto;
    height: 30px;
}

@media (min-width: 900px) {
    .plan {
        grid-template-columns: 352px minmax(0, 1fr);
        grid-template-rows: auto 1fr;
        grid-template-areas:
            "head list"
            "buy  list";
    }

    .plan__head {
        padding: var(--space-10) var(--space-8) var(--space-6);
        border-right: 1px solid var(--border);
    }

    .plan__buy {
        padding: var(--space-6) var(--space-8) var(--space-10);
        border-right: 1px solid var(--border);
        background: var(--surface);
    }

    .plan__list {
        padding: var(--space-10) var(--space-8);
        border-top: 0;
    }
}

/* Included with every purchase (below the plan card) */
.assurances {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-3) var(--space-8);
    max-width: 960px;
    margin: var(--space-10) auto 0;
    padding: var(--space-6);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.7);
}

.assurances li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: var(--text-muted);
    overflow-wrap: anywhere;
}

@media (min-width: 768px) {
    .assurances {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* FAQ */
.faq__layout {
    display: grid;
    gap: var(--space-8);
}

.faq .section-header {
    margin-bottom: 0;
}

@media (min-width: 1024px) {
    .faq__layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
        gap: var(--space-16);
        align-items: start;
    }

    .faq .section-header {
        position: sticky;
        top: var(--space-8);
        text-align: left;
    }
}

.faq-list {
    border-top: 1px solid var(--border);
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    font-size: var(--text-base);
    font-weight: 600;
    line-height: var(--leading-snug);
}

.faq-question button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    width: 100%;
    min-height: 56px;
    padding: var(--space-5) 0;
    text-align: left;
    color: var(--text);
}

.faq-question button:hover {
    color: var(--accent);
}

.faq-question button:focus-visible {
    outline-offset: 4px;
}

.faq-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 1.75rem;
    height: 1.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: var(--text-lg);
    font-weight: 400;
    line-height: 1;
    color: var(--text-muted);
    transition: transform var(--duration) var(--ease), background-color var(--duration) var(--ease),
        color var(--duration) var(--ease);
}

/* "+" rotates into "×" when open, so the glyph itself never changes */
.faq-question button[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
    background: var(--accent);
    border-color: var(--accent);
    color: var(--gray-0);
}

.faq-answer {
    padding: 0 var(--space-10) var(--space-6) 0;
    color: var(--text-muted);
}

.faq-answer[hidden] {
    display: none;
}

/* Footer */
.site-footer {
    padding-block: var(--space-8);
    border-top: 1px solid var(--border);
    background: var(--bg-muted);
    font-size: var(--text-sm);
    color: var(--text-subtle);
    text-align: center;
}

/* 6. Motion preferences ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* 7. System Design LLM ------------------------------------------------------ */

/* Accent: teal. Same roles as the shared indigo tokens, different hue. */
:root {
    --accent: #0f766e;          /* 5.5:1 on white, 5.2:1 on accent-subtle */
    --accent-hover: #115e59;
    --accent-subtle: #f0fdfa;
    --accent-muted: #ccfbf1;
    --accent-border: #99f6e4;
    --accent-on-dark: #5eead4;  /* 13:1 on gray-950 */
    --accent-rgb: 15, 118, 110;
    --header-height: 56px;
    --font-sans: "Inter", "Inter Fallback", ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif,
        "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
}

/* Inter, self-hosted (Latin subset, variable 400-700, SIL OFL: fonts/OFL.txt) and preloaded
   from index.html, so it is usually ready before first paint; swap covers the slow case. */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("fonts/inter-latin-var.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
        U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Arial scaled to Inter's metrics, so the font-display: swap to Inter doesn't shift layout */
@font-face {
    font-family: "Inter Fallback";
    src: local("Arial"), local("ArialMT"), local("Helvetica");
    ascent-override: 90.44%;
    descent-override: 22.52%;
    line-gap-override: 0%;
    size-adjust: 107.12%;
}

html {
    scroll-padding-top: var(--space-4);
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

.accent {
    color: var(--accent);
}

/* Navigation bar: wraps to two centred rows on phones, sticky from tablet up */
.site-header {
    border-bottom: 1px solid var(--gray-800);
}

.site-nav {
    display: flex;
    align-items: center;
    min-height: var(--header-height);
    padding-block: var(--space-2);
}

.site-nav__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    width: 100%;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding-inline: var(--space-2);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    color: var(--gray-300);
    transition: color var(--duration) var(--ease), background-color var(--duration) var(--ease);
}

.site-nav a:hover {
    color: var(--gray-0);
    background: var(--gray-800);
}

.site-nav a:focus-visible {
    outline-color: var(--accent-on-dark);
}

.site-nav a.site-nav__cta {
    margin-inline: var(--space-1);
    padding-inline: var(--space-3);
    background: var(--accent-on-dark);
    color: var(--gray-950);
    font-weight: 600;
}

.site-nav a.site-nav__cta:hover {
    background: var(--accent-muted);
}

@media (min-width: 768px) {
    html {
        scroll-padding-top: calc(var(--header-height) + var(--space-4));
    }

    .site-header {
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .site-nav {
        padding-block: 0;
    }

    .site-nav__list {
        gap: var(--space-2);
    }

    .site-nav a {
        padding-inline: var(--space-3);
    }
}

/* Hero: no CTA or proof pill on this page, so the closing promise carries the weight */
.hero {
    padding-block: var(--space-20);
}

.hero__promise {
    margin-top: var(--space-8);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text);
}

/* How it helps: the step-by-step flow */
.flow {
    display: grid;
    gap: var(--space-16);
    max-width: 920px;
    margin-inline: auto;
}

.flow__step {
    position: relative;
    display: grid;
    gap: var(--space-6);
    justify-items: center;
}

/* down-arrow connector centred in the gap above every step after the first */
.flow__step + .flow__step::before {
    content: "";
    position: absolute;
    top: calc(-1 * var(--space-16) + var(--space-4));
    left: 50%;
    width: var(--space-8);
    height: var(--space-8);
    margin-left: calc(-1 * var(--space-4));
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-full);
    background: var(--accent-subtle)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M18 13l-6 6-6-6'/%3E%3C/svg%3E")
        center / 16px no-repeat;
}

@media (min-width: 768px) {
    .flow__step--split {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }
}

.flow__figure {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
}

.flow__figure picture {
    display: grid;
    place-items: center;
    padding: var(--space-4);
    border-bottom: 1px solid var(--border);
}

.flow__figure--wide {
    max-width: 760px;
}

/* the solution screenshots are dark UI: frame them like the demo media */
.flow__figure--wide picture {
    padding: 0;
    background: var(--media-bg);
}

.flow__figure figcaption {
    flex-grow: 1;
    padding: var(--space-5) var(--space-6);
    color: var(--text-muted);
}

.flow__action {
    max-width: 560px;
    padding: var(--space-5) var(--space-6);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-lg);
    background: var(--accent-subtle);
    text-align: center;
    color: var(--gray-800);
}

.flow__action strong:last-child {
    color: var(--accent);
}

/* Pricing header: the sale countdown sits between the h2 and the supporting line */
.timer-card {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-1) var(--space-2);
    margin-top: var(--space-5);
    padding: var(--space-2) var(--space-4);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
    font-size: var(--text-sm);
}

.timer-card h3 {
    font-size: var(--text-sm);
    font-weight: 600;
}

.section-header .timer-card p {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.timer {
    font-family: var(--font-mono);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}

.timer-card.is-expired {
    background: var(--surface-muted);
    box-shadow: none;
}

.timer-card.is-expired .timer {
    color: var(--text-muted);
}

.plan__desc {
    margin-top: var(--space-4);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* Bundle: deliberately quieter than the plan (no accent frame, smaller price) */
.bundle {
    display: grid;
    gap: var(--space-5);
    max-width: 960px;
    margin: var(--space-8) auto 0;
    padding: var(--space-6);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    background: var(--surface-muted);
}

@media (min-width: 768px) {
    .bundle {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: var(--space-8);
        padding: var(--space-6) var(--space-8);
    }
}

.bundle__title {
    font-size: var(--text-lg);
    font-weight: 600;
    line-height: var(--leading-snug);
}

.bundle__price {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
    margin-top: var(--space-2);
}

.bundle__amount {
    font-size: var(--text-3xl);
    font-weight: 700;
    letter-spacing: var(--tracking-tight);
    line-height: 1.2;
}

.bundle__discount {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--accent);
}

.bundle__desc {
    margin-top: var(--space-1);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* "The Plan Also Gets You" */
.included {
    max-width: 960px;
    margin: var(--space-10) auto 0;
}

.included__title {
    margin-bottom: var(--space-3);
    font-size: var(--text-base);
    font-weight: 600;
}

.included .assurances {
    margin-top: 0;
}

/* Why engineers choose (closing section) */
.why .section-header {
    margin-bottom: var(--space-8);
}

.site-footer p + p {
    margin-top: var(--space-1);
}

/* Footer links to the guides and alternatives hubs (also used on those pages) */
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2) var(--space-6);
    margin-bottom: var(--space-4);
}

.footer-nav a {
    color: var(--text-muted);
}

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