/* Apps No Ads — site styles.
   No third-party fonts or trackers (on brand). System font stack only. */

:root {
  --violet:        #6d28d9;
  --violet-dark:   #4c1d95;
  --violet-deep:   #2e1065;
  --amber:         #f5a623;
  --amber-dark:    #d98c00;
  --ink:           #1c2130;
  --body:          #4a5160;
  --muted:         #8a90a0;
  --line:          #e7e8ef;
  --bg:            #ffffff;
  --bg-soft:       #f6f5fb;
  --bg-dark:       #171226;
  --radius:        16px;
  --radius-sm:     10px;
  --shadow:        0 10px 30px rgba(46, 16, 101, 0.10);
  --shadow-lg:     0 24px 60px rgba(46, 16, 101, 0.18);
  --maxw:          1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
          "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--body); max-width: 60ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--violet); margin-bottom: .8rem; }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.4rem; border-radius: 999px;
  font-weight: 700; font-size: 1rem; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-sm { padding: .55rem 1rem; font-size: .92rem; }
.btn-primary { background: linear-gradient(135deg, var(--violet) 0%, var(--violet-dark) 100%); color: #fff; box-shadow: var(--shadow); }
.btn-donate  { background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%); color: #3a2600; box-shadow: 0 8px 22px rgba(217,140,0,.28); }
.btn-ghost   { background: #fff; color: var(--violet-dark); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--violet); }
.btn-outline-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; height: 68px; gap: 1rem; }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--ink); font-size: 1.15rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 34px; height: 34px; }
.brand-accent { color: var(--amber-dark); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: .98rem; }
.nav-links a:hover { color: var(--violet); text-decoration: none; }
.nav-toggle, .nav-toggle-label { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: radial-gradient(1200px 600px at 80% -10%, #7c3aed 0%, transparent 60%),
              linear-gradient(160deg, var(--violet-deep) 0%, var(--violet-dark) 55%, #3a1f8f 100%);
}
.hero .container { position: relative; z-index: 2; padding-top: 88px; padding-bottom: 96px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 .grad { background: linear-gradient(90deg, #fff, #ffd68a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: #e9e3fb; font-size: 1.22rem; max-width: 44ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-note { margin-top: 1.4rem; font-size: .92rem; color: #c9bff0; display: flex; align-items: center; gap: .5rem; }
.hero-blob { position: absolute; inset: 0; opacity: .35; pointer-events: none;
  background: radial-gradient(400px 400px at 15% 90%, #f5a623 0%, transparent 60%); z-index: 1; }

/* phone mock in hero */
.phone {
  width: 260px; margin: 0 auto; border-radius: 34px; padding: 12px;
  background: linear-gradient(180deg, #241a3d, #14101f);
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.12);
}
.phone-screen { border-radius: 24px; background: #fff; overflow: hidden; aspect-ratio: 9 / 17.5; display: flex; flex-direction: column; }
.phone-top { background: linear-gradient(135deg, var(--violet), var(--violet-dark)); color: #fff; padding: 14px 16px; }
.phone-top .t { font-weight: 800; letter-spacing: -.01em; }
.phone-top .s { font-size: .72rem; opacity: .85; }
.sgrid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 1px; background: #cfd3e0; padding: 8px; flex: 1; }
.sgrid span { background: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--ink); font-size: .68rem; }
.sgrid span.g { color: var(--violet); }
.sgrid span.b3 { box-shadow: inset 0 -2px 0 #a9b0c6; }
.sgrid span.b3c { box-shadow: inset -2px 0 0 #a9b0c6; }
.phone-pad { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; padding: 8px; }
.phone-pad b { background: var(--bg-soft); border-radius: 7px; text-align: center; padding: 6px 0; font-weight: 700; color: var(--ink); font-size: .74rem; }

/* real device screenshots */
.device { display: inline-block; padding: 10px; border-radius: 32px;
  background: linear-gradient(180deg, #241a3d, #14101f);
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.12); }
.device img { display: block; width: 100%; height: auto; border-radius: 22px; }
.hero .device { width: 264px; margin: 0 auto; }

.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; margin-top: 44px; align-items: start; }
.shot { text-align: center; }
.shot .device { display: block; width: 100%; padding: 7px; border-radius: 24px; }
.shot .device img { border-radius: 15px; }
.shot .cap { margin-top: 14px; font-weight: 700; color: var(--ink); font-size: .95rem; }

/* alternating feature rows (product page) */
.feat { display: grid; grid-template-columns: 1.02fr .98fr; gap: 46px; align-items: center; }
.feat + .feat { margin-top: 60px; }
.feat .media { text-align: center; }
.feat .media .device { width: 236px; }
.feat.rev .media { order: -1; }
.feat h3 { font-size: 1.5rem; }
.feat p { margin-bottom: 0; }

/* ---------- trust bar ---------- */
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chip { display: inline-flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--line);
  padding: .6rem 1.1rem; border-radius: 999px; font-weight: 700; color: var(--ink); font-size: .95rem; box-shadow: var(--shadow); }
.chip svg { width: 18px; height: 18px; color: var(--violet); }

/* ---------- feature grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { margin-top: .2rem; }
.card p { margin-bottom: 0; }
.ficon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #efe6ff, #e6f0ff); color: var(--violet); margin-bottom: 16px; }
.ficon svg { width: 24px; height: 24px; }

/* ---------- ethos band ---------- */
.ethos { background: var(--bg-dark); color: #efeaff; }
.ethos h2 { color: #fff; }
.ethos .lead { color: #cfc7ea; }
.ethos .ticklist { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem 1.4rem; max-width: 620px; }
.ethos .ticklist li { display: flex; align-items: center; gap: .6rem; color: #efeaff; font-weight: 600; }
.ethos .ticklist svg { width: 20px; height: 20px; color: var(--amber); flex: none; }

/* ---------- app showcase ---------- */
.app-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.applist { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.applist li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .7rem; }
.applist svg { width: 22px; height: 22px; color: var(--violet); flex: none; margin-top: 2px; }

/* ---------- stores ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: .8rem; padding: .8rem 1.3rem; border-radius: 14px;
  background: var(--ink); color: #fff; min-width: 210px; border: 1px solid #000;
}
.store:hover { text-decoration: none; transform: translateY(-2px); transition: transform .12s ease; }
.store svg { width: 26px; height: 26px; flex: none; }
.store .l1 { display: block; font-size: .68rem; opacity: .8; line-height: 1; }
.store .l2 { display: block; font-weight: 800; font-size: 1.02rem; line-height: 1.2; }
.store .soon { margin-left: auto; font-size: .62rem; background: var(--amber); color: #3a2600; padding: 2px 7px; border-radius: 999px; font-weight: 800; letter-spacing: .04em; }

/* ---------- donate ---------- */
.donate-band { background: linear-gradient(135deg, #fff7e8, #fdeccd); border: 1px solid #f4dca8; border-radius: 22px; padding: 44px; text-align: center; }
.donate-band h2 { color: #6b4a00; }
.donate-band p { color: #7a5a12; max-width: 52ch; margin-left: auto; margin-right: auto; }

/* ---------- rate & review ---------- */
.review-band {
  position: relative; overflow: hidden;
  background: radial-gradient(700px 380px at 85% -30%, #7c3aed 0%, transparent 60%),
              linear-gradient(135deg, var(--violet-deep) 0%, var(--violet-dark) 60%, #3a1f8f 100%);
  color: #fff; border-radius: 22px; padding: 46px 44px; text-align: center; box-shadow: var(--shadow-lg);
}
.review-band .eyebrow { color: #d9c9ff; }
.review-band h2 { color: #fff; }
.review-band p { color: #e9e3fb; max-width: 56ch; margin-left: auto; margin-right: auto; }
.review-band .stars { display: inline-flex; gap: 7px; margin-bottom: 14px; }
.review-band .stars svg { width: 32px; height: 32px; color: var(--amber); filter: drop-shadow(0 3px 8px rgba(245,166,35,.45)); }
.review-band .stores { margin-top: 26px; }
.review-band .store { border-color: rgba(255,255,255,.14); }
.review-note { color: #c9bff0; font-size: .9rem; margin-top: 16px; }

/* ---------- review emphasis (top-bar button + amplified band) ---------- */
/* Reviews are the app's only "advertising" — make the ask unmissable but on-brand. */
.btn-review {
  background: linear-gradient(135deg, var(--violet) 0%, var(--violet-dark) 100%);
  color: #fff; box-shadow: 0 8px 22px rgba(76,29,149,.30);
  animation: reviewGlow 2.6s ease-in-out infinite;
}
.btn-review:hover { color: #fff; }
.btn-review .star { color: #ffcf4d; font-size: 1.05em; line-height: 1; }
@keyframes reviewGlow {
  0%, 100% { box-shadow: 0 8px 22px rgba(76,29,149,.30); }
  50%      { box-shadow: 0 10px 30px rgba(245,166,35,.55); }
}

.review-band { padding: 60px 44px; }
.review-band .eyebrow { font-size: .9rem; }
.review-band h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .35em; }
.review-band .lead-review { font-size: 1.26rem; font-weight: 700; color: #fff; max-width: 60ch; margin: 0 auto 1rem; }
.review-band .stars { margin-bottom: 18px; }
.review-band .stars svg { width: 40px; height: 40px; animation: starPulse 2.4s ease-in-out infinite; transform-origin: center bottom; }
.review-band .stars svg:nth-child(2) { animation-delay: .12s; }
.review-band .stars svg:nth-child(3) { animation-delay: .24s; }
.review-band .stars svg:nth-child(4) { animation-delay: .36s; }
.review-band .stars svg:nth-child(5) { animation-delay: .48s; }
@keyframes starPulse { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-3px) scale(1.14); } }
.review-band .btn-review { animation: none; font-size: 1.08rem; margin-top: 4px; }

.review-reasons { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 22px auto 4px; max-width: 720px; }
.review-reasons li { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18); color: #fff; padding: .55rem 1rem; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.review-reasons svg { width: 18px; height: 18px; color: #ffcf4d; flex: none; }

@media (prefers-reduced-motion: reduce) {
  .btn-review, .review-band .stars svg { animation: none; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--bg-dark); color: #b9b2d6; padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.site-footer a { color: #cdc6e6; display: block; margin-bottom: .55rem; font-size: .96rem; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: inline-flex; align-items: center; gap: .6rem; color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: .8rem; }
.footer-brand svg { width: 30px; height: 30px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; font-size: .88rem; color: #9990ba;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- legal / prose pages ---------- */
.page-head { background: linear-gradient(160deg, var(--violet-deep), var(--violet-dark)); color: #fff; padding: 64px 0 52px; }
.page-head h1 { color: #fff; margin-bottom: .3rem; }
.page-head p { color: #d9d0f7; margin: 0; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 2.2rem; font-size: 1.4rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose .updated { color: var(--muted); font-size: .92rem; margin-bottom: 2rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .98rem; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--bg-soft); color: var(--ink); font-weight: 700; }
.prose code { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .9em; }
/* multi-paragraph feature blocks (used on the guide) need spacing between stacked <p> */
.feat p + p { margin-top: .9rem; }
/* standalone app screenshots on the guide (desktop captures, not phone-framed) */
figure.shotfig { margin: 1.7rem auto 0; text-align: center; max-width: 760px; }
figure.shotfig img { width: 100%; max-width: 360px; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 12px 34px rgba(0,0,0,.10); }
figure.shotfig.wide img { max-width: 100%; }
figure.shotfig figcaption { color: var(--muted); font-size: .9rem; margin-top: .55rem; }
.callout { background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--violet); border-radius: 10px; padding: 18px 20px; margin: 1.4rem 0; }
.callout strong { color: var(--ink); }

/* ---------- faq ---------- */
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; margin-bottom: 12px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--violet); font-size: 1.4rem; font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 16px; margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-note { justify-content: center; }
  .hero-visual { order: -1; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .app-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .feat { grid-template-columns: 1fr; gap: 22px; }
  .feat .media, .feat.rev .media { order: -1; } /* screenshot on top when stacked */
}
@media (max-width: 720px) {
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; box-shadow: var(--shadow);
    display: none; margin-left: 0;
  }
  .nav-actions { margin-left: auto; } /* keep Donate + hamburger on the bar */
  .nav-links a { padding: 12px 6px; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-toggle-label { display: inline-flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
  .nav-toggle-label span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }
}
@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .nav-actions { gap: .4rem; }
  .nav-actions .btn-sm { padding: .5rem .72rem; font-size: .82rem; }
  .review-band { padding: 40px 22px; }
  .review-reasons li { font-size: .88rem; padding: .5rem .85rem; }
  .grid-3, .grid-2, .ethos .ticklist { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .donate-band { padding: 30px 20px; }
  /* swipeable screenshot strip on phones */
  .gallery { display: flex; overflow-x: auto; gap: 16px; scroll-snap-type: x mandatory;
    padding-bottom: 12px; -webkit-overflow-scrolling: touch; }
  .shot { flex: 0 0 68%; scroll-snap-align: center; }
}
