:root {
    --bg: #ffffff;
    --bg-deep: #f4efe6;
    --panel: #fbf7f1;
    --panel-strong: #fffdf9;
    --ink: #1f2421;
    --ink-soft: #4b544d;
    --line: rgba(31, 36, 33, 0.18);
    --brown: #7c5131;
    --brown-deep: #5d3a21;
    --teal: #1d6b68;
    --teal-soft: #d7efec;
    --orange: #d07a2d;
    --orange-soft: #f8e1ca;
    --cream: #fff6eb;
    --shadow: 0 24px 60px rgba(74, 48, 24, 0.12);
    --radius-xl: 34px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --content-width: 1180px;
    --font-display: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
    --font-ui: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: var(--font-ui);
    line-height: 1.65;
    background: #ffffff;
}

a {
    color: inherit;
    text-decoration: none;
}

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

h1,
h2,
h3,
.footer-title,
.stat-value {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
}

p {
    margin: 0;
}

.page-shell {
    padding: 0 22px 48px;
}

.page-frame {
    max-width: var(--content-width);
    margin: 0 auto;
}

.site-header,
.site-footer,
.hero-grid,
.feature-grid,
.course-grid,
.stats-grid,
.faq-grid,
.split-callout,
.footer-cta {
    animation: rise 720ms ease both;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 0 16px;
    border-bottom: 1px solid rgba(31, 36, 33, 0.08);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(29, 107, 104, 0.16));
}

.brand-name {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--brown-deep);
}

.header-nav,
.footer-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.nav-link,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.nav-link {
    background: rgba(251, 247, 241, 0.96);
    font-size: 0.92rem;
    font-weight: 500;
}

.nav-link.is-active {
    background: rgba(29, 107, 104, 0.08);
    border-color: rgba(29, 107, 104, 0.22);
    color: var(--teal);
}

.nav-link:hover,
.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(93, 58, 33, 0.1);
}

.landing-main {
    display: grid;
    gap: 108px;
    padding: 28px 0 76px;
}

.hero-grid,
.split-callout,
.footer-cta {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 30px;
    align-items: start;
}

.hero-badge,
.eyebrow,
.course-meta {
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: 0.78rem;
    font-weight: 700;
}

.hero-badge,
.eyebrow {
    color: var(--teal);
}

.hero-badge {
    display: inline-flex;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(215, 239, 236, 0.85);
    border: 1px solid rgba(29, 107, 104, 0.16);
}

.beta-badge {
    display: grid;
    width: min(100%, 720px);
    gap: 8px;
    margin-bottom: 18px;
    padding: clamp(18px, 3vw, 28px);
    border: 2px solid rgba(208, 122, 45, 0.42);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(208, 122, 45, 0.18), rgba(255, 246, 235, 0.96)),
        #fff6eb;
    box-shadow: 0 18px 48px rgba(208, 122, 45, 0.18);
}

.beta-badge strong {
    color: var(--brown-deep);
    font-family: var(--font-display);
    font-size: clamp(2.7rem, 8vw, 5.8rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 0.82;
}

.beta-badge span {
    max-width: 46rem;
    color: var(--brown-deep);
    font-size: clamp(1rem, 2vw, 1.28rem);
    font-weight: 700;
    line-height: 1.35;
}

.hero-copy h1,
.legal-hero h1 {
    margin-top: 18px;
    max-width: 12ch;
    font-size: clamp(3.1rem, 6vw, 5.8rem);
    line-height: 0.96;
}

.hero-text,
.section-heading p,
.feature-card p,
.course-card p,
.callout-card p,
.faq-card p,
.footer-note,
.legal-section p,
.legal-list {
    color: var(--ink-soft);
}

.hero-text {
    margin-top: 22px;
    max-width: 62ch;
    font-size: 1.06rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    font-weight: 700;
}

.button-primary {
    color: #fffaf4;
    background: linear-gradient(135deg, var(--brown) 0%, var(--brown-deep) 100%);
    border-color: rgba(93, 58, 33, 0.35);
}

.button-secondary {
    color: var(--brown-deep);
    background: rgba(251, 247, 241, 0.96);
}

.value-list,
.legal-list {
    margin: 26px 0 0;
    padding-left: 20px;
}

.value-list li,
.legal-list li {
    margin-top: 10px;
}

.hero-panel,
.legal-card,
.feature-card,
.course-card,
.callout-card,
.faq-card,
.footer-cta,
.hero-card,
.stat-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(255, 253, 249, 0.99), rgba(247, 240, 231, 0.98));
    box-shadow: var(--shadow);
}

.hero-panel {
    padding: 18px;
}

.hero-card,
.stat-card,
.feature-card,
.course-card,
.callout-card,
.faq-card {
    padding: 26px;
}

.hero-card-accent {
    background:
        linear-gradient(180deg, rgba(29, 107, 104, 0.1), rgba(255, 253, 249, 0.98)),
        linear-gradient(180deg, rgba(255, 253, 249, 0.99), rgba(247, 240, 231, 0.98));
}

.stats-grid,
.feature-grid,
.course-grid,
.faq-grid {
    display: grid;
    gap: 18px;
}

.stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
}

.hero-panel .stats-grid {
    grid-template-columns: 1fr;
}

.hero-panel .stat-card {
    min-height: 0;
}

.stat-value {
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--brown-deep);
}

.section-heading {
    max-width: 760px;
}

.section-heading h2 {
    margin-top: 12px;
    font-size: clamp(2.2rem, 4vw, 3.3rem);
    line-height: 1.02;
}

.section-heading p {
    margin-top: 18px;
}

.feature-grid,
.faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
}

.course-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
}

.feature-card h3,
.course-card h3,
.faq-card h3,
.legal-section h2 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    line-height: 1.1;
}

.course-meta {
    color: var(--orange);
    margin-bottom: 14px;
}

.callout-card h2 {
    margin-top: 12px;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.02;
}

.callout-card-dark {
    color: #fef7ef;
    background:
        radial-gradient(circle at top right, rgba(255, 184, 96, 0.18), transparent 28%),
        linear-gradient(135deg, #214c49 0%, #163836 100%);
}

.callout-card-dark .eyebrow,
.callout-card-dark p,
.callout-card-dark h2 {
    color: inherit;
}

.footer-cta {
    padding: 28px;
    align-items: center;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 8px 0 24px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.footer-mark {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.footer-title {
    font-size: 1.2rem;
}

.footer-note {
    margin-top: 3px;
}

.legal-main {
    padding: 16px 0 56px;
}

.learn-main {
    display: grid;
    gap: 34px;
    padding: 20px 0 72px;
}

.learn-page-frame {
    max-width: none;
}

.learn-course-choice-hero,
.learn-course-page-hero {
    display: grid;
    gap: 14px;
    max-width: 780px;
    padding: 18px 0 8px;
}

.learn-course-choice-hero h1,
.learn-course-page-hero h1 {
    font-size: clamp(3rem, 9vw, 6.8rem);
    line-height: 0.92;
    letter-spacing: -0.05em;
}

.learn-course-choice-hero p,
.learn-course-page-hero p {
    max-width: 58ch;
    color: var(--ink-soft);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.learn-course-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.learn-course-choice-button {
    display: grid;
    gap: 18px;
    min-height: 240px;
    padding: 28px;
    color: var(--ink);
    background:
        radial-gradient(circle at top right, rgba(255, 189, 89, 0.34), transparent 42%),
        linear-gradient(145deg, rgba(215, 239, 236, 0.88), rgba(255, 255, 255, 0.9));
    border: 1px solid rgba(31, 36, 33, 0.1);
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.learn-course-choice-button:hover {
    border-color: rgba(25, 112, 102, 0.28);
    transform: translateY(-3px);
}

.learn-course-choice-button span {
    color: var(--teal);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.learn-course-choice-button strong {
    align-self: end;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.2vw, 3.5rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.objective-summary-panel {
    display: grid;
    gap: 12px;
    max-width: 920px;
    padding: 26px;
    border: 1px solid rgba(31, 36, 33, 0.1);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at top right, rgba(255, 189, 89, 0.2), transparent 38%),
        linear-gradient(180deg, rgba(255, 253, 249, 0.99), rgba(247, 240, 231, 0.98));
    box-shadow: var(--shadow);
}

.objective-summary-panel p {
    max-width: 78ch;
    color: var(--ink-soft);
    font-size: clamp(1.02rem, 1.6vw, 1.18rem);
    line-height: 1.65;
}

.learn-course-back {
    width: fit-content;
    color: var(--teal);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.learn-course-page-count {
    width: fit-content;
    padding: 8px 12px;
    color: var(--teal);
    background: rgba(215, 239, 236, 0.82);
    border: 1px solid rgba(31, 36, 33, 0.08);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.learn-course-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 4px 0 8px;
}

.learn-course-tabs a {
    padding: 10px 14px;
    color: var(--ink-soft);
    background: rgba(31, 36, 33, 0.04);
    border: 1px solid rgba(31, 36, 33, 0.08);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.learn-course-tabs a.is-active,
.learn-course-tabs a:hover {
    color: var(--teal);
    background: rgba(215, 239, 236, 0.82);
}

.learn-objective-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.learn-objective-card {
    display: grid;
    align-content: start;
    gap: 16px;
    min-height: 245px;
    padding: 22px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(31, 36, 33, 0.09);
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.learn-objective-card:hover {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(25, 112, 102, 0.28);
    transform: translateY(-2px);
}

.learn-objective-card-topline,
.learn-objective-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.learn-objective-card-topline span,
.learn-objective-card-footer span {
    padding: 5px 8px;
    color: var(--teal);
    background: rgba(215, 239, 236, 0.6);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.learn-objective-card h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.1vw, 1.75rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
}

.learn-objective-card-footer {
    align-self: end;
}

.learn-directory-shell {
    display: grid;
    gap: 12px;
}

.learn-search-bar,
.learn-empty-state {
    animation: rise 720ms ease both;
}

.learn-empty-state {
    padding: 0;
}

.learn-search-bar {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.7fr) auto;
    gap: 14px;
    padding: 0;
    align-items: end;
}

.learn-search-field {
    display: grid;
    gap: 8px;
}

.learn-search-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal);
}

.learn-input,
.learn-select {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
}

.learn-input::placeholder {
    color: rgba(75, 84, 77, 0.8);
}

.learn-search-submit {
    min-height: 54px;
    padding: 0 24px;
}

.learn-results-meta {
    margin: 0 4px;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.learn-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
}

.learn-course-column {
    display: grid;
    align-content: start;
    border-left: 1px solid rgba(31, 36, 33, 0.12);
    padding-left: 18px;
}

.learn-course-column:first-child {
    border-left: 0;
    padding-left: 0;
}

.learn-course-column-header {
    padding: 6px 0 14px;
    border-bottom: 1px solid rgba(31, 36, 33, 0.08);
}

.learn-course-column-header h2 {
    margin-top: 8px;
    font-size: 1.7rem;
    line-height: 1.02;
}

.learn-course-column-header p {
    margin-top: 12px;
    color: var(--ink-soft);
}

.learn-objective-list {
    display: grid;
}

.learn-objective-row {
    display: grid;
    gap: 8px;
    padding: 14px 0;
    border-top: 1px solid rgba(31, 36, 33, 0.08);
    transition: color 160ms ease, transform 160ms ease;
}

.learn-objective-row:first-child {
    border-top: 0;
}

.learn-objective-row:hover {
    color: var(--teal);
    transform: translateY(-1px);
}

.learn-objective-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--teal);
}

.learn-objective-row h3 {
    font-size: 1rem;
    line-height: 1.25;
}

.learn-results-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.learn-results-column {
    display: grid;
    align-content: start;
}

.learn-hero,
.learn-article-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
    align-items: start;
}

.learn-hero-copy,
.learn-hero-panel,
.learn-article-copy,
.learn-article-sidebar,
.learn-prose,
.learn-page-link,
.learn-course-section {
    animation: rise 720ms ease both;
}

.learn-hero-copy,
.learn-hero-panel,
.learn-article-copy,
.learn-sidebar-card,
.learn-prose,
.learn-page-link {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.learn-hero-copy,
.learn-article-copy,
.learn-prose {
    padding: 0;
}

.learn-hero-copy h1 {
    margin-top: 12px;
    max-width: 14ch;
    font-size: clamp(2.9rem, 6vw, 5rem);
    line-height: 0.96;
}

.learn-article-copy h1 {
    margin-top: 12px;
    max-width: none;
    font-size: clamp(2.9rem, 6vw, 5rem);
    line-height: 0.96;
}

.learn-article-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    gap: 28px;
    align-items: start;
}

.learn-article-title-block {
    min-width: 0;
}

.learn-objective-illustration {
    margin: 0;
    justify-self: end;
    width: 100%;
    max-width: 420px;
}

.learn-objective-illustration img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid rgba(31, 36, 33, 0.08);
    border-radius: 24px;
    box-shadow: 0 24px 48px rgba(93, 58, 33, 0.12);
}

.learn-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.learn-stat-chip {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(29, 107, 104, 0.14);
    border-radius: 999px;
    background: rgba(215, 239, 236, 0.5);
    color: var(--teal);
    font-size: 0.92rem;
    font-weight: 700;
}

.learn-hero-panel {
    padding: 18px;
}

.learn-feature-stack,
.learn-article-sidebar {
    display: grid;
    gap: 16px;
    margin-top: 0;
}

.learn-feature-card,
.learn-article-card {
    display: grid;
    gap: 12px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #ffffff;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.learn-feature-card:hover,
.learn-article-card:hover,
.learn-page-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(93, 58, 33, 0.1);
    border-color: rgba(29, 107, 104, 0.22);
}

.learn-feature-card h2,
.learn-article-card h3 {
    font-size: 1.45rem;
    line-height: 1.08;
}

.learn-card-meta,
.learn-card-footer,
.learn-summary-row span,
.learn-page-link span {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.learn-card-meta,
.learn-summary-row span,
.learn-page-link span {
    color: var(--teal);
}

.learn-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--orange);
}

.learn-course-section {
    display: grid;
    gap: 22px;
}

.learn-section-heading p {
    max-width: 64ch;
}

.learn-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.learn-article-card p,
.learn-feature-card p {
    color: var(--ink-soft);
}

.learn-article-summary {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.learn-summary-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.learn-sidebar-card {
    padding: 0;
}

.learn-sidebar-callout {
    background: transparent;
    border-color: transparent;
}

.learn-article-layout {
    display: grid;
}

.learn-prose {
    width: 100%;
    max-width: none;
}

.learn-prose p,
.learn-prose li,
.learn-prose blockquote p {
    white-space: pre-wrap;
}

.learn-prose h2,
.learn-prose h3 {
    margin: 38px 0 12px;
    font-size: clamp(1.65rem, 3vw, 2.1rem);
    line-height: 1.05;
}

.learn-prose h3 {
    font-size: 1.35rem;
}

.learn-prose p + p,
.learn-prose ul + p,
.learn-prose ol + p,
.learn-prose blockquote + p {
    margin-top: 16px;
}

.learn-prose ul,
.learn-prose ol {
    margin: 16px 0;
    padding-left: 22px;
}

.learn-prose li + li {
    margin-top: 10px;
}

.learn-prose blockquote {
    margin: 20px 0;
    padding: 0 0 0 20px;
    border-left: 4px solid rgba(29, 107, 104, 0.4);
    border-radius: 0;
    background: transparent;
}

.learn-prose code {
    padding: 0.12rem 0.36rem;
    border-radius: 0.45rem;
    background: rgba(29, 107, 104, 0.08);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92em;
}

.learn-prose .learn-math,
.learn-prose .learn-math-block {
    overflow-x: auto;
    overflow-y: hidden;
}

.learn-prose .learn-math-block {
    margin: 20px 0;
}

.learn-prose mjx-container {
    max-width: 100%;
}

.learn-prose mjx-container[display="true"] {
    margin: 0;
}

.learn-prose mjx-container svg {
    max-width: 100%;
    height: auto !important;
}

.learn-prose a {
    color: var(--teal);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.14em;
}

.learn-empty-state p {
    margin-top: 14px;
    color: var(--ink-soft);
}

.learn-article-page-frame .learn-main {
    width: 100%;
}

.learn-article-page-frame .learn-article-copy,
.learn-article-page-frame .learn-article-layout {
    width: 100%;
}

.learn-article-page-frame .learn-article-sidebar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.learn-problem-bridge {
    display: grid;
    gap: 20px;
    padding-top: 10px;
    border-top: 1px solid rgba(31, 36, 33, 0.08);
}

.learn-problem-bridge-copy h2,
.problem-directory-heading h2,
.problem-copy-block h2 {
    margin-top: 10px;
    font-size: clamp(2rem, 4vw, 2.7rem);
    line-height: 1.02;
}

.learn-problem-bridge-copy p {
    margin-top: 14px;
    max-width: 62ch;
    color: var(--ink-soft);
}

.learn-problem-bridge-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.learn-problem-link-grid,
.problem-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.learn-problem-link,
.problem-related-link {
    display: grid;
    gap: 10px;
    padding: 18px 0;
    border-top: 1px solid rgba(31, 36, 33, 0.08);
}

.learn-problem-link span,
.problem-related-link span,
.problem-directory-meta span,
.problem-copy-item span,
.problem-header-stat span,
.phone-screen-label,
.phone-chip {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.learn-problem-link span,
.problem-related-link span,
.problem-directory-meta span,
.problem-copy-item span,
.problem-header-stat span,
.phone-screen-label,
.phone-chip {
    color: var(--teal);
}

.learn-problem-link strong,
.problem-related-link strong {
    font-family: var(--font-display);
    font-size: 1rem;
    line-height: 1.24;
}

.learn-problem-link p,
.problem-related-link strong,
.problem-directory-row p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.learn-problem-link p,
.problem-directory-row p {
    color: var(--ink-soft);
    -webkit-line-clamp: 3;
}

.learn-problem-library {
    display: grid;
    gap: 18px;
    padding-top: 12px;
    border-top: 1px solid rgba(31, 36, 33, 0.08);
}

.learn-problem-library-header h2 {
    margin-top: 10px;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.02;
}

.learn-problem-library-header p {
    margin-top: 14px;
    color: var(--ink-soft);
}

.learn-template-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.learn-template-card {
    display: grid;
    align-content: start;
    gap: 14px;
    min-height: 190px;
    padding: 20px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(215, 239, 236, 0.48)),
        var(--paper);
    border: 1px solid rgba(31, 36, 33, 0.08);
}

.learn-template-card-kicker {
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.learn-template-card h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    line-height: 1.16;
}

.learn-template-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: var(--teal);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.problem-page-frame {
    max-width: none;
}

.problem-main {
    gap: 28px;
}

.problem-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 8px;
    font-size: 0.92rem;
    color: var(--ink-soft);
}

.problem-breadcrumbs a:hover {
    color: var(--teal);
}

.problem-page-header {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 24px;
    align-items: end;
}

.problem-page-header-copy h1 {
    margin-top: 12px;
    max-width: none;
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 0.96;
}

.problem-header-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.problem-header-stat {
    display: grid;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(31, 36, 33, 0.1);
}

.problem-header-stat strong,
.problem-copy-item strong,
.problem-directory-row strong,
.problem-screen-tab,
.phone-screen-header strong,
.phone-step strong {
    font-family: var(--font-display);
}

.problem-header-stat strong {
    font-size: 1.2rem;
    line-height: 1.08;
}

.problem-directory,
.problem-related-strip {
    display: grid;
    gap: 18px;
}

.problem-directory-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    padding-top: 8px;
    border-top: 1px solid rgba(31, 36, 33, 0.08);
}

.problem-directory-list {
    display: grid;
}

.problem-directory-row {
    display: grid;
    gap: 10px;
    padding: 18px 0;
    border-top: 1px solid rgba(31, 36, 33, 0.08);
    transition: color 160ms ease;
}

.problem-directory-row:hover,
.problem-related-link:hover,
.learn-problem-link:hover {
    color: var(--teal);
}

.problem-directory-row strong {
    font-size: 1.02rem;
    line-height: 1.26;
}

.problem-directory-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.problem-simulator-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 32px;
    align-items: start;
}

.problem-simulator-layout-solo {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
}

.problem-copy-block p {
    margin-top: 16px;
    color: var(--ink-soft);
    white-space: pre-wrap;
}

.problem-mode-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.problem-mode-chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(29, 107, 104, 0.14);
    border-radius: 999px;
    background: rgba(215, 239, 236, 0.46);
    color: var(--teal);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.problem-copy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.problem-copy-item {
    display: grid;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(31, 36, 33, 0.1);
}

.problem-copy-item strong {
    font-size: 1.04rem;
    line-height: 1.28;
}

.problem-copy-item p {
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.problem-flow-card {
    display: grid;
    gap: 14px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(31, 36, 33, 0.08);
}

.problem-flow-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding-left: 20px;
}

.problem-flow-list li {
    color: var(--ink-soft);
}

.problem-flow-list strong {
    color: var(--ink);
}

.problem-header-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.problem-simulator-shell {
    display: grid;
    justify-items: center;
}

.phone-simulator {
    width: min(100%, 402px);
    padding: 10px;
    border-radius: 42px;
    background: linear-gradient(145deg, #202223 0%, #090909 100%);
    box-shadow: 0 32px 90px rgba(11, 15, 22, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.phone-simulator-screen {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 852px;
    min-height: 0;
    border-radius: 32px;
    background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
    overflow: hidden;
}

.phone-screen-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 22px 0;
}

.phone-screen-time {
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #000;
}

.phone-screen-system {
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-system-signal,
.phone-system-wifi,
.phone-system-battery {
    display: inline-flex;
    position: relative;
    align-items: center;
}

.phone-system-signal {
    width: 16px;
    height: 17px;
}

.phone-system-signal::before,
.phone-system-signal::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 4px;
    border-radius: 999px;
    background: #000;
}

.phone-system-signal::before {
    left: 0;
    height: 11px;
    box-shadow: 6px -3px 0 #000;
}

.phone-system-signal::after {
    right: 0;
    height: 17px;
    background: #c7c7cc;
}

.phone-system-wifi {
    width: 18px;
    height: 15px;
}

.phone-system-wifi::before,
.phone-system-wifi::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-top-color: #000;
    border-radius: 50%;
}

.phone-system-wifi::after {
    inset: 4px;
}

.phone-system-battery {
    width: 46px;
    height: 22px;
    justify-content: center;
    border-radius: 10px;
    background: #000;
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
}

.phone-system-battery::after {
    content: "";
    position: absolute;
    right: -3px;
    top: 7px;
    width: 3px;
    height: 8px;
    border-radius: 0 2px 2px 0;
    background: #c7c7cc;
}

.phone-study-shell {
    display: grid;
    grid-template-rows: auto auto auto 1fr;
    min-height: 0;
    height: 100%;
}

.phone-study-shell [hidden] {
    display: none !important;
}

.phone-study-header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 58px;
    padding: 10px 20px 0;
}

.phone-study-header h1 {
    margin: 0;
    color: #000;
    font-size: 1.22rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.phone-back-button {
    position: absolute;
    left: 20px;
    top: 8px;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    cursor: pointer;
}

.phone-back-button span {
    display: block;
    width: 13px;
    height: 13px;
    margin: 0 auto;
    border-left: 4px solid #18181b;
    border-bottom: 4px solid #18181b;
    transform: rotate(45deg) translate(2px, -1px);
}

.phone-session-summary {
    padding: 10px 30px 14px;
}

.phone-session-summary h2 {
    margin: 0;
    color: #000;
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.phone-session-meta,
.phone-session-copy {
    margin: 0;
}

.phone-session-meta {
    margin-top: 6px;
    color: #8e8e93;
    font-size: 0.64rem;
    font-weight: 600;
}

.phone-session-copy {
    max-width: 270px;
    margin-top: 8px;
    color: #8e8e93;
    font-size: 0.58rem;
    line-height: 1.34;
}

.phone-session-progress {
    height: 6px;
    margin-top: 14px;
    border-radius: 999px;
    background: #d9d9de;
    overflow: hidden;
}

.phone-session-progress span {
    display: block;
    width: 67%;
    height: 100%;
    border-radius: inherit;
    background: #b1845e;
}

.phone-study-divider {
    height: 1px;
    background: rgba(60, 60, 67, 0.18);
}

.phone-study-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    padding: 12px 16px 16px;
    background: #eff0f7;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: none;
    touch-action: pan-y;
}

.phone-study-body::-webkit-scrollbar {
    display: none;
}

.phone-study-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    min-height: 370px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), 0 16px 34px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.phone-study-card > * {
    min-width: 0;
}

.phone-problem-top {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 10px;
}

.phone-problem-top h3 {
    flex: 1 1 auto;
    margin: 0;
    color: #000;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.phone-howto-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 0 10px;
    max-width: 100%;
    border: 0;
    border-radius: 999px;
    background: #e5e5ea;
    color: #3f82f8;
    font: inherit;
    font-size: 0.56rem;
    white-space: nowrap;
    cursor: pointer;
}

.phone-howto-icon {
    position: relative;
    width: 14px;
    height: 16px;
    border: 1.75px solid currentColor;
    border-radius: 4px;
}

.phone-howto-icon::before,
.phone-howto-icon::after {
    content: "";
    position: absolute;
}

.phone-howto-icon::before {
    top: 4px;
    left: 3px;
    right: 3px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 4px 0 currentColor, 0 8px 0 currentColor;
}

.phone-howto-icon::after {
    top: 2px;
    right: 2px;
    width: 3px;
    height: calc(100% - 4px);
    border-radius: 999px;
    background: rgba(63, 130, 248, 0.35);
}

.phone-problem-screen {
    display: grid;
    gap: 12px;
}

.phone-howto-screen {
    display: none;
}

.phone-study-shell[data-screen-state="howto"] .phone-session-summary,
.phone-study-shell[data-screen-state="howto"] .phone-study-divider,
.phone-study-shell[data-screen-state="howto"] .phone-problem-screen,
.phone-study-shell[data-screen-state="howto"] .phone-bottom-switcher {
    display: none;
}

.phone-study-shell[data-screen-state="howto"] .phone-study-body {
    padding-top: 16px;
}

.phone-study-shell[data-screen-state="howto"] .phone-howto-screen {
    display: block;
}

.phone-howto-card {
    gap: 14px;
    background: #fffdf7;
}

.phone-howto-eyebrow {
    margin: 0;
    color: #3f82f8;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.phone-howto-card h2 {
    margin: -4px 0 0;
    color: #111827;
    font-size: 1.42rem;
    line-height: 1.06;
    letter-spacing: -0.05em;
}

.phone-howto-standard {
    margin: -8px 0 0;
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 600;
}

.phone-howto-section {
    display: grid;
    gap: 9px;
}

.phone-howto-section h3 {
    margin: 0;
    color: #111827;
    font-size: 0.84rem;
    letter-spacing: -0.03em;
}

.phone-howto-section p,
.phone-howto-checklist,
.phone-howto-answer {
    margin: 0;
    color: #1f2937;
    font-size: 0.75rem;
    line-height: 1.58;
}

.phone-howto-section p + p {
    margin-top: 6px;
}

.phone-howto-list {
    margin: 0;
    padding-left: 18px;
    color: #1f2937;
    font-size: 0.75rem;
    line-height: 1.58;
}

.phone-howto-list li + li {
    margin-top: 5px;
}

.phone-howto-list-numbered {
    padding-left: 20px;
}

.phone-howto-code {
    margin: 0;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #111827;
    font-size: 0.73rem;
    line-height: 1.48;
    white-space: normal;
    overflow-wrap: anywhere;
}

.phone-howto-code > div + div {
    margin-top: 7px;
}

.phone-howto-steps {
    display: grid;
    gap: 12px;
}

.phone-howto-step-card {
    gap: 8px;
}

.phone-howto-step-card strong {
    color: #111827;
    font-size: 0.8rem;
}

.phone-howto-step-math {
    margin: 0;
    padding: 9px 11px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    color: #111827;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.48;
}

.phone-howto-answer {
    padding: 11px 12px;
    border-radius: 14px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #7c2d12;
}

.phone-howto-checklist {
    padding-left: 18px;
}

.phone-howto-checklist li + li {
    margin-top: 5px;
}

.phone-study-prompt {
    margin: 2px 0 0;
    color: #000;
    font-size: 1.06rem;
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.04em;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.phone-study-prompt.is-long {
    font-size: 0.96rem;
    line-height: 1.1;
}

.phone-study-prompt.is-very-long {
    font-size: 0.9rem;
    line-height: 1.12;
}

.problem-visual-panel {
    margin-top: 16px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(31, 36, 33, 0.12);
    background: rgba(244, 248, 255, 0.9);
}

.phone-problem-visual-panel {
    margin-top: 14px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(241, 245, 249, 0.95);
}

.problem-visual-figure {
    margin: 0;
}

.problem-visual-figure + .problem-visual-figure {
    margin-top: 14px;
}

.problem-visual-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    background: #fff;
}

.problem-visual-caption {
    margin-top: 8px;
    color: #475569;
    font-size: 0.82rem;
    line-height: 1.45;
}

.phone-help-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: #3f82f8;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.phone-help-chevron {
    width: 10px;
    height: 10px;
    border-right: 3px solid #000;
    border-bottom: 3px solid #000;
    transform: rotate(-45deg);
    transition: transform 160ms ease;
}

.phone-study-shell[data-screen-state="hint"] .phone-help-chevron,
.phone-study-shell[data-screen-state="revealed"] .phone-help-chevron,
.phone-study-shell[data-screen-state="walkthrough"] .phone-help-chevron {
    transform: rotate(45deg);
}

.phone-hints-surface,
.phone-feedback-surface,
.phone-walkthrough-surface {
    display: none;
}

.phone-hints-surface.is-visible,
.phone-walkthrough-surface.is-visible {
    display: grid;
}

.phone-feedback-surface.is-visible {
    display: block;
}

.phone-hints-surface,
.phone-answer-surface,
.phone-feedback-card,
.phone-walkthrough-surface {
    padding: 14px;
    border-radius: 20px;
    background: #f3f3fb;
}

.phone-hints-surface,
.phone-walkthrough-surface {
    gap: 10px;
}

.phone-hints-header p,
.phone-hints-footer,
.phone-answer-status,
.phone-walkthrough-footer,
.phone-feedback-card p {
    margin: 0;
    color: #8e8e93;
    font-size: 0.62rem;
    line-height: 1.38;
}

.phone-hints-title-row,
.phone-walkthrough-title-row {
    display: grid;
    grid-auto-flow: column;
    align-items: center;
    justify-content: start;
    gap: 10px;
}

.phone-hints-title-row strong,
.phone-walkthrough-title-row strong {
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
}

.phone-bulb-icon,
.phone-walkthrough-icon {
    position: relative;
    display: block;
    width: 16px;
    height: 16px;
    color: #000;
}

.phone-bulb-icon::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 1px;
    width: 10px;
    height: 10px;
    border: 1.75px solid currentColor;
    border-radius: 50%;
}

.phone-bulb-icon::after {
    content: "";
    position: absolute;
    left: 5px;
    bottom: 1px;
    width: 4px;
    height: 5px;
    border-top: 1.75px solid currentColor;
    border-bottom: 1.75px solid currentColor;
}

.phone-hint-card,
.phone-step-card {
    display: grid;
    gap: 6px;
    padding: 12px;
    border-radius: 16px;
    background: #fff;
}

.phone-hint-card strong,
.phone-step-card strong,
.phone-answer-surface h4,
.phone-walkthrough-title-row h4 {
    margin: 0;
    color: #000;
    font-size: 0.76rem;
    font-weight: 700;
}

.phone-hint-card p,
.phone-step-card p,
.phone-answer-field {
    margin: 0;
    color: #000;
    font-size: 0.68rem;
    line-height: 1.34;
    white-space: pre-wrap;
}

.phone-hint-revealed {
    display: none;
}

.phone-study-shell[data-screen-state="revealed"] .phone-hint-hidden,
.phone-study-shell[data-screen-state="walkthrough"] .phone-hint-hidden {
    display: none;
}

.phone-study-shell[data-screen-state="revealed"] .phone-hint-revealed,
.phone-study-shell[data-screen-state="walkthrough"] .phone-hint-revealed {
    display: block;
}

.phone-hint-actions,
.phone-answer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.phone-pill-button,
.phone-check-button,
.phone-next-button {
    min-height: 28px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 0.64rem;
    cursor: pointer;
}

.phone-pill-button {
    background: #dadbe4;
    color: #bec0ca;
    font-weight: 600;
}

.phone-pill-button.is-muted,
.phone-pill-button:disabled {
    opacity: 0.92;
}

.phone-pill-button-primary {
    color: #3f82f8;
}

.phone-answer-surface {
    display: grid;
    gap: 10px;
    min-height: 206px;
}

.phone-answer-field {
    min-height: 58px;
    padding: 12px 14px;
    border: 1px solid #d2d2d7;
    border-radius: 14px;
    background: #fff;
    color: #c7c7cc;
}

.phone-answer-input {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    resize: none;
    outline: none;
    font: inherit;
    transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.phone-answer-input:focus {
    border-color: #9ab8ff;
    box-shadow: 0 0 0 3px rgba(63, 130, 248, 0.12);
    color: #111827;
}

.phone-answer-input.is-filled {
    color: #111827;
}

.phone-multiple-choice-options {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
}

.phone-multiple-choice-option {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d2d2d7;
    border-radius: 14px;
    background: #fff;
    color: #111827;
    cursor: pointer;
}

.phone-multiple-choice-option:has(.phone-multiple-choice-input:checked) {
    border-color: #9ab8ff;
    box-shadow: 0 0 0 3px rgba(63, 130, 248, 0.12);
}

.phone-multiple-choice-input {
    margin: 0;
}

.phone-multiple-choice-option span {
    font-size: 0.68rem;
    line-height: 1.34;
}

.phone-token-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.phone-token-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #dadbe4;
    color: #3f82f8;
    font-size: 0.76rem;
    font-weight: 500;
    cursor: pointer;
}

.phone-check-button {
    width: fit-content;
    min-width: 104px;
    background: #dadbe4;
    color: #bec0ca;
    font-size: 0.7rem;
}

.phone-check-button:disabled,
.phone-pill-button:disabled {
    cursor: default;
}

.phone-check-button.is-ready {
    background: #4282ec;
    color: #fff;
}

.phone-answer-status {
    margin-left: auto;
    font-weight: 600;
    font-size: 0.56rem;
}

.phone-feedback-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 10px;
    background: #e7f7e7;
}

.phone-feedback-card.is-warning {
    background: #fff2de;
}

.phone-feedback-card.is-neutral {
    background: #e8f0ff;
}

.phone-feedback-card strong {
    display: block;
    margin: 0 0 4px;
    color: #5cc463;
    font-size: 0.98rem;
    font-weight: 700;
}

.phone-feedback-card.is-warning strong,
.phone-feedback-card.is-warning p {
    color: #d97706;
}

.phone-feedback-card.is-neutral strong,
.phone-feedback-card.is-neutral p {
    color: #3f82f8;
}

.phone-feedback-card p {
    color: #5cc463;
    font-size: 0.72rem;
}

.phone-feedback-icon {
    position: relative;
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #5cc463;
}

.phone-feedback-icon.is-warning {
    background: #f59e0b;
}

.phone-feedback-icon.is-neutral {
    background: #3f82f8;
}

.phone-feedback-icon::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 7px;
    width: 10px;
    height: 6px;
    border-left: 2.5px solid #fff;
    border-bottom: 2.5px solid #fff;
    transform: rotate(-45deg);
}

.phone-feedback-icon.is-warning::before {
    left: 12px;
    top: 6px;
    width: 3px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    transform: none;
    box-shadow: 0 14px 0 -1px #fff;
}

.phone-feedback-icon.is-neutral::before {
    content: "?";
    inset: 0;
    display: grid;
    place-items: center;
    width: auto;
    height: auto;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 0.86rem;
    font-weight: 800;
    transform: none;
}

.phone-walkthrough-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 8px;
    flex-wrap: wrap;
}

.phone-walkthrough-button {
    white-space: nowrap;
}

.phone-walkthrough-title-row h4 {
    font-size: 0.96rem;
}

.phone-walkthrough-icon::before,
.phone-walkthrough-icon::after {
    content: "";
    position: absolute;
    background: currentColor;
}

.phone-walkthrough-icon::before {
    left: 0;
    top: 3px;
    width: 12px;
    height: 2px;
    border-radius: 999px;
    box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
}

.phone-walkthrough-icon::after {
    left: 14px;
    top: 1px;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
}

.phone-walkthrough-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 18px;
    background: #dadbe4;
    color: #bec0ca;
    font-size: 0.62rem;
    text-align: center;
}

.phone-walkthrough-intro {
    margin: 0;
    color: #8e8e93;
    font-size: 0.62rem;
    line-height: 1.38;
}

.phone-walkthrough-steps {
    display: grid;
    gap: 10px;
}

.phone-support-card strong {
    color: #111827;
}

.phone-walkthrough-footer {
    position: relative;
    padding-left: 22px;
}

.phone-walkthrough-footer::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 10px;
    height: 10px;
    border: 1.75px solid #8e8e93;
    border-radius: 8px;
    border-right-color: transparent;
    transform: rotate(-45deg);
}

.phone-next-button {
    width: fit-content;
    background: #4282ec;
    color: #fff;
}

.phone-bottom-switcher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 6px;
    width: min(100%, 166px);
    margin: auto auto 0;
    padding: 5px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.phone-bottom-tab {
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: 7px 6px 6px;
    border-radius: 14px;
    color: #18181b;
    font-size: 0.64rem;
    font-weight: 600;
}

.phone-bottom-tab.is-active {
    background: #e5e5ee;
    color: #3f82f8;
}

.phone-bottom-icon {
    display: block;
    position: relative;
    width: 21px;
    height: 21px;
}

.phone-bottom-icon-learn::before,
.phone-bottom-icon-learn::after {
    content: "";
    position: absolute;
    top: 2px;
    border-radius: 3px;
    background: currentColor;
}

.phone-bottom-icon-learn::before {
    left: 4px;
    width: 8px;
    height: 18px;
    box-shadow: 10px 0 0 currentColor;
}

.phone-bottom-icon-learn::after {
    left: 13px;
    width: 7px;
    height: 21px;
    transform: skew(-8deg);
}

.phone-bottom-icon-progress::before,
.phone-bottom-icon-progress::after {
    content: "";
    position: absolute;
    background: currentColor;
}

.phone-bottom-icon-progress::before {
    inset: 1px 8px 1px 8px;
    clip-path: polygon(0 14%, 34% 0, 34% 100%, 0 84%);
}

.phone-bottom-icon-progress::after {
    inset: 1px 2px 1px 14px;
    clip-path: polygon(0 0, 100% 14%, 100% 84%, 0 100%);
}

.problem-related-link {
    align-content: start;
}

.problem-related-link strong {
    -webkit-line-clamp: 4;
    font-size: 0.98rem;
    line-height: 1.34;
}

.legal-hero {
    max-width: 760px;
}

.legal-updated {
    margin-top: 18px;
    font-weight: 700;
    color: var(--brown-deep);
}

.legal-card {
    margin-top: 30px;
    padding: 30px;
}

.legal-section + .legal-section {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.support-email-link {
    font-weight: 700;
    color: var(--teal);
}

.site-footer-legal {
    padding-bottom: 36px;
}

.pricing-page-frame {
    max-width: none;
}

.pricing-main {
    display: grid;
    gap: 34px;
    padding: 20px 0 72px;
}

.pricing-hero {
    display: grid;
    gap: 14px;
    max-width: 860px;
    padding: 18px 0 8px;
}

.pricing-hero h1 {
    max-width: 13ch;
    font-size: clamp(3rem, 8vw, 6.3rem);
    line-height: 0.92;
    letter-spacing: -0.05em;
}

.pricing-hero p {
    max-width: 64ch;
    color: var(--ink-soft);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.pricing-grid-single {
    grid-template-columns: minmax(0, 520px);
    justify-content: center;
}

.pricing-card {
    display: grid;
    gap: 22px;
    align-content: start;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(255, 253, 249, 0.99), rgba(247, 240, 231, 0.98));
    box-shadow: var(--shadow);
}

.pricing-card-featured {
    background:
        radial-gradient(circle at top right, rgba(255, 189, 89, 0.25), transparent 40%),
        linear-gradient(180deg, rgba(255, 253, 249, 0.99), rgba(247, 240, 231, 0.98));
    border-color: rgba(29, 107, 104, 0.26);
}

.pricing-card-head {
    display: grid;
    gap: 10px;
}

.pricing-card h2 {
    font-size: clamp(1.85rem, 3.2vw, 2.6rem);
    line-height: 0.98;
}

.pricing-price {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: baseline;
    color: var(--brown-deep);
    font-family: var(--font-display);
    font-size: clamp(2.7rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 0.92;
}

.pricing-price small {
    color: var(--ink-soft);
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
}

.pricing-note {
    color: var(--ink-soft);
    font-weight: 600;
}

.pricing-toggle {
    display: inline-flex;
    width: fit-content;
    padding: 4px;
    border: 1px solid rgba(31, 36, 33, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
}

.pricing-toggle button {
    min-height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink-soft);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.pricing-toggle button.is-active {
    background: var(--teal);
    color: #fffaf4;
}

.pricing-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.pricing-stats div,
.pricing-course-stat {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid rgba(31, 36, 33, 0.1);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.64);
}

.pricing-stats span,
.pricing-course-stat span {
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pricing-stats strong,
.pricing-course-stat strong {
    color: var(--brown-deep);
    font-family: var(--font-display);
    font-size: 1.45rem;
    line-height: 1;
}

.pricing-feature-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 20px;
    color: var(--ink-soft);
}

.pricing-action {
    width: 100%;
    align-self: end;
}

.pricing-action-disabled,
.pricing-action-disabled:disabled {
    border-color: rgba(31, 36, 33, 0.14);
    background: #ece7df;
    color: #8a8177;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pricing-course-picker {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.pricing-course-picker legend {
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pricing-course-picker label {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(31, 36, 33, 0.1);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.64);
    cursor: pointer;
}

.pricing-course-picker input {
    accent-color: var(--teal);
}

.pricing-course-picker span {
    font-weight: 800;
}

.pricing-course-stats {
    display: grid;
    gap: 10px;
}

.pricing-course-stat {
    display: none;
}

.pricing-course-stat.is-active {
    display: grid;
}

a:focus-visible,
button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(29, 107, 104, 0.22);
}

/* Clean pricing page */
.new-pricing-main {
    display: grid;
    gap: 0;
}

.new-pricing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 70px;
    align-items: end;
    padding: 112px 0 76px;
}

.new-pricing-hero h1 {
    max-width: 11ch;
    margin-top: 18px;
    font-family: inherit;
    font-size: clamp(3.7rem, 6vw, 6rem);
    font-weight: 750;
    letter-spacing: -0.065em;
    line-height: 0.94;
}

.new-pricing-hero p {
    max-width: 680px;
    margin-top: 26px;
    color: var(--new-muted);
    font-size: 1.18rem;
    line-height: 1.65;
}

.global-billing-control {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--new-line);
    border-radius: 12px;
    background: var(--new-surface);
}

.global-billing-control button {
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #494b50;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
}

.global-billing-control button.is-active {
    background: #fff;
    color: var(--new-ink);
    box-shadow: 0 1px 4px rgba(18, 28, 45, 0.08);
}

.global-billing-control button span {
    margin-left: 5px;
    color: var(--new-blue);
    font-size: 0.7rem;
}

.pricing-promise-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--new-line);
    border-bottom: 1px solid var(--new-line);
}

.pricing-promise-strip span {
    position: relative;
    padding: 22px 20px 22px 30px;
    color: #414348;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
}

.pricing-promise-strip span::before {
    position: absolute;
    top: 50%;
    margin-left: -18px;
    color: var(--new-blue);
    content: "✓";
    transform: translateY(-50%);
}

.new-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
    padding: 76px 0 130px;
}

.new-plan-card {
    position: relative;
    display: grid;
    gap: 30px;
    min-width: 0;
    padding: 30px;
    border: 1px solid var(--new-line);
    border-radius: 18px;
    background: #fff;
}

.new-plan-card.plan-featured {
    border-color: var(--new-blue);
}

.plan-badge {
    position: absolute;
    top: 0;
    right: 24px;
    padding: 7px 11px;
    border-radius: 0 0 8px 8px;
    background: var(--new-blue);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.new-plan-card > header,
.new-plan-card form {
    display: grid;
    align-content: start;
}

.new-plan-card form { gap: 28px; }

.plan-label {
    color: var(--new-espresso);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.new-plan-card h2 {
    margin-top: 16px;
    font-family: inherit;
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    font-weight: 730;
    letter-spacing: -0.05em;
    line-height: 1;
}

.plan-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    min-height: 58px;
    margin-top: 26px;
}

.plan-price strong {
    font-size: clamp(2.65rem, 4vw, 3.7rem);
    font-weight: 740;
    letter-spacing: -0.065em;
    line-height: 1;
}

.plan-price span {
    color: var(--new-muted);
    font-size: 0.82rem;
}

.new-plan-card header > p {
    min-height: 75px;
    margin-top: 18px;
    color: var(--new-muted);
    font-size: 0.93rem;
    line-height: 1.55;
}

.plan-scope {
    display: grid;
    gap: 2px;
    padding: 20px;
    border-radius: 12px;
    background: var(--new-surface);
}

.plan-scope strong { font-size: 1.8rem; letter-spacing: -0.04em; }
.plan-scope span { color: var(--new-muted); font-size: 0.76rem; }

.new-plan-features {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    color: #44464b;
    list-style: none;
}

.new-plan-features li {
    position: relative;
    padding-left: 24px;
    font-size: 0.86rem;
    line-height: 1.45;
}

.new-plan-features li::before {
    position: absolute;
    left: 0;
    color: var(--new-blue);
    font-weight: 800;
    content: "✓";
}

.plan-action {
    width: 100%;
    margin-top: auto;
}

.new-course-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
}

.new-course-picker legend {
    grid-column: 1 / -1;
    margin-bottom: 2px;
    color: var(--new-muted);
    font-size: 0.72rem;
    font-weight: 750;
}

.new-course-picker label { cursor: pointer; }
.new-course-picker input { position: absolute; opacity: 0; pointer-events: none; }
.new-course-picker span {
    display: grid;
    place-items: center;
    min-height: 43px;
    padding: 8px;
    border: 1px solid var(--new-line);
    border-radius: 9px;
    color: #44464b;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
}

.new-course-picker input:checked + span {
    border-color: var(--new-blue);
    background: var(--new-blue);
    color: #fff;
}

.new-course-picker input:focus-visible + span {
    outline: 3px solid rgba(10, 102, 255, 0.22);
    outline-offset: 2px;
}

.new-course-stat {
    display: none;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 16px;
    border-radius: 11px;
    background: var(--new-surface);
}

.new-course-stat.is-active { display: grid; }
.new-course-stat strong { margin-bottom: 4px; font-size: 0.9rem; }
.new-course-stat span { color: var(--new-muted); font-size: 0.72rem; }

.all-course-scope {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--new-line);
    border-radius: 12px;
}

.all-course-scope div {
    display: grid;
    gap: 2px;
    padding: 14px;
    border-right: 1px solid var(--new-line);
    border-bottom: 1px solid var(--new-line);
}

.all-course-scope div:nth-child(2n) { border-right: 0; }
.all-course-scope div:nth-last-child(-n+2) { border-bottom: 0; }
.all-course-scope strong { font-size: 1.25rem; letter-spacing: -0.035em; }
.all-course-scope span { color: var(--new-muted); font-size: 0.68rem; }

.pricing-comparison-section {
    padding: 120px 0;
    border-top: 1px solid var(--new-line);
}

.pricing-comparison {
    margin-top: 54px;
    border-top: 1px solid var(--new-ink);
}

.comparison-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.35fr) repeat(3, minmax(150px, 1fr));
    border-bottom: 1px solid var(--new-line);
}

.comparison-row > * {
    padding: 18px;
    border-left: 1px solid var(--new-line);
    color: #4c4e53;
    font-size: 0.84rem;
}

.comparison-row > *:first-child {
    padding-left: 0;
    border-left: 0;
    color: var(--new-ink);
    font-weight: 700;
}

.comparison-head > * {
    color: var(--new-ink);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pricing-study-note {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 88px 0;
    border-top: 1px solid var(--new-line);
}

.pricing-study-note > div {
    padding: 26px;
    border-radius: 16px;
    background: var(--new-surface);
}

.pricing-note-number { color: var(--new-espresso); font-size: 0.72rem; font-weight: 800; }
.pricing-study-note h3 { margin-top: 34px; font-family: inherit; font-size: 1.35rem; letter-spacing: -0.035em; }
.pricing-study-note p { margin-top: 10px; color: var(--new-muted); font-size: 0.88rem; line-height: 1.55; }

.pricing-footer-note {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding: 28px 0 90px;
    color: var(--new-muted);
    font-size: 0.78rem;
}

.pricing-footer-note p:first-child { max-width: 700px; }
.pricing-footer-note a { color: var(--new-blue); font-weight: 700; }

@media (max-width: 1040px) {
    .new-pricing-hero { grid-template-columns: 1fr; align-items: start; }
    .global-billing-control { justify-self: start; }
    .new-plan-grid { grid-template-columns: 1fr; max-width: 720px; margin-inline: auto; }
    .new-plan-card header > p { min-height: 0; }
    .new-plan-card { padding: 36px; }
    .plan-scope { grid-template-columns: auto 1fr; align-items: baseline; gap: 10px; }
}

@media (max-width: 700px) {
    .new-pricing-hero { gap: 38px; padding: 74px 0 54px; }
    .new-pricing-hero h1 { font-size: clamp(3.1rem, 15vw, 4.4rem); }
    .new-pricing-hero p { font-size: 1.05rem; }
    .global-billing-control { width: 100%; }
    .global-billing-control button { flex: 1; padding-inline: 8px; }
    .pricing-promise-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pricing-promise-strip span { padding: 16px 10px 16px 24px; font-size: 0.7rem; }
    .new-plan-grid { padding: 52px 0 90px; }
    .new-plan-card { padding: 24px 20px; }
    .new-course-picker { grid-template-columns: 1fr; }
    .pricing-comparison-section { padding: 88px 0; }
    .comparison-head { display: none; }
    .pricing-comparison { display: grid; gap: 12px; border-top: 0; }
    .comparison-row:not(.comparison-head) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        overflow: hidden;
        border: 1px solid var(--new-line);
        border-radius: 12px;
    }
    .comparison-row:not(.comparison-head) > span:first-child {
        grid-column: 1 / -1;
        padding: 14px;
        border-bottom: 1px solid var(--new-line);
        background: var(--new-surface);
    }
    .comparison-row:not(.comparison-head) > span:not(:first-child) { position: relative; padding: 34px 8px 13px; border-left: 1px solid var(--new-line); font-size: 0.72rem; text-align: center; }
    .comparison-row:not(.comparison-head) > span:nth-child(2) { border-left: 0; }
    .comparison-row:not(.comparison-head) > span:not(:first-child)::before { position: absolute; top: 10px; right: 0; left: 0; color: var(--new-muted); font-size: 0.6rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
    .comparison-row:not(.comparison-head) > span:nth-child(2)::before { content: "Free"; }
    .comparison-row:not(.comparison-head) > span:nth-child(3)::before { content: "One course"; }
    .comparison-row:not(.comparison-head) > span:nth-child(4)::before { content: "All courses"; }
    .pricing-study-note { grid-template-columns: 1fr; padding: 70px 0; }
    .pricing-footer-note { display: grid; gap: 12px; padding-bottom: 70px; }
}

/* Public account pages */
.account-page-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.72fr);
    gap: clamp(70px, 10vw, 140px);
    align-items: center;
    min-height: 720px;
    padding: 90px 0 110px;
}

.account-page-intro h1 {
    max-width: 10ch;
    margin-top: 18px;
    font-family: inherit;
    font-size: clamp(3.7rem, 6vw, 5.8rem);
    font-weight: 750;
    letter-spacing: -0.065em;
    line-height: 0.94;
}

.account-page-intro > p {
    max-width: 620px;
    margin-top: 26px;
    color: var(--new-muted);
    font-size: 1.12rem;
    line-height: 1.65;
}

.account-benefit-list {
    display: grid;
    max-width: 650px;
    margin-top: 56px;
    border-top: 1px solid var(--new-line);
}

.account-benefit-list > div {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 4px 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--new-line);
}

.account-benefit-list > div > span {
    grid-row: span 2;
    color: var(--new-espresso);
    font-size: 0.7rem;
    font-weight: 800;
}

.account-benefit-list strong {
    font-size: 0.94rem;
}

.account-benefit-list p {
    color: var(--new-muted);
    font-size: 0.82rem;
}

.account-form-column {
    display: grid;
    gap: 18px;
}

.account-form-card {
    padding: clamp(28px, 4vw, 42px);
    border: 1px solid var(--new-line);
    border-radius: 18px;
    background: #fff;
}

.account-form-heading h2 {
    margin-top: 12px;
    font-family: inherit;
    font-size: 2.25rem;
    font-weight: 730;
    letter-spacing: -0.05em;
}

.account-form-heading p {
    margin-top: 10px;
    color: var(--new-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.account-form {
    display: grid;
    gap: 18px;
    margin-top: 30px;
}

.account-form label {
    display: grid;
    gap: 8px;
    margin: 0;
}

.account-form label > span {
    color: #34363a;
    font-size: 0.78rem;
    font-weight: 750;
}

.account-form input {
    width: 100%;
    min-height: 52px;
    padding: 0 14px;
    border: 1px solid #c6c7cc;
    border-radius: 9px;
    background: #fff;
    color: var(--new-ink);
    font: inherit;
    font-size: 1rem;
}

.account-form input:focus {
    border-color: var(--new-blue);
    outline: 3px solid rgba(10, 102, 255, 0.15);
}

.account-form label small,
.account-form-errors,
.account-form .errorlist {
    margin: 0;
    padding: 0;
    color: #9b3127;
    font-size: 0.76rem;
    list-style: none;
}

.account-form-errors {
    padding: 12px 14px;
    border: 1px solid #efc5c1;
    border-radius: 9px;
    background: #fff3f2;
}

.account-submit {
    width: 100%;
    margin-top: 4px;
}

.account-create-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--new-line);
    color: var(--new-muted);
    font-size: 0.82rem;
}

.account-create-row a,
.account-privacy-note a {
    color: var(--new-blue);
    font-weight: 700;
}

.account-create-row-compact { margin-top: 12px; padding-top: 12px; }

.account-privacy-note {
    padding: 0 10px;
    color: #777980;
    font-size: 0.72rem;
    line-height: 1.55;
    text-align: center;
}

.account-status-message {
    padding: 14px 16px;
    border: 1px solid #b9dec5;
    border-radius: 11px;
    background: #f1faf4;
    color: #276b40;
    font-size: 0.84rem;
    font-weight: 700;
}

.account-field-assist {
    margin-top: -6px;
    text-align: right;
}

.account-field-assist a {
    color: var(--new-blue);
    font-size: 0.78rem;
    font-weight: 700;
}

.account-form .account-terms-row {
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
}

.account-form .account-terms-row input {
    width: 18px;
    min-height: 18px;
    margin-top: 1px;
    accent-color: var(--new-blue);
}

.account-form .account-terms-row > span {
    font-weight: 500;
    line-height: 1.5;
}

.account-terms-row a { color: var(--new-blue); font-weight: 700; }
.account-terms-row small { grid-column: 2; }

.account-status-page {
    display: grid;
    place-items: center;
    min-height: 680px;
    padding: 80px 0 100px;
}

.account-status-page > .account-form-card {
    width: min(100%, 600px);
}

.account-status-page h1 {
    margin-top: 12px;
    font-family: inherit;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 750;
    letter-spacing: -0.06em;
    line-height: 1;
}

.account-status-page p {
    margin-top: 18px;
    color: var(--new-muted);
    line-height: 1.65;
}

.account-status-page .button { margin-top: 28px; }
.account-status-page details { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--new-line); }
.account-status-page summary { cursor: pointer; font-size: 0.84rem; font-weight: 750; }

.account-status-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    border-radius: 50%;
    background: #eef4ff;
    color: var(--new-blue);
    font-size: 1.35rem;
}

@media (max-width: 900px) {
    .account-page-main { grid-template-columns: 1fr; gap: 60px; min-height: 0; padding: 80px 0 90px; }
    .account-page-intro { max-width: 720px; }
    .account-form-column { width: min(100%, 580px); }
}

@media (max-width: 640px) {
    .account-page-main { gap: 50px; padding: 64px 0 72px; }
    .account-page-intro h1 { font-size: clamp(3.05rem, 15vw, 4.3rem); }
    .account-page-intro > p { font-size: 1rem; }
    .account-benefit-list { margin-top: 40px; }
    .account-form-card { padding: 26px 20px; }
}

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

@media (max-width: 980px) {
    .hero-grid,
    .split-callout,
    .footer-cta,
    .course-grid,
    .stats-grid,
    .feature-grid,
    .faq-grid,
    .site-footer,
    .learn-hero,
    .learn-article-hero,
    .learn-course-choice-grid,
    .learn-search-bar,
    .learn-directory-grid,
    .learn-results-grid,
    .learn-card-grid,
    .problem-page-header,
    .problem-simulator-layout,
    .learn-template-grid,
    .learn-problem-link-grid,
    .problem-related-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .learn-article-page-frame .learn-article-sidebar {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .problem-header-stats,
    .problem-copy-grid {
        grid-template-columns: 1fr;
    }

    .site-footer {
        display: grid;
    }

    .hero-copy h1,
    .legal-hero h1 {
        max-width: 14ch;
        font-size: clamp(2.7rem, 9vw, 4.4rem);
    }

    .learn-article-title-row {
        grid-template-columns: 1fr;
    }

    .learn-objective-illustration {
        justify-self: start;
        max-width: 720px;
    }

    .learn-course-choice-button {
        min-height: 180px;
    }
}

@media (max-width: 720px) {
    .page-shell {
        padding: 0 16px 36px;
    }

    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-nav {
        width: 100%;
    }

    .brand-name {
        font-size: 1.7rem;
    }

    .landing-main {
        gap: 72px;
        padding-top: 12px;
    }

    .learn-course-choice-hero h1,
    .learn-course-page-hero h1 {
        font-size: clamp(2.75rem, 17vw, 4rem);
    }

    .learn-course-choice-button {
        min-height: 150px;
        padding: 22px;
    }

    .learn-objective-card {
        min-height: 0;
        padding: 20px;
    }

    .hero-card,
    .stat-card,
    .feature-card,
    .course-card,
    .callout-card,
    .faq-card,
    .legal-card,
    .footer-cta,
    .learn-hero-copy,
    .learn-hero-panel,
    .learn-article-copy,
    .learn-sidebar-card,
    .objective-summary-panel,
    .learn-prose,
    .learn-page-link,
    .learn-search-bar,
    .learn-empty-state {
        padding: 22px;
        border-radius: 24px;
    }

    .legal-card {
        padding: 22px;
    }

    .learn-main {
        gap: 40px;
        padding-bottom: 48px;
    }

    .learn-feature-card,
    .learn-article-card {
        padding: 20px;
        border-radius: 22px;
    }

    .phone-simulator {
        width: 100%;
        padding: 12px;
        border-radius: 32px;
    }

    .phone-simulator-screen {
        min-height: 0;
        border-radius: 24px;
    }

    .learn-search-submit {
        width: 100%;
    }

    .learn-course-column {
        padding-left: 0;
        border-left: 0;
    }

    .learn-course-column-header {
        padding-top: 0;
    }

    .learn-objective-row {
        padding: 14px 0;
    }
}

/* 2026 clean marketing system */
:root {
    --new-ink: #111111;
    --new-muted: #62656b;
    --new-surface: #f5f5f7;
    --new-line: #dedee3;
    --new-blue: #0a66ff;
    --new-blue-dark: #0057dc;
    --new-espresso: #6b402a;
    --new-radius: 18px;
    --content-width: 1240px;
}

body {
    color: var(--new-ink);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    line-height: 1.5;
}

.marketing-shell {
    padding: 0 28px 40px;
    background: #fff;
}

.marketing-shell .site-header {
    min-height: 72px;
    padding: 0;
    border-bottom: 1px solid var(--new-line);
}

.marketing-shell .brand {
    gap: 10px;
}

.marketing-shell .brand-mark {
    width: 30px;
    height: 30px;
    filter: none;
}

.marketing-shell .brand-name {
    color: var(--new-ink);
    font-family: inherit;
    font-size: 0.94rem;
    font-weight: 760;
    letter-spacing: 0.16em;
}

.marketing-shell .header-nav {
    margin-left: auto;
    gap: 28px;
}

.marketing-shell .nav-link {
    min-height: auto;
    padding: 8px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #252525;
    font-size: 0.9rem;
}

.marketing-shell .nav-link:hover,
.marketing-shell .nav-link.is-active {
    color: var(--new-blue);
    background: transparent;
    box-shadow: none;
    transform: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: 40px;
}

.header-signin {
    font-size: 0.9rem;
    font-weight: 650;
}

.marketing-shell .button {
    min-height: 48px;
    padding: 0 22px;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.marketing-shell .button-primary {
    border-color: var(--new-blue);
    background: var(--new-blue);
    color: #fff;
}

.marketing-shell .button-primary:hover {
    border-color: var(--new-blue-dark);
    background: var(--new-blue-dark);
    box-shadow: none;
}

.marketing-shell .button-secondary {
    border-color: #9b9ba1;
    background: #fff;
    color: var(--new-ink);
}

.header-cta {
    min-height: 42px !important;
    padding: 0 17px !important;
    font-size: 0.86rem;
}

.mobile-menu {
    display: none;
}

.marketing-main,
.how-main {
    display: grid;
    gap: 0;
}

.new-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(560px, 1.14fr);
    gap: clamp(48px, 6vw, 88px);
    align-items: center;
    min-height: 580px;
    padding: 82px 0 64px;
}

.new-eyebrow {
    color: var(--new-espresso);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.new-hero h1,
.how-hero h1 {
    max-width: 9ch;
    margin-top: 20px;
    font-family: inherit;
    font-size: clamp(3.8rem, 6vw, 6rem);
    font-weight: 750;
    letter-spacing: -0.065em;
    line-height: 0.94;
}

.new-hero-text {
    max-width: 36rem;
    margin-top: 24px;
    color: var(--new-muted);
    font-size: clamp(1.12rem, 1.6vw, 1.35rem);
    line-height: 1.5;
}

.new-hero-actions,
.final-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-fine-print {
    margin-top: 18px;
    color: #777980;
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.025em;
}

.product-preview {
    overflow: hidden;
    border: 1px solid var(--new-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(18, 28, 45, 0.08);
}

.preview-topbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-bottom: 1px solid var(--new-line);
    background: #fafafa;
    color: #777980;
    font-size: 0.7rem;
}

.preview-dots {
    display: flex;
    gap: 6px;
}

.preview-dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff5f57;
}

.preview-dots i:nth-child(2) { background: #febc2e; }
.preview-dots i:nth-child(3) { background: #28c840; }

.preview-app {
    display: grid;
    grid-template-columns: 156px minmax(0, 1fr);
    min-height: 390px;
}

.preview-sidebar {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 22px 12px;
    border-right: 1px solid var(--new-line);
    background: #fbfbfc;
}

.preview-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 0.74rem;
}

.preview-brand img {
    width: 22px;
    height: 22px;
}

.preview-sidebar > span {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 0.73rem;
}

.preview-sidebar > span.is-active {
    background: #eaf2ff;
    color: var(--new-blue);
}

.preview-icon { font-style: normal; }

.preview-content {
    display: grid;
    align-content: center;
    justify-items: start;
    padding: 46px;
}

.preview-content small {
    color: #74767c;
    font-size: 0.66rem;
    font-weight: 700;
}

.preview-content h2 {
    max-width: 14ch;
    margin-top: 18px;
    font-family: inherit;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    letter-spacing: -0.045em;
    line-height: 1.03;
}

.preview-meta,
.preview-note {
    margin-top: 10px;
    color: #777980;
    font-size: 0.74rem;
}

.preview-equation {
    margin: 28px 0 22px;
    font-family: Georgia, serif;
    font-size: 2rem;
}

.preview-button {
    padding: 11px 18px;
    border-radius: 8px;
    background: var(--new-blue);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
}

.metric-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--new-line);
    border-radius: var(--new-radius);
    background: #fff;
}

.metric-item {
    display: grid;
    gap: 2px;
    padding: 28px 30px;
    border-left: 1px solid var(--new-line);
}

.metric-item:first-child { border-left: 0; }
.metric-item strong { font-size: 1.95rem; letter-spacing: -0.045em; }
.metric-item span { color: var(--new-muted); font-size: 0.86rem; }

.marketing-section,
.understanding-section,
.course-detail-section {
    padding: 132px 0;
}

.section-intro {
    max-width: 770px;
}

.section-intro h2,
.paper-copy h2,
.how-feature h2,
.final-cta h2,
.no-ai-section h2 {
    margin-top: 14px;
    font-family: inherit;
    font-size: clamp(2.6rem, 5vw, 4.6rem);
    font-weight: 740;
    letter-spacing: -0.06em;
    line-height: 0.98;
}

.section-intro > p,
.paper-copy > p,
.how-feature-copy > p,
.final-cta p,
.no-ai-section p {
    max-width: 650px;
    margin-top: 22px;
    color: var(--new-muted);
    font-size: 1.08rem;
    line-height: 1.65;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    margin-top: 56px;
}

.why-card {
    grid-column: span 2;
    min-height: 260px;
    padding: 28px;
    border: 1px solid var(--new-line);
    border-radius: var(--new-radius);
    background: #fff;
}

.why-card:nth-child(4),
.why-card:nth-child(5) { grid-column: span 3; }
.why-card > span { color: var(--new-espresso); font-size: 0.75rem; font-weight: 800; }
.why-card h3 { margin-top: 44px; font-family: inherit; font-size: 1.45rem; letter-spacing: -0.035em; }
.why-card p { margin-top: 12px; color: var(--new-muted); }

.paper-section,
.how-feature {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(48px, 8vw, 110px);
    align-items: center;
    padding: 100px clamp(32px, 6vw, 82px);
    border-radius: 28px;
    background: var(--new-surface);
}

.text-link {
    display: inline-flex;
    gap: 8px;
    margin-top: 26px;
    color: var(--new-blue);
    font-weight: 700;
}

.worksheet-preview {
    padding: 30px;
    border: 1px solid #d2d2d7;
    background: #fff;
    box-shadow: 0 18px 45px rgba(18, 28, 45, 0.07);
}

.worksheet-heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--new-line);
}

.worksheet-heading span { color: var(--new-muted); font-size: 0.82rem; }
.worksheet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.worksheet-grid > div { min-height: 145px; padding: 18px; border-right: 1px solid var(--new-line); border-bottom: 1px solid var(--new-line); }
.worksheet-grid > div:nth-child(2n) { border-right: 0; }
.worksheet-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
.worksheet-grid span { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #bbbcc2; border-radius: 50%; font-size: 0.7rem; }
.worksheet-grid p { margin-top: 15px; font-size: 0.82rem; line-height: 1.45; }

.new-course-grid,
.course-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 54px;
}

.new-course-card,
.course-detail-grid article {
    display: grid;
    align-content: start;
    min-height: 300px;
    padding: 26px;
    border-top: 1px solid var(--new-ink);
}

.course-number,
.course-detail-grid article > span { color: var(--new-espresso); font-size: 0.74rem; font-weight: 800; }
.new-course-card h3,
.course-detail-grid h3 { margin-top: 50px; font-family: inherit; font-size: 1.45rem; letter-spacing: -0.035em; }
.new-course-card p,
.course-detail-grid p { margin-top: 12px; color: var(--new-muted); font-size: 0.94rem; }
.new-course-card > span,
.course-detail-grid small { align-self: end; margin-top: 26px; color: #777980; font-size: 0.72rem; font-weight: 700; }

.understanding-section {
    border-top: 1px solid var(--new-line);
}

.understanding-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 46px;
    margin-top: 62px;
}

.understanding-points > div { padding-top: 18px; border-top: 1px solid var(--new-line); }
.understanding-points strong { font-size: 1.1rem; }
.understanding-points p { margin-top: 10px; color: var(--new-muted); }

.final-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 60px;
    align-items: end;
    margin-bottom: 100px;
    padding: 70px;
    border-radius: 28px;
    background: var(--new-surface);
}

.final-cta h2 { max-width: 12ch; font-size: clamp(2.4rem, 4vw, 4rem); }
.final-cta-actions { justify-content: flex-end; }

.marketing-shell .site-footer {
    padding: 30px 0 10px;
    border-top: 1px solid var(--new-line);
}

.marketing-shell .footer-mark { width: 32px; height: 32px; }
.marketing-shell .footer-title { font-family: inherit; font-size: .9rem; font-weight: 760; letter-spacing: .14em; }
.marketing-shell .footer-note,
.marketing-shell .footer-links { font-size: 0.8rem; }

.how-hero {
    max-width: 960px;
    padding: 120px 0 110px;
}

.how-hero h1 { max-width: 12ch; }
.how-hero > p { max-width: 750px; margin-top: 28px; color: var(--new-muted); font-size: 1.3rem; line-height: 1.6; }

.how-steps { border-top: 1px solid var(--new-line); }
.how-steps article { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 30px; padding: 54px 0; border-bottom: 1px solid var(--new-line); }
.how-steps article > span { color: var(--new-espresso); font-size: 0.78rem; font-weight: 800; }
.how-steps article > div { display: grid; grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1fr); gap: 60px; align-items: start; }
.how-steps h2 { font-family: inherit; font-size: clamp(1.8rem, 3vw, 2.7rem); letter-spacing: -0.045em; }
.how-steps p { color: var(--new-muted); font-size: 1.02rem; line-height: 1.65; }

.how-feature { margin-top: 100px; }
.how-feature-reverse .how-feature-copy { order: 2; }
.how-feature-reverse .how-feature-visual { order: 1; }
.how-feature-visual { min-height: 360px; padding: 32px; border: 1px solid var(--new-line); border-radius: var(--new-radius); background: #fff; }
.pdf-visual { display: grid; grid-template-columns: 1fr auto; align-content: start; gap: 6px; }
.pdf-visual > span { color: var(--new-muted); font-size: 0.75rem; }
.pdf-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 20px; }
.pdf-grid i { min-height: 115px; padding: 12px; border-right: 1px solid var(--new-line); border-bottom: 1px solid var(--new-line); font-style: normal; }
.pdf-grid i:nth-child(2n) { border-right: 0; }
.pdf-grid i:nth-last-child(-n+2) { border-bottom: 0; }
.steps-visual { display: grid; align-content: center; gap: 0; }
.steps-visual > div { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--new-line); }
.steps-visual > div:last-child { border-bottom: 0; }
.steps-visual span { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--new-line); border-radius: 50%; font-size: 0.75rem; }
.share-visual { display: grid; place-items: center; align-content: center; text-align: center; }
.share-visual span { color: var(--new-muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; }
.share-visual strong { margin-top: 16px; color: var(--new-espresso); font-size: 2.8rem; letter-spacing: 0.08em; }
.share-visual p { margin-top: 12px; color: var(--new-muted); }

.no-ai-section {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 50px;
    align-items: start;
    margin-top: 100px;
    padding: 80px 0;
    border-top: 1px solid var(--new-ink);
    border-bottom: 1px solid var(--new-ink);
}

.no-ai-section > span { color: var(--new-espresso); font-size: 1.5rem; font-weight: 850; letter-spacing: 0.12em; }
.no-ai-section h2 { margin-top: 0; }
.foundations-note { max-width: 850px; margin-top: 50px; padding: 28px; border-left: 3px solid var(--new-espresso); background: var(--new-surface); color: var(--new-muted); }

@media (max-width: 980px) {
    .marketing-shell .header-nav,
    .header-actions { display: none; }
    .mobile-menu { display: block; margin-left: auto; position: relative; }
    .mobile-menu summary { display: grid; gap: 4px; padding: 12px; cursor: pointer; list-style: none; }
    .mobile-menu summary::-webkit-details-marker { display: none; }
    .mobile-menu summary span { width: 21px; height: 2px; background: var(--new-ink); }
    .mobile-menu nav { position: absolute; z-index: 20; top: 48px; right: 0; display: grid; width: min(310px, calc(100vw - 32px)); gap: 4px; padding: 12px; border: 1px solid var(--new-line); border-radius: 14px; background: #fff; box-shadow: 0 20px 60px rgba(18,28,45,.12); }
    .mobile-menu nav a:not(.button) { padding: 12px; font-weight: 650; }
    .new-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 80px; }
    .product-preview { max-width: 760px; }
    .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .why-card,
    .why-card:nth-child(4),
    .why-card:nth-child(5) { grid-column: span 1; }
    .why-card:last-child { grid-column: 1 / -1; }
    .paper-section,
    .how-feature { grid-template-columns: 1fr; }
    .new-course-grid,
    .course-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .how-feature-reverse .how-feature-copy,
    .how-feature-reverse .how-feature-visual { order: initial; }
    .final-cta { grid-template-columns: 1fr; }
    .final-cta-actions { justify-content: flex-start; }
}

@media (max-width: 640px) {
    .marketing-shell { padding: 0 16px 28px; }
    .marketing-shell .site-header { min-height: 62px; flex-direction: row; align-items: center; }
    .marketing-shell .brand-name { font-size: 1rem; }
    .new-hero { gap: 44px; padding: 64px 0 42px; }
    .new-hero h1,
    .how-hero h1 { font-size: clamp(3.1rem, 15vw, 4.4rem); }
    .new-hero-actions,
    .final-cta-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
    .new-hero-actions .button,
    .final-cta-actions .button { width: 100%; }
    .preview-app { grid-template-columns: 1fr; min-height: 0; }
    .preview-sidebar { display: none; }
    .preview-content { padding: 30px 24px; }
    .preview-content h2 { font-size: 1.8rem; }
    .metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .metric-item { padding: 22px 18px; border-bottom: 1px solid var(--new-line); }
    .metric-item:nth-child(odd) { border-left: 0; }
    .metric-item:nth-last-child(-n+2) { border-bottom: 0; }
    .metric-item strong { font-size: 1.6rem; }
    .marketing-section,
    .understanding-section,
    .course-detail-section { padding: 88px 0; }
    .section-intro h2,
    .paper-copy h2,
    .how-feature h2,
    .final-cta h2,
    .no-ai-section h2 { font-size: clamp(2.35rem, 11vw, 3.3rem); }
    .why-grid { grid-template-columns: 1fr; }
    .why-card,
    .why-card:last-child { grid-column: auto; min-height: 230px; }
    .paper-section,
    .how-feature { padding: 54px 20px; border-radius: 22px; }
    .worksheet-preview { padding: 18px; }
    .worksheet-grid > div { min-height: 125px; padding: 12px; }
    .new-course-grid,
    .course-detail-grid,
    .understanding-points { grid-template-columns: 1fr; }
    .new-course-card,
    .course-detail-grid article { min-height: 245px; }
    .final-cta { gap: 34px; margin-bottom: 70px; padding: 48px 22px; border-radius: 22px; }
    .marketing-shell .site-footer { grid-template-columns: 1fr; }
    .marketing-shell .footer-links { display: flex; align-items: flex-start; }
    .how-hero { padding: 82px 0 72px; }
    .how-hero > p { font-size: 1.08rem; }
    .how-steps article { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 38px 0; }
    .how-steps article > div { grid-template-columns: 1fr; gap: 14px; }
    .how-feature { margin-top: 64px; }
    .how-feature-visual { min-height: 300px; padding: 22px; }
    .no-ai-section { grid-template-columns: 1fr; gap: 28px; margin-top: 70px; padding: 60px 0; }
}

/* Shared public pages use the same restrained component language. */
.pricing-card,
.hero-panel,
.legal-card,
.feature-card,
.course-card,
.callout-card,
.faq-card,
.footer-cta,
.hero-card,
.stat-card,
.objective-summary-panel {
    border-color: var(--new-line);
    border-radius: var(--new-radius);
    background: #fff;
    box-shadow: none;
}

.pricing-card-featured {
    border-color: rgba(10, 102, 255, 0.45);
    background: #fff;
}

.pricing-hero h1 {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
    font-weight: 740;
    letter-spacing: -0.06em;
}

.pricing-price,
.pricing-stats strong,
.pricing-course-stat strong {
    color: var(--new-ink);
}

.pricing-toggle {
    border-color: var(--new-line);
    border-radius: 10px;
    background: var(--new-surface);
}

.pricing-toggle button { border-radius: 7px; }
.pricing-toggle button.is-active { background: var(--new-blue); color: #fff; }
.pricing-stats div,
.pricing-course-stat,
.pricing-course-picker label { border-color: var(--new-line); border-radius: 11px; background: var(--new-surface); }
.pricing-course-picker input { accent-color: var(--new-blue); }

.learn-course-choice-button,
.learn-objective-card,
.learn-feature-card,
.learn-article-card {
    border-color: var(--new-line);
    border-radius: var(--new-radius);
    background: #fff;
    box-shadow: none;
}

.learn-course-choice-button:hover,
.learn-objective-card:hover,
.learn-feature-card:hover,
.learn-article-card:hover {
    border-color: rgba(10, 102, 255, 0.4);
    box-shadow: none;
}

.learn-course-choice-button span,
.learn-course-back,
.learn-search-label,
.learn-card-meta,
.learn-summary-row span,
.learn-page-link span { color: var(--new-blue); }

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(10, 102, 255, 0.22);
    outline-offset: 2px;
    box-shadow: none;
}
