: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);
}

.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-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,
.learn-article-copy h1 {
    margin-top: 12px;
    max-width: 14ch;
    font-size: clamp(2.9rem, 6vw, 5rem);
    line-height: 0.96;
}

.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-problem-accordion {
    display: grid;
}

.learn-archetype {
    border-top: 1px solid rgba(31, 36, 33, 0.08);
}

.learn-archetype:last-child {
    border-bottom: 1px solid rgba(31, 36, 33, 0.08);
}

.learn-archetype-summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 16px;
    background: rgba(215, 239, 236, 0.52);
}

.learn-archetype-summary::-webkit-details-marker {
    display: none;
}

.learn-archetype-heading {
    display: grid;
    gap: 10px;
}

.learn-archetype-heading strong {
    font-family: var(--font-display);
    font-size: 1.18rem;
    line-height: 1.24;
}

.learn-archetype-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;
}

.learn-archetype-panel {
    padding: 16px 0 18px;
}

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

.learn-problem-card {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 16px;
    background: rgba(31, 36, 33, 0.03);
}

.learn-problem-card-simulator {
    background: rgba(192, 223, 255, 0.42);
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.learn-problem-card-simulator:hover {
    color: var(--teal);
    background: rgba(176, 214, 255, 0.62);
    transform: translateY(-1px);
}

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

.learn-problem-card p {
    color: var(--ink);
    white-space: pre-wrap;
}

.learn-problem-card-link {
    color: var(--teal);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    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: 14ch;
    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-direction: column;
    gap: 12px;
    min-height: 0;
    padding: 12px 16px 16px;
    background: #eff0f7;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
}

.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-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;
}

.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-feedback-surface.is-visible,
.phone-walkthrough-surface.is-visible {
    display: grid;
}

.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-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;
}

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

@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-search-bar,
    .learn-directory-grid,
    .learn-results-grid,
    .learn-card-grid,
    .problem-page-header,
    .problem-simulator-layout,
    .learn-archetype-grid,
    .learn-problem-link-grid,
    .problem-related-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);
    }
}

@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;
    }

    .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,
    .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;
        padding: 20px 16px 22px;
        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;
    }
}
