/* Home: a daily selection, a useful directory, and room to play. */
html { scroll-padding-top: 84px; }
.home-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px;
  align-items: center; padding-block: 64px 52px; text-align: left;
}
.home-hero::before { mask-image: radial-gradient(80% 80% at 40% 40%, #000 15%, transparent 80%); }
.home-hero .eyebrow { font-size: 0.68rem; letter-spacing: 0; margin-bottom: 24px; }
.home-hero h1 { font-size: clamp(3rem, 5.7vw, 4.7rem); line-height: 1.02; margin: 0; letter-spacing: -0.055em; }
.home-hero .hero-lede { font-size: 1.08rem; margin: 24px 0 0; max-width: 410px; }
.home-hero .hero-actions { justify-content: flex-start; margin-top: 28px; }
.hero-note { margin-top: 24px; font-size: 0.78rem; color: var(--text-2); }
.spotlight-label { display: block; margin-bottom: 12px; font-size: 0.67rem; letter-spacing: 0.1em; }
.hero-spotlight .panel {
  display: flex; flex-direction: column; align-items: stretch; gap: 20px;
  padding: 24px; margin: 0; border-radius: 26px;
}
.hero-spotlight .panel-copy { order: 1; }
.hero-spotlight .panel-demo { order: 0; width: 100%; min-height: 260px; padding: 20px 12px 48px; }
.hero-spotlight .panel-num, .hero-spotlight .panel-plat, .hero-spotlight .panel-points, .hero-spotlight .panel-copy > p { display: none; }
.hero-spotlight .panel-meta { font-size: 0.66rem; color: rgba(255,255,255,.8); }
.hero-spotlight .panel h3 { font-size: 1.7rem; line-height: 1.1; margin-top: 8px; }
.hero-spotlight .panel-actions { margin-top: 16px; gap: 10px 16px; }
.hero-spotlight .panel-btn { padding: 9px 14px; font-size: 0.75rem; }
.hero-spotlight .panel-link { font-size: 0.72rem; }
.daily-featured { padding-block: 28px 64px; }
.daily-featured .section-head { margin-bottom: 22px; }
.section-head .mono-label, .about-section .mono-label { font-size: 0.66rem; letter-spacing: 0.07em; }
.daily-featured .section-head h2 { margin-top: 8px; }
.text-link { font-size: 0.88rem; color: var(--text-2); border-bottom: 1px solid var(--border-strong); padding-bottom: 4px; }
.text-link:hover { color: var(--accent); }
.daily-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.daily-picks .panel { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 24px; padding: 28px; margin: 0; border-radius: 26px; }
.daily-picks .panel-copy { order: 0; }
.daily-picks .panel-num, .daily-picks .panel-points { display: none; }
.daily-picks .panel-meta { font-size: 0.64rem; letter-spacing: 0.03em; gap: 6px 10px; }
.daily-picks .panel h3 { font-size: 2.05rem; margin-top: 14px; line-height: 1.08; }
.daily-picks .panel p { font-size: 0.93rem; margin-top: 14px; }
.daily-picks .panel-demo { min-height: 280px; margin-top: auto; }
.daily-picks .panel-actions { margin-top: 20px; gap: 10px 16px; }
.daily-picks > .panel > .panel-actions { margin-top: 0; }
.daily-picks .panel-btn { font-size: 0.76rem; padding: 10px 14px; }
.daily-picks .panel-link { font-size: 0.74rem; }
#apps { padding-block: 44px 72px; border-top: 1px solid var(--border); }
#apps .section-head { align-items: center; }
#apps h2, .games-section h2, .about-section h2 { font-size: clamp(1.75rem, 3.3vw, 2.6rem); line-height: 1.15; letter-spacing: -0.045em; margin-top: 10px; }
#apps .section-head p, .games-section .section-head p { color: var(--text-2); max-width: 560px; margin-top: 12px; line-height: 1.6; }
.directory-tools { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 16px; }
.directory-tools label { display: grid; gap: 8px; font-size: 0.78rem; color: var(--text-2); }
.directory-tools input, .directory-tools select { width: 100%; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-size: 0.9rem; }
.directory-tools input::placeholder { color: var(--text-3); }
.directory-count { font-size: 0.76rem; color: var(--text-2); margin: 18px 0; }
.directory-empty { border: 1px dashed var(--border-strong); border-radius: 18px; padding: 32px 24px; color: var(--text-2); }
.directory-empty button { font: inherit; border: 0; background: none; color: var(--accent); text-decoration: underline; cursor: pointer; }
.app-card { animation: none; }
article.app-card { flex-wrap: wrap; }
article.app-card .app-card-name a { display: inline-flex; align-items: center; gap: 6px; }
article.app-card .app-card-name a:hover { color: var(--accent); }
.family-links { flex-basis: 100%; border-top: 1px solid var(--border); padding-top: 12px; font-size: 0.78rem; }
.family-links summary { cursor: pointer; color: var(--text-2); }
.family-links a { display: inline-block; padding: 10px 12px 0 0; color: var(--accent); }
.games-section { padding-block: 48px 72px; border-top: 1px solid var(--border); }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.game-card { display: flex; flex-direction: column; padding: 16px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); transition: border-color .2s, transform .2s; }
.game-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.game-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; margin-bottom: 20px; image-rendering: pixelated; }
.game-card .mono-label { font-size: .6rem; letter-spacing: .04em; }
.game-card h3 { font-size: 1.2rem; letter-spacing: -.025em; margin-top: 8px; }
.game-card h3 span { float: right; color: var(--text-3); }
.game-card p { font-size: .9rem; line-height: 1.6; color: var(--text-2); margin: 10px 0 22px; }
.game-action { font-size: .8rem; margin-top: auto; color: var(--accent); }
.web-head { margin-top: 64px; }
.web-head h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.about-section { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; padding-block: 48px 80px; border-top: 1px solid var(--border); }
.about-section p { color: var(--text-2); font-size: 1rem; line-height: 1.75; margin-bottom: 18px; }
.about-section .btn { margin-top: 4px; }
@media (max-width: 900px) {
  .home-hero { gap: 28px; padding-top: 40px; }
  .home-hero h1 { font-size: 3.5rem; }
  .daily-picks .panel { padding: 22px; }
  .daily-picks .panel-demo { padding-inline: 10px; }
  .game-grid { gap: 12px; }
}
@media (max-width: 680px) {
  .home-hero { grid-template-columns: minmax(0,1fr); gap: 36px; padding-block: 40px 32px; }
  .home-hero h1 { font-size: clamp(3rem, 12vw, 4.5rem); }
  .home-hero .hero-lede { max-width: 480px; font-size: 1rem; }
  .home-hero .eyebrow { font-size: .62rem; margin-bottom: 18px; }
  .hero-note { margin-top: 18px; }
  .hero-spotlight .panel { padding: 20px; }
  .daily-featured { padding-bottom: 40px; }
  .daily-picks, .game-grid, .about-section { grid-template-columns: minmax(0,1fr); }
  .daily-picks .panel h3 { font-size: 2rem; }
  .directory-tools { grid-template-columns: minmax(0,1fr); }
  #apps .section-head { align-items: flex-start; }
  #apps .segmented { margin-top: 4px; }
  .app-grid { grid-template-columns: minmax(0,1fr); }
  .about-section { gap: 24px; padding-bottom: 48px; }
  .game-card { padding: 20px; }
  .game-card img { aspect-ratio: 16 / 9; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .game-card { transition: none; }
}

/* Learning tools, made for a little practice at a time. */
.learning-section { padding-block: 48px 72px; border-top: 1px solid var(--border); }
.learning-section h2 { font-size: clamp(1.75rem, 3.3vw, 2.6rem); line-height: 1.15; letter-spacing: -.045em; margin-top: 10px; }
.learning-section .section-head p { color: var(--text-2); margin-top: 12px; max-width: 560px; line-height: 1.6; }
.learning-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.learning-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); transition: border-color .2s, transform .2s; }
.learning-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.learning-preview { min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.number-preview { background: #f0eafa; color: #5632b5; }
.preview-caption { font: 500 .63rem/1.5 var(--mono); letter-spacing: .08em; }
.number-family { position: relative; width: 280px; max-width: 100%; height: 170px; }
.number-family svg { width: 100%; height: 100%; fill: none; stroke: #c6b3ee; stroke-width: 3; stroke-dasharray: 6 7; }
.family-number { position: absolute; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; font-size: 1.8rem; font-weight: 700; background: #fff; border: 1px solid #ded3f5; transform: translate(-50%, -50%); }
.family-number--whole { left: 50%; top: 32px; background: #6b43d9; color: #d9f3ac; border-color: transparent; }
.family-number--left { left: 18.75%; top: 140px; }
.family-number--right { left: 81.25%; top: 140px; background: #d9f3ac; border-color: transparent; }
.preview-equation { font-size: .95rem; font-weight: 600; margin-top: 12px; }
.preview-equation > span { margin-inline: 12px; color: #9e8cbd; }
.word-preview { background: #eaf0ff; color: #174ce5; gap: 12px; font-family: system-ui, sans-serif; }
.word-preview .preview-caption { font-family: inherit; letter-spacing: 0; font-size: .8rem; }
.preview-word { font-size: 3.4rem; font-weight: 700; line-height: 1.35; }
.preview-meaning { display: flex; align-items: center; gap: 64px; border: 1px solid #b5d7c3; border-radius: 12px; padding: 10px 18px; color: #1c6745; background: #f3fff6; font-size: 1rem; }
.preview-example { color: #4f5f7e; font-size: .8rem; }
.learning-copy { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.learning-copy .mono-label { font-size: .6rem; letter-spacing: .03em; }
.learning-copy h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 1.4rem; letter-spacing: -.03em; margin-top: 10px; }
.learning-copy h3 > span:last-child { margin-left: auto; color: var(--text-3); }
.learning-copy .learning-hebrew { font-size: .95rem; color: var(--text-2); font-weight: 500; letter-spacing: 0; }
.learning-copy p { color: var(--text-2); font-size: .95rem; line-height: 1.65; margin: 14px 0 24px; }
.learning-action { margin-top: auto; color: var(--accent); font-size: .85rem; }
@media (max-width: 680px) {
  .learning-grid { grid-template-columns: minmax(0, 1fr); }
  .learning-section { padding-block: 40px 48px; }
  .learning-copy { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { .learning-card { transition: none; } }
