/* ----- features.html ----- */
/* ============================================================
   Features showcase page — page-specific styles only.
   Nav, footer, buttons, and brand marks come from styles.css.
============================================================ */

/* ---- Hero ---- */
.features-hero {
  background: var(--navy-900);
  color: #fff;
  padding: 88px 0 80px;
}
.features-hero .kicker {
  color: var(--gold, #d4a017);
  opacity: 1;
}
.features-hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.18;
  margin: 16px 0 24px;
}
.features-hero .lede {
  font-size: 1.1rem;
  line-height: 1.72;
  opacity: 0.8;
  max-width: 600px;
  margin: 0;
}

/* ---- Feature section layout ---- */
.features-section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}
.features-section:first-of-type { border-top: none; }

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
/* Flip: copy right, mock left */
.features-grid--flip .features-copy { order: 2; }
.features-grid--flip .features-mock { order: 1; }

@media (max-width: 800px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  /* On mobile always show mock after copy */
  .features-grid--flip .features-copy { order: 1; }
  .features-grid--flip .features-mock { order: 2; }
}

.features-section-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #7a5800;
  margin-bottom: 14px;
}
@media (prefers-color-scheme: dark) {
  .features-section-kicker { color: var(--gold, #d4a017); }
}
.features-copy h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 20px;
}
.features-copy p {
  font-size: 1rem;
  line-height: 1.76;
  opacity: 0.78;
  margin: 0;
  max-width: 52ch;
}
.features-copy p + p { margin-top: 14px; }
.features-mock {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* ---- Shared mockup shell ---- */
.feat-mock-shell {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 52px -18px rgba(10,22,38,.28);
  width: 100%;
  max-width: 440px;
}
@media (prefers-color-scheme: dark) {
  .feat-mock-shell {
    background: #0e1e30;
    border-color: rgba(255,255,255,.1);
    box-shadow: 0 20px 52px -18px rgba(0,0,0,.5);
  }
}
.feat-mock-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}
.feat-mock-panel-head-brand { letter-spacing: -.01em; }
.feat-mock-panel-head-streak { color: #d97706; font-size: 0.8rem; }

/* ── Section 1: Priority Intelligence ── */
.feat-priority-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border-left: 3.5px solid var(--line);
  background: var(--cream);
  margin-bottom: 8px;
  position: relative;
}
@media (prefers-color-scheme: dark) {
  .feat-priority-card { background: rgba(255,255,255,.05); }
}
.feat-priority-card--urgent { border-left-color: #dc2626; animation: feat-pulse 2.6s ease-in-out infinite; }
.feat-priority-card--medium { border-left-color: #f59e0b; }
.feat-priority-card--low    { border-left-color: #16a34a; }
.feat-priority-card--dim    { opacity: 0.55; }

@keyframes feat-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,.0); }
  45%       { box-shadow: 0 0 0 5px rgba(220,38,38,.20); }
  70%       { box-shadow: 0 0 0 8px rgba(220,38,38,.05); }
}
@media (prefers-reduced-motion: reduce) {
  .feat-priority-card--urgent { animation: none; }
  @keyframes feat-pulse {}
}

.feat-score {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  background: rgba(220,38,38,.11);
  color: #b91c1c;
}
.feat-priority-card--medium .feat-score {
  background: rgba(245,158,11,.11);
  color: #92400e;
}
.feat-priority-card--low .feat-score,
.feat-priority-card--dim .feat-score {
  background: rgba(100,116,139,.09);
  color: var(--muted);
}
.feat-card-info { flex: 1; min-width: 0; }
.feat-card-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.feat-card-course { font-size: 0.71rem; color: var(--muted); }
.feat-card-meta   { font-size: 0.71rem; color: var(--muted); white-space: nowrap; text-align: right; flex-shrink: 0; }
.feat-priority-footer {
  margin-top: 12px;
  display: flex;
  gap: 14px;
  font-size: 0.76rem;
  color: var(--muted);
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.feat-priority-footer span:first-child { color: #d97706; }

/* ── Section 2: The Game ── */
.feat-game-shell { display: flex; flex-direction: column; gap: 18px; }

.feat-chest-scene {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(240,180,41,.09), rgba(240,180,41,.03));
  border: 1px solid rgba(240,180,41,.22);
  border-radius: 12px;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}
.feat-chest-emoji {
  font-size: 2.4rem;
  line-height: 1;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}
.feat-chest-coins {
  position: absolute;
  top: 2px;
  left: 28px;
  display: flex;
  gap: 5px;
  pointer-events: none;
  z-index: 3;
}
.feat-chest-coins span {
  font-size: 0.9rem;
  display: inline-block;
  animation: feat-coin-rise 1.8s ease-in-out infinite;
  opacity: 0;
  will-change: transform, opacity;
}
.feat-chest-coins span:nth-child(1) { animation-delay: 0s; }
.feat-chest-coins span:nth-child(2) { animation-delay: 0.28s; }
.feat-chest-coins span:nth-child(3) { animation-delay: 0.56s; }
.feat-chest-coins span:nth-child(4) { animation-delay: 0.84s; }
.feat-chest-coins span:nth-child(5) { animation-delay: 1.12s; }

@keyframes feat-coin-rise {
  0%   { opacity: 0;   transform: translateY(0);      }
  18%  { opacity: 1;   transform: translateY(-6px);   }
  65%  { opacity: 0.7; transform: translateY(-28px);  }
  100% { opacity: 0;   transform: translateY(-44px);  }
}
@media (prefers-reduced-motion: reduce) {
  .feat-chest-coins span { animation: none; opacity: 0; }
}

.feat-chest-text { flex: 1; }
.feat-chest-label { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.feat-chest-sub   { font-size: 0.76rem; color: var(--muted); margin-top: 3px; }

.feat-shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.feat-shop-item {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: default;
  position: relative;
  background: var(--cream);
}
@media (prefers-color-scheme: dark) {
  .feat-shop-item { background: rgba(255,255,255,.04); }
}
.feat-shop-item--owned {
  border-color: var(--gold, #f0b429);
  background: rgba(240,180,41,.08);
}
.feat-shop-item--locked { opacity: 0.46; }
.feat-shop-lock {
  position: absolute;
  bottom: 3px;
  right: 5px;
  font-size: 0.62rem;
  line-height: 1;
}
.feat-shop-owned-badge {
  position: absolute;
  bottom: 3px;
  right: 4px;
  font-size: 0.6rem;
  background: var(--gold, #f0b429);
  color: var(--navy-900, #0a1626);
  border-radius: 999px;
  padding: 1px 5px;
  font-weight: 700;
}

.feat-dub-counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--cream);
  border: 1.5px solid rgba(240,180,41,.35);
  border-radius: 10px;
  padding: 13px 18px;
  animation: feat-glow 3.2s ease-in-out infinite;
}
@media (prefers-color-scheme: dark) {
  .feat-dub-counter { background: rgba(240,180,41,.06); }
}
.feat-dub-label { font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.feat-dub-amount { font-size: 1.15rem; font-weight: 700; color: #b45309; }
@media (prefers-color-scheme: dark) { .feat-dub-amount { color: var(--gold); } }

@keyframes feat-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240,180,41,0);    border-color: rgba(240,180,41,.3); }
  50%       { box-shadow: 0 0 16px 0 rgba(240,180,41,.16); border-color: rgba(240,180,41,.6); }
}
@media (prefers-reduced-motion: reduce) {
  .feat-dub-counter { animation: none; }
}

/* ── Section 3: Meet Clipper ── */
.feat-clipper-scene {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 52px -18px rgba(10,22,38,.28);
  width: 100%;
  max-width: 440px;
}
@media (prefers-color-scheme: dark) {
  .feat-clipper-scene {
    background: #0e1e30;
    border-color: rgba(255,255,255,.1);
    box-shadow: none;
  }
}

/* Simulated Canvas page stub */
.feat-canvas-stub {
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 4px;
}
@media (prefers-color-scheme: dark) {
  .feat-canvas-stub { background: rgba(255,255,255,.04); }
}
.feat-canvas-stub-bar {
  height: 7px;
  border-radius: 4px;
  background: var(--line);
  margin-bottom: 6px;
}
.feat-canvas-stub-bar:last-child { width: 65%; margin-bottom: 0; }
.feat-canvas-stub-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
  font-family: var(--font-body);
}

.feat-clipper-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  width: 100%;
}
.feat-clipper-parrot {
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
  user-select: none;
  align-self: flex-end;
  margin-bottom: 2px;
}
.feat-clipper-bubble {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 14px 14px 14px 4px;
  padding: 14px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.58;
  color: var(--ink);
  box-shadow: 0 4px 18px -6px rgba(10,22,38,.15);
  flex: 1;
}
@media (prefers-color-scheme: dark) {
  .feat-clipper-bubble {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.14);
    box-shadow: none;
  }
}
.feat-clipper-bubble-meta {
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 400;
}

/* ── Section 4: Notes ── */
.feat-notes-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.feat-notes-page-ctx {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 400;
  margin-left: auto;
}
.feat-note-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 14px;
  margin-bottom: 8px;
  transition: border-color 0.15s;
}
.feat-note-card:last-child { margin-bottom: 0; }
@media (prefers-color-scheme: dark) {
  .feat-note-card { background: rgba(255,255,255,.05); }
}
.feat-note-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.feat-note-snippet {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 8px;
}
.feat-note-match {
  background: rgba(240,180,41,.28);
  border-radius: 3px;
  padding: 0 2px;
  font-weight: 600;
  color: #7a5800;
}
@media (prefers-color-scheme: dark) {
  .feat-note-match { color: var(--gold); background: rgba(240,180,41,.18); }
}
.feat-note-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.feat-confidence {
  font-size: 0.68rem;
  font-weight: 600;
  background: rgba(45,212,191,.1);
  color: #0d7a6f;
  border: 1px solid rgba(45,212,191,.24);
  border-radius: 999px;
  padding: 2px 8px;
}
@media (prefers-color-scheme: dark) {
  .feat-confidence { background: rgba(45,212,191,.12); color: var(--teal); }
}
.feat-note-src { font-size: 0.69rem; color: var(--muted); }

/* ---- Closing CTA ---- */
.features-cta-section {
  padding: 88px 0;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  color: #fff;
}
.features-cta-inner {
  max-width: 620px;
}
.features-cta-inner .about-eyebrow { color: var(--gold-2, #f7cf6b); }
.features-cta-inner h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.18;
  color: #fff;
  margin: 16px 0 16px;
}
.features-cta-inner p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.78);
  max-width: 52ch;
  margin: 0 0 32px;
  line-height: 1.7;
}
.features-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.features-cta-section .btn-outline {
  border-color: rgba(255,255,255,.55);
  color: rgba(255,255,255,.9);
}
.features-cta-section .btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.85);
  color: #fff;
}
@media (max-width: 560px) {
  .features-cta-btns .btn { flex: 1; }
}

/* ---- student-first badge (also shared to about.html via about.css override) ---- */
.student-first-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(240,180,41,.12);
  border: 1px solid rgba(240,180,41,.3);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold, #f0b429);
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}
@media (prefers-color-scheme: dark) {
  .student-first-badge { border-color: rgba(240,180,41,.4); }
}
