/* StudyLens AI — one stylesheet for the whole site.
 *
 * The colours are the app's own tokens, so the site and the product read as
 * one thing: indigo #2A2A6E, deep #1B1B52, lavender #C4B5FD, soft #EDEBF7.
 *
 * No web fonts, no frameworks, no JavaScript. The legal pages have to render
 * for anyone who opens them — a reviewer's crawler included — and every
 * dependency is one more way that can fail.
 */

:root {
  --indigo: #2a2a6e;
  --indigo-deep: #1b1b52;
  --indigo-soft: #edebf7;
  --lavender: #c4b5fd;
  --ink: #16161d;
  --ink-2: #44444f;
  --ink-3: #6b6b78;
  --line: #e4e4ec;
  --canvas: #ffffff;
  --canvas-2: #f7f7fb;
  --radius: 14px;
  --measure: 68ch;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

/* A single gutter everywhere, so the header, the body and the footer line up. */
.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ──────────────────────────────────────────────────────────── */

header {
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}

header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
  color: var(--ink);
  text-decoration: none;
}

.brand img { width: 32px; height: 32px; border-radius: 8px; display: block; }

nav { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }

nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

nav a:hover, nav a:focus { color: var(--indigo); text-decoration: underline; }

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero {
  background: var(--indigo-deep);
  background-image: radial-gradient(
    120% 100% at 50% 0%, #2f2f7d 0%, var(--indigo-deep) 62%);
  color: #fff;
  padding: 72px 0 80px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 6vw, 46px);
  line-height: 1.1;
  letter-spacing: -1.2px;
  max-width: 18ch;
}

.hero p {
  margin: 0;
  font-size: clamp(17px, 2.4vw, 19px);
  color: #d7d6ea;
  max-width: 54ch;
}

.hero .note { margin-top: 26px; font-size: 15px; color: #a9a8c6; }

/* ── Content ─────────────────────────────────────────────────────────── */

main { padding: 56px 0 72px; }

.page-title { margin: 0 0 6px; font-size: 32px; letter-spacing: -0.8px; }

.updated { margin: 0 0 34px; color: var(--ink-3); font-size: 15px; }

/* Legal and support pages are read, not scanned, so they get a measure. */
.prose { max-width: var(--measure); }

.prose h2 {
  margin: 40px 0 10px;
  font-size: 21px;
  letter-spacing: -0.3px;
}

.prose h3 { margin: 26px 0 8px; font-size: 17px; }

.prose p, .prose li { color: var(--ink-2); }

.prose ul { padding-left: 22px; }

.prose li { margin: 6px 0; }

.prose a { color: var(--indigo); }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 15px;
}

.prose th, .prose td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}

.prose th { color: var(--ink); font-weight: 600; background: var(--canvas-2); }

/* ── Feature grid (home only) ────────────────────────────────────────── */

.features {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.features li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--canvas);
}

.features h3 { margin: 0 0 6px; font-size: 17px; }

.features p { margin: 0; font-size: 15px; color: var(--ink-3); }

/* ── Callout ─────────────────────────────────────────────────────────── */

.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--indigo);
  background: var(--indigo-soft);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 26px 0;
}

.callout p { margin: 0; color: var(--indigo-deep); }

.callout p + p { margin-top: 10px; }

/* ── Footer ──────────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--line);
  background: var(--canvas-2);
  padding: 30px 0 44px;
  font-size: 15px;
  color: var(--ink-3);
}

footer nav { margin: 0 0 12px; gap: 20px; }

footer p { margin: 0; }

/* ── Small screens ───────────────────────────────────────────────────── */

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 52px 0 58px; }
  main { padding: 40px 0 56px; }
  header .wrap { min-height: 64px; padding-top: 12px; padding-bottom: 12px; }
  nav { margin-left: 0; width: 100%; gap: 16px; }
}

/* ── Hero layout ─────────────────────────────────────────────────────── */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--lavender);
}

.hero .lede {
  margin: 0;
  font-size: clamp(17px, 2.4vw, 19px);
  color: #d7d6ea;
  max-width: 52ch;
}

.hero .hero-note {
  margin: 26px 0 0;
  font-size: 15px;
  color: #a9a8c6;
  max-width: 46ch;
}

/* Two phones, the back one peeking out from behind the front one. Static:
   nothing here moves, because a landing page that animates on scroll is a
   landing page that stutters on a cheap phone. */
.hero-shots { position: relative; height: 568px; }

.phone {
  border-radius: 26px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
}

.phone img { display: block; width: 100%; height: auto; }

/* 230px wide is 485px tall at this aspect, so both fit inside the box
   above with the back one's offset and rotation accounted for. */
.hero-shots .phone { position: absolute; width: 230px; }

.phone-front { left: 110px; top: 0; z-index: 2; }

.phone-back {
  left: 0;
  top: 58px;
  transform: rotate(-5deg);
  opacity: 0.92;
  z-index: 1;
}

/* ── Bands and section titles ────────────────────────────────────────── */

.band { background: var(--canvas-2); border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line); padding: 64px 0; margin: 0 0 8px; }

.section-title {
  margin: 0 0 32px;
  font-size: clamp(24px, 4vw, 30px);
  letter-spacing: -0.7px;
}

/* ── Steps ───────────────────────────────────────────────────────────── */

.steps {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--indigo);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.steps h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.2px; }

.steps p { margin: 0; color: var(--ink-3); font-size: 15px; }

/* ── Alternating feature rows ────────────────────────────────────────── */

.rows { padding: 72px 20px 8px; }

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: 56px;
  align-items: center;
  padding: 40px 0 56px;
  border-bottom: 1px solid var(--line);
}

.row:last-child { border-bottom: 0; }

.row-reverse .row-copy { order: 2; }

.row-reverse .row-shot { order: 1; }

.row-copy .eyebrow { color: var(--indigo); }

.row-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 3.4vw, 27px);
  letter-spacing: -0.6px;
  max-width: 20ch;
}

.row-copy p { margin: 0 0 12px; color: var(--ink-2); max-width: 46ch; }

.row-copy .aside {
  margin-top: 16px;
  padding-left: 14px;
  border-left: 2px solid var(--line);
  font-size: 15px;
  color: var(--ink-3);
}

.row-shot .phone {
  width: 260px;
  margin: 0 auto;
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(26, 26, 60, 0.16);
}

/* ── Small screens ───────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-shots { height: 430px; margin: 0 auto; width: 320px; }
  .hero-shots .phone { width: 208px; }
  .phone-front { left: 78px; }

  .row, .row-reverse { grid-template-columns: 1fr; gap: 28px; }
  .row-reverse .row-copy, .row-reverse .row-shot { order: initial; }
  .row-copy h2, .row-copy p { max-width: none; }
  .rows { padding-top: 48px; }
  .band { padding: 48px 0; }
}

/* ── Store buttons ───────────────────────────────────────────────────── */

/* Deliberately not links and not buttons: nothing exists to open yet. They
   announce, they do not invite a click, so they get no hover and no pointer.
   When the listings go live, replace each with the official badge from
   Google's and Apple's brand pages — those artworks have rules, and a
   hand-drawn imitation is not allowed to stand in for them. */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 0;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 10px 18px 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  /* Not yet available, and said so to a screen reader as well as to the eye. */
  cursor: default;
}

.store-glyph {
  display: inline-flex;
  color: var(--lavender);
  flex: none;
}

.store-text { display: flex; flex-direction: column; line-height: 1.15; }

.store-text small {
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #a9a8c6;
}

.store-text strong {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

@media (max-width: 400px) {
  .stores { gap: 10px; }
  .store { padding: 9px 14px 9px 12px; }
  .store-text strong { font-size: 15px; }
}
