:root {
  --coral: #FF6F61;
  --sunshine: #FFC24B;
  --mint: #4FD1B5;
  --blue: #3A7BD5;
  --slate: #2B3440;
  --ink: #1D242E;
  --muted: #5B6672;
  --bg: #FFFDF9;
  --card: #FFFFFF;
  --line: rgba(43, 52, 64, 0.10);
  --radius: 18px;
  --maxw: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--slate);
}
.brand .dot {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--coral), var(--sunshine));
  display: inline-block;
}
.nav a { color: var(--muted); font-weight: 600; margin-left: 18px; }

/* Hero */
.hero {
  text-align: center;
  padding: 40px 22px 20px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero .badge {
  display: inline-block;
  background: rgba(79, 209, 181, 0.15);
  color: #1f8f78;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(30px, 6vw, 46px);
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--slate);
  letter-spacing: -0.02em;
}
.hero p.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 26px;
}
.cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--coral), var(--sunshine));
  color: #fff;
  font-weight: 800;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 16px;
}
.cta:hover { text-decoration: none; opacity: 0.94; }

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 40px auto;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.feature .emoji { font-size: 26px; }
.feature h3 { margin: 12px 0 6px; font-size: 17px; color: var(--slate); }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* Content pages */
.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 30px 22px 60px;
}
.page h1 { font-size: 32px; color: var(--slate); letter-spacing: -0.02em; margin-bottom: 6px; }
.page .updated { color: var(--muted); font-size: 14px; margin-bottom: 30px; }
.page h2 { font-size: 20px; color: var(--slate); margin-top: 34px; }
.page h3 { font-size: 16px; color: var(--slate); margin-top: 22px; }
.page ul { padding-left: 20px; }
.page li { margin-bottom: 8px; }
.card-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 22px 0;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}
table.data th, table.data td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.data th { color: var(--slate); font-weight: 700; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding: 28px 22px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.site-footer a { color: var(--muted); font-weight: 600; margin: 0 10px; }

/* ============================================================
   Landing page — warm editorial redesign (Taste-inspired)
   ============================================================ */
.lp {
  --lp-cream: #FBF6EE;
  --lp-cream-2: #F4ECDF;
  --lp-ink: #23201B;
  --lp-muted: #6E655A;
  /* Mirrors the app's LiquidBackground: light base + soft radial glows
     (sunshine top-right, mint bottom-left, violet bottom-right, a hint of blue). */
  background:
    radial-gradient(1100px 720px at 88% -8%, rgba(255, 190, 0, 0.24), transparent 60%),
    radial-gradient(1000px 820px at -12% 112%, rgba(32, 180, 121, 0.18), transparent 55%),
    radial-gradient(900px 760px at 112% 116%, rgba(147, 103, 244, 0.16), transparent 55%),
    linear-gradient(158deg, #FDFBF6 0%, #F7F1E6 58%, rgba(79, 130, 223, 0.10) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--lp-ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
/* Display font: Poppins — rounded, friendly (class name kept for compatibility). */
.lp .serif {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.lp-logo { height: 34px; width: auto; display: block; }

/* Hero carousel */
.lp-carousel { max-width: 1000px; margin: 26px auto 0; padding: 0 28px; }
.lp-carousel .stage {
  position: relative; height: 580px;
  display: flex; align-items: center; justify-content: center;
}
.lp-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.97) translateY(8px);
  transition: opacity 0.7s ease, transform 0.7s ease; pointer-events: none;
}
.lp-slide.active { opacity: 1; transform: none; pointer-events: auto; }
.lp-mock {
  width: 270px; height: 560px; border-radius: 42px; background: #fff;
  border: 1px solid rgba(35,32,27,0.08);
  box-shadow: 0 44px 90px -44px rgba(35,32,27,0.55);
  padding: 16px; display: flex; flex-direction: column; overflow: hidden;
}
.lp-mock .notch { width: 120px; height: 26px; background: #23201B; border-radius: 0 0 16px 16px; margin: -16px auto 16px; opacity: 0.92; }
.lp-mock .m-title { font-family: "Poppins", sans-serif; font-size: 21px; font-weight: 500; margin: 2px 8px 14px; }
.lp-ring-wrap { position: relative; display: grid; place-items: center; margin: 8px auto 18px; }
.lp-ring {
  width: 158px; height: 158px; border-radius: 50%;
  background: conic-gradient(var(--coral), var(--sunshine), var(--mint), var(--coral));
  -webkit-mask: radial-gradient(circle 58px at center, transparent 98%, #000 100%);
          mask: radial-gradient(circle 58px at center, transparent 98%, #000 100%);
}
.lp-ring-label { position: absolute; text-align: center; font-weight: 700; font-size: 24px; color: var(--lp-ink); }
.lp-ring-label small { display: block; font-weight: 500; font-size: 12px; color: var(--lp-muted); }
.lp-tile { background: var(--lp-cream); border-radius: 16px; padding: 13px; margin: 6px 8px; display: flex; align-items: center; gap: 12px; font-size: 14px; }
.lp-tile .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; background: linear-gradient(135deg, var(--coral), var(--sunshine)); flex: none; }
.lp-mock.dark { background: #23201B; color: #F7F1E6; }
.lp-mock.dark .m-title { color: #F7F1E6; }
.lp-mock.dark .lp-tile { background: rgba(255,255,255,0.08); color: #F7F1E6; }
.lp-caption { text-align: center; margin-top: 20px; color: var(--lp-muted); font-size: 15px; min-height: 22px; }
.lp-dots { display: flex; gap: 9px; justify-content: center; margin-top: 12px; }
.lp-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(35,32,27,0.22); padding: 0; transition: background .3s, width .3s; }
.lp-dots button.active { background: var(--lp-ink); width: 26px; border-radius: 6px; }

/* Nav */
.lp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 26px 28px;
}
.lp-brand {
  display: flex; align-items: center; gap: 11px;
  font-weight: 700; font-size: 21px; color: var(--lp-ink);
  letter-spacing: -0.01em;
}
.lp-brand .dot {
  width: 30px; height: 30px; border-radius: 10px;
  background: linear-gradient(135deg, var(--coral), var(--sunshine));
}
.lp-nav-links a { color: var(--lp-muted); font-weight: 500; margin-left: 26px; font-size: 15px; }
.lp-nav-links a:hover { color: var(--lp-ink); text-decoration: none; }
.lp-nav .pill-cta {
  background: var(--lp-ink); color: var(--lp-cream);
  padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
}
.lp-nav .pill-cta:hover { text-decoration: none; opacity: 0.9; }

/* Hero */
.lp-hero {
  max-width: 1000px;
  margin: 0 auto;
  padding: 70px 28px 40px;
  text-align: center;
}
.lp-eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--lp-muted); text-transform: none;
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 26px;
}
.lp-eyebrow::before, .lp-eyebrow::after {
  content: ""; width: 26px; height: 1px; background: rgba(35,32,27,0.25);
}
.lp-hero h1 {
  font-size: clamp(40px, 7.5vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 24px;
  color: var(--lp-ink);
}
.lp-hero h1 em { font-style: italic; color: var(--coral); }
.lp-hero p.lead {
  font-size: clamp(17px, 2.3vw, 21px);
  color: var(--lp-muted);
  max-width: 540px;
  margin: 0 auto 34px;
  line-height: 1.55;
}
.lp-cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.lp-btn-primary {
  background: var(--lp-ink); color: var(--lp-cream);
  padding: 15px 30px; border-radius: 999px; font-weight: 600; font-size: 16px;
}
.lp-btn-primary:hover { text-decoration: none; opacity: 0.9; }
.lp-btn-ghost {
  color: var(--lp-ink); padding: 15px 22px; font-weight: 600; font-size: 16px;
  border-radius: 999px; border: 1px solid rgba(35,32,27,0.18);
}
.lp-btn-ghost:hover { text-decoration: none; background: rgba(35,32,27,0.04); }

/* Showcase strip */
.lp-showcase {
  max-width: 940px; margin: 30px auto 0; padding: 0 28px;
}
.lp-showcase .frame {
  background: linear-gradient(160deg, var(--lp-cream-2), #EADFCB);
  border-radius: 28px;
  padding: 48px 24px;
  text-align: center;
  border: 1px solid rgba(35,32,27,0.06);
}
.lp-phones { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.lp-phone {
  width: 190px; height: 300px; border-radius: 26px;
  background: #fff; border: 1px solid rgba(35,32,27,0.08);
  box-shadow: 0 20px 40px -24px rgba(35,32,27,0.4);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: var(--lp-muted); font-size: 14px;
}
.lp-phone .glyph {
  width: 54px; height: 54px; border-radius: 16px;
  background: linear-gradient(135deg, var(--coral), var(--sunshine));
  display: grid; place-items: center; font-size: 26px;
}

/* Editorial feature rows */
.lp-features {
  max-width: 900px; margin: 90px auto; padding: 0 28px;
}
.lp-features h2 {
  font-size: clamp(28px, 4.5vw, 44px); font-weight: 600; letter-spacing: -0.02em;
  text-align: center; margin: 0 0 8px; color: var(--lp-ink);
}
.lp-features .sub { text-align: center; color: var(--lp-muted); margin: 0 0 50px; font-size: 17px; }
.lp-row {
  display: grid; grid-template-columns: 64px 1fr; gap: 22px;
  padding: 26px 0; border-top: 1px solid rgba(35,32,27,0.1);
  align-items: start;
}
.lp-row .num { font-size: 15px; color: var(--lp-muted); padding-top: 6px; }
.lp-row h3 { font-size: 22px; font-weight: 500; margin: 0 0 6px; color: var(--lp-ink); letter-spacing: -0.01em; }
.lp-row p { margin: 0; color: var(--lp-muted); font-size: 16px; max-width: 560px; }

/* Closing CTA */
.lp-closing {
  max-width: 900px; margin: 0 auto 40px; padding: 0 28px;
}
.lp-closing .box {
  background: var(--lp-ink); color: var(--lp-cream);
  border-radius: 28px; padding: 60px 30px; text-align: center;
}
.lp-closing h2 {
  font-size: clamp(30px, 5vw, 50px); font-weight: 600; letter-spacing: -0.02em;
  margin: 0 0 22px;
}
.lp-closing .lp-btn-primary { background: var(--lp-cream); color: var(--lp-ink); }

/* Footer */
.lp-footer {
  max-width: 1080px; margin: 0 auto; padding: 40px 28px 60px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  border-top: 1px solid rgba(35,32,27,0.1);
  color: var(--lp-muted); font-size: 14px;
}
.lp-footer a { color: var(--lp-muted); margin-left: 18px; }
.lp-footer a:first-child { margin-left: 0; }

/* ---- Product-forward hero: compact, and two-column on wide screens ---- */
.lp-hero { padding-top: 44px; padding-bottom: 22px; }
.lp-carousel .stage { height: 540px; }

@media (min-width: 980px) {
  .lp-hero-grid {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    align-items: center;
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4px 28px 20px;
    min-height: calc(100vh - 150px);
  }
  .lp-hero-grid .lp-hero { text-align: left; padding: 0; margin: 0; max-width: 560px; }
  .lp-hero-grid .lp-hero h1 { font-size: clamp(40px, 4.6vw, 66px); }
  .lp-hero-grid .lp-hero p.lead { margin-left: 0; margin-right: 0; }
  .lp-hero-grid .lp-cta-row { justify-content: flex-start; }
  .lp-hero-grid .lp-carousel { margin: 0; padding: 0; max-width: none; }
  .lp-hero-grid .lp-carousel .stage { height: 560px; }
}

/* Clean carousel swap: active slide sits on top and appears crisply, the
   outgoing one fades out beneath it — no mid-transition blend/ghosting. */
.lp-slide { transform: none; }
.lp-slide:not(.active) { transition: opacity 0.55s ease; }
.lp-slide.active { z-index: 2; transition: opacity 0.15s ease; }

/* Hard swap (fully ghost-free): incoming slide is opaque instantly on top,
   outgoing fades out beneath it. */
.lp-slide.active { transition: none; }

/* Mobile nav: keep logo + primary CTA, drop the text links (they live in the footer). */
@media (max-width: 560px) {
  .lp-nav { padding: 16px 18px; }
  .lp-nav-links { gap: 0; }
  .lp-nav-links a:not(.pill-cta) { display: none; }
  .lp-nav .pill-cta { margin-left: 0; }
  .lp-hero { padding-top: 30px; }
}

/* ============================================================
   Minimalist pass + animated flowing gradient (aurora)
   ============================================================ */

/* Calmer static base; the motion comes from the aurora blobs below. */
.lp {
  background: linear-gradient(162deg, #FDFBF7 0%, #F8F3EA 55%, #F2EFF8 100%);
  background-attachment: scroll;
}

/* Flowing gradient: three big blurred colour blobs that drift slowly,
   mirroring the app's LiquidBackground (sunshine / mint / violet). */
.lp-aurora {
  position: fixed;
  inset: -25vmax;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  filter: blur(70px);
}
.lp-aurora i {
  position: absolute;
  display: block;
  border-radius: 50%;
  will-change: transform;
}
.lp-aurora i:nth-child(1) {
  width: 62vmax; height: 62vmax; top: -8vmax; right: -6vmax;
  background: radial-gradient(circle, rgba(255,190,0,0.42), transparent 60%);
  animation: auroraA 24s ease-in-out infinite;
}
.lp-aurora i:nth-child(2) {
  width: 58vmax; height: 58vmax; bottom: -12vmax; left: -10vmax;
  background: radial-gradient(circle, rgba(32,180,121,0.36), transparent 60%);
  animation: auroraB 30s ease-in-out infinite;
}
.lp-aurora i:nth-child(3) {
  width: 52vmax; height: 52vmax; bottom: -8vmax; right: -4vmax;
  background: radial-gradient(circle, rgba(147,103,244,0.30), transparent 60%);
  animation: auroraC 34s ease-in-out infinite;
}
@keyframes auroraA { 0%,100% { transform: translate(0,0) scale(1); }   50% { transform: translate(-7vmax,5vmax) scale(1.12); } }
@keyframes auroraB { 0%,100% { transform: translate(0,0) scale(1); }   50% { transform: translate(8vmax,-6vmax) scale(1.16); } }
@keyframes auroraC { 0%,100% { transform: translate(0,0) scale(1); }   50% { transform: translate(-6vmax,-7vmax) scale(1.1); } }

/* Keep all real content above the aurora layer. */
.lp-nav, .lp-hero-grid, .lp-features, .lp-closing, .lp-footer { position: relative; z-index: 1; }

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
  .lp-aurora i { animation: none; }
}

/* --- Minimalist polish --- */
/* Simpler eyebrow (drop the flanking lines). */
.lp-eyebrow::before, .lp-eyebrow::after { display: none; }
.lp-eyebrow { letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; opacity: 0.75; }
/* Lighter phone shadow, softer border. */
.lp-mock { box-shadow: 0 30px 70px -40px rgba(35,32,27,0.4); border-color: rgba(35,32,27,0.06); }
/* Quieter feature dividers + a touch more air. */
.lp-row { border-top-color: rgba(35,32,27,0.07); padding: 30px 0; }
.lp-features .sub { opacity: 0.85; }
/* Ghost CTA a hair lighter. */
.lp-btn-ghost { border-color: rgba(35,32,27,0.14); }

/* Real app screenshots framed as a phone in the carousel. */
.lp-shot {
  width: 264px;
  border-radius: 42px;
  overflow: hidden;
  background: #000;
  border: 5px solid #1b1916;
  box-shadow: 0 40px 82px -44px rgba(35,32,27,0.5);
  line-height: 0;
}
.lp-shot img { width: 100%; height: auto; display: block; }

/* Smaller phone in the carousel. */
.lp-shot { width: 218px; border-width: 4px; border-radius: 36px; }
.lp-carousel .stage { height: 500px; }
@media (min-width: 980px) { .lp-hero-grid .lp-carousel .stage { height: 520px; } }
