/* Homepage composition. Shared guide, legal and consent styles remain independent. */
.current-home {
  --cream: #f7f4ec;
  --paper: #fffdf8;
  --ink: #243b36;
  --muted: #59675e;
  --green: #214a45;
  --olive: #626c43;
  --line: #dcded0;
  --hm-width: 1160px;
  --hm-gutter: clamp(20px, 4vw, 48px);
  --hm-section: clamp(56px, 7.2vw, 104px);
  --hm-gap: clamp(28px, 5vw, 72px);
  --hm-radius: 24px;
  --hm-shadow: 0 20px 40px rgb(33 74 69 / 12%);
  --hm-ease: cubic-bezier(.22, 1, .36, 1);
  --hm-entrance: 460ms;
  --hm-hero: 600ms;
  --hm-hover: 180ms;
  --hm-press: 120ms;
  --hm-fade: 220ms;
  --hm-icon: 200ms;
  font-size: 16px;
  line-height: 1.65;
}
.current-home main :is(h1,h2,h3,p,figure) { margin: 0; }
.current-home main :is(h1,h2) { font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; text-wrap: balance; }
.current-home :where(main) h2 { font-size: clamp(36px, 4.3vw, 54px); line-height: 1.08; }
.current-home :where(main) h3 { font-size: 19px; line-height: 1.35; font-weight: 650; letter-spacing: -.025em; }
.current-home h2 em { color: var(--green); }
.current-home p { max-width: 64ch; }
.current-home a { text-underline-offset: 5px; }
.current-home :focus-visible { outline: 3px solid var(--olive); outline-offset: 5px; }
.current-home :is(section,article,div,p)[id] { scroll-margin-top: 96px; }
.current-home .eyebrow { margin-bottom: 20px; color: var(--olive); font-size: 11px; font-weight: 750; letter-spacing: .14em; line-height: 1.5; }
.current-home .hm-fine { font-size: 14px; line-height: 1.6; color: var(--muted); }
.current-home .hm-text-link { display: inline-flex; align-items: center; min-height: 44px; gap: 12px; font-size: 15px; font-weight: 650; }
.current-home .button { min-height: 54px; padding: 16px 24px; font-size: 15px; font-weight: 650; box-shadow: none; transition: background-color var(--hm-hover), transform var(--hm-press); }
.current-home :is(.button,.header-cta):active { transform: scale(.98); }
.current-home .site-header { height: 76px; min-height: 76px; padding-inline: max(var(--hm-gutter), calc((100vw - var(--hm-width)) / 2)); background: var(--cream); backdrop-filter: none; gap: 28px; }
.current-home .brand { font-size: 20px; }
.current-home .brand img { box-shadow: none; width: 38px; height: 38px; border-radius: 11px; }
.current-home .primary-nav { gap: clamp(16px, 2.4vw, 32px); }
.current-home .primary-nav a { font-size: 13px; font-weight: 600; }
.current-home .primary-nav .header-cta { padding: 12px 22px; min-height: 44px; margin: 0; }
.current-home .primary-nav .header-cta:hover { transform: none; }
.current-home .primary-nav :is(.mobile-support,.nav-social-link) { display: none; }
.current-home .primary-nav a[aria-current="location"] { color: var(--green); }
.current-home .primary-nav a:not(.header-cta)[aria-current="location"]::after { background: var(--olive); }
.current-home .nav-toggle { box-shadow: none; }
/* The original hero uses its established layout in site/launch.css. */
.current-home .home-hero { padding-bottom: 110px; }
.current-home .home-hero h1 { font-weight: 500; letter-spacing: -.055em; line-height: .91; text-wrap: initial; }
.current-home .home-hero .eyebrow { color: var(--clay); }
.current-home .home-hero-lead { max-width: 650px; margin-top: 2rem; font-size: clamp(1.08rem, 1.6vw, 1.32rem); line-height: 1.65; }
.current-home .home-hero .hero-actions { margin-top: 2rem; }
.current-home .home-hero .button { padding: .92rem 1.28rem; font-size: .9rem; font-weight: 800; }
.current-home .home-hero .button-primary { box-shadow: 0 14px 30px rgb(33 74 69 / 18%); }
.current-home .home-hero .android-availability { margin-top: .65rem; font-size: .9rem; }
.current-home .hm-phone { width: min(100%, 276px); border: 6px solid var(--green); border-radius: 32px; overflow: hidden; background: var(--cream); box-shadow: var(--hm-shadow); }
.current-home .hm-phone img { display: block; width: 100%; height: auto; aspect-ratio: 702 / 1519; }
.current-home .hm-section,
.current-home .story-section,
.current-home .learning-guides-section,
.current-home .faq-section { width: min(calc(100% - var(--hm-gutter) * 2), var(--hm-width)); max-width: var(--hm-width); margin: 0 auto; padding: var(--hm-section) 0; }
.current-home .hm-lesson { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--hm-gap); align-items: center; }
.current-home .hm-lesson-copy > p:not(.eyebrow) { margin-top: 24px; color: var(--muted); }
.current-home .hm-steps { list-style: none; padding: 0; margin: 30px 0 0; }
.current-home .hm-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.current-home .hm-steps li > span { font-family: var(--serif); color: var(--olive); font-size: 15px; }
.current-home .hm-steps p { margin-top: 6px; font-size: 15px; color: var(--muted); }
.current-home .hm-preview { display: grid; justify-items: center; align-content: center; gap: 22px; }
.current-home .hm-preview-options { display: flex; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; }
.current-home .hm-preview-options button { min-height: 44px; padding: 10px 17px; border: 0; border-radius: 999px; color: var(--green); background: transparent; font-size: 14px; cursor: pointer; transition: background-color var(--hm-hover), color var(--hm-hover), transform var(--hm-press); }
.current-home .hm-preview-options button[aria-pressed="true"] { background: var(--green); color: var(--paper); }
.current-home .hm-preview-screens { width: min(100%, 244px); aspect-ratio: 702 / 1519; display: grid; }
.current-home .hm-preview-screens img { grid-area: 1 / 1; }
.current-home .hm-preview-current { z-index: 1; }
.current-home .hm-preview-caption { min-height: 3.2em; max-width: 34ch; text-align: center; font-size: 13px; color: var(--muted); }
.current-home .hm-preview-screens .hm-crossfade { animation: hm-crossfade var(--hm-fade) ease-out; }
.current-home .hm-ear { background: var(--green); color: var(--paper); }
.current-home .hm-ear-inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--hm-gap); align-items: center; }
.current-home .hm-ear .eyebrow { color: #c9d3a9; }
.current-home .hm-ear h2 { max-width: 13ch; }
.current-home .hm-ear h2 + p { color: #d4dfd4; margin-top: 26px; }
.current-home .hm-ear .hm-text-link { margin-top: 24px; }
.current-home .hm-ear :focus-visible { outline-color: #d5dfb6; }
.current-home .hm-listening-demo { padding: clamp(24px, 3.4vw, 46px); border: 1px solid #648078; border-radius: var(--hm-radius); background: #284f49; }
.current-home .hm-demo-label { color: #d4dfd4; font-size: 12px; }
.current-home .hm-greek { margin-top: 40px; font-family: var(--serif); font-size: clamp(31px, 3.2vw, 44px); line-height: 1.2; letter-spacing: -.02em; }
.current-home .hm-pronunciation { margin-top: 12px; font-size: 16px; color: #d4dfd4; }
.current-home .hm-meaning { margin-top: 4px; font-size: 19px; }
.current-home .hm-audio-pair { margin-top: 32px; display: grid; grid-template-columns: 1fr; gap: 12px; }
.current-home .hm-audio-button { width: 100%; min-height: 52px; display: flex; align-items: center; gap: 14px; padding: 12px 18px; border: 1px solid #82958b; border-radius: 12px; background: transparent; color: var(--paper); cursor: pointer; font-size: 15px; text-align: left; transition: background-color var(--hm-hover), transform var(--hm-press); }
.current-home .hm-audio-button[aria-pressed="true"] { background: var(--cream); color: var(--green); }
.current-home .hm-audio-button:active { transform: scale(.98); }
.current-home .hm-play-icon { display: inline-block; width: 16px; font-size: 12px; text-align: center; }
.current-home .hm-audio audio { display: block; width: 100%; max-width: 100%; }
.current-home .hm-audio-status { min-height: 2.8em; margin: 4px 0 0 2px; color: #d4dfd4; font-size: 12px; line-height: 1.4; }
.current-home .hm-listening-demo .hm-fine { margin-top: 12px; color: #d4dfd4; font-size: 12px; }
.current-home .story-heading { max-width: 760px; }
.current-home .story-heading h2 { font-size: clamp(36px, 4.3vw, 54px); line-height: 1.08; }
.current-home .story-heading > p:not(.eyebrow) { margin: 24px 0 0; font-size: 17px; line-height: 1.7; color: var(--muted); }
.current-home .journey-stages { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; padding: 0; margin: 44px 0 24px; }
.current-home .journey-stages::before { display: none; }
.current-home .stage-card { min-height: 0; padding: 24px 22px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; transform: none; }
.current-home .stage-card:first-child { padding-left: 0; }
.current-home .stage-card + .stage-card { border-left: 1px solid var(--line); }
.current-home .stage-card::after { display: none; }
.current-home .stage-mark { position: relative; inset: auto; flex-shrink: 0; width: 72px; height: 72px; background: transparent; box-shadow: none; }
.current-home .stage-mark img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.current-home .stage-copy { margin-top: 28px; }
.current-home .stage-copy small { color: var(--olive); font-size: 12px; }
.current-home .stage-copy h3 { min-height: 2.7em; margin-top: 12px; font-family: var(--serif); font-size: 25px; font-weight: 400; line-height: 1.12; }
.current-home .stage-copy p { margin-top: 14px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.current-home .stage-number { top: 25px; right: 20px; color: var(--olive); }
.current-home .foundation-note { margin: 14px 0 0; padding: 0; max-width: 80ch; background: transparent; border: 0; border-radius: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.current-home .hm-features { border-top: 1px solid var(--line); }
.current-home .hm-feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 40px; margin-top: 44px; }
.current-home .hm-feature-grid .eyebrow { margin-bottom: 14px; font-size: 10px; }
.current-home .hm-feature-grid h3 { font-family: var(--serif); font-size: 29px; font-weight: 400; line-height: 1.1; }
.current-home .hm-feature-grid h3 + p { margin-top: 18px; color: var(--muted); font-size: 15px; }
.current-home .hm-feature-grid .hm-text-link { margin-top: 12px; font-size: 14px; }
.current-home .hm-product-details { border-block: 1px solid var(--line); margin-top: 36px; }
.current-home .hm-product-details summary { padding: 18px 0; display: flex; gap: 24px; justify-content: space-between; cursor: pointer; font-size: 14px; list-style: none; }
.current-home .hm-product-details summary::-webkit-details-marker { display: none; }
.current-home .hm-product-details summary span { transition: transform var(--hm-icon); }
.current-home .hm-product-details[open] summary span { transform: rotate(45deg); }
.current-home .hm-product-screens { display: flex; justify-content: center; gap: var(--hm-gap); padding: 24px 0; }
.current-home .hm-product-screens figure { width: min(40%,240px); }
.current-home .hm-product-screens img { display: block; width: 100%; height: auto; border-radius: 14px; }
.current-home .hm-product-screens figcaption { margin-top: 16px; font-size: 12px; }
.current-home .learning-guides-section { border-top: 1px solid var(--line); }
.current-home .learning-guides-heading { gap: 36px; }
.current-home .learning-guides-heading h2 { font-size: clamp(36px, 4.3vw, 54px); line-height: 1.08; }
.current-home .learning-guides-heading > p { font-size: 16px; color: var(--muted); }
.current-home .learning-guide-cards { margin-top: 40px; gap: 28px; }
.current-home .learning-guide-card { padding: 24px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; min-height: 0; box-shadow: none; transform: none; }
.current-home .learning-guide-card > span { color: var(--olive); }
.current-home .learning-guide-card h3 { font-size: 25px; font-weight: 400; line-height: 1.12; min-height: 2.3em; }
.current-home .learning-guide-card p { margin-top: 16px; color: var(--muted); font-size: 14px; }
.current-home .learning-guide-card a { min-height: 44px; font-size: 14px; margin-top: 16px; }
.current-home .learning-guides-all { margin-top: 32px; min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; }
.current-home .faq-section { border-top: 1px solid var(--line); display: grid; grid-template-columns: .85fr 1.15fr; gap: var(--hm-gap); }
.current-home .faq-section .section-heading { position: static; }
.current-home .faq-section h2 { font-size: clamp(36px, 4.3vw, 54px); line-height: 1.08; }
.current-home .faq-list { margin: 0; }
.current-home .faq-list details { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.current-home .faq-list summary { padding: 22px 0; font-size: 16px; font-weight: 600; line-height: 1.4; }
.current-home .faq-list summary::after { content: '+'; color: var(--olive); transition: transform var(--hm-icon); }
.current-home .faq-list details[open] summary::after { content: '+'; transform: rotate(45deg); }
.current-home .faq-list details p { padding: 0 28px 24px 0; font-size: 15px; color: var(--muted); line-height: 1.7; }
.current-home .hm-final { width: 100%; max-width: none; padding-inline: var(--hm-gutter); text-align: center; background: var(--cream); }
.current-home .hm-final h2 { max-width: 18ch; margin: auto; font-size: clamp(40px,5vw,64px); }
.current-home .hm-final > p:not(.eyebrow) { margin: 24px auto; color: var(--muted); }
.current-home .hm-final .ios-launch { align-items: center; }
.current-home .hm-final .free-lesson-note { margin-top: 12px; font-size: 13px; color: var(--muted); }
.current-home .cta-section { width: 100%; max-width: none; min-height: 0; margin: 0; padding: var(--hm-section) max(var(--hm-gutter), calc((100% - var(--hm-width)) / 2)); background: var(--green); color: var(--paper); text-align: left; display: grid; grid-template-columns: .85fr 1.15fr; column-gap: var(--hm-gap); }
.current-home .cta-section > .eyebrow { grid-column: 1; align-self: end; margin-bottom: 16px; color: #c9d3a9; }
.current-home .cta-section h2 { grid-column: 1; font-size: clamp(32px,3.4vw,44px); line-height: 1.1; }
.current-home .cta-section > p:not(.eyebrow) { grid-column: 1; margin: 20px 0 0; color: #d4dfd4; font-size: 16px; line-height: 1.7; align-self: start; }
.current-home .launch-form { grid-column: 2; grid-row: 1 / span 4; width: 100%; max-width: none; margin: 0; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.current-home .launch-form label { color: var(--green); font-size: 11px; }
.current-home .launch-form input { border: 1px solid #b8c2b1; border-radius: 8px; min-height: 48px; background: #fff; color: var(--ink); font-size: 16px; }
.current-home .launch-form .button { background: var(--green); color: white; border-radius: 8px; font-size: 13px; }
.current-home .launch-form-row { grid-template-columns: 1fr; }
.current-home .launch-message { color: var(--muted); min-height: 3.4em; font-size: 13px; }
.current-home .launch-message[data-state="error"] { color: #a33227; }
.current-home .launch-message[data-state="success"] { color: var(--green); }
/* Shared light text for the alternating green bands. */
.current-home :is(.hm-green-section, .hm-hero-band) {
  --ink: var(--paper);
  --muted: #d4dfd4;
  --olive: #c9d3a9;
  --line: #648078;
  background: var(--green); color: var(--ink);
}
.current-home .hm-green-section {
  width: 100%; max-width: none;
  padding-inline: max(var(--hm-gutter), calc((100% - var(--hm-width)) / 2));
  border-top: 0;
}
.current-home .hm-green-section h2 em { color: var(--paper); }
.current-home .hm-hero-band .home-hero .eyebrow { color: var(--olive); }
.current-home .hm-hero-band :is(h1 em, .ios-status, .android-availability strong) { color: var(--paper); }
.current-home .hm-hero-band .button-primary { background: var(--cream); color: var(--green); }
.current-home .hm-hero-band .button-primary:hover { background: #e9eddf; color: var(--green); }
.current-home .hm-hero-band .button-secondary { background: transparent; border-color: #82958b; color: var(--paper); }
.current-home .hm-hero-band .hm-hero-carousel .hp-controls button { color: var(--paper); }
.current-home .hm-hero-band .hm-hero-carousel .hp-controls button:is(:hover, :focus-visible) { color: var(--green); background: #e9eddf; }
.current-home .hm-hero-band .hm-hero-carousel .hp-controls button:focus-visible { outline-color: #d5dfb6; }
.current-home .site-footer { max-width: var(--hm-width); width: min(calc(100% - var(--hm-gutter) * 2), var(--hm-width)); margin: 0 auto; padding: 48px 0 28px; border-top: 1px solid var(--line); }
.current-home .site-footer nav a { font-size: 13px; }
.current-home .copyright { margin-top: 24px; }
/* Start visible. Only animate groups as they enter; a failed observer cannot hide content. */
.current-home .reveal { opacity: 1; transform: none; transition: none; }
.current-home .hm-enter { animation: hm-enter var(--hm-entrance) var(--hm-ease) both; }
.current-home [data-hero-entrance].hm-enter { animation-name: hm-hero-enter; animation-duration: var(--hm-hero); }
.current-home .hm-enter:focus-within { animation: none; }
@keyframes hm-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes hm-hero-enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes hm-crossfade { from { opacity: 0; } to { opacity: 1; } }
@media (hover: hover) and (pointer: fine) {
  .current-home :is(.button-primary,.header-cta):hover { background: #173b37; transform: translateY(-2px); }
  .current-home .primary-nav .header-cta:hover { transform: translateY(-2px); }
  .current-home .hm-audio-button:hover { background: #3a6058; color: white; }
  .current-home .hm-preview-options button:hover:not([aria-pressed="true"]) { background: #e9eddf; }
}
.current-home .button:not(:disabled):active,
.current-home .primary-nav .header-cta:active { transform: scale(.98); }
@media (max-width: 540px) {
  .current-home .home-hero-lead { font-size: 1rem; line-height: 1.55; }
  .current-home .home-hero .hero-actions { margin-top: 1.1rem; }
}
@media (max-width: 1100px) {
  .current-home .primary-nav { gap: 16px; }
  .current-home .journey-stages { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .current-home .stage-card { padding: 24px; }
  .current-home .stage-card:nth-child(odd) { border-left: 0; padding-left: 0; }
}
@media (max-width: 900px) {
  .current-home .site-header { padding-inline: var(--hm-gutter); }
  .current-home::before { backdrop-filter: none; }
  .current-home .primary-nav { gap: 4px; background: var(--paper); }
  .current-home .primary-nav a { font-size: 15px; min-height: 44px; }
  .current-home .primary-nav :is(.mobile-support,.nav-social-link) { display: flex; }
  .current-home .hm-feature-grid { gap: 24px; }
  .current-home .learning-guide-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .current-home .faq-section { grid-template-columns: 1fr; }
  /* Without the controller, expose ordinary navigation in the document flow. */
  .current-home:not(.hm-nav-ready) { padding-top: 0; }
  .current-home:not(.hm-nav-ready) .site-header { position: static; height: auto; flex-wrap: wrap; padding-block: 16px; }
  .current-home:not(.hm-nav-ready) .nav-toggle { display: none; }
  .current-home:not(.hm-nav-ready) .primary-nav { position: static; display: flex; flex-wrap: wrap; opacity: 1; visibility: visible; transform: none; pointer-events: auto; max-height: none; width: 100%; box-shadow: none; padding: 0; }
}
@media (max-width: 700px) {
  .current-home .hm-lesson,.current-home .hm-ear-inner { grid-template-columns: 1fr; }
  .current-home .hm-ear h2 { max-width: 17ch; }
  .current-home .hm-listening-demo { padding: 24px; }
  .current-home .hm-greek { margin-top: 26px; }
  .current-home .hm-feature-grid { grid-template-columns: 1fr; margin-top: 32px; }
  .current-home .hm-feature-grid article { padding-top: 24px; border-top: 1px solid var(--line); }
  .current-home .hm-feature-grid h3 { max-width: 22ch; }
  .current-home .learning-guides-heading { grid-template-columns: 1fr; gap: 24px; }
  .current-home .cta-section { display: block; }
  .current-home .launch-form { margin-top: 28px; padding: 20px; }
  .current-home .launch-name-row { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .current-home .journey-stages { grid-template-columns: 1fr; }
  .current-home .stage-card,.current-home .stage-card:nth-child(odd) { border-left: 0; padding: 24px 0; display: grid; grid-template-columns: 60px 1fr; gap: 20px; }
  .current-home .stage-mark,.current-home .stage-mark img { width: 60px; height: 60px; }
  .current-home .stage-copy { margin: 0; }
  .current-home .stage-copy h3 { min-height: 0; font-size: 24px; }
  .current-home .stage-number { display: none; }
  .current-home .learning-guide-cards { grid-template-columns: 1fr; gap: 20px; }
  .current-home .learning-guide-card h3 { min-height: 0; }
  .current-home .hm-preview-options button { padding-inline: 15px; }
  .current-home .site-footer nav { gap: 8px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.current-home) { scroll-behavior: auto; }
  .current-home :is(.button,.header-cta,.hm-audio-button):is(:hover,:active) { transform: none !important; }
  .current-home *, .current-home *::before, .current-home *::after { animation: none !important; transition: none !important; }
}
