* { box-sizing: border-box; }

:root{
  /* Warm, app-like palette */
  --bg: #f6f1e8;         /* light sand */
  --ink: #1f1f1f;        /* softer than pure black */
  --muted: #4e4e4e;      /* body text */
  --muted2: #6a6a6a;     /* secondary */

  /* Cards */
  --card: rgba(255,255,255,0.68);
  --border: rgba(20,20,20,0.08);

  /* Buttons */
  --btnBorder: rgba(20,20,20,0.12);
  --shadow: 0 10px 30px rgba(0,0,0,0.06);
}

html,body{ height:100%; }

body{
  margin:0;
  background: var(--bg);
  color: var(--ink);
  font-family:-apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, Segoe UI, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
  min-height: 100svh; /* dynamic viewport height on mobile */
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Soft fluid background blobs (no images needed) */
body::before,
body::after{
  content:"";
  position: fixed;
  inset: -160px;
  z-index: -1;
  pointer-events: none;
  filter: blur(60px);
  opacity: 0.85;
  transform: translateZ(0);
}

body::before{
  background:
    radial-gradient(650px 520px at 20% 10%, rgba(255, 196, 145, 0.55), transparent 60%),
    radial-gradient(520px 420px at 80% 15%, rgba(160, 202, 255, 0.50), transparent 60%),
    radial-gradient(560px 520px at 55% 75%, rgba(180, 235, 208, 0.52), transparent 62%),
    radial-gradient(520px 420px at 10% 80%, rgba(255, 230, 170, 0.55), transparent 60%);
}

body::after{
  background:
    radial-gradient(500px 420px at 65% 30%, rgba(244, 170, 208, 0.38), transparent 62%),
    radial-gradient(520px 460px at 35% 55%, rgba(210, 190, 255, 0.35), transparent 65%);
  opacity: 0.65;
}

/* Links */
a{ color: inherit; text-decoration: none; }
a:hover{ opacity: .92; }

/* Top bar */
.top{
  max-width: 980px;
  margin: 0 auto;
  padding: 22px 18px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.brand{
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 18px;
}

.nav{
  display:flex;
  gap: 10px;
  font-size: 14px;
  color: var(--muted2);
}
.nav a{
  padding: 8px 10px;
  border-radius: 14px;
}
.nav a:hover{
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(20,20,20,0.06);
  padding: 7px 9px;
  color: var(--ink);
}

/* Content wrapper */
.wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 18px 56px;
}

/* Cards */
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero{
  margin-top: 22px;
  padding: 36px;
}

h1{
  margin:0;
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.lead{
  margin: 14px 0 0;
  max-width: 62ch;
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.note{
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted2);
}

/* Buttons */
.buttons{
  margin-top: 22px;
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 18px;
  font-weight: 700;
  font-size: 14px;
}

.primary{
  background: rgba(20,20,20,0.92);
  color: #fff;
  box-shadow: 0 12px 26px rgba(0,0,0,0.12);
}

.secondary{
  border: 1px solid var(--btnBorder);
  background: rgba(255,255,255,0.55);
  color: var(--ink);
}

/* Feature grid */
.grid{
  margin-top: 14px;
  display:grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0,1fr));
}

.grid h2{
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.grid p{
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

/* Footer */
.footer{
  margin-top: 18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
  color: var(--muted2);
  font-size: 13px;
}

.footer-links{ display:flex; gap: 14px; }

/* Mobile */
@media (max-width: 860px){
  h1{ font-size: 36px; }
  .hero{ padding: 26px; }
  .grid{ grid-template-columns: 1fr; }
}

/* App Store badge */
.appstore{
  display:inline-flex;
  align-items:center;
  height: 44px;
  border-radius: 12px;
}

.appstore img{
  height: 44px;     /* Apple badge standard-ish */
  width: auto;
  display:block;
}

.appstore:hover{ transform: translateY(-1px); }
.appstore{ transition: transform .12s ease; }

/* FAQ accordion */
.faq details{
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(20,20,20,0.08);
  border-radius: 18px;
  padding: 14px 14px;
  margin: 10px 0;
}

.faq summary{
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  outline: none;
}

.faq summary::-webkit-details-marker{ display:none; }

.faq details p{
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.faq details[open]{
  box-shadow: 0 10px 22px rgba(0,0,0,0.06);
}
