/* Loopcast landing page: a morning that runs while you sleep. Night blue warming to dawn, the logo's orange-red. */
.landing {
  --night: #0E1830;
  --night-2: #18264A;
  --dawn: #FF6A3D;
  --dawn-deep: #D2421E;
  --paper: #F5F7FA;
  --ink: #16203A;
  --slate: #56617C;
  --sky: #A9B6D3;
  --rule: #DDE3EC;
  --head: "Bricolage Grotesque", Inter, system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
/* Which shows: visitors see the landing page (in the HTML, so search engines read it); people signed in, or opening a
   link into the app, get the app (html.to-app from the inline script, html.app-on once app.js is signed in);
   ?landing previews the page even when signed in. */
html.to-app .landing, html.app-on .landing { display: none; }
html:not(.to-app):not(.app-on) #app, html.show-landing #app { display: none; }
html.show-landing .landing { display: block; }

.landing h1, .landing h2, .landing h3 { font-family: var(--head); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
.landing p { margin: 0; }
.landing a { color: inherit; }
.landing :focus-visible { outline: 3px solid var(--dawn); outline-offset: 3px; border-radius: 6px; }

/* Top bar on the night band */
.lp-top { background: var(--night); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px max(16px, calc((100vw - 1120px) / 2)); }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 800; font-size: 21px; color: #fff !important; }
.lp-nav { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.lp-nav > a { color: var(--sky) !important; }
.lp-nav > a:hover { color: #fff !important; }
.lp-langs { display: inline-flex; border: 1px solid #33426B; border-radius: 999px; padding: 2px; }
.lp-langs button { border: 0; background: none; color: var(--sky); font: 600 12px Inter, sans-serif; padding: 6px 9px; border-radius: 999px; cursor: pointer; min-width: 34px; }
.lp-langs button[aria-pressed="true"] { background: #fff; color: var(--night); }
.lp-link { border: 0; background: none; color: #fff; font: 600 15px Inter, sans-serif; cursor: pointer; padding: 8px 0; }

/* Hero: the night sky, warming to dawn at the bottom edge */
.lp-hero {
  background: linear-gradient(180deg, var(--night) 0%, var(--night) 62%, #3A2A4A 88%, #8C4A3F 100%);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding: 56px max(16px, calc((100vw - 1120px) / 2)) 88px;
}
.lp-hero h1 { font-size: clamp(38px, 5.4vw, 64px); max-width: 15ch; }
.lp-lead { font-size: 19px; color: #D7DEEE; margin-top: 22px !important; max-width: 36em; }
.lp-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.lp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 14px; font: 700 16px Inter, sans-serif; cursor: pointer; border: 1px solid transparent; text-decoration: none; }
.lp-btn.primary { background: var(--dawn); color: #1B0E08 !important; }
.lp-btn.primary:hover { background: #FF8357; }
.lp-btn.ghost { background: transparent; border-color: #3B4B75; color: #fff !important; }
.lp-btn.ghost:hover { border-color: #fff; }
.lp-small { font-size: 14px; color: var(--sky); margin-top: 16px !important; max-width: 34em; }

/* The morning: a phone with the finished video, and the timeline of what happened before 8 */
.lp-morning { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: center; }
.lp-phone { width: 220px; aspect-ratio: 9 / 18.5; border-radius: 34px; background: #050912; padding: 9px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px #2A3657; }
.lp-screen { position: relative; height: 100%; border-radius: 26px; overflow: hidden; background: #1E2A4C; }
.lp-video { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 16px 14px 62px; background: linear-gradient(180deg, #F7C59F 0%, #E8916A 45%, #6E3B55 100%); }
.lp-food { position: absolute; left: 50%; top: 22%; width: 130px; height: 130px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 35% 35%, #FFF6E8 0 30%, #F2D6B3 31% 52%, #C98F63 53% 60%, #FBEAD3 61% 100%); box-shadow: 0 14px 30px rgba(80, 30, 20, 0.35); }
.lp-chip { position: absolute; top: 16px; left: 14px; background: rgba(255, 255, 255, 0.85); color: #3A1F17; font: 700 11px Inter, sans-serif; padding: 4px 9px; border-radius: 999px; }
.lp-card { position: relative; background: #fff; color: var(--ink); border-radius: 12px; padding: 9px 11px; display: grid; gap: 1px; font-size: 12px; }
.lp-card strong { font-family: var(--head); font-size: 15px; }
.lp-caption { position: relative; color: #fff; font: 700 14px/1.25 var(--head); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35); }
.lp-posted { position: absolute; left: 0; right: 0; bottom: 0; padding: 9px 12px; background: rgba(5, 9, 18, 0.82); color: #DDE6FA; font-size: 11px; font-weight: 600; }

.lp-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lp-timeline li { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid #263559; font-size: 15px; color: #E6EBF6; }
.lp-timeline li:first-child { border-top: 0; }
.lp-timeline time { font-family: var(--head); font-weight: 600; color: var(--dawn); font-variant-numeric: tabular-nums; }
/* One orchestrated moment: the morning's steps light up in order, then the video appears */
@media (prefers-reduced-motion: no-preference) {
  .lp-timeline li { opacity: 0.28; animation: lp-step 0.5s ease forwards; }
  .lp-timeline li:nth-child(1) { animation-delay: 0.3s; }
  .lp-timeline li:nth-child(2) { animation-delay: 0.85s; }
  .lp-timeline li:nth-child(3) { animation-delay: 1.4s; }
  .lp-timeline li:nth-child(4) { animation-delay: 1.95s; }
  .lp-timeline li:nth-child(5) { animation-delay: 2.5s; }
  .lp-video { opacity: 0; transform: scale(0.97); animation: lp-video 0.7s ease 2.1s forwards; }
  .lp-posted { transform: translateY(100%); animation: lp-posted 0.5s ease 2.9s forwards; }
}
@keyframes lp-step { to { opacity: 1; } }
@keyframes lp-video { to { opacity: 1; transform: none; } }
@keyframes lp-posted { to { transform: none; } }

/* Sections on paper */
.lp-main { padding: 0 max(16px, calc((100vw - 1120px) / 2)); }
.lp-section { padding: 80px 0 8px; }
.lp-section h2 { font-size: clamp(30px, 3.6vw, 42px); max-width: 20ch; }
.lp-muted { color: var(--slate); margin-top: 14px !important; max-width: 40em; }
.lp-split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }

/* How it works: a real sequence, so it's numbered */
.lp-steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; padding: 0; margin: 36px 0 0; }
.lp-steps li { counter-increment: step; border-top: 3px solid var(--ink); padding-top: 18px; }
.lp-steps li::before { content: counter(step); display: block; font: 800 52px/1 var(--head); color: var(--dawn-deep); margin-bottom: 14px; }
.lp-steps h3 { font-size: 23px; margin-bottom: 8px; }
.lp-steps p { color: var(--slate); }

/* Quality: a ruled list */
.lp-points { margin: 0; }
.lp-points > div { padding: 18px 0; border-top: 1px solid var(--rule); }
.lp-points > div:first-child { border-top: 0; padding-top: 4px; }
.lp-points dt { font-family: var(--head); font-weight: 800; font-size: 20px; }
.lp-points dd { margin: 4px 0 0; color: var(--slate); }

.lp-platforms { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font: 800 clamp(24px, 3vw, 34px)/1.2 var(--head); }
.lp-platforms li { color: var(--ink); }

/* Messages */
.lp-chat { align-items: center; }
.lp-chat p { color: var(--slate); margin-top: 14px; max-width: 32em; }
.lp-bubbles { display: grid; gap: 10px; background: #E7ECF3; border-radius: 22px; padding: 22px; }
.lp-bubbles p { margin: 0; max-width: 85%; padding: 11px 14px; border-radius: 16px; font-size: 15px; color: var(--ink); }
.lp-bubbles .them { background: #fff; justify-self: start; border-bottom-left-radius: 4px; }
.lp-bubbles .us { background: #D9F3D2; justify-self: end; border-bottom-right-radius: 4px; }

/* Plans */
.lp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; margin-top: 32px; border: 1px solid var(--rule); border-radius: 20px; overflow: hidden; background: #fff; }
.lp-plan { padding: 28px 26px; display: flex; flex-direction: column; gap: 12px; border-left: 1px solid var(--rule); }
.lp-plan:first-child { border-left: 0; }
.lp-plan h3 { font-size: 24px; }
.lp-price { font: 800 40px/1 var(--head); }
.lp-price small { font: 500 15px Inter, sans-serif; color: var(--slate); }
.lp-plan ul { margin: 0; padding-left: 18px; color: var(--slate); font-size: 15px; display: grid; gap: 4px; }
.lp-plan .lp-btn { margin-top: auto; background: var(--ink); color: #fff !important; }
.lp-plan .lp-btn:hover { background: #26324F; }

/* Questions */
.lp-faq details { border-top: 1px solid var(--rule); padding: 4px 0; max-width: 760px; }
.lp-faq details:first-of-type { margin-top: 24px; }
.lp-faq summary { cursor: pointer; font: 800 19px/1.3 var(--head); padding: 16px 32px 16px 0; list-style: none; position: relative; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 26px; font-weight: 600; color: var(--dawn-deep); }
.lp-faq details[open] summary::after { content: "–"; }
.lp-faq details p { color: var(--slate); padding: 0 0 16px; max-width: 40em; }

.lp-end { padding-bottom: 80px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.lp-end .lp-btn.primary { background: var(--dawn-deep); color: #fff !important; }
.lp-end .lp-btn.primary:hover { background: #B83A1A; }

.lp-foot { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; padding: 28px max(16px, calc((100vw - 1120px) / 2)) 40px; border-top: 1px solid var(--rule); color: var(--slate); font-size: 14px; }
.lp-foot span { margin-right: auto; }
.lp-foot a { color: var(--slate); }
.lp-small { font-size: 13px; margin: 0; }
.lp-foot .lp-link { color: var(--ink); font-size: 14px; }

/* Early access */
.lp-dialog { border: 0; border-radius: 22px; padding: 0; width: min(460px, calc(100vw - 32px)); color: var(--ink); }
.lp-dialog::backdrop { background: rgba(14, 24, 48, 0.6); }
.lp-early { padding: 28px; display: grid; gap: 14px; }
.lp-early h2 { font-size: 28px; }
.lp-early label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.lp-early input { min-height: 46px; border-radius: 12px; border: 1px solid #C9D2E0; padding: 0 12px; font: 400 16px Inter, sans-serif; }
.lp-early .lp-btn.ghost { color: var(--ink) !important; border-color: #C9D2E0; }
.lp-early .lp-ctas { margin-top: 4px; }
.lp-hp { position: absolute; left: -9999px; }
.lp-status { font-size: 14px; color: var(--slate); min-height: 1em; }

@media (max-width: 980px) {
  .lp-hero { grid-template-columns: 1fr; gap: 44px; padding-top: 36px; }
  .lp-split { grid-template-columns: 1fr; gap: 24px; }
  .lp-steps { grid-template-columns: 1fr; gap: 28px; }
  .lp-plan { border-left: 0; border-top: 1px solid var(--rule); }
  .lp-plan:first-child { border-top: 0; }
}
@media (max-width: 620px) {
  .landing { font-size: 16px; }
  .lp-nav > a { display: none; }
  .lp-nav { gap: 12px; }
  .lp-morning { grid-template-columns: 1fr; justify-items: center; }
  .lp-phone { width: 200px; }
  .lp-timeline { width: 100%; }
  .lp-section { padding-top: 60px; }
}
