/* =========================================================
   LucidRead — Product Landing Page
   Ultra-minimalist · high-contrast (WCAG AAA) · serene
   Reuses the :root variables from style.css
   ========================================================= */

/* ---------- Layout helpers ---------- */
.app-section {
  padding: 96px 0;
}
.app-section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.app-section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 14px;
}
.app-section-head p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

/* ---------- Hero ---------- */
.app-hero {
  padding: 88px 0 72px;
  overflow: hidden;
}
.app-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.app-hero-copy h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin: 0 0 22px;
}
.app-hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--muted);
  line-height: 1.6;
  max-width: 30ch;
  margin: 0 0 36px;
}
.app-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* App Store button */
.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--text);
  color: var(--bg);
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 600;
  border: 1px solid var(--text);
  transition: transform .15s ease, opacity .2s ease;
}
.btn-appstore:hover { transform: translateY(-2px); opacity: .92; }
.btn-appstore svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.btn-appstore small {
  display: block;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .04em;
  opacity: .85;
  line-height: 1;
}
.btn-appstore strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.2;
}

/* ---------- Hero art: phone + soundwaves ---------- */
.app-hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 460px;
}
.phone {
  position: relative;
  width: 248px;
  height: 508px;
  background: var(--text);
  border-radius: 46px;
  padding: 12px;
  box-shadow: var(--shadow);
  z-index: 2;
}
.phone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 22px;
  background: var(--bg);
  border-radius: 0 0 16px 16px;
  z-index: 3;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 36px;
  padding: 54px 22px 26px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.reader-h {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.reader-book {
  font-size: .82rem;
  color: var(--muted);
  margin: 4px 0 18px;
}
.reader-text {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}
.reader-text .hl {
  color: var(--text);
  font-weight: 600;
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 0 3px;
}
.reader-wave {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 46px;
}
.reader-wave span {
  flex: 1;
  background: var(--accent);
  border-radius: 4px;
  opacity: .85;
  animation: wave 1.1s ease-in-out infinite;
}
.reader-wave span:nth-child(1) { animation-delay: 0s; }
.reader-wave span:nth-child(2) { animation-delay: .12s; }
.reader-wave span:nth-child(3) { animation-delay: .24s; }
.reader-wave span:nth-child(4) { animation-delay: .36s; }
.reader-wave span:nth-child(5) { animation-delay: .48s; }
.reader-wave span:nth-child(6) { animation-delay: .6s; }
.reader-wave span:nth-child(7) { animation-delay: .72s; }
@keyframes wave {
  0%, 100% { height: 18%; }
  50% { height: 100%; }
}

/* soft soundwave rings behind the phone */
.soundwave {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}
.soundwave .ring {
  position: absolute;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: .12;
  animation: pulse 4s ease-out infinite;
}
.soundwave .ring:nth-child(1) { width: 300px; height: 300px; animation-delay: 0s; }
.soundwave .ring:nth-child(2) { width: 420px; height: 420px; animation-delay: 1s; }
.soundwave .ring:nth-child(3) { width: 540px; height: 540px; animation-delay: 2s; }
@keyframes pulse {
  0% { transform: scale(.85); opacity: .18; }
  100% { transform: scale(1.15); opacity: 0; }
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform .18s ease, border-color .18s ease;
}
.feature:hover { transform: translateY(-4px); border-color: var(--accent); }
.feature-ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.feature-ico svg { width: 28px; height: 28px; stroke: var(--accent); fill: none; stroke-width: 1.8; }
.feature h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.feature p { color: var(--muted); margin: 0; font-size: .98rem; line-height: 1.6; }

/* ---------- Gesture showcase ---------- */
.app-gestures { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.gesture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.gesture {
  text-align: center;
  padding: 30px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}
.gesture-ico {
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
}
.gesture-ico svg { width: 44px; height: 44px; stroke: var(--accent); fill: none; stroke-width: 1.7; }
.gesture h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 8px; }
.gesture p { color: var(--muted); margin: 0; font-size: .95rem; line-height: 1.55; }

/* ---------- Testimonial ---------- */
.app-quote { text-align: center; }
.quote-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 52px 44px;
}
.quote-card p {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}
.quote-card footer {
  color: var(--muted);
  font-size: .95rem;
  font-weight: 500;
}

/* ---------- Pricing ---------- */
.pricing-card {
  max-width: 460px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 40px 34px;
  text-align: center;
}
.pricing-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.pricing-card h3 { font-size: 1.5rem; font-weight: 800; margin: 0 0 20px; }
.pricing-card ul { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; }
.pricing-card li {
  padding: 11px 0 11px 30px;
  position: relative;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  font-size: .98rem;
}
.pricing-card li:last-child { border-bottom: 0; }
.pricing-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}
.pricing-trial {
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 22px;
}
.pricing-card .btn-appstore { width: 100%; justify-content: center; }

/* ---------- Footer (landing) ---------- */
.app-footer .footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.app-footer .footer-brand { font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; }
.app-footer .footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.app-footer .footer-links a { color: var(--muted); font-size: .92rem; }
.app-footer .footer-links a:hover { color: var(--text); }
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .82rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
}
.footer-badge svg { width: 18px; height: 18px; fill: currentColor; }
.footer-copy { color: var(--muted); font-size: .82rem; margin: 28px 0 0; text-align: center; }

/* ---------- Transfer (传书) section ---------- */
.app-transfer .app-section-head { margin-bottom: 36px; }
.transfer-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  display: grid;
  gap: 26px;
}
.transfer-step { }
.transfer-step-locked { opacity: .55; }
.transfer-step-h {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -.01em;
}
.transfer-field label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.transfer-row { display: flex; gap: 10px; flex-wrap: wrap; }
.transfer-row input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.transfer-row input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.btn-transfer {
  padding: 13px 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: .98rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, opacity .2s ease;
  white-space: nowrap;
}
.btn-transfer:hover { border-color: var(--accent); }
.btn-transfer:disabled { opacity: .5; cursor: not-allowed; }
.btn-transfer-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-transfer-primary:hover { opacity: .92; }
.upload-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}
.upload-actions .btn-transfer { margin-top: 0; }
.upload-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 180px;
  min-width: 160px;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 700;
}
.upload-progress[hidden] { display: none; }
.upload-progress progress {
  width: 100%;
  height: 10px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in srgb, var(--border) 70%, transparent);
}
.upload-progress progress::-webkit-progress-bar {
  background: color-mix(in srgb, var(--border) 70%, transparent);
  border-radius: 999px;
}
.upload-progress progress::-webkit-progress-value {
  background: var(--accent);
  border-radius: 999px;
}
.upload-progress progress::-moz-progress-bar {
  background: var(--accent);
  border-radius: 999px;
}
.transfer-hint {
  color: var(--muted);
  font-size: .88rem;
  margin: 10px 0 0;
  line-height: 1.5;
}
.transfer-rate {
  color: var(--muted);
  font-size: .82rem;
  margin: 6px 0 0;
}
.transfer-rate #rate-remaining { color: var(--accent); font-weight: 600; }

.transfer-status { font-size: .92rem; margin: 12px 0 0; min-height: 1.2em; }
.transfer-status.ok { color: #18a058; }
.transfer-status.error { color: #d03050; }
.transfer-status.info { color: var(--muted); }

/* dropzone */
.dropzone {
  border: 1.5px dashed var(--border);
  border-radius: 16px;
  background: var(--bg);
  padding: 34px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.dropzone:hover, .dropzone:focus-visible { border-color: var(--accent); outline: none; }
.dropzone.drag { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--bg)); }
.dropzone.disabled {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}
.dropzone-inner svg { width: 38px; height: 38px; fill: none; stroke: var(--accent); stroke-width: 1.8; }
.dropzone-text { font-weight: 600; color: var(--text); margin: 12px 0 4px; }
.dropzone-sub { color: var(--muted); font-size: .86rem; margin: 0; }

.file-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
.file-name { font-weight: 600; color: var(--text); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { color: var(--muted); font-size: .85rem; }
.file-remove {
  border: none; background: transparent; color: var(--muted);
  font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 0 4px;
}
.file-remove:hover { color: #d03050; }

/* recent */
.transfer-recent h3, .transfer-why h3 { font-size: 1.05rem; font-weight: 800; margin: 0 0 14px; }
.recent-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.recent-item {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface);
}
.recent-item .recent-name { font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-item .recent-meta { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.recent-item.ok { border-left: 3px solid #18a058; }
.recent-item.fail { border-left: 3px solid #d03050; }
.recent-empty { color: var(--muted); font-size: .9rem; margin: 0; }

@media (max-width: 640px) {
  .upload-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .upload-progress {
    flex-basis: auto;
    min-width: 0;
  }
}

/* why */
.transfer-why { margin-top: 40px; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why-grid h4 { font-size: 1rem; font-weight: 700; margin: 0 0 8px; color: var(--text); }
.why-grid p { color: var(--muted); font-size: .92rem; line-height: 1.55; margin: 0; }

/* service status */
.transfer-service {
  margin-top: 28px; text-align: center;
  color: var(--muted); font-size: .9rem;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.status-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #18a058; box-shadow: 0 0 0 4px color-mix(in srgb, #18a058 22%, transparent);
}

/* ---------- Transfer page hero (standalone tab) ---------- */
.transfer-hero {
  text-align: center;
  padding: 60px 0 8px;
}
.transfer-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--text);
}
.transfer-hero p {
  max-width: 660px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* active nav tab (current page) */
.nav-links a.active { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .transfer-panel { padding: 22px; }
  .why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .app-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .app-hero-art { min-height: 420px; order: -1; }
  .feature-grid, .gesture-grid { grid-template-columns: 1fr; }
  .app-section { padding: 72px 0; }
}
@media (max-width: 760px) {
  .nav-links { gap: 14px; }
}
