:root {
    --ink: #111111;
    --muted: #666666;
    --paper: #ffffff;
    --card: #ffffff;
    --line: #e7e7e7;
    --green: #111111;
    --red: #c82f2f;
    --red-dark: #8f1f1f;
    --soft-red: #fff0f0;
    --soft-gray: #f6f6f6;
    --blue: #c82f2f;
    --gold: #d7d7d7;
    --shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
    --deep-shadow: 0 28px 70px rgba(17, 17, 17, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #ffffff;
    color: var(--ink);
    font-family: Avenir Next, Verdana, sans-serif;
    overflow-x: hidden;
}

a {
    color: inherit;
}

.site-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--green);
    font-family: Avenir Next, Verdana, sans-serif;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.brand-logo {
    display: block;
    width: clamp(150px, 18vw, 230px);
    height: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--muted);
    font-family: Avenir Next, Verdana, sans-serif;
    font-size: 0.92rem;
}

.site-nav a {
    text-decoration: none;
}

.site-nav a[aria-current="page"] {
    color: var(--ink);
    font-weight: 700;
}

.nav-cta {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 10px;
    background: #ffffff;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
    gap: 28px;
    padding: 56px 0 36px;
}

.hero-logo {
    display: block;
    width: min(360px, 82vw);
    height: auto;
    margin-bottom: 22px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.hero h1,
.legal-hero h1,
.blog-hero h1 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(2.5rem, 7vw, 5.8rem);
    line-height: 0.92;
    letter-spacing: -0.06em;
}

.hero p,
.legal-hero p,
.blog-hero p {
    max-width: 680px;
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1.65;
}

.section-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--muted);
    font-family: Avenir Next, Verdana, sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-actions,
.footer,
.blog-list,
.legal-card,
.faq {
    display: grid;
    gap: 16px;
}

.button {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    padding: 12px 18px;
    font-family: Avenir Next, Verdana, sans-serif;
    font-weight: 800;
    text-decoration: none;
}

.primary {
    background: var(--red);
    color: var(--paper);
}

.secondary {
    border: 1px solid var(--line);
    background: #ffffff;
}

.hero-card,
.feature-card,
.demo-card,
.legal-card,
.blog-list-item,
.faq details {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.hero-card,
.feature-card,
.screenshot-strip article,
.demo-card,
.blog-list-item,
.legal-card,
.faq details {
    padding: 22px;
}

.hero-card {
    display: grid;
    gap: 18px;
}

.hero-card strong {
    display: block;
    font-size: 2rem;
}

.hero-card span,
.empty-state {
    color: var(--muted);
}

.mechanism-grid,
.screenshot-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    padding: 20px 0;
}

.intro-strip,
.quality-section,
.verb-section,
.download-section {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: 32px;
    align-items: center;
    border-block: 1px solid var(--line);
    padding: 42px 0;
}

.testimonial-track,
.screenshot-band,
.visual-story-grid,
.principle-grid,
.stat-grid,
.curriculum-detail-grid,
.share-grid,
.faq-grid {
    display: grid;
    gap: 16px;
}

.testimonial-track,
.screenshot-band,
.visual-story-grid,
.principle-grid,
.stat-grid,
.share-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.curriculum-detail-grid,
.faq-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-head {
    max-width: 780px;
    margin-bottom: 24px;
}

.section-head h2,
.intro-strip h2,
.quality-section h2,
.verb-section h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.testimonial-pill,
.screenshot-card,
.visual-story-grid article,
.principle-grid article,
.mechanism-row,
.stat-card,
.curriculum-detail-grid article,
.share-card,
.faq-card,
.verb-card {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #ffffff;
    padding: 22px;
    box-shadow: var(--shadow);
}

.testimonial-pill {
    margin: 0;
}

.testimonial-pill blockquote {
    margin: 0 0 12px;
    font-size: 1.08rem;
}

.testimonial-pill figcaption,
.screenshot-step,
.visual-story-grid span {
    color: var(--blue);
    font-family: Avenir Next, Verdana, sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.screenshot-story-section,
.visual-story-section,
.mechanisms-section,
.curriculum-section,
.share-section,
.download-section,
.faq-section {
    padding: 56px 0;
}

.download-card {
    display: grid;
    gap: 14px;
    justify-items: start;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #ffffff;
    padding: 22px;
    box-shadow: var(--shadow);
}

.launch-pill {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    background: var(--green);
    color: var(--paper);
    padding: 10px 14px;
    font-family: Avenir Next, Verdana, sans-serif;
    font-weight: 800;
}

.app-store-badge {
    width: 180px;
    height: auto;
}

.landing-main {
    display: grid;
    gap: 0;
    min-width: 0;
}

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
    padding: clamp(44px, 8vw, 92px) 0 52px;
}

.hero-copy,
.hero-visual,
.mechanism-copy,
.mechanism-visual {
    min-width: 0;
}

.hero-copy h1,
.app-launch-copy h2,
.section-head h2,
.custom-content-section h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(2.8rem, 7vw, 6.6rem);
    line-height: 0.9;
    letter-spacing: -0.07em;
}

.hero-text {
    max-width: 680px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: clamp(1.1rem, 2vw, 1.36rem);
    line-height: 1.55;
}

.app-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-top: 26px;
}

.hero-difference-card,
.app-launch-card,
.showcase-card,
.mechanism-card,
.stat-card,
.curriculum-detail-grid article,
.process-grid article,
.faq-card {
    border: 1px solid var(--line);
    border-radius: 32px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.hero-difference-card {
    margin-top: 34px;
    padding: clamp(18px, 3vw, 28px);
}

.eyebrow,
.showcase-label,
.hero-ribbon-frame figcaption,
.process-grid span {
    color: var(--red);
    font-family: Avenir Next, Verdana, sans-serif;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-ribbon-frame {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
    overflow: hidden;
}

.hero-ribbon-frame figure {
    margin: 0;
}

.hero-ribbon-frame img {
    display: block;
    width: 100%;
    aspect-ratio: 0.54;
    object-fit: cover;
    object-position: top;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--soft-gray);
}

.hero-ribbon-frame figcaption {
    margin-top: 8px;
    color: var(--muted);
    text-align: center;
}

.hero-difference-list {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.hero-difference-list li {
    position: relative;
    padding-left: 20px;
    color: var(--ink);
    line-height: 1.55;
}

.hero-difference-list li::before {
    position: absolute;
    top: 0.62em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--red);
    content: "";
}

.hero-visual {
    position: sticky;
    top: 20px;
}

.showcase-card {
    padding: clamp(18px, 3vw, 30px);
}

.showcase-card.tone-red {
    background:
        radial-gradient(circle at 82% 8%, rgba(200, 47, 47, 0.18), transparent 34%),
        linear-gradient(145deg, #ffffff, #f7f7f7);
}

.screenshot-shell {
    margin: 16px auto 0;
    overflow: hidden;
    border: 10px solid #171717;
    border-radius: 38px;
    background: #111111;
    box-shadow: var(--deep-shadow);
}

.screenshot-shell img {
    display: block;
    width: 100%;
    height: auto;
}

.screenshot-portrait {
    width: min(100%, 315px);
}

.screenshot-hero {
    transform: rotate(1.5deg);
}

.app-launch-section,
.custom-content-section {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.58fr);
    gap: 28px;
    align-items: center;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: clamp(34px, 6vw, 64px) 0;
}

.app-launch-copy h2,
.section-head h2,
.custom-content-section h2 {
    font-size: clamp(2rem, 4.6vw, 4.6rem);
    letter-spacing: -0.055em;
}

.app-launch-copy p,
.section-head p,
.custom-content-section p,
.mechanism-copy p,
.curriculum-detail-grid p,
.process-grid p,
.faq-card p {
    color: var(--muted);
    font-size: 1.03rem;
    line-height: 1.62;
}

.app-launch-card {
    display: grid;
    gap: 14px;
    justify-items: start;
    padding: 24px;
    background: var(--soft-gray);
}

.mechanism-stack {
    display: grid;
    gap: 24px;
}

.mechanism-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.58fr);
    gap: clamp(24px, 5vw, 62px);
    align-items: center;
    padding: clamp(24px, 5vw, 54px);
}

.mechanism-card-reverse {
    grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1fr);
}

.mechanism-card-reverse .mechanism-copy {
    grid-column: 2;
}

.mechanism-card-reverse .mechanism-visual {
    grid-column: 1;
    grid-row: 1;
}

.mechanism-card.tone-red {
    background: linear-gradient(145deg, #fff7f7, #ffffff);
}

.mechanism-card.tone-gray {
    background: linear-gradient(145deg, #f6f6f6, #ffffff);
}

.mechanism-card.tone-white {
    background: #ffffff;
}

.mechanism-copy h3 {
    margin: 0 0 16px;
    font-size: clamp(1.8rem, 4vw, 3.8rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.mechanism-visual {
    display: grid;
    place-items: center;
}

.mechanism-visual .screenshot-shell {
    margin-top: 0;
}

.curriculum-section,
.mechanisms-section,
.how-it-works-section,
.faq-section {
    padding: clamp(48px, 8vw, 86px) 0;
}

.stat-grid,
.curriculum-detail-grid,
.process-grid,
.faq-grid {
    display: grid;
    gap: 16px;
}

.stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.curriculum-detail-grid,
.faq-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 16px;
}

.stat-card,
.curriculum-detail-grid article,
.process-grid article,
.faq-card {
    padding: 22px;
}

.stat-card {
    background: var(--soft-gray);
}

.stat-card strong {
    display: block;
    color: var(--red);
    font-size: clamp(2rem, 5vw, 3.8rem);
    line-height: 1;
}

.stat-card span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

.custom-content-section {
    background:
        linear-gradient(90deg, rgba(200, 47, 47, 0.08), transparent 55%),
        #ffffff;
}

.curriculum-detail-grid h3,
.process-grid h3,
.faq-card h3 {
    margin: 8px 0 10px;
    font-size: 1.35rem;
    line-height: 1.12;
}

.mechanism-list {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.mechanism-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 24px;
    align-items: center;
}

.mechanism-row-reverse {
    grid-template-columns: 140px minmax(0, 1fr);
}

.mechanism-row-reverse .mechanism-copy {
    grid-column: 2;
}

.mechanism-row-reverse .mechanism-art {
    grid-column: 1;
    grid-row: 1;
}

.mechanism-art,
.share-card-logo,
.verb-card span {
    display: grid;
    place-items: center;
    border-radius: 24px;
    min-height: 112px;
    background: var(--green);
    color: var(--paper);
    font-family: Avenir Next, Verdana, sans-serif;
    font-size: 2rem;
    font-weight: 900;
}

.share-card-logo {
    width: 112px;
    height: 112px;
    min-height: 112px;
    padding: 0;
    object-fit: contain;
}

.stat-card strong {
    display: block;
    color: var(--red);
    font-size: clamp(2rem, 5vw, 3.8rem);
    line-height: 1;
}

.check-list {
    padding-left: 1.2rem;
}

.verb-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.feature-card h2,
.screenshot-strip h2,
.legal-section h2 {
    margin-top: 0;
}

.legal-main,
.blog-main,
.demo-main {
    padding: 36px 0 72px;
}

.blog-main {
    display: grid;
    gap: 28px;
}

.blog-hero {
    border-bottom: 1px solid var(--line);
    padding: 24px 0 32px;
}

.blog-count {
    margin-bottom: 0;
}

.blog-tag-nav {
    padding-bottom: 4px;
}

.blog-list {
    gap: 14px;
}

.blog-list-item {
    border-radius: 18px;
    box-shadow: none;
}

.blog-list-item h2 {
    margin: 8px 0 10px;
    font-size: clamp(1.35rem, 3vw, 2.2rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.blog-list-item h2 a {
    text-decoration-thickness: 1px;
    text-underline-offset: 0.16em;
}

.flashcard-demo-main {
    display: grid;
    gap: 24px;
}

.flashcard-demo-hero,
.flashcard-passage,
.flashcard-footer-nav {
    border: 1px solid var(--line);
    border-radius: 32px;
    background: #ffffff;
    padding: clamp(22px, 4vw, 42px);
    box-shadow: var(--shadow);
}

.flashcard-demo-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
}

.flashcard-demo-hero h1 {
    margin: 0;
    font-size: clamp(3rem, 12vw, 8.5rem);
    line-height: 0.92;
}

.flashcard-nav,
.flashcard-footer-nav,
.passage-audio-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

.flashcard-panel {
    border: 1px solid var(--line);
    border-radius: 30px;
    background: #ffffff;
    padding: clamp(20px, 4vw, 34px);
    box-shadow: var(--shadow);
}

.flashcard-front {
    background: linear-gradient(145deg, #26372c, #17231d);
    color: var(--paper);
}

.flashcard-front .section-kicker,
.flashcard-front .pronunciation {
    color: rgba(255, 250, 241, 0.72);
}

.flashcard-panel h2 {
    margin: 6px 0 12px;
    font-size: clamp(2rem, 5vw, 4.5rem);
    line-height: 1;
}

.flashcard-meaning img {
    display: block;
    width: min(100%, 420px);
    border-radius: 24px;
    margin-top: 18px;
    box-shadow: 0 18px 44px rgba(37, 31, 21, 0.16);
}

.flashcard-panel audio {
    width: 100%;
    margin-top: 12px;
}

.passage-heading {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 16px;
}

.russian-passage {
    font-size: clamp(1.35rem, 3vw, 2.2rem);
    line-height: 1.65;
}

.russian-passage mark {
    border-radius: 0.28em;
    background: rgba(190, 77, 45, 0.18);
    color: var(--ink);
    padding: 0.04em 0.16em;
}

.passage-translation {
    color: var(--muted);
}

.flashcard-index-main {
    display: grid;
    gap: 22px;
}

.flashcard-search {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #ffffff;
    padding: 22px;
    box-shadow: var(--shadow);
}

.flashcard-search label {
    display: block;
    margin-bottom: 10px;
    font-family: Avenir Next, Verdana, sans-serif;
    font-weight: 800;
}

.flashcard-search div {
    display: flex;
    gap: 10px;
}

.flashcard-search input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    padding: 12px 16px;
}

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

.flashcard-result-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
    padding: 20px;
}

.flashcard-result-card h2 {
    margin: 8px 0;
}

.flashcard-result-card a {
    color: var(--ink);
    text-decoration-color: rgba(190, 77, 45, 0.45);
}

.result-route {
    color: var(--muted);
    font-size: 0.92rem;
}

.article-main {
    display: grid;
    gap: 28px;
}

.blog-article,
.related-reading {
    border: 1px solid var(--line);
    border-radius: 32px;
    background: #ffffff;
    padding: clamp(22px, 5vw, 56px);
    box-shadow: var(--shadow);
}

.blog-breadcrumb,
.article-meta,
.blog-list-meta,
.article-tags,
.blog-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-family: Avenir Next, Verdana, sans-serif;
    font-size: 0.86rem;
}

.article-header h1 {
    margin: 8px 0 16px;
    font-size: clamp(2.4rem, 6vw, 5.2rem);
    line-height: 0.96;
    letter-spacing: -0.055em;
}

.article-dek {
    max-width: 780px;
    color: var(--muted);
    font-size: 1.22rem;
    line-height: 1.6;
}

.article-tags a,
.blog-tag-list a {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 10px;
    text-decoration: none;
}

.article-examples,
.essay-map {
    border-left: 4px solid var(--gold);
    padding-left: 18px;
}

.article-body {
    max-width: 820px;
    font-size: 1.08rem;
    line-height: 1.72;
}

.article-body h2,
.article-body h3 {
    margin-top: 2em;
    line-height: 1.1;
}

.article-table-wrap {
    overflow-x: auto;
}

.article-table-wrap table {
    width: 100%;
    border-collapse: collapse;
}

.article-table-wrap th,
.article-table-wrap td {
    border: 1px solid var(--line);
    padding: 10px;
    text-align: left;
}

.related-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.related-list article {
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 18px;
}

.article-bottom-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.legal-card {
    margin-top: 24px;
}

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

.faq {
    padding: 40px 0 72px;
}

.footer {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border-top: 1px solid var(--line);
    padding: 32px 0 72px;
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
    color: var(--muted);
}

.footer-brand {
    display: grid;
    gap: 10px;
}

.footer-brand p {
    margin: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-end;
}

.footer-links a {
    text-decoration: none;
}

@media (max-width: 860px) {
    .hero,
    .hero-section,
    .app-launch-section,
    .custom-content-section,
    .mechanism-stack,
    .mechanism-card,
    .mechanism-card-reverse,
    .mechanism-grid,
    .screenshot-strip,
    .intro-strip,
    .quality-section,
    .verb-section,
    .download-section,
    .testimonial-track,
    .screenshot-band,
    .visual-story-grid,
    .principle-grid,
    .stat-grid,
    .curriculum-detail-grid,
    .share-grid,
    .faq-grid,
    .mechanism-row,
    .mechanism-row-reverse,
    .process-grid,
    .related-list,
    .flashcard-result-grid,
    .flashcard-demo-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        position: static;
    }

    .hero-copy h1 {
        max-width: 100%;
        font-size: clamp(2rem, 9.4vw, 3rem);
        line-height: 0.94;
        letter-spacing: -0.055em;
        overflow-wrap: normal;
    }

    .mechanism-card-reverse .mechanism-copy,
    .mechanism-card-reverse .mechanism-visual,
    .mechanism-row-reverse .mechanism-copy,
    .mechanism-row-reverse .mechanism-art {
        grid-column: auto;
        grid-row: auto;
    }

    .hero-ribbon-frame {
        grid-template-columns: repeat(3, minmax(160px, 1fr));
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .flashcard-demo-hero,
    .passage-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .flashcard-search div {
        align-items: stretch;
        flex-direction: column;
    }

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

    .footer {
        grid-template-columns: 1fr;
        padding-bottom: 72px;
        padding-bottom: calc(72px + env(safe-area-inset-bottom));
    }

    .footer-links {
        justify-content: flex-start;
    }
}
