/* Home-only presentation; shared pages and behavior are unchanged. */
.home { background: #fff; color: #515e6b; }
.home main { max-width: none; padding: 0; }
.home .header-inner { max-width: 1200px; padding-block: 1rem; }
.home-container { width: min(100% - 48px, 1120px); margin-inline: auto; }
.home .eyebrow { color: #2f4e6f; font-size: .75rem; letter-spacing: .14em; margin: 0 0 16px; font-weight: 700; }
.home h1, .home h2, .home h3 { color: #2f4e6f; }
.home h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); line-height: 1.15; letter-spacing: -.045em; margin: 0 0 10px; }
.home h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -.025em; margin: 0 0 8px; }
.home p { margin-top: 0; }
.home-hero { min-height: 570px; position: relative; isolation: isolate; background: #f8f5ed; overflow: hidden; }
.home-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -1; }
.home-hero-content { padding-block: 64px 80px; }
.home h1 { font-size: clamp(2.7rem, 4.8vw, 4rem); line-height: 1.02; letter-spacing: -.045em; margin: 0 0 22px; }
.home-lede { max-width: 440px; font-size: 1.2rem; line-height: 1.5; margin-bottom: 28px; color: #40556b; }
.home-actions { display: flex; flex-wrap: wrap; gap: 14px; max-width: 550px; }
.home-button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; border: 1px solid #4f79a7; border-radius: 9px; padding: 13px 20px; color: #2f4e6f; background: #fff; text-decoration: none; font-weight: 600; line-height: 1.5; }
.home-button-primary { background: #2f4e6f; color: #fff; }
.home-button:hover { background: #eef3f8; text-decoration: none; }
.home-button-primary:hover { background: #24415e; }
.home-section { padding-block: 44px; }
.home-section-intro { font-size: 1.125rem; line-height: 1.5; margin-bottom: 24px; }
.home-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.home-tool, .home-resource { border: 1px solid #d5dee7; border-radius: 10px; padding: 24px; background: #fff; }
.home-tool { display: flex; flex-direction: column; }
.home { --home-blue-soft: #e3ebf2; --home-blue-ink: #2f4e6f; --home-terracotta-soft: #ead5ca; --home-terracotta-ink: #81503e; --home-sage-soft: #dce7de; --home-sage-ink: #456b56; --home-lavender-soft: #e3deeb; --home-lavender-ink: #63567e; }
.home-icon { width: 78px; height: 78px; border-radius: 50%; background: var(--home-blue-soft); color: var(--home-blue-ink); display: grid; place-items: center; flex-shrink: 0; margin-bottom: 16px; }
.home-icon svg { width: 44px; height: 44px; }
.home .tone-terracotta .home-icon { background: var(--home-terracotta-soft); color: var(--home-terracotta-ink); }
.home .tone-sage .home-icon { background: var(--home-sage-soft); color: var(--home-sage-ink); }
.home .tone-lavender .home-icon { background: var(--home-lavender-soft); color: var(--home-lavender-ink); }
.home-tool p { line-height: 1.5; margin-bottom: 18px; }
.home-tool > a { margin-top: auto; }
.home-tool > a, .home-resource a { min-height: 44px; }
.home [data-student-access]::after { content: "🔒"; margin-left: .35rem; font-size: .78em; line-height: 1; filter: grayscale(1); opacity: .72; }
.home:is(.student-authenticated, .auth-disabled) [data-student-access]::after { display: none; }
.home-tool > a, .home-resource a { display: inline-flex; align-items: center; gap: 10px; color: #2f4e6f; font-size: .94rem; font-weight: 600; text-decoration: none; line-height: 1.5; }
.home-tool > a span, .home-resource a span { font-size: 1.35rem; flex-shrink: 0; }
.home-tool > a:hover, .home-resource a:hover, .home-steps a:hover { text-decoration: underline; text-underline-offset: 4px; }
.home-today { padding-block: 44px; background: #e7edf2; }
.home-today-layout { display: grid; grid-template-columns: 1.15fr 2fr; gap: 40px; }
.home-today h2 { font-size: 1.9rem; }
.home-today .home-ten { font-weight: 700; color: #2f4e6f; font-size: 1.1rem; margin-bottom: 10px; }
.home-today p { line-height: 1.5; margin-bottom: 0; }
.home-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 8px 0 0; margin: 0; }
.home-steps li { padding-inline: 20px; border-left: 1px solid #ccd9e7; }
.home-steps li:first-child { padding-left: 0; border-left: 0; }
.home-step-number { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #c7d7e4; color: #2f4e6f; font-size: 1.2rem; font-weight: 700; margin-bottom: 14px; }
.home-steps h3 { font-size: 1rem; margin-bottom: 10px; letter-spacing: -.015em; }
.home-steps a { color: inherit; text-decoration: none; }
.home-steps p { font-size: .9rem; }
.home-showcase-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.home-showcase-kicker .eyebrow { margin: 0; }
.home-showcase-access { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: 1px solid #d8d1c4; border-radius: 4px; background: #f2eee5; color: #5b554b; font-size: .7rem; line-height: 1.4; font-weight: 600; }
.home-showcase-access svg { width: 12px; height: 12px; flex: 0 0 12px; }
.home:is(.student-authenticated, .auth-disabled) .home-showcase-access { display: none; }
.home-showcase [data-student-access]::after { content: none; }
.home-tools [data-student-access]::after, .home-today [data-student-access]::after { content: none; }
.home-showcase .home-section-intro { max-width: 720px; }
.home-showcase-featured { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.home-feature { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 18px; min-height: 400px; padding: 28px; border: 1px solid #cbd5de; border-radius: 10px; overflow: hidden; }
.home-feature-flashcards { background: #e4eaed; }
.home-feature-conjuflow { background: #ece5d9; border-color: #d8cebd; }
.home-feature-copy { display: flex; flex-direction: column; min-width: 0; }
.home-feature-type { align-self: flex-start; padding: 4px 7px; border-radius: 4px; background: #cedbe1; color: #344f65; font-size: .68rem; letter-spacing: .1em; font-weight: 700; margin-bottom: 14px; }
.home-feature-conjuflow .home-feature-type { background: #ddd2bf; }
.home-feature h3 { font-size: 1.55rem; line-height: 1.18; margin-bottom: 12px; }
.home-feature-copy > p:not(.home-feature-type) { font-size: .95rem; line-height: 1.5; margin-bottom: 12px; }
.home-feature-facts { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 10px; }
.home-feature-facts li { padding: 4px 8px; border: 1px solid #c7d1d8; border-radius: 4px; background: #ffffffa6; color: #344f65; font-size: .72rem; font-weight: 700; line-height: 1.3; }
.home-feature-conjuflow .home-feature-facts li { border-color: #d5ccbe; }
.home-feature a { display: inline-flex; align-items: center; align-self: flex-start; gap: 8px; min-height: 44px; margin-top: auto; color: #2f4e6f; font-size: .94rem; font-weight: 700; text-decoration: none; }
.home-feature a span { font-size: 1.35rem; }
.home-feature a:hover { text-decoration: underline; text-underline-offset: 4px; }
.home-feature-art { position: relative; min-width: 0; align-self: center; height: 296px; }
.flashcard-sheet { position: absolute; width: 178px; height: 216px; border: 1px solid #b8c6cf; border-radius: 7px; background: #fff; box-shadow: 0 2px 7px #2f4e6f12; padding: 18px; color: #2f4e6f; }
.flashcard-sheet-back { top: 0; left: 4px; transform: rotate(-9deg); background: #dce6e6; }
.flashcard-sheet-middle { top: 20px; left: 24px; transform: rotate(6deg); background: #e7e9df; }
.flashcard-sheet-front { top: 44px; left: 10px; display: flex; flex-direction: column; justify-content: center; }
.flashcard-sheet-back span,.flashcard-sheet-middle span { display: block; margin-top: 28px; font-weight: 700; }
.flashcard-sheet small { display: block; font-size: .66rem; letter-spacing: .05em; }
.flashcard-sheet-front small { color: #60788b; font-weight: 700; letter-spacing: .1em; }
.flashcard-sheet-front strong { display: block; margin-top: 20px; font-size: 1.25rem; }
.flashcard-sheet-front span { font-size: .8rem; }
.conjugation-window { margin-top: 0; border: 1px solid #c9c4b9; border-radius: 7px; background: #fffdf9; box-shadow: 0 2px 7px #564c3910; overflow: hidden; color: #2f4e6f; }
.conjugation-window-head { padding: 14px 15px 11px; background: #dde2d8; }
.conjugation-window-head span { display: block; font-size: 1.1rem; font-weight: 700; }
.conjugation-window-head small { display: block; font-size: .69rem; color: #586c65; }
.conjugation-row { display: flex; justify-content: space-between; gap: 8px; padding: 8px 15px; border-top: 1px solid #e4e2da; font-size: .8rem; }
.conjugation-row span { color: #677783; }
.home-showcase-library { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-showcase .home-resource { display: grid; grid-template-columns: minmax(0, 1fr) 126px; gap: 10px; min-width: 0; min-height: 284px; padding: 22px; overflow: hidden; }
.home-resource-slate { background: #f3f5f5; }
.home-resource-sage { background: #f0f4ef; }
.home-resource-sand { background: #f4f1e8; }
.home-resource-clay { background: #f5ece6; }
.home-resource-plum { background: #f1eef4; }
.home-resource-art { grid-column: 2; grid-row: 1; display: grid; place-items: center; width: 100%; min-height: 222px; border-radius: 6px; overflow: hidden; color: #3b586a; }
.home-resource-slate .home-resource-art { background: #d8e3e7; }
.home-resource-sage .home-resource-art { background: #d5e2d4; }
.home-resource-sand .home-resource-art { background: #e4dbc7; }
.home-resource-clay .home-resource-art { background: #e6d1c5; }
.home-resource-plum .home-resource-art { background: #dcd6e5; }
.home-resource-copy { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; min-width: 0; }
.home-resource h3 { font-size: 1.125rem; margin-bottom: 12px; }
.home-resource p { font-size: .92rem; line-height: 1.55; margin-bottom: 18px; }
.home-resource a { margin-top: auto; align-self: flex-start; }
.home-resource:hover { border-color: #aabcc9; }
.home-resource:focus-within { border-color: #8ea2b1; }
.mini-sheet { width: 140px; transform: rotate(-7deg) translateX(8px); padding: 12px 15px; border: 1px solid #c2ccd1; border-radius: 3px; background: #fff; box-shadow: 5px 5px 0 #d8e0e2; font-size: .66rem; line-height: 1.45; }
.mini-sheet strong { display: block; margin-bottom: 7px; font-size: .72rem; }
.mini-sheet span { display: block; }
.mini-sheet i { display: block; height: 1px; margin: 4px 0; background: #d7e0e4; }
.mini-vocab { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.mini-vocab span { width: 112px; padding: 6px 9px; border: 1px solid #bdcbc0; border-radius: 4px; background: #fff; color: #3c5d4b; font-size: .82rem; font-weight: 700; }
.mini-vocab small { display: block; color: #536b5a; font-size: .63rem; font-weight: 400; }
.mini-reference { width: 126px; transform: rotate(-6deg) translateX(8px); border: 1px solid #d2cbbd; border-radius: 4px; background: #fff; overflow: hidden; font-size: .7rem; }
.mini-reference strong,.mini-reference span { display: flex; justify-content: space-between; padding: 5px 10px; border-bottom: 1px solid #e6e0d5; }
.mini-reference strong { background: #e7e6dc; font-size: .8rem; }
.mini-reference strong small { font-size: .65rem; font-weight: 400; }
.mini-reference span:last-child { border-bottom: 0; }
.mini-reference b { color: #687987; font-weight: 400; }
.mini-grammar { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.mini-grammar div { width: 112px; min-height: 68px; padding: 11px 9px; border: 1px solid #d7c6bb; border-radius: 4px; background: #fff; }
.mini-grammar strong { display: block; font-size: .91rem; color: #7b5645; }
.mini-grammar span { display: block; margin-top: 6px; font-size: .66rem; line-height: 1.3; }
.mini-dialogue { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; width: 120px; }
.mini-dialogue span { max-width: 90%; padding: 7px 11px; border: 1px solid #c2d0c3; border-radius: 11px 11px 11px 2px; background: #fff; color: #3c5d4b; font-size: .74rem; }
.mini-dialogue span:last-child { align-self: flex-end; border-radius: 11px 11px 2px 11px; background: #dfe9df; }
.mini-map { position: relative; width: 126px; height: 172px; color: #76667d; }
.mini-map svg { width: 126px; height: 172px; }
.mini-map strong { position: absolute; top: 79px; left: 27px; width: 72px; text-align: center; color: #fff; font-size: .65rem; }
.map-label { position: absolute; color: #65576d; font-size: .61rem; }
.map-label-a { top: 9px; left: 3px; }
.map-label-b { top: 9px; right: 3px; }
.map-label-c { bottom: 5px; left: 26px; }
.home footer { max-width: 1120px; padding-inline: 0; width: calc(100% - 48px); font-size: .8rem; }
@media (max-width: 1100px) {
  .home-feature { grid-template-columns: minmax(0, 1fr) 196px; }
  .home-tool { padding: 20px; }
  .home-today-layout { grid-template-columns: 1fr 2fr; gap: 24px; }
  .home-hero-content { padding-top: 56px; }
  .home-actions { max-width: 480px; }
}
@media (max-width: 1000px) {
  .home-showcase-library { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .home-showcase-featured { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .home-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-hero { min-height: 520px; }
  .home-hero-image { object-position: 42% center; opacity: .55; }
  .home-today-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .home-showcase-library { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .home-container { width: calc(100% - 40px); }
  .home .header-inner { padding: 16px 20px; }
  .home-hero { min-height: 0; display: flex; flex-direction: column; }
  .home-hero-content { padding-block: 36px 32px; }
  .home h1 { font-size: clamp(2.45rem, 10.5vw, 3.4rem); }
  .home-lede { font-size: 1.075rem; }
  .home-actions { flex-direction: column; gap: 12px; }
  .home-button { width: 100%; }
  .home-hero-image { position: static; order: 2; height: 220px; object-position: right 64%; opacity: 1; }
  .home-section, .home-today { padding-block: 36px; }
  .home-tools, .home-showcase-library, .home-steps { grid-template-columns: 1fr; }
  .home-feature { grid-template-columns: 1fr; padding: 24px; gap: 6px; }
  .home-feature-art { width: 100%; height: 296px; max-width: 300px; justify-self: center; }
  .home-feature h3 { font-size: 1.4rem; }
  .home-tool { padding: 24px; }
  .home-steps { gap: 22px; }
  .home-steps li, .home-steps li:first-child { padding: 0 0 0 52px; border: 0; position: relative; }
  .home-step-number { position: absolute; left: 0; top: 0; }
  .home-showcase .home-resource { grid-template-columns: 1fr; gap: 18px; padding: 22px; min-height: 0; }
  .home-resource-art { grid-column: 1; grid-row: 1; min-height: 164px; }
  .home-resource-copy { grid-column: 1; grid-row: 2; }
  .mini-vocab { flex-direction: row; justify-content: center; }
  .mini-vocab span { width: auto; }
  .mini-grammar { flex-direction: row; justify-content: center; }
  .mini-map { transform: scale(.82); }
  .home footer { width: calc(100% - 40px); }
}
