/* ===========================================================
   Marigold — brand stylesheet
   Self-contained; independent of the Lakkireddy Labs site.
   Visual language matched to the app: cream canvas, soft
   rounded cards, charcoal stat cards, dreamy bloom mark.
=========================================================== */

:root {
  --cream:    #FBF6EF;
  --ink:      #1E1822;
  --ink-soft: #4a4250;
  --ink-faint:#7c7486;
  --marigold: #E8860D;
  --marigold-deep: #c46f06;
  --violet:   #6C4DFF;
  --violet-soft: #efeaff;
  --card:     #ffffff;
  --charcoal: #221c28;       /* the app's dark stat-card color */
  --line:     rgba(30,24,34,0.10);
  --shadow:   0 1px 2px rgba(30,24,34,.05), 0 12px 32px rgba(30,24,34,.07);
  --shadow-big: 0 2px 4px rgba(30,24,34,.06), 0 24px 64px rgba(30,24,34,.12);

  --font-head: "Quicksand", "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --maxw: 1080px;
  --r: 22px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cream:    #17131C;
    --ink:      #F2EDF4;
    --ink-soft: #c9c2d2;
    --ink-faint:#938aa0;
    --marigold: #F19A2E;
    --marigold-deep: #E8860D;
    --violet:   #9d86ff;
    --violet-soft: #241d33;
    --card:     #211b29;
    --charcoal: #211b29;
    --line:     rgba(242,237,244,0.10);
    --shadow:   0 1px 2px rgba(0,0,0,.3), 0 16px 40px rgba(0,0,0,.35);
    --shadow-big: 0 2px 4px rgba(0,0,0,.35), 0 28px 72px rgba(0,0,0,.5);
  }
}

:root[data-theme="dark"] {
  --cream:    #17131C;
  --ink:      #F2EDF4;
  --ink-soft: #c9c2d2;
  --ink-faint:#938aa0;
  --marigold: #F19A2E;
  --marigold-deep: #E8860D;
  --violet:   #9d86ff;
  --violet-soft: #241d33;
  --card:     #211b29;
  --charcoal: #211b29;
  --line:     rgba(242,237,244,0.10);
  --shadow:   0 1px 2px rgba(0,0,0,.3), 0 16px 40px rgba(0,0,0,.35);
  --shadow-big: 0 2px 4px rgba(0,0,0,.35), 0 28px 72px rgba(0,0,0,.5);
}

/* Theme-conditional image swapping (screenshots have baked backgrounds) */
.only-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-dark  { display: block; }
  :root:not([data-theme="light"]) .only-light { display: none; }
}
:root[data-theme="dark"] .only-dark  { display: block; }
:root[data-theme="dark"] .only-light { display: none; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .4s ease, color .4s ease;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 .4em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; }

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

/* App icon — rendered as an iOS-style squircle */
.app-icon { border-radius: 22.5%; display: block; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  background: color-mix(in srgb, var(--cream) 80%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 19px; color: var(--ink); }
.brand img { width: 34px; height: 34px; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-right a { text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 15px; }
.nav-right a:hover { color: var(--marigold); }

.theme-toggle {
  appearance: none; border: 1px solid var(--line); background: var(--card);
  color: var(--ink); width: 38px; height: 38px; border-radius: 50%;
  cursor: pointer; font-size: 16px; line-height: 1; display: grid; place-items: center;
  transition: transform .2s ease, border-color .2s ease;
}
.theme-toggle:hover { transform: rotate(20deg); border-color: var(--marigold); }

/* ---------- App Store badge ---------- */
.appstore {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--cream);
  text-decoration: none; padding: 12px 22px 12px 18px; border-radius: 14px;
  transition: transform .15s ease, box-shadow .2s ease;
  box-shadow: var(--shadow);
}
.appstore:hover { transform: translateY(-2px); }
.appstore svg { width: 26px; height: 26px; flex: none; }
.appstore .as-text { text-align: left; line-height: 1.1; }
.appstore .as-small { display: block; font-size: 11px; opacity: .85; font-family: var(--font-body); }
.appstore .as-big { display: block; font-size: 19px; font-family: var(--font-head); font-weight: 700; }

.meta-line { color: var(--ink-faint); font-size: 14px; font-weight: 600; margin-top: 14px; letter-spacing: .01em; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 0; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 40px; align-items: center;
}
.hero-copy { padding-bottom: 56px; }
.hero-copy .app-icon { width: 84px; height: 84px; margin-bottom: 26px; box-shadow: var(--shadow); }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4rem); max-width: 12ch; }
.hero .lead {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--ink-soft); max-width: 42ch; margin: 0 0 2rem;
}

/* Phone showcase — image floats, bottom-bleeds out of the hero */
.hero-phone { position: relative; align-self: end; display: flex; justify-content: center; }
.hero-phone::before {
  content: ""; position: absolute; inset: 4% -4% 0;
  background: radial-gradient(62% 58% at 50% 42%,
    color-mix(in srgb, var(--marigold) 45%, transparent),
    color-mix(in srgb, var(--violet) 24%, transparent) 55%,
    transparent 76%);
  filter: blur(14px);
}
.hero-phone img {
  position: relative; width: min(360px, 84%);
  border-radius: 48px 48px 0 0;
  box-shadow: var(--shadow-big);
  border: 1px solid var(--line); border-bottom: 0;
}

/* ---------- Sections ---------- */
section { scroll-margin-top: 80px; }
.section-head { text-align: center; max-width: 38ch; margin: 0 auto 48px; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--marigold); margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }

.band { padding: 72px 0; }
.band + .band { border-top: 1px solid var(--line); }

/* Steps */
.steps { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px 26px; box-shadow: var(--shadow);
}
.step .num {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: 13px; background: var(--violet-soft); color: var(--violet);
  font-family: var(--font-head); font-weight: 700; font-size: 18px; margin-bottom: 16px;
}
.step h3 { font-size: 1.25rem; }
.step p { color: var(--ink-soft); margin: 0; font-size: 16px; }

/* ---------- Feature rows ---------- */
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px; align-items: center;
}
.feature.flip .feature-visual { order: -1; }
.feature .eyebrow { color: var(--violet); }
.feature h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.feature p { color: var(--ink-soft); font-size: 1.08rem; max-width: 46ch; margin-bottom: 0; }

/* Stage card — holds a real screenshot; bg matches the shot's baked
   background so the phone reads as sitting on the card. */
.stage {
  border-radius: 28px; border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex; justify-content: center; align-items: flex-start;
  padding: 44px 36px 0; height: 500px;
  position: relative;
}
.stage--light {
  background:
    radial-gradient(110% 90% at 22% 10%, rgba(232,134,13,.10), transparent 55%),
    radial-gradient(110% 90% at 85% 80%, rgba(108,77,255,.08), transparent 55%),
    #FBF6EF;
}
.stage--dark {
  background:
    radial-gradient(110% 90% at 24% 12%, rgba(241,154,46,.12), transparent 55%),
    radial-gradient(110% 100% at 80% 85%, rgba(157,134,255,.14), transparent 55%),
    #17131C;
  border-color: rgba(255,255,255,.07);
}
.stage .phone-img {
  width: min(290px, 78%);
  border-radius: 40px 40px 0 0;
  box-shadow: 0 4px 14px rgba(0,0,0,.10), 0 22px 56px rgba(30,24,34,.20);
  display: block;
}
.stage .zoom-img {
  width: min(420px, 94%); border-radius: 20px;
  box-shadow: 0 4px 14px rgba(0,0,0,.08), 0 18px 44px rgba(30,24,34,.16);
  display: block; align-self: center;
}

/* Light/dark split card for the "designed for night" section */
.stage--split { padding: 0; align-items: stretch; }
.stage--split .half {
  flex: 1; display: flex; justify-content: center; align-items: flex-end;
  padding: 40px 18px 0;
}
.stage--split .half.h-light { background: #FBF6EF; }
.stage--split .half.h-dark  { background: #17131C; }
.stage--split .phone-img { width: min(215px, 88%); border-radius: 30px 30px 0 0; align-self: flex-end; }

/* ---------- Pricing / Marigold Pro ---------- */
.price-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px; max-width: 820px; margin: 0 auto; align-items: start;
}
.plan {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 32px 30px; box-shadow: var(--shadow); position: relative;
}
.plan h3 { font-size: 1.5rem; margin-bottom: 4px; }
.plan-sub { color: var(--ink-faint); font-size: 15px; margin: 0 0 20px; }
.plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.plan-list li {
  color: var(--ink-soft); font-size: 16px; padding-left: 30px; position: relative; line-height: 1.45;
}
.plan-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--marigold); font-weight: 800; font-family: var(--font-head);
}
.plan--pro {
  border-color: color-mix(in srgb, var(--marigold) 55%, transparent);
  box-shadow: var(--shadow-big),
    0 0 0 1px color-mix(in srgb, var(--marigold) 35%, transparent) inset;
  background:
    radial-gradient(120% 80% at 90% 0%, color-mix(in srgb, var(--marigold) 12%, transparent), transparent 60%),
    var(--card);
}
.plan-tag {
  position: absolute; top: -13px; right: 24px;
  background: var(--marigold); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 12px;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; box-shadow: var(--shadow);
}
.plan-prices {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  margin: 22px 0 10px; padding-top: 20px; border-top: 1px solid var(--line);
}
.plan-prices .price {
  font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; color: var(--ink);
}
.plan-prices .price small { font-size: .9rem; font-weight: 600; color: var(--ink-faint); }
.plan-prices .price-or { color: var(--ink-faint); font-size: 14px; font-weight: 600; }
.plan-note { color: var(--ink-faint); font-size: 13.5px; margin: 0; }

@media (max-width: 720px) {
  .price-grid { grid-template-columns: minmax(0, 1fr); max-width: 460px; }
}

/* ---------- Privacy band — styled like the app's charcoal stat card ---------- */
.privacy-band {
  text-align: center; color: #F2EDF4;
  background:
    radial-gradient(90% 130% at 80% 100%, rgba(232,134,13,.22), transparent 55%),
    radial-gradient(80% 110% at 15% 0%, rgba(108,77,255,.20), transparent 55%),
    #221c28;
  border-radius: 28px; padding: 64px 32px; margin: 8px 0;
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: var(--shadow-big);
}
.privacy-band .eyebrow { color: #F19A2E; }
.privacy-band h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); max-width: 18ch; margin-inline: auto; color: #F2EDF4; }
.privacy-band p { color: #c9c2d2; max-width: 52ch; margin-inline: auto; }
.privacy-band .lock-badge { font-size: 40px; margin-bottom: 8px; }
.privacy-band .privacy-link { color: #9d86ff; font-weight: 700; text-decoration: none; }
.privacy-band .privacy-link:hover { color: #F19A2E; }

/* ---------- Closing ---------- */
.closing { text-align: center; padding: 88px 0 72px; }
.closing .app-icon { width: 96px; height: 96px; margin: 0 auto 28px; box-shadow: var(--shadow-big); }
.closing h2 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 22ch; margin: 0 auto .4em; }
.closing .sub { color: var(--ink-soft); font-size: 1.2rem; max-width: 30ch; margin: 0 auto 2rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 4px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.12rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; color: var(--marigold); font-size: 1.5rem; font-weight: 700;
  transition: transform .25s ease; line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); padding: 0 4px 18px; margin: 0; max-width: 62ch; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); padding: 44px 0; margin-top: 24px;
  color: var(--ink-faint); font-size: 14px;
}
.site-footer .foot-inner { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--marigold); }
.site-footer .foot-links { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.site-footer .legal { width: 100%; color: var(--ink-faint); font-size: 13px; margin-top: 6px; }

/* ---------- Privacy policy page ---------- */
.doc { max-width: 720px; margin: 0 auto; padding: 56px 24px 40px; }
.doc-identity { display: flex; align-items: center; gap: 18px; margin-bottom: 36px; }
.doc-identity .app-icon { width: 64px; height: 64px; box-shadow: var(--shadow); }
.doc-identity .app-name { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
.doc-identity .app-byline { color: var(--ink-faint); font-size: .95rem; font-weight: 600; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: .2em; }
.doc .effective { color: var(--ink-faint); font-weight: 600; margin-bottom: 28px; }
.doc .tldr {
  background: var(--violet-soft); border: 1px solid var(--line);
  border-left: 4px solid var(--violet);
  border-radius: 14px; padding: 20px 24px; margin: 0 0 36px;
  font-size: 1.08rem; color: var(--ink);
}
.doc h2 { font-size: 1.4rem; margin-top: 40px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul { padding-left: 22px; }
.doc a { color: var(--marigold); font-weight: 600; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  color: var(--ink-soft); font-weight: 700; font-family: var(--font-head); margin-bottom: 28px;
}
.back-link:hover { color: var(--marigold); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hero-copy { text-align: center; padding-bottom: 8px; }
  .hero-copy .app-icon { margin-inline: auto; }
  .hero h1, .hero .lead { margin-inline: auto; }
  .hero-phone img { width: min(300px, 76%); }

  .steps { grid-template-columns: 1fr; }
  .feature { grid-template-columns: minmax(0, 1fr); gap: 28px; text-align: center; }
  .feature .feature-text { order: 1; }
  .feature.flip .feature-visual { order: 0; }
  .feature p { margin-inline: auto; }
  .stage { height: 420px; padding: 36px 24px 0; }
  .stage .phone-img { width: min(250px, 74%); }
  .nav-right .nav-link-extra { display: none; }
}
@media (max-width: 480px) {
  body { font-size: 17px; }
  .band { padding: 56px 0; }
  .stage { height: 360px; }
  .stage--split .phone-img { width: min(150px, 92%); }
}
