/* ENJOYMED landing — Notion-like document styling.
   Tokens: warm off-white bg, near-black ink, ONE warm grey family,
   hairline borders, one accent (#007AFF). Radius rule: actions 8px,
   frames/cards 10px, phone frame 24px (device shape). No gradients,
   no glassmorphism; shadows only as a whisper on screenshot frames. */

@font-face {
  font-family: "Alexandria";
  src: url("fonts/Alexandria.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --ink: #1f1f1f;
  --ink-soft: #37352f;
  --muted: #6f6e69;
  --line: #e9e9e7;
  --line-strong: #dededb;
  --accent: #007aff;
  --accent-dark: #0066d6;
  --accent-soft: #eef5ff;
  --radius: 8px;
  --radius-lg: 10px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans Arabic", Tahoma, sans-serif;
  --font-head: "Alexandria", var(--font-body);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, .wordmark {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.3;
  margin: 0;
}

p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
}
.header-in {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; display: block; }
.wordmark { font-size: 19px; letter-spacing: 0.2px; }
.main-nav {
  display: flex;
  gap: 22px;
  margin-inline-start: 12px;
}
.main-nav a {
  color: var(--ink-soft);
  font-size: 15px;
}
.main-nav a:hover { color: var(--ink); text-decoration: none; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline-start: auto;
}
.lang-link { color: var(--muted); font-size: 14.5px; white-space: nowrap; }
.mobile-menu { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.2;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 160ms ease-out, border-color 160ms ease-out,
    color 160ms ease-out;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--surface); border-color: #c9c9c5; }
.btn-lg { padding: 13px 24px; font-size: 16.5px; }
.btn[aria-disabled="true"] {
  background: var(--surface);
  color: var(--muted);
  border-color: var(--line-strong);
  cursor: default;
  font-weight: 500;
}

/* ---------- sections ---------- */
section { padding: 88px 0; }
section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.eyebrow {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--muted);
  margin-bottom: 12px;
}
.sec-title { font-size: 30px; font-weight: 700; margin-bottom: 14px; }
.sec-lead { font-size: 18px; color: var(--muted); max-width: 640px; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 80px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { font-size: 42px; font-weight: 700; margin-bottom: 18px; }
.hero .lead { font-size: 19px; color: var(--muted); margin-bottom: 28px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 14.5px; color: var(--muted); }
.hero-visual { margin: 0; }
.phone-frame {
  max-width: 340px;
  margin-inline: auto;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.06);
}
.phone-frame img { display: block; width: 100%; height: auto; }
figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- audience paths ---------- */
.paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}
.path { padding: 32px; }
.path + .path { border-inline-start: 1px solid var(--line); }
.path h3 { font-size: 21px; margin-bottom: 10px; }
.path p { color: var(--muted); font-size: 16px; margin-bottom: 16px; }
.path a { font-weight: 600; font-size: 15.5px; }

/* ---------- feature rows ---------- */
.features { margin-top: 40px; border-top: 1px solid var(--line); }
.feature {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 8px 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.feature h3 { font-size: 17.5px; font-weight: 600; }
.feature p { color: var(--muted); font-size: 16px; max-width: 620px; }

/* ---------- inline shot (lecturer) ---------- */
.shot-frame {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.05);
}
.shot-frame img { display: block; width: 100%; height: auto; }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split figure { margin: 0; }

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 48px;
  margin-top: 36px;
}
.step {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.step .num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
  padding-top: 3px;
  min-width: 28px;
}
.step h3 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 15.5px; }
.steps-head { margin-top: 48px; }
.steps-head:first-of-type { margin-top: 8px; }
.steps-head h3 { font-size: 20px; }

/* ---------- screenshots strip ---------- */
.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.shots figure { margin: 0; }
.shots .frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  height: 380px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.shots .frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

/* ---------- FAQ ---------- */
.faq { margin-top: 32px; border-top: 1px solid var(--line); max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 22px;
  color: var(--muted);
  line-height: 1;
}
.faq details[open ] summary::after { content: "−"; }
.faq details p {
  color: var(--muted);
  font-size: 16px;
  padding-bottom: 22px;
  max-width: 680px;
}

/* ---------- download ---------- */
.download-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
section.alt .download-box { background: var(--surface); }
.store-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.store-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 8px 16px;
  background: var(--surface);
  color: var(--muted);
  line-height: 1.35;
}
.store-badge b { color: var(--ink); font-size: 16px; }
.store-badge span { font-size: 12.5px; }

/* ---------- final CTA ---------- */
.final-cta { text-align: center; }
.final-cta h2 { font-size: 30px; margin-bottom: 14px; }
.final-cta p { color: var(--muted); margin-bottom: 26px; }
.final-cta .hero-ctas { justify-content: center; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 40px 0 48px;
  font-size: 14.5px;
  color: var(--muted);
}
.footer-in {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-soft); }

/* ---------- legal documents ---------- */
.doc-wrap { max-width: 780px; margin-inline: auto; padding-inline: 24px; }
.doc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px 52px;
  margin: 40px 0 64px;
}
.doc h1 { font-size: 32px; margin-bottom: 8px; }
.doc .effective { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.doc-toc {
  border-block: 1px solid var(--line);
  padding: 16px 0;
  margin-bottom: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 15px;
}
.doc-part { margin-top: 44px; }
.doc-part:first-of-type { margin-top: 0; }
.doc-part > h2 {
  font-size: 23px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.doc .intro { margin-bottom: 20px; }
.doc section { padding: 0; margin-bottom: 26px; }
.doc section h3 { font-size: 17.5px; margin-bottom: 8px; }
.doc section p { color: var(--ink-soft); font-size: 16px; margin-bottom: 10px; }
.doc [dir="ltr"] { text-align: left; }

/* ---------- reveal motion (subtle, reduced-motion safe) ---------- */
.rv { opacity: 0; transform: translateY(8px); }
.rv.in {
  opacity: 1;
  transform: none;
  transition: opacity 180ms ease-out, transform 180ms ease-out;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; }
  .rv.in { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 48px 0 56px; }
  .hero h1 { font-size: 33px; }
  section { padding: 60px 0; }
  .shots { grid-template-columns: 1fr; }
  .shots .frame { height: 340px; }
  .download-box { grid-template-columns: 1fr; padding: 28px; }
  .doc { padding: 32px 22px; }
}
@media (max-width: 760px) {
  .main-nav { display: none; }
  .mobile-menu { display: block; position: relative; }
  .mobile-menu summary {
    list-style: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    padding: 8px 4px;
  }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu .menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline-end: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 10px 18px;
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
  }
  .mobile-menu .menu-panel a {
    display: block;
    padding: 9px 0;
    color: var(--ink-soft);
    font-size: 15.5px;
  }
  .header-actions .btn { padding: 8px 12px; font-size: 14.5px; }
  /* Space is tight on phones: the ghost login button moves into the
     menu panel (it is the panel's first item); Create stays visible. */
  .header-actions .btn-ghost { display: none; }
  .lang-link { display: none; }
  .header-in { gap: 12px; }
}
@media (max-width: 640px) {
  .paths { grid-template-columns: 1fr; }
  .path + .path { border-inline-start: none; border-top: 1px solid var(--line); }
  .feature { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }
  .steps { grid-template-columns: 1fr; }
  body { font-size: 16px; }
  .sec-title { font-size: 25px; }
}
