/* ============================================================
   Inkwell · home page (Apple-style storytelling)
   Big type · scroll-driven · zero filler
   ============================================================ */

.home-shell {
  position: relative;
  overflow-x: hidden;
}

/* ---- ambient glow blobs that fade as user scrolls ---- */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
.orb.a { width: 540px; height: 540px; background: radial-gradient(circle, rgba(138,123,255,0.55), transparent 70%); top: -120px;  left: -120px; }
.orb.b { width: 460px; height: 460px; background: radial-gradient(circle, rgba(77,107,255,0.45), transparent 70%);  top: 30vh;   right: -160px; }
.orb.c { width: 380px; height: 380px; background: radial-gradient(circle, rgba(236,193,92,0.35), transparent 70%);  top: 95vh;   left: 30%; }
.orb.d { width: 480px; height: 480px; background: radial-gradient(circle, rgba(111,211,155,0.32), transparent 70%); top: 160vh;  right: 5%;  }

/* ---- common section helper ---- */
.sec {
  position: relative;
  padding: 9rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 720px) {
  .sec { padding: 5rem 1.25rem; }
}

/* ---- hero ---- */
.hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 4rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 2rem; min-height: auto; }
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 7.5vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink-1);
}
.hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, #f4d790, #b9a8ff 50%, #4d6bff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lede {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-2);
  margin: 1.6rem 0 2.2rem;
  max-width: 32rem;
  font-weight: 400;
}
.hero .actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.hero-mock {
  position: relative;
  perspective: 1400px;
}
.hero-mock .frame {
  position: relative;
  background: linear-gradient(180deg, #1c2030, #14171f);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 50px 100px -20px rgba(0,0,0,0.6),
              0 30px 60px -30px rgba(138,123,255,0.4),
              inset 0 1px 0 rgba(255,255,255,0.08);
  padding: 1.5rem 1.7rem;
  transform: rotate3d(0.4, -1, 0, 6deg) rotateX(2deg);
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: rotate3d(0.4,-1,0,6deg) rotateX(2deg) translateY(0); }
  50%      { transform: rotate3d(0.4,-1,0,6deg) rotateX(2deg) translateY(-10px); }
}
.hero-mock .head {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1.4rem;
  font-size: 0.7rem;
  color: var(--ink-faint);
}
.hero-mock .dot { width: 10px; height: 10px; border-radius: 50%; background: #2a2f42; }
.hero-mock .dot.r { background: #ff7b7b; }
.hero-mock .dot.y { background: #ecc15c; }
.hero-mock .dot.g { background: #6fd39b; }
.hero-mock .crumbs { margin-left: 0.6rem; color: var(--ink-3); font-family: var(--mono); font-size: 0.72rem; }
.hero-mock .cn {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink-1);
  margin-bottom: 0.4rem;
}
.hero-mock .ipa {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-3);
  margin-bottom: 1.2rem;
}
.hero-mock .words {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.7rem;
  align-items: flex-end;
  justify-content: flex-start;
  margin-bottom: 1.2rem;
}
.hero-mock .word {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.hero-mock .word .typed {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--ink-1);
  min-height: 1.5em;
  letter-spacing: 0.02em;
}
.hero-mock .word.cur .typed::after {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 1em;
  border-bottom: 2px solid var(--acc-1);
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: blink2 1s steps(2) infinite;
}
@keyframes blink2 { 50% { border-color: transparent; } }
.hero-mock .word .dash {
  height: 2px;
  background: var(--rule);
  border-radius: 1px;
  width: 100%;
  min-width: 1.4em;
}
.hero-mock .word.cur .dash { background: var(--acc-1); }
.hero-mock .word.done .dash { background: rgba(185,168,255,0.45); }
.hero-mock .keys {
  display: flex;
  gap: 0.5rem;
  font-size: 0.65rem;
  color: var(--ink-faint);
  font-family: var(--mono);
  border-top: 1px solid var(--rule-soft);
  padding-top: 0.7rem;
}
.hero-mock .pill {
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1px 6px;
  background: var(--bg-2);
}

/* sub-tagline strip */
.hero-strip {
  display: flex;
  gap: 2.5rem;
  margin-top: 3.5rem;
  flex-wrap: wrap;
  color: var(--ink-3);
  font-size: 0.92rem;
}
.hero-strip strong { color: var(--ink-1); font-family: var(--serif); font-weight: 500; }

/* ---- big numbers strip ---- */
.numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  padding: 4rem 1.5rem;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}
@media (max-width: 720px) {
  .numbers { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
}
.numbers .n {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-1);
  margin-bottom: 0.4rem;
}
.numbers .lbl {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---- feature sections (alternating two-column) ---- */
.feat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 880px) {
  .feat { grid-template-columns: 1fr; gap: 3rem; }
  .feat .visual { order: -1; }
}
.feat.reverse .visual { order: 2; }
@media (max-width: 880px) {
  .feat.reverse .visual { order: -1; }
}
.feat .eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acc-1);
  font-weight: 500;
  margin-bottom: 1rem;
}
.feat h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink-1);
  font-weight: 500;
  margin: 0 0 1.2rem;
}
.feat h2 em {
  font-style: italic;
  color: var(--acc-1);
}
.feat p {
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink-2);
}

/* visual cards used inside .feat */
.viz {
  position: relative;
  background: linear-gradient(180deg, var(--bg-1-solid), #0f1320);
  border: 1px solid var(--rule);
  border-radius: 24px;
  padding: 2rem 1.6rem;
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
.viz::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% -10%, rgba(138,123,255,0.18), transparent 60%);
  pointer-events: none;
}

/* feature 1: dictation flow */
.viz-flow {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.viz-flow .step-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--rule-soft);
  border-radius: 12px;
}
.viz-flow .step-num {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--acc-2), var(--acc-3));
  color: #fff; font-family: var(--mono); font-size: 0.8rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.viz-flow .step-row strong { color: var(--ink-1); display: block; }
.viz-flow .step-row small { color: var(--ink-3); font-size: 0.85rem; }

/* feature 2: heatmap demo */
.viz-heat {
  --cell: 14px;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, var(--cell));
  gap: 3px;
}
.viz-heat .c {
  width: var(--cell); height: var(--cell);
  border-radius: 3px;
  background: var(--bg-2);
}
.viz-heat .c[data-l="1"] { background: rgba(138,123,255,0.25); }
.viz-heat .c[data-l="2"] { background: rgba(138,123,255,0.45); }
.viz-heat .c[data-l="3"] { background: rgba(138,123,255,0.7); }
.viz-heat .c[data-l="4"] { background: var(--acc-1); }

/* feature 3: course covers */
.viz-covers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.viz-cover {
  aspect-ratio: 3/4;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.85rem;
  box-shadow: var(--sh-sm);
  transition: transform 0.3s;
}
.viz-cover:hover { transform: translateY(-4px); }
.viz-cover .emoji {
  position: absolute;
  top: 0.7rem; left: 0.85rem;
  font-size: 1.4rem;
  opacity: 0.9;
}
.viz-cover .title {
  font-family: var(--serif);
  font-size: 0.86rem;
  color: rgba(0,0,0,0.7);
  font-weight: 500;
  z-index: 1;
}
.viz-cover .count {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: rgba(0,0,0,0.55);
}

/* ---- "the loop" 4-step ---- */
.loop {
  position: relative;
  padding-top: 2rem;
}
.loop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  position: relative;
}
@media (max-width: 880px) {
  .loop-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .loop-grid { grid-template-columns: 1fr; }
}
.loop-step {
  position: relative;
  padding: 1.6rem 1.4rem 1.7rem;
  background: var(--bg-1-solid);
  border: 1px solid var(--rule-soft);
  border-radius: 18px;
  box-shadow: var(--sh-sm);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.loop-step:hover { transform: translateY(-3px); border-color: var(--acc-2); box-shadow: var(--sh-md); }
.loop-step .glyph {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--acc-2), var(--acc-3));
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 20px -6px rgba(77,107,255,0.5);
}
.loop-step h3 { margin: 0 0 0.4rem; }
.loop-step p { color: var(--ink-3); margin: 0; font-size: 0.95rem; line-height: 1.55; }

/* ---- audience grid (Apple "for everyone") ---- */
.aud-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 880px) { .aud-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .aud-grid { grid-template-columns: 1fr; } }
.aud {
  border-radius: 22px;
  padding: 2rem 1.7rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule-soft);
  background: var(--bg-1-solid);
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.aud::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--aud-grad);
  opacity: 0.22;
  pointer-events: none;
  transition: opacity 0.3s;
}
.aud:hover::before { opacity: 0.32; }
.aud .glyph {
  position: absolute;
  top: 1.2rem; right: 1.4rem;
  font-size: 2.4rem;
  opacity: 0.85;
}
.aud h3 { margin: 0 0 0.3rem; color: var(--ink-1); }
.aud p { color: var(--ink-2); font-size: 0.92rem; margin: 0; }

/* ---- final cta ---- */
.cta-final {
  text-align: center;
  padding: 8rem 1.5rem 6rem;
}
.cta-final h2 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--ink-1);
  margin: 0 0 1.4rem;
}
.cta-final p {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink-2);
  margin: 0 auto 2.2rem;
  max-width: 30rem;
}

/* ---- scroll fade-in ---- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}
.fade-up.in { opacity: 1; transform: none; }
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.22s; }
.fade-up.delay-3 { transition-delay: 0.34s; }
.fade-up.delay-4 { transition-delay: 0.46s; }

/* ---- "today" smart card (only when there is signal) ---- */
.today-card {
  margin: 0 auto 2rem;
  max-width: 760px;
  padding: 1.4rem 1.5rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(138,123,255,0.14), rgba(77,107,255,0.07));
  border: 1px solid rgba(185,168,255,0.25);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: var(--sh-md);
}
.today-card .small { color: var(--ink-3); font-size: 0.82rem; letter-spacing: 0.15em; text-transform: uppercase; }
.today-card h3 { margin: 0.3rem 0 0.2rem; color: var(--ink-1); font-family: var(--serif); font-weight: 500; }
.today-card p { margin: 0; color: var(--ink-3); font-size: 0.93rem; }


/* SVG icon adjustments inside aud cards / covers */
.aud .aud-icon {
  position: absolute;
  top: 1.2rem; right: 1.4rem;
  color: var(--acc-1);
  opacity: 0.9;
}
.viz-covers .cover { text-decoration: none; aspect-ratio: 3/4; min-height: 130px; }
