/* ============================================================
   Lectu — landing. "Tinta Violeta": deep violet-black, cream ink,
   fountain-pen violet accent, gilt gold. Fraunces for display,
   Literata for a literary touch, system sans for UI.
   ============================================================ */

:root {
  --bg:        #17131F;   /* Tinta violet-black */
  --bg-2:      #1E1730;   /* raised */
  --surface:   #241A33;   /* cards / widget backdrop */
  --surface-2: #2C2340;
  --ink:       #F3EFF7;
  --ink-soft:  #B7ADC6;
  --ink-mute:  #877E97;
  --line:      #362C49;
  --violet:    #B49ADF;   /* accent (dark-mode) */
  --violet-2:  #7E5CB8;
  --violet-deep:#553A70;  /* ribbon cloth */
  --gold:      #D9B44A;
  --radius:    22px;
  --maxw:      1180px;
  --ease:      cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}
h1 em, h2 em { font-style: italic; color: var(--violet); }

.muted { color: var(--ink-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 16px;
  padding: 13px 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), background .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--pill { background: var(--violet); color: #1a1326; }
.btn--pill:hover { box-shadow: 0 8px 30px rgba(180,154,223,.35); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--violet); color: var(--violet); }
.btn--block { width: 100%; justify-content: center; }
.btn--lg { padding: 16px 28px; font-size: 18px; }

.btn--app {
  background: var(--ink); color: #17131F;
  padding: 10px 22px 10px 18px;
}
.btn--app:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(243,239,247,.22); }
.btn--app .btn__apple { width: 26px; height: 26px; }
.btn--app span { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.btn--app small { font-size: 11px; font-weight: 600; opacity: .7; letter-spacing: .02em; }
.btn--app strong { font-size: 18px; font-weight: 700; }

/* ---------- official App Store badge ----------
   Apple's artwork: keep aspect ratio, clear space and the built-in border.
   Never recolor, rotate or distort — only scale height, width auto. */
.appstore-badge { display: inline-flex; align-items: center; transition: transform .18s var(--ease); }
.appstore-badge:hover { transform: translateY(-2px); }
.appstore-badge img { height: 52px; width: auto; max-width: 100%; display: block; }
.appstore-badge--lg img { height: 58px; }
.appstore-badge--block { display: flex; justify-content: center; margin-top: auto; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 18px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(23,19,31,.72);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__brand { display: flex; align-items: center; gap: 9px; margin-right: auto; }
.nav__glyph { width: 20px; height: auto; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.nav__word { font-family: "Fraunces", serif; font-weight: 600; font-size: 22px; letter-spacing: -0.01em; }
.nav__links { display: flex; gap: 26px; margin-right: 8px; }
.nav__links a { color: var(--ink-soft); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { padding: 9px 18px; font-size: 15px; }
.nav__end { display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: rgba(255,255,255,.03); }
.lang__btn {
  background: none; border: 0; cursor: pointer; color: var(--ink-mute);
  font: 600 12px/1 system-ui, sans-serif; letter-spacing: .06em;
  padding: 6px 10px; border-radius: 999px; transition: color .2s, background .2s;
}
.lang__btn:hover { color: var(--ink-soft); }
.lang__btn.is-active { color: var(--bg); background: var(--ink); }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; width: 30px; height: 24px; position: relative; }
.nav__burger span { position: absolute; left: 3px; right: 3px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav__burger span:first-child { top: 6px; } .nav__burger span:last-child { bottom: 6px; }
.nav.is-open .nav__burger span:first-child { transform: translateY(5px) rotate(45deg); }
.nav.is-open .nav__burger span:last-child { transform: translateY(-5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(48px, 8vw, 90px) clamp(16px, 4vw, 40px) 40px;
  display: grid; grid-template-columns: 1.02fr .98fr; gap: 40px; align-items: center;
}
.hero__glow {
  position: absolute; inset: -10% -20% auto auto; width: 60%; height: 120%;
  background: radial-gradient(closest-side, rgba(126,92,184,.30), transparent 70%);
  filter: blur(20px); z-index: 0; pointer-events: none;
}
.hero__grain {
  position: absolute; inset: 0; z-index: 0; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}
.hero__copy { position: relative; z-index: 2; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--violet); margin-bottom: 20px;
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
}
.hero h1 { font-size: clamp(40px, 7vw, 74px); margin-bottom: 22px; }
.hero__sub { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-soft); max-width: 30em; margin: 0 0 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__trust { margin-top: 22px; font-size: 14px; color: var(--ink-mute); }

/* hero phone stage */
.hero__stage {
  position: relative; z-index: 1; height: clamp(420px, 52vw, 560px);
}
.phone {
  border-radius: 34px; background: #0d0a14;
  padding: 8px; border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(0,0,0,.4);
  overflow: hidden;
}
.phone img, .phone video { border-radius: 27px; display: block; width: 100%; }
/* Cover Flow demo: vertical phone slot; poster shows until the mp4 is dropped in. */
.coverflow-demo__video { aspect-ratio: 1170 / 2532; object-fit: cover; background: #0d0a14; }
.hero__stage .phone { position: absolute; width: 60%; }
.phone--front { left: 18%; top: 6%; z-index: 3; animation: floaty 7s ease-in-out infinite; }
.phone--back  { left: -2%; top: 20%; z-index: 2; transform: scale(.86) rotate(-6deg); opacity: .9; }
.phone--side  { right: -4%; top: 12%; z-index: 1; transform: scale(.82) rotate(6deg); opacity: .82; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: 16px 0; }
.marquee__track { display: flex; align-items: center; gap: 30px; width: max-content; animation: slide 34s linear infinite; }
.marquee__track span { font-family: "Fraunces", serif; font-size: 22px; color: var(--ink); white-space: nowrap; }
.marquee__track i { color: var(--gold); font-style: normal; font-size: 12px; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- section scaffolding ---------- */
section { position: relative; }
.section-head { max-width: var(--maxw); margin: 0 auto; padding: clamp(60px,9vw,110px) clamp(16px,4vw,40px) 0; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.6vw, 52px); }
.kicker { display: block; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--violet); margin-bottom: 14px; }
.kicker--gold { color: var(--gold); }

/* ---------- manifesto pillars ---------- */
.manifesto { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px,4vw,40px) 20px; }
.pillars { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 46px; }
.pillar {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; transition: transform .25s var(--ease), border-color .25s;
}
.pillar:hover { transform: translateY(-4px); border-color: var(--violet-2); }
/* Unified line-icon set (same stroke, weight and family across all four). */
.pillar__icon {
  margin-bottom: 14px; height: 44px; width: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 13px; background: rgba(180,154,223,.12); border: 1px solid var(--line);
}
.pillar__icon svg {
  width: 26px; height: 26px; fill: none; stroke: var(--violet);
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.pillar h3 { font-size: 21px; margin-bottom: 8px; }
.pillar p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }

/* ---------- feature blocks ---------- */
.feature {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(56px,8vw,104px) clamp(16px,4vw,40px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,70px); align-items: center;
}
.feature--rev .feature__text { order: 2; }
.feature__text h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 16px; }
.feature__text > p { color: var(--ink-soft); font-size: 18px; margin: 0 0 22px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink); font-size: 16px; }
.ticks li::before {
  content: "✦"; position: absolute; left: 0; top: 1px; color: var(--gold); font-size: 13px;
}
.ticks li strong { color: var(--violet); font-weight: 600; }

.feature__media { position: relative; display: flex; justify-content: center; align-items: center; min-height: 420px; }
.feature__media .phone { width: min(300px, 76%); }
.feature__media .phone--peek {
  position: absolute; width: min(200px, 50%); right: 2%; bottom: -6%;
  transform: rotate(6deg); z-index: 3; box-shadow: 0 24px 60px -18px rgba(0,0,0,.75);
}
.feature--rev .feature__media .phone--peek { right: auto; left: 2%; transform: rotate(-6deg); }

/* widget float (feature 2) */
.widget-float {
  position: absolute; left: -2%; bottom: 4%; width: min(320px, 70%); z-index: 4;
  border-radius: 20px; overflow: hidden; transform: rotate(-4deg);
  box-shadow: 0 26px 60px -18px rgba(0,0,0,.8); border: 1px solid rgba(255,255,255,.08);
}

/* ---------- import band (own visual band, conversion) ---------- */
.import-band {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #201a30, #17131F);
  border-block: 1px solid var(--line); margin: 20px 0;
}
.import-band__glow {
  position: absolute; inset: auto -10% -40% auto; width: 55%; height: 120%;
  background: radial-gradient(closest-side, rgba(217,180,74,.14), transparent 70%); filter: blur(12px);
}
.import-band__inner { position: relative; z-index: 1; }

/* ---------- spotlight (wrapped) ---------- */
.spotlight {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #201636, #17131F);
  border-block: 1px solid var(--line);
  margin-top: 20px;
}
.spotlight__glow { position: absolute; inset: auto auto -40% -10%; width: 60%; height: 120%;
  background: radial-gradient(closest-side, rgba(217,180,74,.16), transparent 70%); filter: blur(10px); }
.spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  max-width: var(--maxw); margin-inline: auto; padding: clamp(56px,8vw,96px) clamp(16px,4vw,40px); }
.spotlight__text { position: relative; z-index: 2; }
.spotlight__text h2 { font-size: clamp(32px,5vw,56px); margin-bottom: 18px; }
.spotlight__text p { color: var(--ink-soft); font-size: 18px; max-width: 30em; margin: 0 0 26px; }
.spotlight__media { display: flex; justify-content: center; position: relative; z-index: 2; }
.phone--tall { width: min(300px, 80%); }

/* ---------- gallery ---------- */
.gallery { padding-bottom: 20px; }
.gallery__scroll {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 40px clamp(16px,4vw,40px); margin-top: 8px;
  scrollbar-width: none;
}
.gallery__scroll::-webkit-scrollbar { display: none; }
.gallery__item { flex: 0 0 auto; width: 230px; scroll-snap-align: center; }
.gallery__item img {
  border-radius: 26px; border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 20px 44px -18px rgba(0,0,0,.7);
}
.gallery__hint { text-align: center; color: var(--ink-mute); font-size: 14px; margin: 0; }

/* ---------- privacy ---------- */
.privacy { max-width: var(--maxw); margin: 0 auto; padding: clamp(56px,8vw,100px) clamp(16px,4vw,40px); }
.privacy__card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(30px,5vw,54px); text-align: center; max-width: 780px; margin: 0 auto;
}
.privacy__icon { font-size: 34px; }
.privacy__card h2 { font-size: clamp(26px,3.6vw,40px); margin: 12px 0 14px; }
.privacy__card p { color: var(--ink-soft); font-size: 18px; margin: 0 auto 22px; max-width: 40em; }
.privacy__card p strong { color: var(--ink); }
.privacy__tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.privacy__tags span { font-size: 14px; color: var(--violet); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; }

/* ---------- pricing ---------- */
.pricing { max-width: var(--maxw); margin: 0 auto; padding-bottom: 20px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 860px; margin: 46px auto 0; padding: 0 clamp(16px,4vw,40px); }
.plan {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: 26px; padding: 32px 28px; display: flex; flex-direction: column;
}
.plan--pro { border-color: var(--violet-2); background: linear-gradient(180deg, #241A33, #1d1530); box-shadow: 0 20px 60px -26px rgba(126,92,184,.6); }
.plan__badge {
  position: absolute; top: -13px; left: 28px; background: var(--gold); color: #2a2010;
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.plan h3 { font-size: 24px; margin-bottom: 4px; }
.plan__price { font-family: "Fraunces", serif; font-size: 34px; margin: 4px 0 2px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.plan__price span { font-family: system-ui, sans-serif; font-size: 14px; font-weight: 600; letter-spacing: .01em; color: var(--gold); text-transform: uppercase; }
.plan__tag { color: var(--ink-soft); margin: 0 0 20px; font-size: 15px; }
.ticks--plan { margin-bottom: 26px; }
.ticks--plan li { font-size: 15.5px; color: var(--ink-soft); }
/* Pro's headline perk: brighter text + a "most loved" mini-label. */
.tick--pro { color: var(--ink) !important; font-weight: 600; }
.tick__hot {
  display: inline-block; margin-left: 6px; vertical-align: middle;
  font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #2a2010; background: var(--gold); padding: 2px 7px; border-radius: 999px;
}
.plan .btn { margin-top: auto; }
.pricing__note { text-align: center; color: var(--ink-mute); font-size: 14px; margin: 22px auto 0; }

/* ---------- faq ---------- */
.faq { max-width: 780px; margin: 0 auto; padding-bottom: 40px; }
.faq__list { margin-top: 40px; padding: 0 clamp(16px,4vw,40px); display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px;
  transition: border-color .2s;
}
.faq details[open] { border-color: var(--violet-2); }
.faq summary {
  list-style: none; cursor: pointer; font-weight: 600; font-size: 17px;
  padding: 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--violet); font-size: 22px; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--ink-soft); }

/* ---------- final cta ---------- */
.cta {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(70px,10vw,130px) clamp(16px,4vw,40px);
  background: var(--bg-2); border-top: 1px solid var(--line);
}
.cta__glow { position: absolute; inset: -30% 20% auto 20%; height: 120%;
  background: radial-gradient(closest-side, rgba(126,92,184,.28), transparent 70%); filter: blur(20px); }
.cta__icon { width: 92px; height: 92px; border-radius: 22px; margin: 0 auto 26px; position: relative; z-index: 2;
  box-shadow: 0 18px 50px -14px rgba(0,0,0,.7); }
.cta h2 { position: relative; z-index: 2; font-size: clamp(32px,5.5vw,60px); margin-bottom: 16px; }
.cta > p { position: relative; z-index: 2; color: var(--ink-soft); font-size: 19px; margin: 0 auto 30px; max-width: 32em; }
.cta .btn { position: relative; z-index: 2; }
.cta .appstore-badge { margin-top: 6px; }
.cta__mini { position: relative; z-index: 2; color: var(--ink-mute); font-size: 14px; margin-top: 40px; }

/* ---------- footer ---------- */
.footer {
  max-width: var(--maxw); margin: 0 auto;
  padding: 40px clamp(16px,4vw,40px); display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
}
.footer__brand { display: flex; align-items: center; gap: 8px; font-family: "Fraunces", serif; font-size: 20px; margin-right: auto; }
.footer__glyph { width: 16px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.footer__links a { color: var(--ink-soft); font-size: 15px; }
.footer__links a:hover { color: var(--ink); }
.footer__legal { width: 100%; color: var(--ink-mute); font-size: 13px; margin: 8px 0 0; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(23,19,31,.97); backdrop-filter: blur(16px);
    padding: 12px clamp(16px,4vw,40px) 20px; border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav__links a { padding: 10px 0; font-size: 17px; }
  .nav__cta { display: none; }

  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  /* Clip the floating phones to the stage so they can't push page width (item 10). */
  .hero__stage { height: 78vw; max-height: 560px; order: 2; overflow: hidden; border-radius: 26px; }
  .hero__glow { inset: -6% -30% auto auto; }

  .pillars { grid-template-columns: 1fr 1fr; }

  .feature { grid-template-columns: 1fr; gap: 30px; }
  .feature--rev .feature__text { order: 0; }
  .feature__media { order: 2; min-height: 0; }

  .spotlight { grid-template-columns: 1fr; text-align: center; }
  .spotlight__text p { margin-inline: auto; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  /* Item 2: keep the four pillars as a 2×2 grid on mobile. */
  .pillars { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pillar { padding: 20px 16px; }
  .pillar h3 { font-size: 18px; }
  .pillar p { font-size: 14px; }

  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .hero__actions .appstore-badge { justify-content: center; }
  .gallery__item { width: 68vw; }
  .footer { flex-direction: column; align-items: flex-start; }

  /* Item 4: two pricing cards side by side on mobile, Pro never subordinate. */
  .plans { grid-template-columns: 1fr 1fr; gap: 10px; }
  .plan { padding: 22px 13px; min-width: 0; }
  .plan h3 { font-size: 19px; }
  .plan__price { font-size: 25px; }
  .plan__price span { font-size: 11px; }
  .plan__tag { font-size: 13px; }
  .plan__badge { left: 13px; font-size: 10px; padding: 4px 9px; }
  .ticks--plan li { font-size: 13px; padding-left: 22px; }
  .tick__hot { display: inline-block; margin: 4px 0 0; }
  .appstore-badge--block img { height: 40px; }
}
