/* Landing (home page only, loaded after content.css): the design validated on the canvas.
   Desktop look >= 1024px, phone look <= 600px. Reuses the night theme tokens of content.css. */

body.landing { background: linear-gradient(180deg, var(--bg-top) 0, var(--bg-bottom) 900px) var(--bg-bottom); }
.landing main { overflow-x: clip; }
.lp-wrap { max-width: 1248px; margin: 0 auto; padding: 0 24px; }

/* Shared pieces */
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .14); }
.btn--ghost:hover { background: var(--card); }
.lp-tag { margin: 0; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--lilac); }
.lp-head { margin: 0 0 64px; text-align: center; }
.lp-head h2, .lp-section h2 { margin: 12px 0 0; font-size: 44px; line-height: 1.1; font-weight: 900; letter-spacing: -.02em; }
.lp-lead { margin: 0; color: var(--ink-2); font-weight: 600; }
.lp-card { border-radius: 26px; background: var(--card); border: 1px solid var(--border); }
.lp-section { padding: 56px 0; }
.lp-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* App Store badge */
.store { display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 24px 0 20px; border-radius: 16px; background: #fff; color: #000; text-align: left; text-decoration: none; }
a.store:hover { color: #000; background: #ECE6FA; }
.store small { display: block; font-size: 12px; font-weight: 600; line-height: 1; }
.store b { display: block; font-size: 21px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.store--soon { cursor: default; }

/* Phone frame around a screenshot */
.lp-phone { position: relative; border-radius: 52px; padding: 10px; background: #05060C; box-shadow: 0 40px 80px rgba(0, 0, 0, .55), 0 0 0 2px rgba(255, 255, 255, .08); }
.lp-phone img { width: 100%; border-radius: 42px; }

/* Hero */
.lp-hero { position: relative; padding: 0; }
.lp-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.lp-hero__text { max-width: 600px; padding: 40px 0; }
.lp-pill { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 7px 14px; border-radius: 999px; background: rgba(184, 140, 255, .14); color: #D3B8FF; font-size: 14px; font-weight: 800; }
.lp-pill img { width: 20px; height: 20px; }
.lp-hero h1 { margin: 22px 0 0; font-size: clamp(48px, 4.6vw, 66px); line-height: 1.04; font-weight: 900; letter-spacing: -.025em; }
.lp-hero h1 span { color: var(--lilac); }
.lp-hero .lp-lead { margin-top: 24px; font-size: 21px; line-height: 1.5; }
.lp-hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 34px; scroll-margin-top: 96px; }
.lp-hero__how { min-height: 60px; padding: 0 26px; }
.lp-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 14px; font-weight: 700; color: var(--muted); }
.lp-trust li > span { margin-right: 6px; color: var(--green); }

/* Hero visual: coordinates taken from the 1440 px mockup, in % of the stage so it scales. */
.lp-stage { position: relative; isolation: isolate; padding-top: 46px; }
.lp-stage::before { content: ""; position: absolute; z-index: -1; left: 16.7%; top: -4%; width: 106.7%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(124, 77, 219, .45) 0%, rgba(124, 77, 219, 0) 70%); pointer-events: none; }
.lp-stage__phone { width: 58.3%; margin-left: 26.7%; }
.lp-stage__watch { position: absolute; left: 71.7%; top: 50.8%; width: 33.3%; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .55)); }
.lp-float { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 18px; background: rgba(33, 38, 66, .92); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); font-size: 14px; font-weight: 700; line-height: 1.3; text-align: left; white-space: nowrap; animation: lp-bob 6s ease-in-out infinite; }
.lp-float img { flex: none; width: 34px; height: 34px; object-fit: contain; }
.lp-float small { display: block; font-size: 12px; color: var(--muted); font-weight: 700; }
.lp-float--wake { left: 8.3%; top: 22.7%; }
.lp-float--warm { left: 4.2%; top: 57.1%; animation-delay: -2s; }
.lp-float--tip { right: -12px; top: 16.3%; width: 230px; align-items: flex-start; white-space: normal; line-height: 1.35; animation-delay: -4s; }
.lp-float--tip img { width: 40px; height: 40px; }
@media (min-width: 1360px) { .lp-float--tip { right: auto; left: 76.7%; } }
@keyframes lp-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* How it works */
#how { padding-top: 16px; scroll-margin-top: 64px; }
#features { scroll-margin-top: 64px; }
.lp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.lp-step { display: flex; flex-direction: column; gap: 12px; padding: 26px; }
.lp-step__n { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 17px; background: rgba(184, 140, 255, .16); color: #D3B8FF; font-weight: 900; }
.lp-step h3 { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 800; }
.lp-step p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); font-weight: 600; }

/* Features: alternating rows */
.lp-features { display: flex; flex-direction: column; gap: 48px; }
.lp-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 100px; align-items: center; }
.lp-feature__media { position: relative; isolation: isolate; display: flex; justify-content: center; }
.lp-feature__media::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 600px; max-width: 160%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(124, 77, 219, .45) 0%, rgba(124, 77, 219, 0) 70%); opacity: .6; pointer-events: none; }
.lp-feature__media .lp-phone { width: 320px; max-width: 100%; }
.lp-feature__watch { width: 360px; max-width: 100%; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .5)); }
.lp-feature__text { max-width: 540px; }
.lp-feature__text .lp-tag { margin-bottom: 12px; }
.lp-feature h3 { margin: 0 0 12px; font-size: 38px; line-height: 1.12; font-weight: 900; letter-spacing: -.015em; }
.lp-feature__text > p:not(.lp-tag) { margin: 0; font-size: 19px; line-height: 1.55; color: var(--ink-2); font-weight: 600; }
.lp-feature--flip .lp-feature__media { order: 2; }
.lp-bullets { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.lp-bullets li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; font-weight: 700; line-height: 1.4; }
.lp-bullets li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 7px; border-radius: 4px; background: var(--lilac); }

/* Who it is for */
.lp-problem { display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.lp-problem img { flex: none; width: 56px; height: 56px; object-fit: contain; }
.lp-problem h3 { margin: 0; font-size: 19px; line-height: 1.3; font-weight: 800; }
.lp-problem p { margin: 12px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); font-weight: 600; }

/* Privacy band */
.lp-privacy { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 70px; align-items: center; padding: 56px 70px; border-radius: 32px; background: linear-gradient(135deg, rgba(124, 77, 219, .42), rgba(124, 77, 219, .12)); border: 1px solid rgba(184, 140, 255, .32); }
.lp-privacy h2 { margin: 0; font-size: 38px; }
.lp-privacy__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 16px; line-height: 1.5; font-weight: 600; color: rgba(235, 235, 245, .85); }
.lp-privacy__list b { display: block; margin-bottom: 6px; font-size: 17px; color: var(--ink); }

/* Guides */
.lp-guides { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 24px; }
.lp-guides__head h2 { font-size: 40px; }
.lp-guides__cards { grid-column: 1 / -1; gap: 20px; margin-top: 40px; }
.lp-guide { display: flex; flex-direction: column; gap: 8px; padding: 22px; color: var(--ink); text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.lp-guide:hover { transform: translateY(-2px); border-color: rgba(184, 140, 255, .4); color: var(--ink); }
.lp-guide__kicker { font-size: 12px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; color: var(--lilac); }
.lp-guide h3 { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 800; }
.lp-guide__summary { font-size: 14px; line-height: 1.45; color: var(--ink-2); font-weight: 600; }

/* FAQ */
.lp-faq { max-width: 868px; }
.lp-faq h2 { margin: 0 0 30px; font-size: 40px; text-align: center; }
.lp-faq__item { margin-top: 12px; }
.lp-faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 26px; font-size: 17px; font-weight: 800; cursor: pointer; list-style: none; }
.lp-faq__item summary::-webkit-details-marker { display: none; }
.lp-faq__item summary::after { content: "+"; flex: none; font-size: 24px; line-height: 1; font-weight: 700; color: var(--lilac); transition: transform .2s ease; }
.lp-faq__item[open] summary::after { transform: rotate(45deg); }
.lp-faq__item p { margin: 0; padding: 0 22px 20px; font-size: 16px; line-height: 1.6; font-weight: 600; color: var(--ink-2); }

/* Final CTA */
.lp-final { position: relative; isolation: isolate; text-align: center; }
.lp-final::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -20px; width: 600px; max-width: 140%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(124, 77, 219, .45) 0%, rgba(124, 77, 219, 0) 70%); pointer-events: none; }
.lp-final__wristy { width: 160px; height: auto; margin: 64px auto 20px; }
.lp-final h2 { margin: 0; font-size: 52px; line-height: 1.08; }
.lp-final .lp-lead { max-width: 680px; margin: 18px auto 0; font-size: 19px; line-height: 1.5; }
.lp-final__cta { margin-top: 30px; }
.lp-trust--plain { justify-content: center; margin-top: 20px; }
.landing .site-footer { margin-top: 40px; }

/* Between phone and desktop */
@media (max-width: 1023px) {
  .lp-hero__grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .lp-hero__text { padding: 48px 0 8px; }
  .lp-hero__ctas, .lp-trust { justify-content: center; }
  .lp-stage { width: 100%; max-width: 560px; }
  .lp-feature { gap: 48px; }
  .lp-feature h3 { font-size: 32px; }
  .lp-feature__text > p:not(.lp-tag) { font-size: 18px; }
  .lp-privacy { grid-template-columns: 140px minmax(0, 1fr); gap: 40px; padding: 44px; }
  .lp-privacy__list { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 760px) {
  .lp-steps, .lp-grid3 { grid-template-columns: 1fr; gap: 14px; }
  .lp-feature, .lp-feature--flip { grid-template-columns: 1fr; gap: 40px; }
  .lp-feature__media, .lp-feature--flip .lp-feature__media { order: 2; }
  .lp-feature__text { max-width: none; }
  .lp-problem { flex-direction: row; align-items: center; gap: 16px; padding: 18px; }
  .lp-problem img { width: 52px; height: 52px; }
}

/* Phone */
@media (max-width: 600px) {
  .lp-wrap { padding: 0 16px; }
  .lp-section { padding: 36px 0; }
  .lp-head { margin-bottom: 28px; }
  .lp-head h2, .lp-section h2 { margin-top: 10px; font-size: 30px; line-height: 1.12; }
  .lp-hide-sm { display: none; }
  #for-title { font-size: 28px; }
  .lp-hero__text { padding: 36px 0 0; }
  .lp-pill { font-size: 13px; }
  .lp-pill img { width: 18px; height: 18px; }
  .lp-hero h1 { margin-top: 18px; font-size: 40px; line-height: 1.06; }
  .lp-hero .lp-lead { margin-top: 16px; font-size: 17px; }
  .lp-hero__ctas { margin-top: 24px; }
  .lp-hero__how { display: none; }
  .lp-trust { gap: 6px 12px; margin-top: 18px; font-size: 13px; }
  .lp-stage { max-width: 358px; padding-top: 40px; }
  .lp-stage::before { left: -30%; top: 0; width: 160%; }
  .lp-stage__phone { width: 280px; max-width: 78%; margin: 0 auto; }
  .lp-stage__watch, .lp-float--tip { display: none; }
  .lp-float { padding: 8px 12px 8px 8px; font-size: 13px; }
  .lp-float img { width: 28px; height: 28px; }
  .lp-float--wake { left: -4px; top: 21%; }
  .lp-float--warm { left: auto; right: -4px; top: 57%; }
  #how { padding-top: 48px; }
  .lp-step { padding: 20px; }
  .lp-step h3 { font-size: 18px; }
  .lp-step p { font-size: 15px; }
  .lp-features { gap: 56px; }
  .lp-feature { gap: 32px; }
  .lp-feature h3 { margin-bottom: 10px; font-size: 27px; line-height: 1.15; }
  .lp-feature__text .lp-tag { margin-bottom: 10px; }
  .lp-feature__text > p:not(.lp-tag) { font-size: 16px; }
  .lp-bullets { display: none; }
  .lp-feature__media .lp-phone { width: 260px; }
  .lp-feature__watch { width: 200px; }
  .lp-feature__media::before { width: 510px; }
  .lp-problem h3 { font-size: 17px; }
  .lp-problem p { margin-top: 4px; font-size: 14px; }
  .lp-privacy { grid-template-columns: 1fr; justify-items: center; gap: 10px; padding: 26px 22px; text-align: center; }
  .lp-privacy img { width: 110px; }
  .lp-privacy h2 { font-size: 27px; }
  .lp-privacy__list { display: block; margin-top: 12px; font-size: 15px; line-height: 1.55; }
  .lp-privacy__list li { display: inline; }
  .lp-privacy__list b { display: inline; margin: 0; font-size: inherit; font-weight: 600; color: rgba(235, 235, 245, .85); }
  .lp-privacy__list b::after { content: ". "; }
  .lp-privacy__list span { display: none; }
  .lp-guides { grid-template-columns: 1fr; }
  .lp-guides__head h2 { font-size: 28px; }
  .lp-guides__cards { margin-top: 20px; gap: 14px; }
  .lp-guides__all { order: 3; justify-self: start; margin-top: 16px; }
  .lp-guide { padding: 18px; }
  .lp-guide h3 { font-size: 17px; }
  .lp-guide__summary { display: none; }
  .lp-faq h2 { margin-bottom: 18px; font-size: 28px; text-align: left; }
  .lp-faq__item { margin-top: 10px; }
  .lp-faq__item summary { padding: 16px 18px; font-size: 15px; }
  .lp-faq__item p { padding: 0 18px 16px; font-size: 15px; }
  .lp-final__wristy { width: 140px; margin-top: 16px; }
  .lp-final h2 { font-size: 32px; line-height: 1.1; }
  .lp-final .lp-lead { margin-top: 12px; font-size: 16px; }
  .lp-final__cta { margin-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-float { animation: none; }
  .lp-guide, .lp-faq__item summary::after { transition: none; }
}
