/* Public marketing site (onegoodhabit.web.app): landing page, support and legal pages. */
:root {
  --bg: #000000;
  --bg-2: #0b0b0b;
  --card: #141414;
  --card-2: #1c1c1c;
  --line: #2a2a2a;
  --text: #f1eee6;
  --muted: #a7a39a;
  --accent: #ffc83d;
  --accent-2: #ffe08a;
  --accent-ink: #231a00;
  --glow: rgba(255, 200, 61, .16);
  --glow-2: rgba(255, 200, 61, .07);
  --radius: 20px;
  --serif: "Lora", "Tiro Devanagari Hindi", Georgia, serif;
  --sans: "Inter", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; text-decoration: none; letter-spacing: -.01em; }
.logo img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav .btn { margin-left: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font: 600 15px/1 var(--sans);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: var(--accent-ink); box-shadow: 0 8px 24px -8px var(--accent); }
.btn-primary:hover { box-shadow: 0 12px 30px -8px var(--accent); }
.btn-ghost { border-color: var(--line); color: var(--text); background: color-mix(in srgb, var(--card) 60%, transparent); }
.btn-ghost:hover { border-color: var(--muted); }

/* Store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-width: 190px;
  padding: 10px 20px 10px 16px; border-radius: 14px; text-decoration: none;
  background: #000; color: #fff; border: 1px solid #3b3b3b;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.store:hover { transform: translateY(-2px); border-color: #777; box-shadow: 0 10px 28px -12px rgba(0,0,0,.8); }
.store svg { width: 28px; height: 28px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 11px; letter-spacing: .02em; opacity: .85; }
.store b { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.store.soon { opacity: .6; pointer-events: none; }
.store.soon small::after { content: " · coming soon"; color: var(--accent); }

/* Hero */
.hero { position: relative; padding: 72px 0 40px; isolation: isolate; overflow: hidden; }
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px);
}
.hero::before { width: 560px; height: 560px; right: -120px; top: -80px; background: var(--glow); }
.hero::after { width: 460px; height: 460px; left: -160px; top: 120px; background: var(--glow-2); }
.hero .wrap:not(.stats-wrap) { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-2);
  font-size: 13px; font-weight: 600; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.hero h1 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(40px, 6.4vw, 68px);
  line-height: 1.04; letter-spacing: -.02em; margin: 18px 0 18px;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.lede { font-size: clamp(17px, 2vw, 19px); color: var(--muted); max-width: 33em; margin: 0 0 28px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: var(--muted); font-size: 14px; }
.trust span::before { content: "✓"; color: var(--accent); margin-right: 6px; font-weight: 700; }
.phone { position: relative; justify-self: center; width: min(340px, 80vw); }
.phone img {
  width: 100%; border-radius: 34px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px var(--line);
}
.phone .float {
  position: absolute; left: -44px; bottom: 70px; max-width: 230px;
  background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
  font: italic 15px/1.45 var(--serif); box-shadow: 0 18px 40px -18px rgba(0,0,0,.8);
  animation: bob 6s ease-in-out infinite;
}
.phone .float small { display: block; margin-top: 6px; font: 600 12px var(--sans); color: var(--accent); font-style: normal; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 24px 0 0; }
.stat { background: var(--bg-2); padding: 22px 18px; text-align: center; }
.stat b { display: block; font: 600 30px/1.1 var(--serif); color: var(--accent-2); }
.stat span { color: var(--muted); font-size: 14px; }

/* Sections */
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font: 600 clamp(30px, 4vw, 44px)/1.12 var(--serif); letter-spacing: -.015em; margin: 10px 0 12px; }
.section-head p { color: var(--muted); margin: 0; font-size: 17px; }
.kicker { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  background: linear-gradient(180deg, var(--card), var(--bg-2)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px; transition: border-color .2s, transform .2s;
}
.feature:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-3px); }
.feature .ic {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 22px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); margin-bottom: 16px;
}
.feature h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* Screens gallery */
.screens { background: var(--bg-2); border-block: 1px solid var(--line); }
.gallery {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 18px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
  max-width: 1120px; margin: 0 auto;
}
.gallery img {
  flex: none; width: 230px; border-radius: 22px; scroll-snap-align: center;
  border: 1px solid var(--line); box-shadow: 0 20px 40px -24px rgba(0,0,0,.9);
}
.gallery-hint { text-align: center; color: var(--muted); font-size: 13px; margin-top: 4px; }

/* Quote band */
.band { text-align: center; }
.band blockquote { font: italic 500 clamp(26px, 3.6vw, 40px)/1.3 var(--serif); max-width: 820px; margin: 0 auto 14px; }
.band blockquote::before { content: "“"; display: block; color: var(--accent); font-size: 1.8em; line-height: .6; margin-bottom: 14px; font-style: normal; }
.band cite { color: var(--muted); font-style: normal; }

/* Languages */
.langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.langs span { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 500; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 10px 0 0; }

/* CTA */
.cta {
  position: relative; overflow: hidden; text-align: center; border-radius: 28px; padding: 64px 24px;
  background: radial-gradient(ellipse at top, color-mix(in srgb, var(--accent) 22%, var(--card)), var(--card) 70%);
  border: 1px solid var(--line);
}
.cta img { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 18px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.8); }
.cta h2 { font: 600 clamp(28px, 4vw, 42px)/1.15 var(--serif); margin: 0 0 10px; }
.cta p { color: var(--muted); margin: 0 auto 26px; max-width: 34em; }
.cta .stores { justify-content: center; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* Text pages (support, privacy, terms) */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; }
.doc h1 { font: 600 clamp(32px, 5vw, 44px)/1.1 var(--serif); margin: 0 0 8px; letter-spacing: -.015em; }
.doc h2 { font-size: 20px; margin: 36px 0 10px; color: var(--accent-2); }
.doc p, .doc li { color: color-mix(in srgb, var(--text) 88%, var(--muted)); }
.doc .muted, .muted { color: var(--muted); }
.doc a { color: var(--accent-2); }
.doc table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc tr:last-child td { border-bottom: 0; }
.doc .card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 22px 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .phone .float { animation: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 900px) {
  .hero { padding-top: 44px; }
  .hero .wrap:not(.stats-wrap) { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .lede { margin-inline: auto; }
  .stores, .trust { justify-content: center; }
  .phone .float { left: -12px; bottom: 40px; max-width: 200px; text-align: left; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; padding: 9px 16px; }
  section { padding: 64px 0; }
  .features { grid-template-columns: 1fr; }
  .store { flex: 1 1 100%; justify-content: center; }
  .gallery img { width: 200px; }
  footer nav { margin-left: 0; }
}


.doc .card { background: var(--card); }
.grid66 { display: grid; grid-template-columns: repeat(11, 1fr); gap: 5px; max-width: 320px; margin: 22px 0 6px; }
.grid66 span { aspect-ratio: 1; border-radius: 4px; background: var(--line); }
.grid66 span.on { background: var(--accent); }
.grid66 span.miss { background: transparent; outline: 1.5px dashed var(--muted); outline-offset: -2px; }
