/* ============================================================
   inner.css — Styles for Features, How, Stories, Download pages
   ============================================================ */

/* ── Scroll progress for timeline (driven by JS) ───────────── */
:root { --timeline-progress: 0%; }

/* ── Page Hero Header ──────────────────────────────────────── */
.inner-page { padding-top: var(--nav-h); }

.page-hero {
  padding: 100px 48px 100px;
  text-align: center;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(2.8rem, 5.5vw, 6rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.05;
  margin-bottom: 22px;
}
.page-hero h1 em { font-style: italic; color: var(--accent); }
.page-hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--dim); line-height: 1.65; max-width: 600px; margin: 0 auto;
}

/* ── Feature Blocks (features.html) ───────────────────────── */
.feature-block {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  padding: 100px 80px;
  max-width: 1280px; margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.feature-block-rev .fb-content { order: 2; }
.feature-block-rev .fb-visual  { order: 1; }

.fb-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.15;
  margin-bottom: 18px;
}
.fb-content p { font-size: 1rem; color: var(--dim); line-height: 1.7; margin-bottom: 28px; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.feature-list li {
  font-size: 0.92rem; color: var(--dim); padding-left: 20px; position: relative;
}
.feature-list li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}

/* Feature Visual Card */
.fb-visual {
  display: flex; align-items: center; justify-content: center;
}
.feat-card {
  --pc: rgba(0,113,227,0.3);
  --accent: #0071e3;
  position: relative; overflow: hidden;
  background: #0a0a14; border-radius: 30px;
  padding: 52px 44px; width: 320px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 40px 80px rgba(0,0,0,0.3);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.feat-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 60px 100px rgba(0,0,0,0.4);
}
.feat-card-icon {
  width: 64px; height: 64px; border-radius: 18px;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 24px;
}
.feat-card-icon svg { width: 28px; height: 28px; }
.feat-card-label { font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.feat-card-sub { font-size: 0.82rem; color: rgba(255,255,255,0.35); }
.feat-card-pulse {
  position: absolute; bottom: -40px; right: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: var(--pc, rgba(0,113,227,0.3));
  filter: blur(40px); pointer-events: none;
  animation: pulsate 3s ease-in-out infinite;
}
@keyframes pulsate {
  0%,100%{ opacity: 0.5; transform: scale(1); }
  50%{ opacity: 1; transform: scale(1.2); }
}

/* ── Timeline Section (how.html) ───────────────────────────── */
.timeline-section {
  max-width: 800px; margin: 0 auto;
  padding: 80px 48px 100px;
  position: relative;
}
.timeline-line {
  position: absolute; left: 48px; top: 80px; bottom: 100px;
  width: 2px;
  /* Track (grey) */
  background: var(--border);
}
/* Scroll-fill line (blue) grows over the grey */
.timeline-line::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: var(--timeline-progress, 0%);
  background: var(--accent);
  border-radius: 2px;
  transition: height 0.15s linear;
}
.timeline-item {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 28px; margin-bottom: 56px; align-items: flex-start;
}
.timeline-step {
  width: 52px; height: 52px; border-radius: 50%;
  background: #e5e5ea; color: #999;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 800;
  position: relative; z-index: 1;
  flex-shrink: 0;
  box-shadow: 0 0 0 6px var(--bg);
  transition: transform 0.4s var(--ease), background 0.4s, color 0.4s, box-shadow 0.4s;
}
.timeline-item.visible .timeline-step {
  background: var(--accent); color: #fff;
  transform: scale(1.1);
  box-shadow: 0 0 0 6px var(--bg), 0 0 0 10px rgba(0,113,227,0.15);
}
.timeline-body h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; padding-top: 12px; }
.timeline-body p { font-size: 0.95rem; color: var(--dim); line-height: 1.65; }

/* ── FAQ (how.html) ────────────────────────────────────────── */
.faq-section { padding: 80px 48px; background: var(--surface); }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.faq-q {
  width: 100%; padding: 22px 0;
  text-align: left; background: none; border: none;
  font-size: 1rem; font-weight: 600; color: var(--fg);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
.faq-q::after {
  content: '+'; font-size: 1.4rem; font-weight: 300;
  color: var(--accent); transition: transform 0.3s var(--ease); flex-shrink: 0;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  font-size: 0.95rem; color: var(--dim); line-height: 1.7;
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.3s;
}
.faq-item.open .faq-a { max-height: 200px; padding-bottom: 20px; }

/* ── Stories (stories.html) ────────────────────────────────── */
.stories-grid-section {
  max-width: 1200px; margin: 0 auto;
  padding: 80px 48px 100px;
  display: flex; flex-direction: column; gap: 20px;
}
.story-card {
  background: var(--surface); border-radius: 24px;
  padding: 52px; border: 1px solid var(--border);
  position: relative;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.story-card:hover { transform: translateY(-5px); box-shadow: 0 20px 60px rgba(0,0,0,0.07); }
.big-story { background: var(--fg); }
.big-story .story-quote { color: #fff; }
.big-story .story-name { color: rgba(255,255,255,0.9); }
.big-story .story-loc { color: rgba(255,255,255,0.4); }
.stories-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.story-quote {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7; color: var(--fg); font-style: italic;
  margin-bottom: 32px;
}
.story-author { display: flex; align-items: center; gap: 14px; }
.story-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700; flex-shrink: 0;
}
.story-name { font-weight: 700; font-size: 0.92rem; }
.story-loc { font-size: 0.78rem; color: var(--dim); margin-top: 2px; }
.story-feature-tag {
  position: absolute; top: 28px; right: 28px;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 1.5px;
  color: var(--tc, var(--accent)); text-transform: uppercase;
  background: rgba(0,113,227,0.08);
  padding: 5px 12px; border-radius: 8px;
}
.big-story .story-feature-tag { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7); }

/* ── Download Page ─────────────────────────────────────────── */
.download-hero {
  padding: 100px 48px 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
}
.download-hero h1 {
  font-size: clamp(3rem, 6vw, 6.5rem);
  font-weight: 800; letter-spacing: -0.04em;
  margin-bottom: 16px;
}
.dl-card {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 24px; padding: 36px 44px;
  max-width: 700px; margin: 48px auto 24px; gap: 24px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s;
}
.dl-card:hover { box-shadow: 0 16px 60px rgba(0,0,0,0.1); }
.dl-card-left { display: flex; align-items: center; gap: 20px; text-align: left; }
.dl-app-icon {
  width: 72px; height: 72px; border-radius: 18px;
  background: var(--fg); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 800; flex-shrink: 0;
}
.dl-app-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.dl-app-meta { font-size: 0.8rem; color: var(--dim); margin-bottom: 6px; }
.dl-stars { font-size: 0.8rem; color: #ff9f0a; }
.dl-stars span { color: var(--dim); font-size: 0.75rem; }
.dl-btn { white-space: nowrap; }
.dl-note { font-size: 0.78rem; color: var(--dim); max-width: 480px; margin: 0 auto; line-height: 1.6; }

.install-steps { padding: 80px 48px; background: var(--bg); }
.install-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
.install-card {
  background: var(--surface); border-radius: 20px; padding: 40px 32px;
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease);
}
.install-card:hover { transform: translateY(-4px); }
.install-num {
  font-size: 3rem; font-weight: 800; color: var(--accent);
  opacity: 0.15; letter-spacing: -0.04em; margin-bottom: 16px;
}
.install-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.install-card p { font-size: 0.88rem; color: var(--dim); line-height: 1.65; }

.requirements-section { padding: 60px 48px 100px; }
.req-inner { max-width: 700px; margin: 0 auto; background: var(--surface); border-radius: 20px; padding: 40px; border: 1px solid var(--border); }
.req-inner h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 24px; }
.req-table { width: 100%; border-collapse: collapse; }
.req-table tr { border-bottom: 1px solid var(--border); }
.req-table tr:last-child { border-bottom: none; }
.req-table td { padding: 12px 0; font-size: 0.88rem; }
.req-table td:first-child { color: var(--dim); width: 42%; }
.req-table td:last-child { font-weight: 500; }

/* ── Responsive inner pages ────────────────────────────────── */
@media (max-width: 1024px) {
  .feature-block { grid-template-columns: 1fr; gap: 40px; padding: 70px 40px; }
  .feature-block-rev .fb-content,
  .feature-block-rev .fb-visual { order: unset; }
  .fb-visual { justify-content: flex-start; }
  .feat-card { width: 100%; max-width: 360px; }
  .install-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .page-hero { padding: 70px 20px 70px; }
  .feature-block { padding: 60px 20px; }
  .timeline-section { padding: 60px 20px; }
  .timeline-line { left: 20px; }
  .timeline-item { grid-template-columns: 60px 1fr; }
  .faq-section { padding: 60px 20px; }
  .stories-grid-section { padding: 60px 20px; }
  .stories-row { grid-template-columns: 1fr; }
  .download-hero { padding: 70px 20px 60px; }
  .dl-card { flex-direction: column; align-items: flex-start; padding: 28px; }
  .install-steps { padding: 60px 20px; }
  .install-grid { grid-template-columns: 1fr; }
  .requirements-section { padding: 40px 20px 60px; }
}
