/* ============================================================
   LTWNC English — Editorial Study Studio
   Scoped to the public homepage and built from site.css tokens.
   ============================================================ */

.home-landing {
    max-width: 100%;
    overflow: clip;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
}

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

.home-landing a,
.home-landing a:hover,
.home-landing a:focus-visible {
    text-decoration: none;
}

.home-section {
    padding: clamp(4.5rem, 8vw, 7.5rem) 0;
}

.home-eyebrow {
    display: inline-block;
    color: var(--brass-deep);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.home-actions a {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* ==================== HERO ==================== */

.home-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(88vh, 64rem);
    padding: clamp(3rem, 5vw, 4.5rem) 0 clamp(4rem, 7vw, 6rem);
    isolation: isolate;
}

.home-hero > .container {
    width: 100%;
}

.home-hero::before {
    position: absolute;
    z-index: -1;
    top: 2rem;
    right: -11rem;
    width: min(48rem, 72vw);
    height: min(48rem, 72vw);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(223, 233, 215, 0.9) 0%, rgba(223, 233, 215, 0) 68%);
    content: '';
    pointer-events: none;
}

.home-hero::after {
    position: absolute;
    z-index: -1;
    bottom: -6rem;
    left: -14rem;
    width: min(40rem, 64vw);
    height: min(40rem, 64vw);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(198, 138, 46, 0.16) 0%, rgba(198, 138, 46, 0) 70%);
    content: '';
    pointer-events: none;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(20rem, 5fr);
    gap: clamp(2.5rem, 6vw, 5.5rem);
    align-items: center;
}

.home-hero-copy {
    min-width: 0;
}

.home-hero h1 {
    max-width: 11ch;
    margin: 1rem 0 1.5rem;
    font-family: var(--font-body);
    font-size: clamp(3.35rem, 5vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 0.96;
    text-wrap: balance;
}

.home-hero-accent {
    display: block;
    margin-top: 0.08em;
    color: var(--brass-deep);
    font-style: normal;
    font-weight: 800;
    background: linear-gradient(0deg, rgba(198, 138, 46, 0.25), rgba(198, 138, 46, 0.25)) no-repeat left 86% / 0% 0.36em;
    transition: background-size 1s var(--ease-out) 0.7s;
}

.home-hero h1.is-in .home-hero-accent {
    background-size: 100% 0.36em;
}

.home-hero-summary {
    max-width: 34rem;
    margin: 0;
    color: var(--ink-soft);
    font-size: clamp(1rem, 1.6vw, 1.125rem);
    line-height: 1.75;
}

.home-hero-actions {
    margin-top: 2rem;
}

.home-hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin: 2rem 0 0;
    padding: 1.1rem 0 0;
    border-top: 1px solid var(--line-strong);
    color: var(--muted);
    font-size: 0.8125rem;
    list-style: none;
}

.home-hero-facts li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.home-hero-facts i {
    color: var(--brass-deep);
    font-size: 1rem;
}

/* ==================== HERO CAROUSEL ==================== */

.home-carousel-column {
    min-width: 0;
}

.home-carousel {
    width: 100%;
    min-width: 0;
}

.home-carousel-stage {
    position: relative;
    width: 100%;
    height: 18.5rem;
    perspective: 1200px;
}

.home-carousel-item {
    position: absolute;
    top: 1rem;
    left: 50%;
    width: min(22.5rem, calc(100% - 5rem));
    height: 14.5rem;
    transform-origin: center;
    transition: opacity var(--duration-med) var(--ease-out),
                transform var(--duration-med) var(--ease-out),
                filter var(--duration-med) var(--ease-out);
}

.home-carousel-item.pos-center {
    z-index: 3;
    opacity: 1;
    filter: drop-shadow(0 1.5rem 2rem rgba(41, 50, 38, 0.18));
    transform: translateX(-50%);
}

.home-carousel-item.pos-left {
    z-index: 1;
    opacity: 0.3;
    transform: translateX(calc(-50% - 7.25rem)) translateY(1.1rem) scale(0.82) rotateY(24deg) rotateZ(-3deg);
}

.home-carousel-item.pos-right {
    z-index: 1;
    opacity: 0.3;
    transform: translateX(calc(-50% + 7.25rem)) translateY(1.1rem) scale(0.82) rotateY(-24deg) rotateZ(3deg);
}

.home-carousel-item.pos-back {
    z-index: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(-0.75rem) scale(0.64);
}

.home-carousel-item.pos-left .flashcard-copy,
.home-carousel-item.pos-right .flashcard-copy {
    opacity: 0.24;
}

.flashcard-3d-card {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    transform-style: preserve-3d;
    transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transition: transform 200ms var(--ease-out);
}

.flashcard-3d-card.flipped {
    transform: rotateX(var(--tilt-x, 0deg)) rotateY(calc(180deg + var(--tilt-y, 0deg)));
}

.flashcard-face {
    position: absolute;
    inset: 0;
    display: grid;
    overflow: hidden;
    place-items: center;
    padding: 1.5rem;
    border-radius: var(--radius-card);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.flashcard-front {
    border: 1px solid rgba(247, 243, 233, 0.15);
    background: var(--pine);
    color: var(--paper);
}

.flashcard-front::before {
    position: absolute;
    inset: 0.75rem;
    border: 1px solid rgba(247, 243, 233, 0.08);
    border-radius: calc(var(--radius-card) - 6px);
    content: '';
    pointer-events: none;
}

.flashcard-back {
    border: 1.5px solid var(--ink);
    background: var(--surface);
    color: var(--ink);
    transform: rotateY(180deg);
}

.flashcard-copy {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
    transition: opacity var(--duration-med) var(--ease-out);
}

.fc-pos {
    margin-bottom: 1rem;
    color: var(--brass);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.fc-word,
.fc-meaning {
    display: block;
    font-family: var(--font-body);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
}

.fc-ipa,
.fc-desc {
    display: block;
    margin-top: 0.65rem;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.fc-ipa {
    color: rgba(247, 243, 233, 0.65);
}

.fc-desc {
    color: var(--muted);
}

.fc-action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1.6rem;
    color: currentColor;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.72;
}

.home-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 0;
}

.home-carousel-control {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    transition: border-color var(--duration-fast) var(--ease-out),
                background-color var(--duration-fast) var(--ease-out);
}

.home-carousel-control {
    width: 2.75rem;
    padding: 0;
    border-radius: 50%;
    font-size: 1rem;
}

.home-carousel-control:hover {
    border-color: var(--ink);
    background: var(--sage-soft);
}

.home-carousel-status {
    min-width: 3.5rem;
    color: var(--muted);
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

/* ==================== EDITORIAL HEADERS ==================== */

.home-editorial-header {
    display: grid;
    grid-template-columns: 4rem minmax(0, 7fr) minmax(17rem, 5fr);
    gap: clamp(1rem, 3vw, 3rem);
    align-items: end;
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
    padding-top: 1.25rem;
    border-top: 1px solid var(--line-strong);
}

.home-section-number {
    align-self: start;
    color: var(--brass-deep);
    font-family: var(--font-body);
    font-size: 1rem;
    font-style: normal;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.home-editorial-header h2 {
    max-width: 13ch;
    margin: 0;
    font-family: var(--font-body);
    font-size: clamp(2.5rem, 4.6vw, 4.25rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1.02;
    text-wrap: balance;
}

.home-editorial-header > p {
    max-width: 25rem;
    margin: 0 0 0.25rem;
    color: var(--muted);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ==================== FEATURE ==================== */

.home-feature {
    border-block: 1px solid var(--line);
    background: var(--surface);
}

.home-feature-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(20rem, 5fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: stretch;
}

.home-word-specimen {
    position: relative;
    display: flex;
    min-height: 27rem;
    overflow: hidden;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: var(--radius-card);
    background: var(--pine);
    color: var(--paper);
}

.home-word-specimen::after {
    position: absolute;
    top: -3.5rem;
    right: -2rem;
    transform: translateY(var(--parallax, 0px));
    color: rgba(247, 243, 233, 0.05);
    content: 'Aa';
    font-family: var(--font-body);
    font-size: clamp(10rem, 24vw, 19rem);
    font-style: normal;
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
}

.home-specimen-label {
    position: absolute;
    z-index: 1;
    top: 2rem;
    left: clamp(2rem, 5vw, 4rem);
    color: var(--brass);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-specimen-word,
.home-specimen-ipa,
.home-specimen-meaning,
.home-specimen-example,
.home-specimen-meta {
    position: relative;
    z-index: 1;
}

.home-specimen-word {
    font-family: var(--font-body);
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.9;
}

.home-specimen-ipa {
    margin-top: 0.85rem;
    color: rgba(247, 243, 233, 0.6);
    font-size: 0.875rem;
}

.home-specimen-meaning {
    margin: 1.75rem 0 0;
    color: var(--brass);
    font-size: 1.125rem;
    font-weight: 600;
}

.home-specimen-example {
    max-width: 32rem;
    margin: 0.45rem 0 0;
    color: rgba(247, 243, 233, 0.72);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-style: normal;
    line-height: 1.6;
}

.home-specimen-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.home-specimen-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.7rem;
    border: 1px solid rgba(247, 243, 233, 0.18);
    border-radius: var(--radius-pill);
    color: rgba(247, 243, 233, 0.78);
    font-size: 0.75rem;
}

.home-feature-list {
    display: grid;
    align-content: stretch;
}

.home-feature-row {
    display: grid;
    grid-template-columns: 2rem 2.75rem minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--line-strong);
}

.home-feature-row:last-child {
    border-bottom: 1px solid var(--line-strong);
}

.home-feature-index {
    align-self: start;
    color: var(--muted-light);
    font-size: 0.6875rem;
    font-variant-numeric: tabular-nums;
}

.home-feature-row > i {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-control);
    color: var(--ink-soft);
    font-size: 1.25rem;
}

.home-feature-row h3 {
    margin: 0 0 0.25rem;
    font-size: 1.0625rem;
}

.home-feature-row p {
    margin: 0;
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.55;
}

/* ==================== LEARNING MODES ==================== */

.home-modes {
    background: var(--surface-sunken);
}

.home-mode-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-rows: auto auto auto;
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-card);
    background: var(--line-strong);
}

.home-mode-card--primary {
    grid-row: span 2;
}

.home-mode-card--progress {
    grid-column: 1 / -1;
}

.home-mode-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.25rem 1.5rem;
    align-items: start;
    min-width: 0;
    min-height: 17rem;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background: var(--surface);
    transition: background-color var(--duration-fast) var(--ease-out);
}

.home-mode-card::after {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 0.3rem;
    background: var(--brass);
    content: '';
    transition: width var(--duration-med) var(--ease-out);
}

.home-mode-card:hover {
    z-index: 1;
    background: var(--sage-soft);
}

.home-mode-card:hover::after {
    width: 100%;
}

.home-mode-card--primary {
    background: var(--pine);
    color: var(--paper);
}

.home-mode-card--primary:hover {
    background: var(--pine-soft);
}

.home-mode-index {
    color: var(--brass-deep);
    font-size: 0.75rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.home-mode-card--primary .home-mode-index {
    color: var(--brass);
}

.home-mode-card > i {
    grid-column: 2;
    justify-self: end;
    color: var(--brass-deep);
    font-size: 2rem;
}

.home-mode-card--primary > i {
    color: var(--brass);
}

.home-mode-card--primary h3 {
    color: var(--paper);
}

.home-mode-card > div {
    align-self: end;
    grid-column: 1 / -1;
}

.home-mode-card h3 {
    margin: 0 0 0.65rem;
    font-family: var(--font-body);
    font-size: clamp(1.55rem, 2.5vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.035em;
}

.home-mode-card p {
    max-width: 30rem;
    margin: 0;
    color: var(--muted);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.home-mode-card--primary p {
    color: rgba(247, 243, 233, 0.68);
}

.home-mode-card--progress > div {
    align-self: auto;
}

.home-mode-card > a {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    align-self: end;
    justify-self: start;
    gap: 0.4rem;
    grid-column: 1 / -1;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-control);
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 700;
}

.home-mode-card > a:hover {
    border-color: var(--ink);
    background: var(--paper);
    color: var(--ink);
}

/* ==================== AI CREDITS ==================== */

.home-credits {
    border-block: 1px solid var(--line);
    background: var(--surface);
}

.home-credit-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 3fr);
    gap: 1rem;
    align-items: stretch;
}

.home-credit-plan {
    display: flex;
    min-width: 0;
    min-height: 27rem;
    flex-direction: column;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-card);
    background: var(--paper);
}

.home-credit-plan--featured {
    min-height: 30rem;
    margin-top: -1.5rem;
    border-color: var(--ink);
    background: var(--ink);
    color: var(--paper);
}

.home-credit-plan-topline {
    display: flex;
    min-height: 1.75rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-credit-plan--featured .home-credit-plan-topline {
    color: rgba(247, 243, 233, 0.62);
}

.home-credit-plan-topline strong {
    padding: 0.35rem 0.55rem;
    border-radius: var(--radius-pill);
    background: var(--brass);
    color: var(--ink);
    font-size: 0.64rem;
}

.home-credit-plan h3 {
    margin: 1.5rem 0 0.5rem;
    font-size: clamp(1.65rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.home-credit-plan--featured h3 {
    color: var(--paper);
}

.home-credit-plan > p {
    min-height: 3.5rem;
    margin: 0;
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

.home-credit-plan--featured > p {
    color: rgba(247, 243, 233, 0.65);
}

.home-credit-amount {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
    margin-top: auto;
    padding: 2rem 0 1.5rem;
    border-bottom: 1px solid var(--line-strong);
}

.home-credit-plan--featured .home-credit-amount {
    border-color: rgba(247, 243, 233, 0.18);
}

.home-credit-amount strong {
    color: var(--brass-deep);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 0.8;
}

.home-credit-plan--featured .home-credit-amount strong {
    color: var(--brass);
}

.home-credit-amount span {
    max-width: 5rem;
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.3;
}

.home-credit-plan--featured .home-credit-amount span {
    color: rgba(247, 243, 233, 0.62);
}

.home-credit-price {
    display: grid;
    gap: 0.2rem;
    padding: 1.35rem 0;
}

.home-credit-price strong {
    font-size: 1.15rem;
}

.home-credit-price small {
    color: var(--muted);
    font-size: 0.7rem;
}

.home-credit-plan--featured .home-credit-price small {
    color: rgba(247, 243, 233, 0.58);
}

.home-credit-plan > a {
    display: inline-flex;
    min-height: 2.85rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--ink);
    border-radius: var(--radius-control);
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 700;
}

.home-credit-plan > a:hover {
    background: var(--ink);
    color: var(--paper);
}

.home-credit-plan--featured > a {
    border-color: var(--paper);
    background: var(--paper);
    color: var(--ink);
}

.home-credit-plan--featured > a:hover {
    border-color: var(--brass);
    background: var(--brass);
    color: var(--ink);
}

.home-credit-note {
    display: flex;
    max-width: 52rem;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.6;
}

.home-credit-note i {
    flex: 0 0 auto;
    color: var(--brass-deep);
    font-size: 1.4rem;
}

.home-credits {
    background: var(--paper);
    border-block: 1px solid var(--line);
}

.home-credit-trust-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1.75rem;
    max-width: 54rem;
    margin: 0 auto 2.5rem;
    padding: 0.85rem 1.5rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: var(--surface);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.home-credit-trust-bar span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 700;
}

.home-credit-trust-bar i {
    color: var(--brass-deep);
    font-size: 1.1rem;
}

.home-credit-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.75rem);
    align-items: stretch;
}

.home-credit-option {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(1.4rem, 2vw, 2rem);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-card);
    background: var(--surface);
    box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.04);
    transition: transform var(--duration-med) var(--ease-out), box-shadow var(--duration-med) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}

.home-credit-option:hover {
    transform: translateY(-6px);
    border-color: var(--ink);
    box-shadow: 0 14px 28px -4px rgba(0, 0, 0, 0.1);
}

.home-credit-option--featured {
    border: 2px solid var(--pine);
    border-top: 4px solid var(--brass);
    background: var(--pine);
    color: var(--paper);
    box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.18), 0 24px 64px -16px rgba(198, 138, 46, 0.35);
    transform: scale(1.02);
}

.home-credit-option--featured:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--brass);
    box-shadow: 0 18px 36px -4px rgba(0, 0, 0, 0.24), 0 28px 72px -16px rgba(198, 138, 46, 0.45);
}

.home-credit-badge {
    position: absolute;
    top: -0.75rem;
    right: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--brass) 0%, var(--brass-deep) 100%);
    color: var(--ink);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.home-credit-option-index {
    color: var(--muted);
    font-size: 0.68rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.12em;
}

.home-credit-option--featured .home-credit-option-index {
    color: rgba(247, 243, 233, 0.5);
}

.home-credit-option-name {
    margin-top: 0.85rem;
}

.home-credit-option-name h3 {
    margin: 0 0 0.25rem;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.home-credit-option--featured .home-credit-option-name h3 {
    color: var(--paper);
}

.home-credit-option-name p {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.home-credit-option--featured .home-credit-option-name p {
    color: rgba(247, 243, 233, 0.65);
}

.home-credit-option-quantity {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 1.5rem;
}

.home-credit-option-quantity strong {
    color: var(--ink);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.9;
}

.home-credit-option--featured .home-credit-option-quantity strong {
    color: var(--brass);
}

.home-credit-option-quantity small {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.home-credit-option--featured .home-credit-option-quantity small {
    color: rgba(247, 243, 233, 0.65);
}

.home-credit-option-unit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.4rem;
    font-size: 0.72rem;
    color: var(--muted);
}

.home-credit-option--featured .home-credit-option-unit {
    color: rgba(247, 243, 233, 0.6);
}

.home-credit-savings {
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-pill);
    background: var(--success-bg);
    color: var(--success);
    font-size: 0.65rem;
    font-weight: 700;
}

.home-credit-option--featured .home-credit-savings {
    background: rgba(62, 107, 79, 0.35);
    color: var(--sage);
}

.home-credit-option-price {
    display: grid;
    gap: 0.15rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--line);
}

.home-credit-option--featured .home-credit-option-price {
    border-color: rgba(247, 243, 233, 0.15);
}

.home-credit-option-price strong {
    color: var(--ink);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.home-credit-option--featured .home-credit-option-price strong {
    color: var(--paper);
}

.home-credit-option-price small {
    color: var(--muted);
    font-size: 0.7rem;
}

.home-credit-option--featured .home-credit-option-price small {
    color: rgba(247, 243, 233, 0.55);
}

.home-credit-option-cta {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.65rem 1rem;
    border: 1px solid var(--ink);
    border-radius: var(--radius-control);
    background: transparent;
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 700;
    transition: all var(--duration-fast) var(--ease-out);
}

.home-credit-option-cta:hover {
    background: var(--ink);
    color: var(--paper);
}

.home-credit-option--featured .home-credit-option-cta {
    border-color: var(--brass);
    background: var(--brass);
    color: var(--ink);
}

.home-credit-option--featured .home-credit-option-cta:hover {
    background: var(--brass-deep);
    border-color: var(--brass-deep);
    color: var(--paper);
}

/* ==================== PUBLIC SETS ==================== */

.home-sets {
    border-block: 1px solid var(--line);
    background: var(--sage-soft);
}

.home-sets-header {
    align-items: end;
}

.home-sets-header > div h2 {
    margin-top: 0.65rem;
}

.home-set-search {
    width: 100%;
    max-width: 26rem;
    justify-self: end;
}

.home-set-search label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--ink-soft);
    font-size: 0.8125rem;
    font-weight: 600;
}

.home-set-search-controls {
    display: flex;
    gap: 0.5rem;
    min-width: 0;
}

.home-set-search-controls .form-input-custom {
    min-width: 0;
    height: 2.75rem;
    flex: 1 1 auto;
    text-overflow: clip;
    white-space: nowrap;
}

.home-set-search-controls .btn-secondary-custom {
    display: inline-flex;
    min-height: 2.75rem;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.home-set-search-clear {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--muted);
    font-size: 0.75rem;
}

.home-set-discovery {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: stretch;
}

.home-set-discovery--single::after {
    display: grid;
    min-height: 25rem;
    place-items: center;
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
    color: rgba(41, 50, 38, 0.08);
    content: 'Aa';
    font-family: var(--font-body);
    font-size: clamp(9rem, 18vw, 15rem);
    font-style: normal;
    font-weight: 800;
    line-height: 1;
}

.home-set-featured {
    display: flex;
    min-width: 0;
    min-height: 25rem;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(1.75rem, 4vw, 3rem);
    border-radius: var(--radius-card);
    background: var(--pine);
    color: var(--paper);
}

.home-set-featured-label {
    color: var(--brass);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-set-featured-copy > i {
    display: block;
    margin-bottom: 1.25rem;
    color: var(--brass);
    font-size: 2rem;
}

.home-set-featured h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 0.75rem;
    color: var(--paper);
    font-family: var(--font-body);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-set-featured p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: rgba(247, 243, 233, 0.7);
    font-size: 0.875rem;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.home-set-featured-action {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    align-self: flex-start;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-control);
    background: var(--paper);
    color: var(--ink);
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
}

.home-set-featured-action:hover {
    background: var(--brass);
    color: var(--ink);
}

.home-set-list {
    display: grid;
    align-content: stretch;
}

.home-set-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    min-width: 0;
    padding: 1.1rem 0;
    border-top: 1px solid var(--line-strong);
}

.home-set-row:last-child {
    border-bottom: 1px solid var(--line-strong);
}

.home-set-row > div {
    min-width: 0;
}

.home-set-row h3 {
    overflow: hidden;
    margin: 0 0 0.3rem;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-set-row p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--muted);
    font-size: 0.8125rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-set-open {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-control);
    color: var(--ink);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.home-set-open:hover {
    border-color: var(--ink);
    background: var(--surface);
    color: var(--ink);
}

.home-set-empty {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1.25rem;
    align-items: center;
    padding: 1.5rem;
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
}

.home-set-empty > i {
    color: var(--brass-deep);
    font-size: 2rem;
}

.home-set-empty h3,
.home-set-empty p {
    margin: 0;
}

.home-set-empty h3 {
    font-size: 1rem;
}

.home-set-empty p {
    margin-top: 0.2rem;
    color: var(--muted);
    font-size: 0.875rem;
}

/* ==================== TESTIMONIALS ==================== */

.home-testimonials {
    background: var(--surface);
}

.home-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.home-testimonial {
    display: flex;
    min-width: 0;
    min-height: 18rem;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-card);
    background: var(--paper);
    transition: border-color var(--duration-fast) var(--ease-out);
}

.home-testimonial::before {
    color: var(--brass-deep);
    content: '“';
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 0.7;
}

.home-testimonial {
    rotate: var(--tilt, 0deg);
    transition: rotate var(--duration-med) var(--ease-out),
                translate var(--duration-med) var(--ease-out),
                box-shadow var(--duration-med) var(--ease-out),
                border-color var(--duration-fast) var(--ease-out);
}

.home-testimonial:nth-child(1) { --tilt: -1.5deg; }
.home-testimonial:nth-child(2) { --tilt: 1deg; }
.home-testimonial:nth-child(3) { --tilt: -1deg; }

.home-testimonial:hover {
    rotate: 0deg;
    translate: 0 -6px;
    border-color: var(--brass-deep);
    box-shadow: var(--shadow-lift);
}

.home-testimonial blockquote {
    margin: 1.5rem 0 2.5rem;
    color: var(--ink);
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    font-style: normal;
    font-weight: 500;
    line-height: 1.75;
}

.home-testimonial figcaption {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.home-testimonial figcaption > span {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: var(--sage-soft);
    color: var(--ink-soft);
    font-size: 0.72rem;
    font-weight: 800;
}

.home-testimonial figcaption div {
    display: grid;
    min-width: 0;
    gap: 0.15rem;
}

.home-testimonial figcaption strong,
.home-testimonial figcaption small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-testimonial figcaption strong {
    font-size: 0.875rem;
}

.home-testimonial figcaption small {
    color: var(--muted);
    font-size: 0.75rem;
}

/* ==================== CLOSING ==================== */

.home-closing {
    padding: clamp(4.5rem, 9vw, 8rem) 0;
    background: var(--pine);
    color: var(--paper);
}

.home-closing-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(15rem, 5fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: center;
}

.home-closing .home-eyebrow {
    color: var(--brass);
}

.home-closing h2 {
    max-width: 12ch;
    margin: 0.85rem 0 1.25rem;
    color: var(--paper);
    font-family: var(--font-body);
    font-size: clamp(3rem, 6vw, 5.75rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.95;
    text-wrap: balance;
}

.home-closing p {
    max-width: 32rem;
    margin: 0;
    color: rgba(247, 243, 233, 0.68);
}

.home-closing-actions {
    margin-top: 2rem;
}

.home-closing-primary,
.home-closing-secondary {
    min-height: 2.75rem;
    padding: 0.65rem 1.1rem;
    border-radius: var(--radius-control);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
}

.home-closing-primary {
    background: var(--paper);
    color: var(--ink);
}

.home-closing-primary:hover {
    background: var(--brass);
    color: var(--ink);
}

.home-closing-secondary {
    border: 1px solid rgba(247, 243, 233, 0.28);
    color: var(--paper);
}

.home-closing-secondary:hover {
    border-color: var(--paper);
    color: var(--paper);
}

.home-closing-mark {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    color: rgba(247, 243, 233, 0.13);
    font-family: var(--font-body);
    font-size: clamp(6rem, 14vw, 12rem);
    font-style: normal;
    font-weight: 800;
    line-height: 0.8;
    white-space: nowrap;
}

.home-closing-mark i {
    color: var(--brass);
    font-size: clamp(2rem, 4vw, 4rem);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 991px) {
    .home-hero-grid,
    .home-feature-grid,
    .home-set-discovery,
    .home-credit-board {
        grid-template-columns: 1fr;
    }

    .home-hero-copy {
        max-width: 46rem;
    }

    .home-carousel-column {
        width: 100%;
        max-width: 42rem;
        margin: 0 auto;
    }

    .home-editorial-header {
        grid-template-columns: 3rem minmax(0, 1fr);
    }

    .home-editorial-header > p,
    .home-set-search {
        grid-column: 2;
        justify-self: start;
    }

    .home-word-specimen {
        min-height: 24rem;
    }

    .home-credit-principle {
        min-height: 25rem;
    }

    .home-feature-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .home-feature-row {
        grid-template-columns: 2rem minmax(0, 1fr);
        align-content: start;
    }

    .home-feature-row > i {
        grid-row: 1;
        grid-column: 2;
    }

    .home-feature-row > div {
        grid-column: 2;
    }

    .home-set-featured {
        min-height: 21rem;
    }
}

@media (max-width: 767px) {
    .home-section {
        padding: 4rem 0;
    }

    .home-hero {
        padding: 3.5rem 0 4.5rem;
    }

    .home-hero::before {
        top: 18rem;
        right: -12rem;
        width: 34rem;
        height: 34rem;
    }

    .home-hero-grid {
        gap: 3rem;
    }

    .home-hero h1 {
        font-size: clamp(3.35rem, 14vw, 5rem);
    }

    .home-carousel-stage {
        height: 16.5rem;
    }

    .home-carousel-item {
        width: min(19rem, calc(100% - 2rem));
        height: 13rem;
    }

    .home-carousel-item.pos-left,
    .home-carousel-item.pos-right {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }

    .home-editorial-header {
        grid-template-columns: 2.25rem minmax(0, 1fr);
        gap: 0.75rem 1rem;
        margin-bottom: 2.75rem;
    }

    .home-editorial-header h2 {
        font-size: clamp(2.65rem, 11vw, 4rem);
    }

    .home-editorial-header > p,
    .home-set-search {
        grid-column: 2;
    }

    .home-feature-list,
    .home-mode-grid,
    .home-testimonial-grid {
        grid-template-columns: 1fr;
    }

    .home-credit-options {
        grid-template-columns: 1fr;
    }

    .home-credit-option-quantity {
        padding: 0.75rem 0;
    }

    .home-feature-list {
        gap: 0;
    }

    .home-feature-row {
        grid-template-columns: 2rem 2.75rem minmax(0, 1fr);
    }

    .home-feature-row > i {
        grid-row: auto;
        grid-column: auto;
    }

    .home-feature-row > div {
        grid-column: auto;
    }

    .home-mode-card {
        min-height: 15rem;
    }

    .home-set-discovery--single::after {
        display: none;
    }

    .home-set-search {
        width: 100%;
        max-width: none;
    }

    .home-testimonial {
        min-height: 15rem;
    }

    .home-closing-grid {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .home-closing-mark {
        font-size: 5rem;
    }
}

@media (max-width: 520px) {
    .home-hero h1 {
        max-width: 7.5ch;
    }

    .home-hero-actions > a {
        width: 100%;
    }

    .home-carousel-stage {
        height: 15rem;
    }

    .home-carousel-item {
        top: 0.5rem;
        width: min(17rem, calc(100% - 1rem));
        height: 12rem;
    }

    .flashcard-face {
        padding: 1rem;
    }

    .fc-word,
    .fc-meaning {
        font-size: 1.75rem;
    }

    .fc-action {
        margin-top: 1.1rem;
    }

    .home-carousel-controls {
        gap: 0.35rem;
    }

    .home-carousel-status {
        min-width: 2.75rem;
    }

    .home-word-specimen {
        min-height: 22rem;
        padding: 1.5rem;
    }

    .home-specimen-label {
        top: 1.5rem;
        left: 1.5rem;
    }

    .home-feature-row {
        grid-template-columns: 1.75rem 2.75rem minmax(0, 1fr);
        gap: 0.75rem;
    }

    .home-mode-card {
        min-height: 14rem;
        padding: 1.5rem;
    }

    .home-set-search-controls {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .home-set-row {
        align-items: start;
    }

    .home-set-empty {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .home-set-empty .btn-primary-custom {
        grid-column: 1 / -1;
        width: 100%;
        text-align: center;
    }

    .home-closing-grid {
        grid-template-columns: 1fr;
    }

    .home-closing-mark {
        display: none;
    }

    .home-closing-actions > a {
        width: 100%;
    }
}

/* ==================== HERO STATS ==================== */

.home-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 2.75rem;
    margin: 2.25rem 0 0;
    padding: 1.1rem 0 0;
    border-top: 1px solid var(--line-strong);
    list-style: none;
}

.home-hero-stats li {
    display: grid;
    gap: 0.2rem;
}

.home-hero-stats strong {
    color: var(--ink);
    font-family: var(--font-body);
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.04em;
    line-height: 1;
}

.home-hero-stats span {
    color: var(--muted);
    font-size: 0.78rem;
}

/* ==================== WORD TICKER ==================== */

.home-ticker {
    overflow: hidden;
    padding: 0.9rem 0;
    background: var(--pine);
    color: var(--paper);
}

.home-ticker-track {
    display: flex;
    width: max-content;
    animation: home-ticker 38s linear infinite;
}

.home-ticker:hover .home-ticker-track {
    animation-play-state: paused;
}

.home-ticker-group {
    display: flex;
    flex: 0 0 auto;
    gap: 2.75rem;
    align-items: baseline;
    padding-right: 2.75rem;
}

.home-ticker-group span {
    display: inline-flex;
    align-items: baseline;
    gap: 0.6rem;
    white-space: nowrap;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.home-ticker-group em {
    color: var(--brass);
    font-size: 0.85em;
    font-style: normal;
    font-weight: 500;
}

.home-ticker-group i {
    color: rgba(247, 243, 233, 0.35);
    font-size: 0.55rem;
    font-style: normal;
}

@keyframes home-ticker {
    to { transform: translateX(-50%); }
}

/* ==================== CAROUSEL FLOAT ==================== */

.home-carousel-float {
    width: 100%;
    height: 100%;
}

.home-carousel-item.pos-center .home-carousel-float {
    animation: home-float 6s ease-in-out infinite;
}

@keyframes home-float {
    0%, 100% { translate: 0 0; rotate: 0deg; }
    50% { translate: 0 -9px; rotate: -1.2deg; }
}

/* ==================== SCROLL REVEAL & MASKS ==================== */

.js [data-reveal]:not(.is-in) {
    opacity: 0;
}

.js [data-reveal].is-in {
    animation: home-reveal 0.7s var(--ease-out) backwards;
    animation-delay: calc(var(--reveal-i, 0) * 70ms);
}

@keyframes home-reveal {
    from { opacity: 0; translate: 0 26px; }
    to { opacity: 1; translate: 0 0; }
}

.home-mask {
    overflow: hidden;
    padding-block: 0.1em;
    margin-block: -0.1em;
}

.js .home-mask-inner {
    display: block;
    transform: translateY(112%);
    transition: transform 0.9s var(--ease-out);
}

.js .home-mask.is-in .home-mask-inner {
    transform: translateY(0);
}

/* ==================== CTA SHINE & ARROW NUDGE ==================== */

.home-landing .btn-primary-custom {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #E7AC45 0%, #B7791F 100%);
    color: var(--ink);
    font-weight: 700;
}

.home-landing .btn-primary-custom:hover {
    background: linear-gradient(135deg, #E7AC45 0%, #B7791F 100%);
    color: var(--ink);
    filter: brightness(1.08);
}

.home-landing .btn-primary-custom::after {
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(105deg, transparent, rgba(255, 253, 247, 0.55), transparent);
    transform: skewX(-20deg);
    content: '';
    pointer-events: none;
    transition: left 0.6s var(--ease-out);
}

.home-landing .btn-primary-custom:hover::after {
    left: 120%;
}

.home-landing a i {
    transition: translate var(--duration-fast) var(--ease-out);
}

.home-landing a:hover i.ph-arrow-up-right {
    translate: 3px -3px;
}

.home-landing a:hover i.ph-arrow-right {
    translate: 3px 0;
}

/* ==================== RESPONSIVE (new elements) ==================== */

@media (max-width: 767px) {
    .home-hero {
        min-height: 0;
    }

    .home-hero-stats {
        gap: 1rem 1.75rem;
    }

    .home-mode-card--primary {
        grid-row: auto;
    }

    .home-mode-card--progress {
        grid-column: auto;
    }

    .home-credit-option--featured {
        transform: none;
    }

    .home-credit-option--featured:hover {
        transform: translateY(-6px);
    }

    .home-testimonial {
        --tilt: 0deg;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-landing *,
    .home-landing *::before,
    .home-landing *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .home-ticker-track,
    .home-carousel-item.pos-center .home-carousel-float {
        animation: none !important;
    }

    .js [data-reveal]:not(.is-in) {
        opacity: 1;
    }

    .js .home-mask-inner {
        transform: none;
        transition: none;
    }
}
