
:root{
  --bg: #ffffff;
  --fg: #0f172a;
  --muted: #334155;
  --card: #f8fafc;
  --border: #e2e8f0;
  --accent: #0982eb;
}

@media (prefers-color-scheme: dark) {
  :root{
    --bg: #0b1220;
    --fg: #e6edf7;
    --muted: #96a2b8;
    --card: #0f172a;
    --border: #1e293b;
    --accent: #3ba4ff;
  }
}

*{ box-sizing: border-box; }

html, body{
  height:100%;
}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--fg);
  background: radial-gradient(1000px 600px at 50% -200px, rgba(99,102,241,0.15), transparent 60%), var(--bg);
  line-height: 1.6;
}
a{
  color:#0982eb;
}
a:hover,
a:focus{
  color:#0667ba;
}

.container{
  min-height: calc(100vh - 80px);
  display: grid;
  place-items: center;
  padding: 40px 16px;
}

.hero{
  width: 100%;
  max-width: 760px;
  text-align: center;
  background: color-mix(in oklab, var(--card) 90%, transparent);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 20px 28px;
  backdrop-filter: blur(6px);
}

.logo{
  width: 96px;
  height: 96px;
  display:block;
  margin: 0 auto 16px;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

h1{
  margin: 8px 0 8px;
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: -0.02em;
}

.tagline{
  margin: 0 auto 24px;
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(16px, 2.8vw, 18px);
}

.cta{
  display:flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 24px 0;
}

.store-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 14px 20px;
  font-weight: 700;
  text-decoration:none;
  color: #fff;
  background: var(--fg);
  border-radius: 14px;
  border: 1px solid color-mix(in oklab, var(--fg) 80%, #000 20%);
  transition: transform .04s ease, box-shadow .2s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}

.store-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,.2);
}

.link-btn{
  display:flex;
  gap: 8px;
  align-items:center;
  justify-content:center;
  padding: 11px 18px;
  width: 100%;
  border-radius: 999px;
  text-decoration:none;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), color-mix(in oklab, var(--accent) 70%, #fff 30%));
  box-shadow: 0 10px 24px rgba(9,130,235,.25);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.link-btn:hover,
.link-btn:focus{
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(9,130,235,.3);
}
.link-btn:active{
  transform: translateY(1px);
  box-shadow: 0 6px 16px rgba(9,130,235,.35);
}

.legal-links{
  margin: 8px auto 0;
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  width: min(100%, 540px);
}
.support-btn{
  display:inline-block;
  margin:16px 0;
  padding:12px 32px;
  border-radius:999px;
  background: var(--fg);
  color: var(--bg);
  font-weight:600;
  letter-spacing:.02em;
  text-decoration:none;
  box-shadow:0 8px 24px rgba(0,0,0,.15);
  transition:transform .2s ease, box-shadow .2s ease;
}
.support-btn:hover,
.support-btn:focus{
  transform:translateY(-1px);
  box-shadow:0 12px 30px rgba(0,0,0,.2);
}
.support-btn:active{
  transform:translateY(0);
  box-shadow:0 6px 18px rgba(0,0,0,.18);
}

.footer{
  height: 80px;
  display:grid;
  place-items:center;
  color: var(--muted);
  font-size: 14px;
}


/* App Store badge wiring per Apple guidelines */
.appstore-badge{
  display:inline-block;
  line-height:0; /* prevent extra inline spacing */
  /* Clear space: 1/4 of badge height around the badge */
  padding: 11px; /* for 44px height -> 11px clear space */
}
.appstore-badge img{
  height:44px; /* Apple recommends min 40px on digital; using 44px */
  width:auto;
  display:block;
}
.legal-note{
  text-align:center;
  font-size: 12px;
  color: var(--muted);
  margin-top: -12px;
  margin-bottom: 16px;
}
