/* Lecto landing. Same language as the app: flat glass (blur, tint, thin border) over public-domain
   art, no gradients; indigo, gold and paper. Radius rule: panels 20px, images 14px, buttons pill.
   One accent (gold) on the whole page. Theme follows the system. */

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

:root {
  --indigo: #16223f;
  --gold: #e6c06a;
  --paper: #fbf6e8;
  --gold-ink: #e6c06a;  /* gold used as text */

  --bg: #0f1729;
  --bg-2: #131d33;
  --text: #f6f1e3;
  --sub: #c3bba6;
  --faint: #8d8778;
  --glass: rgba(19, 29, 51, 0.62);
  --glass-strong: rgba(19, 29, 51, 0.82);
  --stroke: rgba(246, 241, 227, 0.14);
  --icon: invert(92%) sepia(6%) saturate(390%) hue-rotate(5deg);
  --shadow: 0 24px 60px rgba(5, 9, 20, 0.45);

  --r-panel: 20px;
  --r-img: 14px;
  --maxw: 1240px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f2e4;
    --bg-2: #efe8d6;
    --text: #16223f;
    --sub: #4a5068;
    --gold-ink: #7a5a12; /* gold text needs to be darker on paper */
    --faint: #575c70;   /* 4.5:1+ on the light background (was 4.25:1) */
    --glass: rgba(251, 246, 232, 0.72);
    --glass-strong: rgba(251, 246, 232, 0.9);
    --stroke: rgba(22, 34, 63, 0.14);
    --icon: invert(12%) sepia(30%) saturate(1500%) hue-rotate(195deg);
    --shadow: 0 24px 60px rgba(22, 34, 63, 0.18);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.08; font-weight: 750; }
h2 { font-size: clamp(30px, 3.6vw, 46px); }
h3 { font-size: 20px; letter-spacing: -0.01em; line-height: 1.2; font-weight: 700; }
p { margin: 0; }

/* glass: blur + tint + thin border; solid when transparency is reduced */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid var(--stroke);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), var(--shadow);
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: var(--glass-strong); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

.ico { width: 20px; height: 20px; flex: none; }
.ico-lg { width: 30px; height: 30px; filter: var(--icon); flex: none; }

/* ---- buttons (pill) ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 650; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn-gold { background: var(--gold); color: var(--indigo); }
.btn-gold .ico { filter: brightness(0) saturate(100%) invert(10%) sepia(35%) saturate(1800%) hue-rotate(200deg); }
.btn-gold:hover { background: #ecca7f; }
.btn-glass { color: var(--text); border: 1px solid var(--stroke); background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.btn-glass:hover { border-color: rgba(230, 192, 106, 0.6); }
.btn-sm { height: 44px; padding: 0 18px; font-size: 15px; }
.btn.is-soon { cursor: default; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

/* ---- nav ---- */
.nav {
  position: fixed; z-index: 20; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(var(--maxw), calc(100% - 28px)); height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 12px 0 20px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--stroke);
  -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; font-size: 19px; letter-spacing: -0.01em; }
.nav nav { display: flex; gap: 28px; }
.nav nav a { text-decoration: none; color: var(--sub); font-size: 15px; font-weight: 550; }
.nav nav a:hover { color: var(--text); }
@media (max-width: 760px) { .nav nav { display: none; } }

/* ---- hero: the wave, a glass panel, the tablet ---- */
.hero {
  position: relative; min-height: 100dvh;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 48px;
  padding: 120px max(28px, calc((100vw - var(--maxw)) / 2)) 64px;
  background: #0b1222 url("assets/img/wave-2400.webp") center 35% / cover no-repeat;
  overflow: hidden;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(9, 14, 27, 0.28); pointer-events: none; }
.hero > * { position: relative; }
.hero-copy { padding: 40px; border-radius: var(--r-panel); color: #f6f1e3; background: rgba(15, 23, 41, 0.66); border-color: rgba(246, 241, 227, 0.16); }
.hero-copy h1 { font-size: clamp(42px, 5.2vw, 68px); line-height: 1.02; letter-spacing: -0.035em; }
.hero-copy .lead { margin-top: 18px; font-size: 19px; color: #d9d1bd; max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .btn-glass { color: #f6f1e3; border-color: rgba(246, 241, 227, 0.24); background: rgba(15, 23, 41, 0.5); }
.hero-device { margin: 0; }
.tablet {
  border-radius: 26px; padding: 12px; background: #0c0f17;
  border: 1px solid rgba(246, 241, 227, 0.12);
  box-shadow: 0 40px 90px rgba(3, 6, 14, 0.6);
}
.tablet img { border-radius: var(--r-img); }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 104px; background-image: url("assets/img/wave-1280.webp"); }
  .hero-copy { padding: 28px; }
}

/* ---- sections ---- */
section:not(.hero) { padding: 112px max(28px, calc((100vw - var(--maxw)) / 2)); }

/* how: big screenshot left, three verbs right */
.how { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.how-shot { margin: 0; }
.how-shot img { border-radius: var(--r-img); box-shadow: var(--shadow); border: 1px solid var(--stroke); }
.how-steps ol { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 30px; }
.how-steps li { display: flex; gap: 18px; }
.how-steps li p { margin-top: 6px; color: var(--sub); max-width: 40ch; }
@media (max-width: 900px) { .how { grid-template-columns: 1fr; } .how-steps { order: -1; } }

/* reader: full-bleed screenshot with a glass card over it */
.reader { position: relative; min-height: 86dvh; display: flex; align-items: flex-end; padding-bottom: 56px !important; overflow: hidden; background: #0b0d12; }
.reader-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.reader-card { position: relative; max-width: 560px; padding: 32px; border-radius: var(--r-panel); color: #f6f1e3; background: rgba(15, 23, 41, 0.72); border-color: rgba(246, 241, 227, 0.16); }
.reader-card p { margin-top: 12px; color: #d9d1bd; }
.chips { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(246, 241, 227, 0.18); font-size: 15px; color: #efe8d5; }
.chips .ico { filter: invert(92%) sepia(6%) saturate(390%) hue-rotate(5deg); width: 18px; height: 18px; }

/* favs: text left, two overlapping shots right */
.favs { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.favs-copy p { margin-top: 18px; color: var(--sub); max-width: 46ch; }
.favs-shots { position: relative; padding-bottom: 18%; touch-action: manipulation; }
/* heart that pops over the first shot, like a double tap on a page */
.fav-burst { position: absolute; z-index: 2; left: 0; top: 0; width: 88%; aspect-ratio: 16 / 10; display: grid; place-items: center; pointer-events: none; }
.fav-burst svg { width: 24%; fill: var(--gold); opacity: 0; transform: scale(0); filter: drop-shadow(0 6px 18px rgba(8, 12, 26, 0.45)); }
.fav-burst.go svg { animation: fav-pop 1100ms cubic-bezier(0.2, 0.8, 0.3, 1) both; }
@keyframes fav-pop {
  0%   { opacity: 0; transform: scale(0); }
  14%  { opacity: 1; transform: scale(1.22); }
  26%  { transform: scale(0.92); }
  38%  { transform: scale(1.1); }
  50%  { transform: scale(1); }
  76%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.82) translateY(-14%); }
}
.plan-tag { display: inline-block; align-self: flex-start; margin-bottom: 14px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--gold-ink); border: 1px solid rgba(230, 192, 106, 0.6); }
.cell .plan-tag { margin-bottom: 0; }
.favs-shots img { border-radius: var(--r-img); border: 1px solid var(--stroke); box-shadow: var(--shadow); }
.shot-a { width: 88%; }
.shot-b { position: absolute; width: 56%; right: 0; bottom: 0; }
@media (max-width: 900px) { .favs { grid-template-columns: 1fr; } }

/* pricing: copy left, two plans right */
.pricing { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.pricing-copy p { margin-top: 18px; color: var(--sub); max-width: 46ch; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plan { padding: 28px; border-radius: var(--r-panel); background: var(--bg-2); border: 1px solid var(--stroke); }
.plan-sub { border-color: rgba(230, 192, 106, 0.55); }
.plan h3 { font-size: 17px; }
.price { margin-top: 10px; font-size: 40px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.price span { font-size: 15px; font-weight: 500; color: var(--sub); letter-spacing: 0; }
.plan ul { margin-top: 20px; padding: 0; list-style: none; display: grid; gap: 10px; }
.plan li { padding-left: 18px; position: relative; color: var(--sub); }
.plan li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }

/* more: bento, five cells */
.more h2 { margin-bottom: 40px; }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(220px, auto); gap: 18px; }
.cell { position: relative; overflow: hidden; border-radius: var(--r-panel); padding: 28px; background: var(--bg-2); border: 1px solid var(--stroke); display: flex; flex-direction: column; gap: 12px; }
.cell p { color: var(--sub); font-size: 16px; }
.cell .ico-lg { margin-bottom: 6px; }
.cell-vault { grid-row: span 2; justify-content: flex-end; color: #f6f1e3; background: #241512 url("assets/img/fuji-1600.webp") center / cover; border-color: rgba(246, 241, 227, 0.14); }
.cell-vault::before { content: ""; position: absolute; inset: 0; background: rgba(14, 10, 12, 0.5); }
.cell-vault > * { position: relative; }
.cell-vault p { color: #e2d8c3; }
.cell-vault .ico-lg { filter: invert(92%) sepia(6%) saturate(390%) hue-rotate(5deg); }
.cell-shot { padding: 0; grid-column: span 2; }
.cell-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; position: absolute; inset: 0; }
.cell-shot .cell-text { position: absolute; left: 18px; bottom: 18px; max-width: 360px; padding: 18px 20px; border-radius: 16px; background: var(--glass-strong); border: 1px solid var(--stroke); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.cell-wide { grid-column: 1 / -1; }
.cell-chapters .cell-text p { max-width: 72ch; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .cell-vault { grid-row: auto; min-height: 320px; }
  .cell-shot, .cell-wide { grid-column: auto; }
  .cell-shot { min-height: 300px; }
}

/* phone: the pair of phones beside a short text */
.phone { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; background: var(--bg-2); }
.phone-pair { display: flex; gap: 22px; justify-content: center; }
.phone-pair img { width: min(240px, 42vw); border-radius: 28px; border: 8px solid #0c0f17; box-shadow: var(--shadow); }
.phone-pair img:last-child { margin-top: 64px; }
.phone-copy p { margin-top: 16px; color: var(--sub); max-width: 40ch; }
@media (max-width: 900px) { .phone { grid-template-columns: 1fr; } }

/* privacy: the statement is the design */
.privacy { background: var(--indigo); color: #f6f1e3; text-align: center; }
.statement { font-size: clamp(30px, 4.2vw, 56px); font-weight: 720; letter-spacing: -0.03em; line-height: 1.1; max-width: 22ch; margin: 0 auto; }
.statement-sub { margin: 26px auto 0; color: #cfc6b0; max-width: 58ch; }

/* formats: two plain columns, no cards */
.formats { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; border-bottom: 1px solid var(--stroke); }
.format h3 { font-size: 24px; }
.format p { margin-top: 12px; color: var(--sub); max-width: 52ch; }
@media (max-width: 760px) { .formats { grid-template-columns: 1fr; gap: 36px; } }

/* faq */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; }
.faq-list details { border-bottom: 1px solid var(--stroke); }
.faq-list details:first-child { border-top: 1px solid var(--stroke); }
.faq-list summary { cursor: pointer; list-style: none; padding: 22px 36px 22px 0; font-weight: 650; font-size: 18px; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 26px; font-weight: 300; color: var(--gold); transition: transform 0.2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 22px; color: var(--sub); max-width: 62ch; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; gap: 24px; } }

/* download */
.download { position: relative; display: grid; place-items: center; min-height: 70dvh; background: #0b1222 url("assets/img/wave-1280.webp") center 60% / cover; }
.download::before { content: ""; position: absolute; inset: 0; background: rgba(9, 14, 27, 0.35); }
.download-card { position: relative; text-align: center; padding: 44px 48px; border-radius: var(--r-panel); color: #f6f1e3; background: rgba(15, 23, 41, 0.7); border-color: rgba(246, 241, 227, 0.16); display: grid; justify-items: center; gap: 14px; }
.download-card p { color: #d9d1bd; margin-bottom: 10px; }
@media (max-width: 520px) {
  .download-card { width: 100%; padding: 32px 20px; }
  .download-card h2 { font-size: 28px; }
  .btn { white-space: normal; text-align: center; height: auto; min-height: 52px; padding: 12px 20px; }
}

/* footer */
.footer { padding: 48px max(28px, calc((100vw - var(--maxw)) / 2)); display: grid; grid-template-columns: auto 1fr; gap: 16px 40px; align-items: start; color: var(--sub); font-size: 14px; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; font-size: 16px; }
.footer nav { justify-self: end; }
.footer nav a { color: var(--sub); }
.credits { grid-column: 1 / -1; max-width: 90ch; color: var(--faint); }
.copy { grid-column: 1 / -1; color: var(--faint); }

/* reveal on scroll: opacity and a short rise only */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0ms), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* roadmap: numbered list left, request form right */
.roadmap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.roadmap-copy > p { margin-top: 18px; color: var(--sub); max-width: 46ch; }
.coming { margin: 32px 0 0; padding: 0; list-style: none; counter-reset: c; display: grid; gap: 0; }
.coming li { counter-increment: c; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; padding: 18px 0; border-top: 1px solid var(--stroke); }
.coming li::before { content: counter(c, decimal-leading-zero); grid-row: span 2; font-weight: 600; color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.coming h3 { font-size: 18px; }
.coming p { margin-top: 4px; color: var(--sub); }
.request { padding: 28px; border-radius: var(--r-panel); display: grid; gap: 10px; }
.request > p { color: var(--sub); margin-bottom: 8px; }
.request label { font-size: 14px; font-weight: 600; margin-top: 6px; }
.request label span { font-weight: 400; color: var(--sub); }
.request textarea, .request input { width: 100%; font: inherit; color: var(--text); background: var(--bg-2); border: 1px solid var(--stroke); border-radius: 12px; padding: 12px 14px; min-height: 44px; }
.request textarea { resize: vertical; }
.request textarea:focus-visible, .request input:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.request .btn { margin-top: 10px; justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.request .btn:disabled { opacity: 0.6; cursor: progress; }
.request-status { min-height: 1.4em; font-size: 15px; color: var(--sub); }
.request-status[data-kind="ok"] { color: var(--gold-ink); }
.request-status[data-kind="error"] { color: #e8806b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (prefers-color-scheme: light) { .request-status[data-kind="error"] { color: #a33a22; } }
@media (max-width: 900px) { .roadmap { grid-template-columns: 1fr; } }
