/* ============================================================
   LectureGlyph — one hue, white air.
   The whole page lives in a single blue family built around the
   brand color #96ADE9: light blue for washes and marks, deep
   blue for accents and buttons, navy (not black) for text and
   dark bands. White does the breathing.
   Display: Fraunces · Body: Newsreader · UI: system sans
   ============================================================ */

:root {
  color-scheme: light;
  --bg: #fbfcfe;
  --surface: #ffffff;
  --ink: #1d2536;            /* deep navy, reads as "dark" not "black" */
  --ink-soft: #5a6478;
  --line: rgba(29, 37, 54, 0.12);
  --line-faint: rgba(29, 37, 54, 0.06);
  --blue: #96ade9;           /* the brand color */
  --blue-deep: #3e5ba9;      /* same hue at text/button strength */
  --blue-wash: #eef2fb;      /* same hue as a quiet band tint */
  --navy: #1e2740;           /* dark bands — blue family, not black */
  /* The two product colors, lifted straight from the app's timeline:
     pause-point rhombi are .systemRed, the playhead is cyan. Used ONLY
     in the hero timeline so it stays a faithful miniature of the app. */
  --marker-red: #ff3b30;
  --playhead-cyan: #2bd4e0;
  --serif-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --serif-text: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif-text);
  font-size: 17.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(150, 173, 233, 0.35);
}

img, iframe { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--serif-display);
  font-weight: 560;
  letter-spacing: -0.012em;
  margin-top: 0;
}

p { margin-top: 0; }

a { color: inherit; }

/* ---------- shared diamond motif (the pause point) ---------- */

.brand-diamond,
.eyebrow-diamond,
.contact-diamond {
  display: inline-block;
  background: var(--blue);
  transform: rotate(45deg);
}

/* ============================ header ============================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 56px);
  background: rgba(251, 252, 254, 0.88);
  border-bottom: 1px solid var(--line-faint);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-diamond {
  width: 11px;
  height: 11px;
  border-radius: 2px;
}

.brand-name {
  font-family: var(--serif-display);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: 0.005em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 32px);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.site-nav a {
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover {
  color: var(--blue-deep);
  border-bottom-color: var(--blue);
}

/* ============================ hero ============================ */

.hero {
  padding: clamp(72px, 10vw, 128px) clamp(20px, 5vw, 56px) 0;
  text-align: center;
  /* One soft halo of the brand color behind the headline — no texture. */
  background:
    radial-gradient(ellipse 920px 460px at 50% 16%, rgba(150, 173, 233, 0.2), transparent 70%),
    var(--bg);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 30px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.eyebrow-diamond { width: 7px; height: 7px; border-radius: 1px; }

h1 {
  max-width: 17ch;
  margin: 0 auto 26px;
  font-size: clamp(2.7rem, 6.5vw, 4.9rem);
  font-weight: 540;
  line-height: 1.05;
}

h1 em {
  font-style: italic;
  font-weight: 480;
  color: var(--blue-deep);
}

.hero-lede {
  max-width: 56ch;
  margin: 0 auto 36px;
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 64px;
}

/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
              background-color 0.18s ease, border-color 0.18s ease;
}

.button:hover { transform: translateY(-1px); }

.button.primary {
  background: var(--blue-deep);
  color: #fff;
  box-shadow: 0 10px 26px rgba(62, 91, 169, 0.3);
}

.button.primary:hover { background: #34509b; }

.button.ghost {
  border-color: var(--line);
  color: var(--ink);
}

.button.ghost:hover { border-color: var(--blue-deep); color: var(--blue-deep); }

.button.paper {
  background: var(--surface);
  color: var(--navy);
  box-shadow: 0 10px 26px rgba(10, 16, 34, 0.35);
}

.button.paper:hover { background: #f4f7fe; }

/* ---------- decorative reveal timeline ---------- */

.reveal-line {
  position: relative;
  max-width: 680px;
  height: 44px;
  margin: 0 auto 72px;
}

.reveal-rule {
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: var(--line);
}

/* Pause-point rhombi: red-filled with no outline, exactly like the app's
   `rhombus.fill` markers. Unpassed markers wait faded; the playhead
   brightens each one as it sweeps by. */
.reveal-line .rl-diamond {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 1.5px;
  background: var(--marker-red);
  opacity: 0.3;
  transform: translate(-50%, -50%) rotate(45deg);
  transition: opacity 0.45s ease, box-shadow 0.45s ease;
}

.reveal-line .rl-diamond.lit {
  opacity: 1;
  box-shadow: 0 0 10px rgba(255, 59, 48, 0.4);
}

/* Playhead: a downward cyan triangle on a 2px line — the app's exact
   timeline idiom (TimelineStripView: triangle tip on the track, line
   running down through it, cyan as the complement of the red markers). */
/* Moved with transform (not `left`) and no filter — both are needed to
   keep the sweep on the compositor; animating `left` with a drop-shadow
   filter leaves smear trails above the ruler. JS drives the translateX. */
.reveal-playhead {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 12px;
  transform: translateX(-6px);
  will-change: transform;
}

.reveal-playhead::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 9px solid var(--playhead-cyan);
}

.reveal-playhead::after {
  content: "";
  position: absolute;
  top: 7px;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: var(--playhead-cyan);
}

/* ---------- hero device ---------- */

.hero-device {
  max-width: 960px;
  margin: 0 auto;
  padding-bottom: clamp(56px, 8vw, 96px);
}

.device-frame {
  padding: clamp(10px, 1.6vw, 18px);
  background: #141a2b;
  border-radius: clamp(18px, 2.6vw, 30px);
  border: 1px solid rgba(10, 16, 34, 0.55);
  box-shadow:
    0 40px 90px rgba(30, 39, 64, 0.28),
    0 12px 30px rgba(30, 39, 64, 0.16);
}

.device-frame img {
  width: 100%;
  border-radius: clamp(10px, 1.6vw, 16px);
}

.hero-device figcaption {
  margin-top: 18px;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ============================ quote ============================ */

.quote-band {
  padding: clamp(72px, 10vw, 128px) clamp(20px, 5vw, 56px);
  background: var(--blue-wash);
  text-align: center;
}

.quote-band blockquote {
  max-width: 26ch;
  margin: 0 auto;
}

.quote-band p {
  margin-bottom: 22px;
  font-family: var(--serif-display);
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  font-weight: 480;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.quote-band em { color: var(--blue-deep); }

.quote-band cite {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ============================ bands ============================ */

.band {
  padding: clamp(72px, 10vw, 120px) clamp(20px, 5vw, 56px);
}

.band.canvas {
  background: var(--navy);
  color: #f2f5fc;
}

.band.ruled {
  background: var(--blue-wash);
}

.section-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.kicker {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-deep);
}

.canvas .kicker { color: var(--blue); }

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.1;
}

.section-heading { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }

.section-lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.canvas .section-lede { color: rgba(242, 245, 252, 0.7); }

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}

.steps article {
  padding: clamp(26px, 3.4vw, 38px);
  background: var(--surface);
  border: 1px solid var(--line-faint);
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(30, 39, 64, 0.06);
}

.step-numeral {
  display: block;
  margin-bottom: 14px;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 2.6rem;
  font-weight: 460;
  line-height: 1;
  color: var(--blue-deep);
}

.steps h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.steps p {
  margin: 0;
  font-size: 1.02rem;
  color: var(--ink-soft);
}

/* ---------- demo video ---------- */

.video-frame {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(150, 173, 233, 0.22);
  border-radius: 16px;
  background: #0c1120;
  box-shadow: 0 30px 70px rgba(5, 9, 22, 0.5);
}

.video-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- why ---------- */

.why-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(280px, 1.15fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.why-grid .section-heading { margin-bottom: 0; }

.why-copy p {
  margin-bottom: 1.2em;
  font-size: 1.12rem;
  color: var(--ink-soft);
}

.why-copy p:last-child { margin-bottom: 0; }

.why-copy em {
  color: var(--ink);
}

/* ---------- inside the app ---------- */

.timeline-feature {
  margin: 0 0 clamp(28px, 4vw, 44px);
}

.timeline-feature img {
  width: 100%;
  border: 1px solid var(--line-faint);
  border-radius: 12px;
  background: #141a2b;
  box-shadow: 0 18px 44px rgba(30, 39, 64, 0.12);
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3.4vw, 40px);
}

.screens-grid figure,
.timeline-feature { margin-left: 0; margin-right: 0; }

figure { margin: 0; }

.screen-frame {
  overflow: hidden;
  border: 1px solid var(--line-faint);
  border-radius: 12px;
  background: #141a2b;
  box-shadow: 0 18px 44px rgba(30, 39, 64, 0.12);
}

.screen-frame img { width: 100%; }

figcaption {
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

figcaption strong {
  color: var(--ink);
  font-weight: 650;
}

/* ---------- manual ---------- */

.manual-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.manual-grid .section-heading { margin-bottom: 0; }

.manual-copy p {
  margin-bottom: 26px;
  font-size: 1.1rem;
  color: rgba(242, 245, 252, 0.72);
}

/* ---------- contact ---------- */

.contact { background: var(--bg); text-align: center; }

.contact-inner { max-width: 620px; }

.contact-diamond {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  margin-bottom: 26px;
}

.contact p {
  margin-bottom: 30px;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

/* ---------- footer ---------- */

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 56px);
  border-top: 1px solid var(--line-faint);
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.site-footer p { margin: 0; }

/* ============================ motion ============================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================ responsive ============================ */

@media (max-width: 880px) {
  .steps,
  .screens-grid,
  .why-grid,
  .manual-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar { display: none; }
}

@media (max-width: 520px) {
  .hero-actions { flex-direction: column; align-items: stretch; }

  .reveal-line { max-width: 86vw; }

  .site-footer { flex-direction: column; }
}
