/* FolliVue promotional site
   Palette: deep charcoal, warm ivory, muted gold. Classy, editorial, calm. */

:root {
  --ink: #191714;
  --ink-soft: #2a2620;
  --ivory: #f7f3ec;
  --ivory-dim: #e9e2d5;
  --gold: #c2a05a;
  --gold-bright: #d8b96e;
  --muted: #8d857a;
  --line: rgba(194, 160, 90, 0.25);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }
.center { text-align: center; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; }

h1 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); letter-spacing: -0.01em; }
h1 em { color: var(--gold-bright); font-style: italic; }

h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); margin-bottom: 20px; }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 600;
}

.lede { font-size: 1.13rem; color: var(--ivory-dim); max-width: 560px; }

/* --- Nav --- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(25, 23, 20, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 1.45rem; font-weight: 700;
  color: var(--ivory); text-decoration: none;
}
.logo-mark { width: 36px; height: 36px; display: block; border-radius: 50%; }
.logo-word { white-space: nowrap; }
.logo-word span { color: var(--gold-bright); }

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: var(--ivory-dim); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold-bright); }

/* --- Buttons --- */

.btn {
  display: inline-block; padding: 11px 26px; border-radius: 3px;
  font-weight: 600; font-size: 0.93rem; text-decoration: none;
  letter-spacing: 0.02em; transition: all 0.22s ease; border: 1px solid transparent;
}
.btn-lg { padding: 15px 34px; font-size: 1rem; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-bright); transform: translateY(-1px); }
.btn-ghost { border-color: var(--gold); color: var(--gold-bright); }
.btn-ghost:hover { background: rgba(194, 160, 90, 0.12); }

/* --- Hero --- */

.hero {
  padding: 96px 0 110px;
  background:
    radial-gradient(ellipse 900px 500px at 75% -10%, rgba(194, 160, 90, 0.14), transparent),
    var(--ink);
  overflow-x: clip;
}

.hero-inner {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 64px; align-items: center;
}

.hero h1 { margin-bottom: 26px; }
.hero .lede { margin-bottom: 38px; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.center-actions { justify-content: center; margin-top: 34px; }

.hero-stats {
  display: flex; gap: 48px; margin-top: 56px;
  padding-top: 32px; border-top: 1px solid var(--line);
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong {
  font-family: var(--serif); font-size: 1.7rem; color: var(--gold-bright);
}
.hero-stats span { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }

/* --- Device mockup --- */

.device {
  --device-w: 300px;
  position: relative;
  width: calc(var(--device-w) + 14px);
  padding: 8px 7px;
  justify-self: center;
  transform: perspective(1800px) rotateY(-7deg) rotateX(2.5deg);
  filter:
    drop-shadow(0 36px 50px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 80px rgba(194, 160, 90, 0.1));
}

.device-frame {
  position: relative;
  width: var(--device-w);
  border-radius: 54px;
  padding: 2.5px;
  background:
    linear-gradient(145deg,
      #e4e4ea 0%,
      #8b8b94 12%,
      #3a3a42 32%,
      #1c1c20 55%,
      #4a4a52 82%,
      #c8c8d0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -2px 2px rgba(0, 0, 0, 0.55);
}

.device-bezel {
  border-radius: 52px;
  padding: 9px;
  background: #050506;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.device-screen {
  position: relative;
  border-radius: 43px;
  overflow: hidden;
  background: #070b09;
  display: flex;
  flex-direction: column;
  aspect-ratio: 9 / 19.5;
}

.device-screen::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.08) 0%, transparent 28%);
  z-index: 6;
}

.device-btn {
  position: absolute;
  width: 4px;
  background: linear-gradient(#9a9aa2, #3e3e46 40%, #1c1c20);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 1px 2px rgba(0, 0, 0, 0.45);
  z-index: 3;
}
.device-btn-silent {
  left: 3px; top: 118px; height: 26px;
  border-radius: 2px 0 0 2px;
}
.device-btn-vol-up {
  left: 3px; top: 162px; height: 50px;
  border-radius: 2px 0 0 2px;
}
.device-btn-vol-down {
  left: 3px; top: 220px; height: 50px;
  border-radius: 2px 0 0 2px;
}
.device-btn-power {
  right: 3px; top: 188px; height: 84px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(#9a9aa2, #3e3e46 40%, #1c1c20);
}

.device-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 102px;
  height: 29px;
  background: #000;
  border-radius: 20px;
  z-index: 5;
  box-shadow: 0 0 0 1px #0d0d0d;
}
.device-island-cam {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2a4a6a, #0b1220 62%);
  box-shadow: inset 0 0 0 1.5px #0a0a0a;
}

.phone-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 26px 6px;
  height: 48px;
  position: relative;
  z-index: 4;
  color: #f2f2f2;
}
.phone-time {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  padding-left: 4px;
}
.phone-sys {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #f2f2f2;
}

.phone-header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1a2a23;
  padding: 8px 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.phone-back { color: #cfd8d0; flex-shrink: 0; margin-right: 2px; }
.phone-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold); color: var(--ink);
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.72rem; flex-shrink: 0;
}
.phone-identity { flex: 1; min-width: 0; }
.phone-name { font-weight: 600; font-size: 0.88rem; line-height: 1.2; }
.phone-status { font-size: 0.68rem; color: #7fa88f; }
.phone-actions {
  display: flex; align-items: center; gap: 14px;
  color: #cfd8d0; margin-left: 6px;
}

.phone-chat {
  flex: 1;
  min-height: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(194, 160, 90, 0.05), transparent 50%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 11px),
    #0c1310;
  padding: 12px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  overscroll-behavior: contain;
}
.phone-chat::-webkit-scrollbar { display: none; }

.bubble {
  max-width: 84%; border-radius: 10px;
  font-size: 0.74rem; line-height: 1.4; position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  opacity: 0;
  transform: translateY(16px);
  max-height: 0;
  padding: 0 7px;
  margin: 0;
  pointer-events: none;
  transition:
    opacity 0.38s ease,
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    max-height 0.45s ease,
    padding 0.35s ease,
    margin 0.35s ease;
}
.bubble.is-on {
  opacity: 1;
  transform: none;
  max-height: 720px;
  padding: 6px 7px 5px;
  margin-bottom: 8px;
  pointer-events: auto;
}
.bubble-out { align-self: flex-end; background: #1c4a38; border-top-right-radius: 3px; }
.bubble-in { align-self: flex-start; background: #1c2621; border-top-left-radius: 3px; }

.chat-media-wrap { position: relative; }
.chat-media {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  object-position: center;
  border-radius: 7px;
  display: block;
  margin-bottom: 5px;
  background: #111;
}
.media-badge {
  position: absolute;
  left: 7px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 2px 6px;
  border-radius: 4px;
}
.bubble-caption { display: block; color: #cfd8d0; font-size: 0.7rem; }
.bubble-time {
  display: block; text-align: right; font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.45); margin-top: 3px;
}
.ticks { color: #53bdeb; letter-spacing: -0.08em; margin-left: 3px; }

.typing-dots {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px 10px;
  min-width: 46px;
}
.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8aa396;
  animation: typing-dot 1.15s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: 0.16s; }
.typing-dots span:nth-child(3) { animation-delay: 0.32s; }
@keyframes typing-dot {
  0%, 80%, 100% { opacity: 0.28; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

.phone-composer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 6px;
  background: #121a16;
}
.composer-plus {
  width: 28px; height: 28px; border-radius: 50%;
  background: #2a3832; color: #cfd8d0;
  display: grid; place-items: center;
  font-size: 1.1rem; font-weight: 500; line-height: 1;
}
.composer-field {
  flex: 1; background: #1c2621; color: #7a8a82;
  border-radius: 18px; padding: 7px 12px; font-size: 0.74rem;
}
.composer-mic {
  width: 28px; height: 28px; border-radius: 50%;
  background: #1c4a38; color: #e8f0ea;
  display: grid; place-items: center;
}

.device-home {
  width: 108px; height: 4px;
  background: #f2f2f2;
  border-radius: 4px;
  margin: 6px auto 8px;
  opacity: 0.85;
}

/* --- Quote strip --- */

.strip { background: var(--gold); }
.strip-inner { padding: 34px 24px; }
.strip p {
  font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  color: var(--ink); text-align: center; font-weight: 500;
}

/* --- Sections --- */

.section { padding: 110px 0; }
.section-dark { background: var(--ink-soft); }

.section h2.center { max-width: 720px; margin-left: auto; margin-right: auto; }

/* --- Steps --- */

.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 40px; margin-top: 70px;
}
.step { border-top: 1px solid var(--line); padding-top: 28px; }
.step-num {
  font-family: var(--serif); font-size: 1rem; color: var(--gold);
  letter-spacing: 0.15em; margin-bottom: 16px;
}
.step h3 { font-size: 1.35rem; margin-bottom: 12px; }
.step p { color: var(--ivory-dim); font-size: 0.95rem; }

/* --- Benefits --- */

.benefits {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 26px; margin-top: 70px;
}
.benefit {
  background: rgba(25, 23, 20, 0.55);
  border: 1px solid rgba(194, 160, 90, 0.14);
  border-radius: 6px; padding: 32px 28px;
  transition: border-color 0.25s, transform 0.25s;
}
.benefit:hover { border-color: rgba(194, 160, 90, 0.45); transform: translateY(-3px); }
.benefit h3 { font-size: 1.18rem; margin-bottom: 10px; color: var(--gold-bright); }
.benefit p { color: var(--ivory-dim); font-size: 0.92rem; }

/* --- Pricing --- */

.plans {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 26px; margin-top: 70px; align-items: stretch;
  width: 100%;
}
.plan {
  border: 1px solid var(--line); border-radius: 6px;
  padding: 40px 32px; display: flex; flex-direction: column;
  background: var(--ink-soft);
}
.plan-featured {
  border-color: var(--gold); position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--ink);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 5px 14px; border-radius: 2px;
}
.plan h3 { font-size: 1.3rem; margin-bottom: 8px; }
.price {
  font-family: var(--serif); font-size: 2.3rem; color: var(--gold-bright);
  margin-bottom: 24px;
}
.price span { font-size: 0.95rem; color: var(--muted); font-family: var(--sans); margin-left: 6px; }
.plan ul { list-style: none; margin-bottom: 32px; flex: 1; }
.plan li {
  padding: 9px 0 9px 26px; font-size: 0.92rem; color: var(--ivory-dim);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05); position: relative;
}
.plan li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }
.plan .btn { text-align: center; }

/* --- FAQ --- */

#faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
  margin-top: 26px;
}
#faq details:first-of-type { margin-top: 60px; }
#faq summary {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600;
  cursor: pointer; padding: 14px 36px 14px 0;
  list-style: none; position: relative;
}
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 12px;
  color: var(--gold); font-size: 1.5rem; font-family: var(--sans);
  transition: transform 0.25s;
}
#faq details[open] summary::after { transform: rotate(45deg); }
#faq details p { color: var(--ivory-dim); font-size: 0.95rem; padding: 0 0 20px; max-width: 660px; }

/* --- CTA --- */

.cta {
  padding: 120px 0;
  background:
    radial-gradient(ellipse 700px 380px at 50% 120%, rgba(194, 160, 90, 0.16), transparent),
    var(--ink);
}
.cta .lede { margin: 0 auto; }

/* --- Footer --- */

.footer { border-top: 1px solid var(--line); padding: 56px 0; background: #14120f; }
.footer-inner { display: grid; gap: 22px; }
.footer-tag { color: var(--muted); font-size: 0.88rem; margin-top: 6px; }
.disclaimer { color: var(--muted); font-size: 0.78rem; max-width: 720px; line-height: 1.7; }
.copyright { color: var(--muted); font-size: 0.78rem; }

/* --- Reveal animation --- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .phone-chat .bubble {
    opacity: 1;
    transform: none;
    max-height: none;
    padding: 6px 7px 5px;
    margin-bottom: 8px;
    pointer-events: auto;
    transition: none;
  }
  .typing-dots span { animation: none; }
  .phone-chat .bubble:has(.typing-dots) { display: none; }
}

/* --- Responsive --- */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .device { justify-self: center; --device-w: 280px; transform: none; }
  .steps, .benefits, .plans { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero { padding: 64px 0 80px; }
  .section { padding: 80px 0; }
  .hero-stats { gap: 32px; flex-wrap: wrap; }
}
