/* ==========================================================================
   Lotus marketing homepage
   One continuous sky background spans the full document height, morning
   blue at the top through to deep ink at the footer. Section content floats
   on glass panels above hand placed clouds.
   ========================================================================== */

:root {
  --sky-1: #8cc9ef;
  --sky-2: #a7d6ef;
  --sky-3: #b9def5;
  --sky-4: #cfe9ee;
  --sky-5: #e9f3f1;
  --sky-6: #f3ecd9;
  --sky-7: #f8e9c9;
  --sky-8: #f6d3a1;
  --sky-9: #e8a172;
  --sky-10: #7a5568;
  --sky-11: #16344a;

  --ink: #16344a;
  --ink-soft: #476579;
  --ink-faint: #71899a;
  --accent: #205f8b;
  --warm-white: #fffefa;

  --font-display: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --font-body: 'Avenir Next', Avenir, 'Segoe UI', system-ui, sans-serif;

  --section-space: clamp(6rem, 12vw, 10rem);
  --container-w: 1180px;

  --shadow-btn: 0 13px 32px rgba(22, 52, 74, 0.22);
  --shadow-panel: 0 24px 68px rgba(38, 85, 114, 0.12);
  --shadow-shot: 0 30px 70px rgba(22, 52, 74, 0.22), 0 8px 20px rgba(22, 52, 74, 0.12);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: linear-gradient(
    180deg,
    var(--sky-1) 0%,
    var(--sky-2) 10%,
    var(--sky-3) 22%,
    var(--sky-4) 38%,
    var(--sky-5) 50%,
    var(--sky-6) 62%,
    var(--sky-7) 72%,
    var(--sky-8) 82%,
    var(--sky-9) 90%,
    var(--sky-10) 96%,
    var(--sky-11) 100%
  );
  overflow-x: hidden;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
}

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Skip link
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  z-index: 1000;
  background: var(--ink);
  color: var(--warm-white);
  padding: 0.7em 1.2em;
  border-radius: 999px;
  text-decoration: none;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 1rem;
}

/* --------------------------------------------------------------------------
   Focus states
   -------------------------------------------------------------------------- */

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Grain overlay
   -------------------------------------------------------------------------- */

.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Sky layer: sun, clouds, dusk glow (hand placed per section)
   -------------------------------------------------------------------------- */

.section-sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.sun-wash {
  position: absolute;
  top: -22vw;
  left: 50%;
  width: min(92vw, 1320px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(255, 251, 221, 0.78);
  filter: blur(72px);
}

/* A soft evening warmth behind the closing words. Centered inside the
   section and alpha-faded on every side, so the section's overflow clipping
   can never produce a hard edge above or below. */
.dusk-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    55% 42% at 50% 55%,
    rgba(232, 161, 114, 0.3) 0%,
    rgba(232, 161, 114, 0.14) 55%,
    rgba(232, 161, 114, 0) 100%
  );
}

.cloud {
  position: absolute;
  width: var(--w, 400px);
  height: calc(var(--w, 400px) * 0.27);
  top: var(--top, auto);
  left: var(--left, auto);
  right: var(--right, auto);
  bottom: var(--bottom, auto);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.74);
  will-change: transform;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.cloud::before { width: 46%; height: 125%; left: 12%; top: -48%; }
.cloud::after  { width: 39%; height: 108%; right: 10%; top: -31%; }

.cloud--far  { opacity: 0.42; filter: blur(11px); }
.cloud--mid  { opacity: 0.64; filter: blur(7px); }
.cloud--near { opacity: 0.86; filter: blur(5px); }

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 640ms cubic-bezier(0.16, 1, 0.3, 1), transform 640ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.9em 1.6em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-solid {
  background: var(--ink);
  color: var(--warm-white);
  box-shadow: var(--shadow-btn);
}

.btn-solid:hover {
  box-shadow: 0 18px 40px rgba(22, 52, 74, 0.3);
}

.btn-soft {
  background: rgba(255, 255, 255, 0.53);
  color: var(--ink);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn-soft:hover {
  background: rgba(255, 255, 255, 0.72);
}

.btn-small {
  padding: 0.65em 1.3em;
  font-size: 0.88rem;
}

/* --------------------------------------------------------------------------
   Kickers
   -------------------------------------------------------------------------- */

.kicker {
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 730;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 0.9em;
}

.kicker--small {
  font-size: 0.72rem;
  margin-bottom: 0.6em;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 1rem clamp(1rem, 3vw, 1.5rem) 0;
}

.header-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.7rem 0.6rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 30px rgba(22, 52, 74, 0.08);
  transition: background 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.site-header.is-scrolled .header-inner {
  background: rgba(255, 254, 250, 0.78);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 40px rgba(22, 52, 74, 0.14);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55em;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  border-radius: 8px;
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.8rem);
}

.main-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0.4em 0.2em;
  transition: color 160ms ease;
}

.main-nav a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.4);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 200ms ease, opacity 200ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-sheet {
  max-width: var(--container-w);
  margin: 0.6rem auto 0;
  padding: 1.2rem;
  border-radius: 1.5rem;
  background: rgba(255, 254, 250, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-panel);
}

.mobile-sheet[hidden] {
  display: none;
}

.mobile-sheet nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mobile-sheet nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  padding: 0.75em 0.4em;
  border-bottom: 1px solid rgba(22, 52, 74, 0.08);
}

.mobile-sheet nav a:last-child {
  border-bottom: none;
  margin-top: 0.6rem;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Screenshots
   -------------------------------------------------------------------------- */

.shot {
  width: 100%;
  height: auto;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-shot);
  background: #eef4f2;
}

.shot--fade-bottom {
  -webkit-mask-image: linear-gradient(to bottom, black 76%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 76%, transparent 100%);
}

.shot--phone {
  border-radius: 1.6rem;
  max-width: 220px;
  margin: 0 auto;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Generic section rhythm
   -------------------------------------------------------------------------- */

main > section {
  position: relative;
  padding: var(--section-space) 0;
  scroll-margin-top: 104px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
}

.section-lede {
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.glass-panel {
  border-radius: 2rem;
  background: rgba(255, 254, 250, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow-panel);
  padding: clamp(2rem, 5vw, 3.5rem);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding-top: clamp(7rem, 14vw, 10rem);
  padding-bottom: clamp(4rem, 9vw, 7rem);
}

.hero-inner {
  text-align: center;
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 1.02;
  margin-bottom: 0.5em;
}

.hero-title em {
  color: var(--accent);
  font-style: italic;
}

.hero-sub {
  max-width: 560px;
  margin: 0 auto 2rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}

.hero-shot-wrap {
  max-width: 980px;
  margin: 0 auto;
}

.hero-shot-wrap.reveal {
  filter: blur(8px);
  transform: translateY(36px);
}

.hero-shot-wrap.reveal.is-visible {
  filter: blur(0);
  transform: translateY(0);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1), filter 700ms cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Carousels (shared: hello sequence + product world)
   -------------------------------------------------------------------------- */

.carousel {
  position: relative;
}

.carousel-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: 1.6rem;
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: flex;
  gap: clamp(1.2rem, 3vw, 2rem);
}

.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  max-width: 720px;
}

.carousel-slide--hello {
  text-align: center;
}

.carousel-slide--apps {
  flex-basis: min(100%, 860px);
  max-width: 860px;
  text-align: left;
}

.carousel-slide--apps h3 {
  margin-top: 1.1rem;
  font-size: 1.4rem;
}

.carousel-slide--apps p {
  color: var(--ink-soft);
}

.carousel-slide--trio {
  max-width: 900px;
}

.phone-trio {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.phone-trio .shot--phone {
  max-width: 170px;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.6rem;
}

.carousel-btn {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

.carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(22, 52, 74, 0.25);
  cursor: pointer;
  padding: 0;
  transition: background 160ms ease, transform 160ms ease;
}

.carousel-dot[aria-current="true"] {
  background: var(--ink);
  transform: scale(1.25);
}

/* --------------------------------------------------------------------------
   Sunday beats
   -------------------------------------------------------------------------- */

.section-sunday {
  padding-top: 0;
}

.beat {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.beat-text {
  max-width: 620px;
  margin: 0 auto 2.4rem;
  text-align: center;
}

.beat-text h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.beat-text p {
  font-size: 1.05rem;
}

.beat-media {
  margin: 0 auto;
  max-width: 980px;
}

.beat-media--duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: start;
}

.beat-media--single {
  max-width: 820px;
}

.beat-media--chat {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: end;
}

.chat-phone-figure .shot--phone {
  max-width: 260px;
}

.beat-inset {
  max-width: 420px;
  margin: 2.2rem auto 0;
}

/* --------------------------------------------------------------------------
   Open standards
   -------------------------------------------------------------------------- */

/* The carousel's own bottom controls already give it air; without this the
   gap between the carousel and the open-standards panel spans a whole
   viewport of empty sky. */
.section-open {
  padding-top: clamp(2rem, 5vw, 4rem);
}

.section-open .glass-panel {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.section-open p {
  font-size: 1.08rem;
}

.section-open p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Free and Pro
   -------------------------------------------------------------------------- */

.plan-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 3vw, 2rem);
  max-width: 940px;
  margin: 0 auto clamp(3rem, 6vw, 4.5rem);
}

.plan-card h3 {
  font-size: 1.7rem;
  margin-bottom: 0.3em;
}

.plan-lede {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1.2rem;
}

.plan-card--pro {
  border-color: rgba(32, 95, 139, 0.35);
  background: rgba(255, 254, 250, 0.85);
}

.plan-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}

.plan-list li {
  position: relative;
  padding-left: 1.4em;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.plan-foot {
  font-size: 0.88rem;
  color: var(--ink-faint);
  margin-bottom: 0;
}

.plan-shots {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(1.2rem, 3vw, 2rem);
  max-width: 1080px;
  margin: 0 auto;
  align-items: start;
}

.plan-shot-main figcaption,
.plan-shot-secondary figcaption {
  font-weight: 600;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Closing
   -------------------------------------------------------------------------- */

.section-closing {
  padding-bottom: clamp(5rem, 10vw, 8rem);
}

.closing-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.closing-inner h2 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--warm-white);
}

.closing-inner p {
  font-size: 1.15rem;
  color: rgba(255, 254, 250, 0.85);
  margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  padding: clamp(3.5rem, 7vw, 5rem) 0 2.5rem;
  color: rgba(255, 254, 250, 0.82);
}

.footer-inner {
  text-align: center;
}

.footer-columns {
  display: flex;
  justify-content: center;
  gap: clamp(3rem, 8vw, 6rem);
  text-align: left;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 140px;
}

.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 254, 250, 0.55);
  margin-bottom: 0.4rem;
}

.footer-col a {
  text-decoration: none;
  color: rgba(255, 254, 250, 0.85);
  font-size: 0.98rem;
  transition: color 160ms ease;
}

.footer-col a:hover {
  color: var(--warm-white);
}

.footer-line {
  font-size: 0.92rem;
  color: rgba(255, 254, 250, 0.65);
  margin-bottom: 2.5rem;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.045em;
  font-size: clamp(3.5rem, 12vw, 8rem);
  line-height: 1;
  color: var(--warm-white);
  margin: 0 0 1.5rem;
  overflow-wrap: normal;
}

.footer-copyright {
  font-size: 0.82rem;
  color: rgba(255, 254, 250, 0.5);
  margin: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .beat-media--chat {
    grid-template-columns: 1fr;
  }

  .chat-phone-figure .shot--phone {
    max-width: 220px;
  }

  .plan-shots {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .header-actions .btn-small {
    display: none;
  }

  .beat-media--duo {
    grid-template-columns: 1fr;
  }

  .plan-cards {
    grid-template-columns: 1fr;
  }

  .cloud {
    transform: scale(0.72);
  }

  .cloud[data-mobile-hide] {
    display: none;
  }

  .footer-columns {
    justify-content: space-between;
    gap: 2rem;
  }
}

@media (max-width: 560px) {
  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .carousel-slide {
    max-width: 100%;
  }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .cloud {
    transform: none !important;
  }

  .reveal,
  .hero-shot-wrap.reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
