/* ===== Lull — night theme ===== */
:root {
  --bg: #0b0d1c;
  --bg-2: #101330;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #eceaf7;
  --muted: #a3a6c7;
  --accent: #c9bfff;
  --accent-2: #8f7dff;
  --moon: #ffd9a0;
  --quiet: #3a3f73;
  --light: #8f7dff;
  --loud: #ffb38a;
  --radius: 22px;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; font-weight: 600; font-family: var(--sans); letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.2rem; line-height: 1.55; }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }

/* Ambient sky */
.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(143, 125, 255, .22), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(80, 90, 200, .16), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.sky::after {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 28% 72%, #fff, transparent),
    radial-gradient(1px 1px at 46% 12%, #fff, transparent), radial-gradient(1.5px 1.5px at 64% 40%, #fff, transparent),
    radial-gradient(1px 1px at 78% 84%, #fff, transparent), radial-gradient(1px 1px at 90% 26%, #fff, transparent),
    radial-gradient(1px 1px at 6% 90%, #fff, transparent), radial-gradient(1.5px 1.5px at 36% 46%, #fff, transparent);
}

/* Buttons & badge */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px;
  background: var(--accent); color: #17123a; font-weight: 600; text-decoration: none;
  transition: transform .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); background: #ddd6ff; }
.btn--small { padding: .5em 1.1em; font-size: .9rem; }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn--ghost:hover { background: var(--surface-2); }

.badge {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .6rem 1.2rem .6rem 1rem; border-radius: 14px;
  background: #fff; color: #000; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 10px 30px -10px rgba(201, 191, 255, .5);
}
.badge:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(201, 191, 255, .7); }
.badge__logo { width: 26px; height: 26px; }
.badge__text { display: flex; flex-direction: column; line-height: 1.1; }
.badge__text small { font-size: .68rem; letter-spacing: .02em; }
.badge__text strong { font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; }
.badge--large { padding: .75rem 1.5rem .75rem 1.2rem; }
.badge--large .badge__logo { width: 32px; height: 32px; }
.badge--large .badge__text strong { font-size: 1.5rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgba(11, 13, 28, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.logo__mark { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset -7px -3px 0 0 var(--accent); transform: rotate(-20deg); }
.logo__word { font-family: var(--serif); font-size: 1.55rem; letter-spacing: -.02em; }
.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a:not(.btn) { text-decoration: none; color: var(--muted); font-size: .95rem; transition: color .2s; }
.nav a:not(.btn):hover, .nav a[aria-current] { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: transform .3s; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11, 13, 28, .97); border-bottom: 1px solid var(--border); padding: .5rem 16px 1.25rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  .nav .btn { margin-top: 1rem; justify-content: center; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
}

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding: 4rem 0 5rem; }
.hero__cta { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; margin-top: 2rem; }
.hero__visual { position: relative; display: flex; justify-content: center; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 2.5rem; text-align: center; }
  .hero__cta { align-items: center; }
  .hero h1 br { display: none; }
}

/* Phone mockup */
.phone {
  width: 300px; aspect-ratio: 9 / 19.5; border-radius: 48px; padding: 10px;
  background: linear-gradient(145deg, #2a2d48, #12142a);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 50px 100px -30px rgba(0,0,0,.7), 0 0 120px -20px rgba(143,125,255,.35);
  animation: float 8s ease-in-out infinite;
}
.phone__screen {
  height: 100%; border-radius: 39px; padding: 52px 20px 20px; position: relative; overflow: hidden;
  background: radial-gradient(260px 200px at 50% 20%, rgba(143,125,255,.18), transparent), #0a0c1a;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.phone__island { position: absolute; top: 12px; left: 50%; translate: -50% 0; width: 92px; height: 26px; border-radius: 20px; background: #000; }
.phone__label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0; }
.phone__date { font-family: var(--serif); font-size: 1.2rem; margin: .2rem 0 1rem; }
.ring {
  --size: 150px; width: var(--size); height: var(--size); border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--value) * 1%), rgba(255,255,255,.07) 0);
  display: grid; place-items: center;
}
.ring__inner { width: calc(var(--size) - 22px); height: calc(var(--size) - 22px); border-radius: 50%; background: #0a0c1a; display: grid; place-content: center; }
.ring__inner strong { font-family: var(--serif); font-size: 2.8rem; font-weight: 400; line-height: 1; }
.ring__inner small { font-size: .68rem; color: var(--muted); margin-top: .3rem; }
.phone__delta { font-size: .78rem; color: #9fe3c0; margin: .9rem 0 1rem; }
.timeline { display: flex; align-items: flex-end; gap: 2px; height: 56px; width: 100%; }
.timeline span { flex: 1; border-radius: 2px; }
.timeline .lvl-0 { height: 18%; background: var(--quiet); }
.timeline .lvl-1 { height: 40%; background: var(--quiet); filter: brightness(1.5); }
.timeline .lvl-2 { height: 68%; background: var(--light); }
.timeline .lvl-3 { height: 100%; background: var(--loud); }
.timeline__axis { display: flex; justify-content: space-between; width: 100%; font-size: .62rem; color: var(--muted); margin-top: .35rem; }
.phone__factors { width: 100%; margin-top: 1.1rem; text-align: left; }
.phone__factors p { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 .45rem; }
.phone__factors div { display: flex; flex-wrap: wrap; gap: 5px; }
.phone__factors span { font-size: .66rem; padding: .3rem .6rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.phone__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; margin-top: auto; }
.phone__stats div { background: var(--surface-2); border-radius: 14px; padding: .6rem .3rem; display: flex; flex-direction: column; }
.phone__stats strong { font-size: .95rem; }
.phone__stats small { font-size: .6rem; color: var(--muted); }

.watch {
  position: absolute; right: max(0px, calc(50% - 250px)); bottom: 8%;
  width: 112px; height: 132px; border-radius: 34px; padding: 7px;
  background: linear-gradient(145deg, #2a2d48, #12142a);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 60px -20px rgba(0,0,0,.8);
  animation: float 8s ease-in-out -3s infinite;
}
.watch__screen { height: 100%; border-radius: 28px; background: #000; display: grid; place-content: center; justify-items: center; gap: .4rem; }
.watch__screen small { font-size: .7rem; color: var(--accent); }
.watch__pulse { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s ease-out infinite; }
@media (max-width: 600px) { .watch { display: none; } }
@media (max-width: 420px) { .phone { width: 260px; } }

@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(201,191,255,.6); } 100% { box-shadow: 0 0 0 18px rgba(201,191,255,0); } }

/* Strip */
.strip { border-block: 1px solid var(--border); background: rgba(255,255,255,.02); }
.strip__inner { display: flex; flex-wrap: wrap; justify-content: space-around; gap: .75rem 2rem; padding: 1.25rem 0; font-size: .92rem; color: var(--muted); }
.strip__inner span::before { content: '✦'; color: var(--moon); margin-right: .55rem; font-size: .75em; }

/* Sections */
.section { padding: 6rem 0 0; }
.section:last-of-type { padding-bottom: 6rem; }
.section__header { max-width: 680px; margin-bottom: 3rem; }
.section__header.center { margin-inline: auto; }
.section__header--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--3 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.feature { padding: 2rem; transition: background .3s, transform .3s; }
.feature:hover { background: var(--surface-2); transform: translateY(-3px); }
.feature__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; color: var(--accent); background: rgba(201,191,255,.1); margin-bottom: 1.25rem; }
.feature p { margin: 0; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; counter-reset: s; }
.steps li { position: relative; }
.steps__num { font-family: var(--serif); font-size: 3.5rem; line-height: 1; color: var(--accent); opacity: .9; display: block; margin-bottom: 1rem; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 2rem; } }

/* Privacy & Pro */
.privacy { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center; padding: clamp(2rem, 5vw, 4rem);
  background: radial-gradient(500px 300px at 100% 0%, rgba(255,217,160,.08), transparent), var(--surface); }
.pro { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: center; padding: clamp(2rem, 5vw, 4rem);
  border-radius: var(--radius); background: linear-gradient(135deg, rgba(143,125,255,.22), rgba(143,125,255,.04)); border: 1px solid rgba(201,191,255,.25); }
@media (max-width: 820px) { .privacy, .pro { grid-template-columns: 1fr; gap: 1.5rem; } }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.checklist--cols { grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .checklist--cols { grid-template-columns: 1fr; } }
.checklist li { display: flex; gap: .7rem; align-items: baseline; }
.checklist li::before { content: '✓'; color: var(--accent); font-weight: 600; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; padding: 1.4rem 2.5rem 1.4rem 0; font-size: 1.1rem; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: .25rem; top: 50%; translate: 0 -50%; font-size: 1.5rem; color: var(--accent); transition: rotate .3s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding-bottom: 1.4rem; margin: 0; }

/* Final CTA */
.final-cta { text-align: center; padding: clamp(3rem, 7vw, 6rem) 1.5rem; border-radius: var(--radius);
  background: radial-gradient(600px 300px at 50% 0%, rgba(143,125,255,.3), transparent 70%), var(--surface); border: 1px solid var(--border); }

/* Blog cards */
.post-card { overflow: hidden; transition: transform .3s, background .3s; }
.post-card:hover { transform: translateY(-3px); background: var(--surface-2); }
.post-card__link { text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.post-card__cover { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card__cover--placeholder { background: radial-gradient(120px 120px at 70% 30%, rgba(255,217,160,.35), transparent 60%), linear-gradient(135deg, #2b2566, #12142e); }
.post-card__body { padding: 1.5rem; }
.post-card__body .eyebrow { margin-bottom: .6rem; font-size: .7rem; }
.post-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; }
.post-card p:last-child { margin: 0; font-size: .95rem; }

.pagination { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.pagination a, .pagination span { text-decoration: none; }
.pagination .is-disabled { color: var(--muted); opacity: .4; }
.pagination__pages { display: flex; gap: .35rem; }
.pagination__pages > * { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; }
.pagination__pages a:hover { background: var(--surface-2); }
.pagination__pages [aria-current] { background: var(--accent); color: #17123a; font-weight: 600; }

/* Post */
.post { padding: 3rem 0 6rem; }
.back-link { color: var(--muted); text-decoration: none; font-size: .92rem; }
.back-link:hover { color: var(--text); }
.post__header { margin: 2rem 0 2.5rem; }
.post__header h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.post__cover { border-radius: var(--radius); margin-bottom: 2.5rem; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--border); }
.post__cover--wide { aspect-ratio: 12 / 5; }
@media (max-width: 560px) { .post__cover--wide { aspect-ratio: 16 / 9; } }
.prose { font-size: 1.1rem; line-height: 1.75; }
.prose h2 { font-size: 1.9rem; margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose a { color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 2em 0; padding: .2em 0 .2em 1.4em; border-left: 3px solid var(--accent); font-family: var(--serif); font-size: 1.35rem; color: var(--text); }
.prose img { border-radius: 16px; margin: 2em 0; }
.prose code { background: var(--surface-2); padding: .15em .4em; border-radius: 6px; font-size: .9em; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 3em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: .6em .8em; border-bottom: 1px solid var(--border); }

.cta-box { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin: 4rem 0 3rem; padding: 2rem;
  border-radius: var(--radius); background: linear-gradient(135deg, rgba(143,125,255,.2), rgba(143,125,255,.04)); border: 1px solid rgba(201,191,255,.25); }
.cta-box h2 { font-size: 1.6rem; margin-bottom: .3em; }
.cta-box p { margin: 0; }
.cta-box > div { flex: 1 1 320px; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.post-nav a { display: flex; flex-direction: column; gap: .25rem; padding: 1.2rem 1.4rem; border: 1px solid var(--border); border-radius: 16px; text-decoration: none; transition: background .2s; }
.post-nav a:hover { background: var(--surface-2); }
.post-nav__older { text-align: right; }
@media (max-width: 560px) { .post-nav { grid-template-columns: 1fr; } .post-nav__older { text-align: left; } }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 3rem 0 2rem; margin-top: 2rem; }
.site-footer__inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.site-footer__inner > div { max-width: 420px; }
.site-footer__inner .logo { margin-bottom: 1rem; }
.site-footer__links { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: flex-start; }
.site-footer__links a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.site-footer__links a:hover { color: var(--text); }
.site-footer__bottom { margin-top: 2.5rem; }

/* Reveal on scroll (enabled by JS only) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Footer link-style button */
.link-button { background: none; border: 0; padding: 0; font: inherit; font-size: .95rem; color: var(--muted); cursor: pointer; }
.link-button:hover { color: var(--text); }

/* Cookie consent */
.consent {
  position: fixed; z-index: 100; left: 16px; right: 16px; bottom: 16px; margin-inline: auto; max-width: 560px;
  display: flex; align-items: center; gap: 1rem 1.25rem; flex-wrap: wrap;
  padding: 1rem 1.25rem; border-radius: 18px; font-size: .92rem;
  background: rgba(20, 22, 46, .96); border: 1px solid var(--border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8);
}
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 260px; color: var(--muted); }
.consent a { color: var(--accent); }
.consent__actions { display: flex; gap: .5rem; }
